* modules/getndelim2 (License): Relicense to LGPLv2+.
[gnulib.git] / ChangeLog
1 2008-08-28  Jim Meyering  <meyering@redhat.com>
2
3         * modules/getndelim2 (License): Relicense to LGPLv2+.
4
5 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
6
7         * lib/getdelim.c (flockfile, funlockfile): Make all of them
8         dummy if one is not available.  Do not touch them if
9         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
10         (getc_maybe_unlocked): New.
11         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
12
13 2008-08-26  Eric Blake  <ebb9@byu.net>
14
15         doc/INSTALL: resync from autoconf
16         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
17         (INSTALL_PRELUDE): Delete; this is done more efficiently by
18         moving...
19         * install.texi [!autoconf]: ...here.  Resync from autoconf.
20         * INSTALL: Regenerate.
21         * INSTALL.ISO: New file.
22         * INSTALL.UTF-8: Likewise.
23
24 2008-08-26  Jim Meyering  <meyering@redhat.com>
25
26         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
27         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
28         these definitions conditional, so that they may be overridden, too.
29
30 2008-08-26  Bruno Haible  <bruno@clisp.org>
31
32         Generate INSTALL file variants with prettier quotes.
33         * doc/Makefile (INSTALL_PRELUDE): New macro.
34         (INSTALL): Use it.
35         (INSTALL.ISO, INSTALL.UTF-8): New rules.
36
37 2008-08-26  Bruno Haible  <bruno@clisp.org>
38
39         Run makeinfo in an English locale.
40         * doc/Makefile (MAKEINFO): New variable.
41
42 2008-08-26  Bruno Haible  <bruno@clisp.org>
43
44         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
45         Suggested by Eric Blake.
46
47 2008-08-25  Bruno Haible  <bruno@clisp.org>
48
49         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
50
51 2008-08-25  Eric Blake  <ebb9@byu.net>
52
53         c-stack: test that stack overflow can be caught
54         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
55         that platform allows handling stack overflow; at least OS/2 EMX
56         has sigaltstack, but crashes before transferring control to
57         handler on stack overflow.
58         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
59         check for HAVE_STACK_OVERFLOW_HANDLING.
60         Reported by Elbert Pol.
61
62 2008-08-25  Bruno Haible  <bruno@clisp.org>
63
64         * doc/posix-functions/strftime.texi: Fix description of strftime
65         module.
66
67 2008-08-24  Bruno Haible  <bruno@clisp.org>
68
69         * tests/uniwidth/test-uc_width2.c: New file.
70         * tests/uniwidth/test-uc_width2.sh: New file.
71         * modules/uniwidth/width-tests (Files): Add the new files.
72         (TESTS): Add uniwidth/test-uc_width2.sh.
73         (TESTS_ENVIRONMENT): New variable.
74         (check_PROGRAMS): Add test-uc_width2.
75         (test_uc_width2_SOURCES): New variable.
76
77         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
78         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
79         not 0x00AB.
80         Reported by Alexander V. Lukyanov <lav@netis.ru>.
81
82 2008-08-22  Eric Blake  <ebb9@byu.net>
83
84         test-lock, test-tls: mention why a test is skipped
85         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
86         skipped.
87         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
88
89         count-one-bits: relax license
90         * modules/count-one-bits (License): Relicense to LGPLv2+.
91         Suggested by Ludovic Courtès, approved by Ben Pfaff.
92
93 2008-08-22  Andreas Schwab  <schwab@suse.de>
94
95         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
96         Remove spurious space in assignment.
97
98 2008-08-21  Simon Josefsson  <simon@josefsson.org>
99
100         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
101         Paul Eggert <eggert@CS.UCLA.EDU>.
102
103 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
104
105         * modules/gettext: Add m4/threadlib.m4.
106
107 2008-08-19  Eric Blake  <ebb9@byu.net>
108
109         test-c-stack: fix compilation failure on FreeBSD 5.0
110         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
111         headers before <sys/resource.h>.
112         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
113         the bug.
114         Reported by Nelson H. F. Beebe.
115
116         strverscmp: migrate from "strverscmp.h" to <string.h>
117         * modules/string (Makefile.am): Add new hooks.
118         * modules/strverscmp (Files): Remove strverscmp.h.
119         (Depends-on): Add string.
120         (configure.ac): Add indicator.
121         (Include): Mention new header.
122         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
123         defaults.
124         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
125         results.
126         * lib/strverscmp.h: Delete.
127         * lib/string.in.h (strverscmp): Provide declaration, when needed.
128         * tests/test-strverscmp.c (includes): Adjust client.
129         * lib/check-version.c (includes): Likewise.
130         * NEWS: Document the change.
131
132         strverscmp: add unit test
133         * modules/strverscmp-tests: New file.
134         * tests/test-strverscmp.c: Likewise.
135
136 2008-08-19  Simon Josefsson  <simon@josefsson.org>
137
138         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
139         regarding Windows crypto stuff, from Mono.
140
141 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
142
143         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
144         if present, for intel RND.  Return error on failures.
145
146 2008-08-18  Ben Pfaff  <blp@gnu.org>
147
148         gitlog-to-changelog: give better diagnostic for failed pipe-open
149         * build-aux/gitlog-to-changelog: Improve error message: suggest
150         that the version of Git may be too old.
151
152 2008-08-18  Simon Josefsson  <simon@josefsson.org>
153
154         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
155         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
156
157 2008-08-18  Bruno Haible  <bruno@clisp.org>
158
159         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
160         pthread_in_use().
161
162 2008-08-18  Bruno Haible  <bruno@clisp.org>
163
164         * lib/glthread/threadlib.c: Include <pthread.h>.
165
166 2008-08-18  Bruno Haible  <bruno@clisp.org>
167
168         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
169         glthread_recursive_lock_* macros.
170         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
171         Fix syntax error.
172
173 2008-08-18  Bruno Haible  <bruno@clisp.org>
174
175         * lib/glthread/thread.c: Avoid forcing a context switch right after
176         thread creation.
177
178 2008-08-17  Bruno Haible  <bruno@clisp.org>
179
180         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
181         * lib/glthread/thread.h: Provide Win32 specific implementation.
182         * modules/thread (Files): Add lib/glthread/thread.c.
183         (Depends-on): Add lock.
184         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
185
186 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
187
188         New module 'yield'.
189         * modules/yield: New file.
190         * lib/glthread/yield.h: New file.
191         * m4/yield.m4: New file.
192         * MODULES.html.sh (Multithreading): Add yield.
193
194 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
195
196         New module 'thread'.
197         * modules/thread: New file.
198         * lib/glthread/thread.h: New file.
199         * m4/thread.m4: New file.
200         * MODULES.html.sh (Multithreading): Add thread.
201
202 2008-08-17  Bruno Haible  <bruno@clisp.org>
203
204         * lib/glthread/lock.h: Include <stdlib.h> always.
205         * lib/glthread/tls.h: Likewise.
206         * lib/glthread/cond.h: Likewise.
207
208 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
209
210         New module 'cond'.
211         * modules/cond: New file.
212         * lib/glthread/cond.h: New file.
213         * lib/glthread/cond.c: New file.
214         * m4/cond.m4: New file.
215         * MODULES.html.sh (Multithreading): Add cond.
216
217 2008-08-16  Eric Blake  <ebb9@byu.net>
218
219         c-stack: fix regression on Irix 5.3 from 2008-06-21
220         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
221         sa_sigaction...
222         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
223         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
224         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
225         * modules/signal (Makefile.am): Use the value.
226         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
227         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
228         * doc/posix-headers/signal.texi (signal.h): Document this
229         portability issue.
230         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
231         Reported by Tom G. Christensen.
232
233 2008-08-17  Bruno Haible  <bruno@clisp.org>
234
235         New module 'threadlib'.
236         * modules/threadlib: New file.
237         * lib/glthread/threadlib.c: New file, extracted from
238         lib/glthread/lock.c.
239         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
240         functions.
241         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
242         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
243         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
244         macros.
245         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
246         (gl_DISABLE_THREADS): Remove macro.
247         * modules/lock (Files): Remove build-aux/config.rpath.
248         (Depends-on): Remove havelib. Add threadlib.
249         (configure.ac-early): Remove section.
250         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
251         * modules/tls (Depends-on): Remove lock. Add threadlib.
252         (Link): New section, copied from threadlib.
253         * MODULES.html.sh (Multithreading): Add threadlib.
254
255 2008-08-14  Bruno Haible  <bruno@clisp.org>
256
257         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
258         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
259         glthread_rwlock_unlock, glthread_rwlock_destroy,
260         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
261         glthread_recursive_lock_destroy): Define as macros always.
262         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
263         glthread_lock_lock.
264         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
265         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
266         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
267         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
268         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
269         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
270         (glthread_recursive_lock_lock_func): Renamed from
271         glthread_recursive_lock_lock.
272         (glthread_recursive_lock_unlock_func): Renamed from
273         glthread_recursive_lock_unlock.
274         (glthread_recursive_lock_destroy_func): Renamed from
275         glthread_recursive_lock_destroy.
276
277 2008-08-14  Bruno Haible  <bruno@clisp.org>
278
279         * lib/glthread/lock.h: Renamed from lib/lock.h.
280         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
281         * lib/glthread/tls.h: Renamed from lib/tls.h.
282         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
283         * lib/fstrcmp.c: Update includes.
284         * lib/strsignal.c: Update includes.
285         * modules/lock (Files, Makefile.am): Update.
286         (Include): Change to "glthread/lock.h".
287         * modules/tls (Files, Makefile.am): Update.
288         (Include): Change to "glthread/tls.h".
289         * tests/test-lock.c: Update includes.
290         * tests/test-tls.c: Update includes.
291         * NEWS: Mention the renamed header files.
292
293 2008-08-11  Jim Meyering  <meyering@redhat.com>
294
295         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
296
297 2008-08-11  Eric Blake  <ebb9@byu.net>
298
299         test-c-stack: avoid C99-ism
300         * tests/test-c-stack.c (main): Fix whitespace, move declaration
301         before statement.
302         Reported by Alain Guibert.
303
304 2008-08-10  Jim Meyering  <meyering@redhat.com>
305
306         ensure that return value of uinttostr et al are not ignored
307         * lib/inttostr.h (__GNUC_PREREQ): Define.
308         (__attribute_warn_unused_result__): Define.
309         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
310
311 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
312
313         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
314         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
315
316 2008-08-07  Jim Meyering  <meyering@redhat.com>
317
318         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
319
320         * modules/mkstemp (License): Relicense under LGPLv2+.
321         * modules/tempname (License): Likewise.
322
323 2008-08-06  Bruno Haible  <bruno@clisp.org>
324
325         * lib/poll.c (poll): Further micro-optimization.
326
327 2008-08-06  Jim Meyering  <meyering@redhat.com>
328
329         inet_pton.c: use locale-independent tolower
330         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
331         (inet_pton6): Use c_tolower rather than tolower.
332         * modules/inet_pton (Depends-on): Add c-ctype.
333
334 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
335
336         * lib/poll.c (poll): Avoid division when timeout is 0, cache
337         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
338
339 2008-08-06  Jim Meyering  <meyering@redhat.com>
340
341         * modules/inet_pton (License): Relicense under LGPLv2+.
342
343 2008-08-03  Bruno Haible  <bruno@clisp.org>
344
345         Additional non-aborting API for lock and tls.
346         * lib/lock.h: Include <errno.h>.
347         (glthread_lock_init): New macro/function.
348         (gl_lock_init): Define as wrapper around glthread_lock_init.
349         (glthread_lock_lock): New macro/function.
350         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
351         (glthread_lock_unlock): New macro/function.
352         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
353         (glthread_lock_destroy): New macro/function.
354         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
355         (glthread_rwlock_init): New macro/function.
356         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
357         (glthread_rwlock_rdlock): New macro/function.
358         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
359         (glthread_rwlock_wrlock): New macro/function.
360         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
361         (glthread_rwlock_unlock): New macro/function.
362         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
363         (glthread_rwlock_destroy): New macro/function.
364         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
365         (glthread_recursive_lock_init): New macro/function.
366         (gl_recursive_lock_init): Define as wrapper around
367         glthread_recursive_lock_init.
368         (glthread_recursive_lock_lock): New macro/function.
369         (gl_recursive_lock_lock): Define as wrapper around
370         glthread_recursive_lock_lock.
371         (glthread_recursive_lock_unlock): New macro/function.
372         (gl_recursive_lock_unlock): Define as wrapper around
373         glthread_recursive_lock_unlock.
374         (glthread_recursive_lock_destroy): New macro/function.
375         (gl_recursive_lock_destroy): Define as wrapper around
376         glthread_recursive_lock_destroy.
377         (glthread_once): New macro/function.
378         (gl_once): Define as wrapper around glthread_once.
379         Update function declarations.
380         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
381         glthread_rwlock_init. Return error code.
382         (glthread_rwlock_rdlock_multithreaded): Renamed from
383         glthread_rwlock_rdlock. Return error code.
384         (glthread_rwlock_wrlock_multithreaded): Renamed from
385         glthread_rwlock_wrlock. Return error code.
386         (glthread_rwlock_unlock_multithreaded): Renamed from
387         glthread_rwlock_unlock. Return error code.
388         (glthread_rwlock_destroy_multithreaded): Renamed from
389         glthread_rwlock_destroy. Return error code.
390         (glthread_recursive_lock_init_multithreaded): Renamed from
391         glthread_recursive_lock_init. Return error code.
392         (glthread_recursive_lock_lock_multithreaded): Renamed from
393         glthread_recursive_lock_lock. Return error code.
394         (glthread_recursive_lock_unlock_multithreaded): Renamed from
395         glthread_recursive_lock_unlock. Return error code.
396         (glthread_recursive_lock_destroy_multithreaded): Renamed from
397         glthread_recursive_lock_destroy. Return error code.
398         (glthread_once_call): Make static.
399         (glthread_once_multithreaded): Renamed from glthread_once.
400         * lib/tls.h: Include <errno.h>.
401         (glthread_tls_key_init): New macro/function.
402         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
403         (glthread_tls_set): New macro/function.
404         (gl_tls_set): Define as wrapper around glthread_tls_set.
405         (glthread_tls_key_destroy): New macro/function.
406         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
407         Update function declarations.
408         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
409         glthread_tls_get.
410         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
411
412 2008-08-04  Eric Blake  <ebb9@byu.net>
413
414         gnumakefile: use space, not TAB, outside of targets
415         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
416
417 2008-08-02  Jim Meyering  <meyering@redhat.com>
418
419         getdate.y: avoid locale-dependent date parsing failure
420         In Turkish locales, getdate would fail to recognize keywords
421         containing a lowercase "i".  The solution is not to rely on
422         locale-sensitive case-conversion.
423         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
424         (lookup_word): Use c_toupper in place of toupper.
425         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
426         Reported by Vefa Bicakci <bicave@superonline.com> in
427         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
428         * modules/getdate (Depends-on): Add c-ctype.
429
430 2008-08-02  Bruno Haible  <bruno@clisp.org>
431
432         * gnulib-tool (func_import): When updating or creating a .gitignore
433         file, prepend each added line with a slash, and ignore leading slashes
434         from the existing lines.
435         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
436
437 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
438
439         Portability fix for GNU make 3.79.1.
440         * top/GNUmakefile: Avoid 'else COND', which older GNU make
441         versions do not understand.
442
443 2008-08-01  Bruno Haible  <bruno@clisp.org>
444
445         Work around bug of HP-UX 10.20 cc with -0.0 literal.
446         * tests/test-isnanf.h (zero): New variable.
447         (main): Avoid literal -0.0f.
448         * tests/test-isnand.h (zero): New variable.
449         (main): Avoid literal -0.0.
450         * tests/test-isnanl.h (zero): New variable.
451         (main): Avoid literal -0.0L.
452         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
453         (test_float, test_double, test_long_double): Avoid literals -0.0f,
454         -0.0, -0.0L.
455         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
456         (test_signbitd): Avoid literal -0.0.
457         (test_signbitl): Avoid literal -0.0L.
458         * tests/test-ceilf1.c (zero): New variable.
459         (main): Avoid literal -0.0f.
460         * tests/test-ceill.c (zero): New variable.
461         (main): Avoid literal -0.0L.
462         * tests/test-floorf1.c (zero): New variable.
463         (main): Avoid literal -0.0f.
464         * tests/test-floorl.c (zero): New variable.
465         (main): Avoid literal -0.0L.
466         * tests/test-roundf1.c (zero): New variable.
467         (main): Avoid literal -0.0f.
468         * tests/test-round1.c (zero): New variable.
469         (main): Avoid literal -0.0.
470         * tests/test-roundl.c (zero): New variable.
471         (main): Avoid literal -0.0L.
472         * tests/test-truncf1.c (zero): New variable.
473         (main): Avoid literal -0.0f.
474         * tests/test-trunc1.c (zero): New variable.
475         (main): Avoid literal -0.0.
476         * tests/test-truncl.c (zero): New variable.
477         (main): Avoid literal -0.0L.
478         * tests/test-frexp.c (zero): New variable.
479         (main): Avoid literal -0.0.
480         * tests/test-frexpl.c (zero): New variable.
481         (main): Avoid literal -0.0L.
482         * tests/test-ldexpl.c (zero): New variable.
483         (main): Avoid literal -0.0L.
484         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
485         (zerod, zerol): New variables.
486         (test_function): Avoid literals -0.0, -0.0L.
487         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
488         (zerod, zerol): New variables.
489         (test_function): Avoid literals -0.0, -0.0L.
490         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
491         (zerod, zerol): New variables.
492         (test_function): Avoid literals -0.0, -0.0L.
493         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
494         (zerod, zerol): New variables.
495         (test_function): Avoid literals -0.0, -0.0L.
496         * tests/test-strtod.c (zero): New variable.
497         (main): Avoid literal -0.0.
498         Reported by Jonathan C. Patschke <jp@centtech.com>.
499
500 2008-07-31  Jim Meyering  <meyering@redhat.com>
501
502         sha256.h: correct definition of SHA224_DIGEST_SIZE
503         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
504         Reported by Paulie Pena IV <paulie4@gmail.com>.
505         Define as 224 / 8, rather than as a literal.
506         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
507         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
508         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
509
510 2008-07-31  Bruno Haible  <bruno@clisp.org>
511
512         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
513         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
514         Reported by Jonathan Patschke <jp@centtech.com>.
515
516 2008-07-31  Bruno Haible  <bruno@clisp.org>
517
518         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
519         Reported by Paolo Bonzini <bonzini@gnu.org>.
520
521 2008-07-30  Eric Blake  <ebb9@byu.net>
522
523         test-strtod: allow compilation without -lm
524         * tests/test-strtod.c (main): Avoid link dependence on fabs.
525         Reported by Dennis Clarke <blastwave@gmail.com>.
526
527 2008-07-28  Jim Meyering  <meyering@redhat.com>
528
529         bootstrap: work also when there are no .po files in po/
530         * build-aux/bootstrap (update_po_files): Complete the change
531         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
532
533 2008-07-27  Jim Meyering  <meyering@redhat.com>
534
535         * users.txt: Add zile.
536
537 2008-07-26  Ben Pfaff  <blp@gnu.org>
538
539         Add missing dependencies on new m4/exponent[fdl].m4 files.
540         * modules/isnanf-nolibm: Add m4/exponentf.m4.
541         * modules/isnand-nolibm: Add m4/exponentd.m4.
542         * modules/isnanl-nolibm: Add m4/exponentl.m4.
543         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
544         m4/isnan[fdl].m4, because the macros actually used moved.
545         Reported by Jim Meyering.
546
547 2008-07-14  Ben Pfaff  <blp@gnu.org>
548
549         Add isinf module.
550         * lib/isinf.c: New file.
551         * lib/math.in.h: Define isinf macro if we have decided to replace
552         it.
553         * m4/isinf.m4: New file.
554         * m4/math_h.m4: Initialize and substitute variables for isinf
555         module.
556         * modules/isinf: New file.
557         * modules/isinf-tests: New file.
558         * modules/math: Add substitutions for new module.
559         * tests/test-isinf.c: New file.
560         * doc/posix-functions/isinf.texi: Mention new module.
561         * MODULES.html.sh: Mention new module.
562
563 2008-07-14  Ben Pfaff  <blp@gnu.org>
564
565         Factor out some macros for use by additional modules.
566         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
567         exponentf.m4.
568         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
569         exponentd.m4.
570         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
571         file exponentl.m4.
572         * m4/exponentf.m4: New file.
573         * m4/exponentd.m4: New file.
574         * m4/exponentl.m4: New file.
575         * modules/isnanf: Use new file m4/exponentf.m4.
576         * modules/isnand: Use new file m4/exponentd.m4.
577         * modules/isnanl: Use new file m4/exponentl.m4.
578
579 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
580
581         mktime.c: normalize tp->tm_isdst value to -1/0/1.
582         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
583         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
584         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
585
586         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
587         readlink on platforms without PATH_MAX.
588
589 2008-07-21  Eric Blake  <ebb9@byu.net>
590
591         Warn, not fail, on stale version.
592         * top/GNUmakefile (_curr-ver): Tone down previous patch.
593
594         Don't allow installation with stale devel version number.
595         * top/GNUmakefile (_is-install-target): New macro.
596         (_curr-ver): Forbid installation with stale version number.
597
598 2008-07-20  Bruno Haible  <bruno@clisp.org>
599
600         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
601         TESTS_ENVIRONMENT.
602         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
603
604 2008-07-20  Bruno Haible  <bruno@clisp.org>
605
606         * lib/c-stack.h (c_stack_action): Add documentation.
607         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
608
609 2008-07-20  Bruno Haible  <bruno@clisp.org>
610
611         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
612         * modules/readlink (License): Likewise.
613
614 2008-07-17  Eric Blake  <ebb9@byu.net>
615
616         * modules/c-stack (Link): Fix typo.
617
618         Make c-stack use libsigsegv, when available.
619         * modules/c-stack (Depends-on): Add libsigsegv.
620         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
621         needed.
622         * lib/c-stack.c (SIGSTKSZ): Define fallback.
623         (segv_handler, overflow_handler, c_stack_action)
624         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
625         implementation when libsigsegv is available, but only when using
626         the library is necessary.
627         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
628         comment, explaining why XSI check fails on Linux.
629         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
630         * tests/test-c-stack2.sh: Tweak skip message.
631         * NEWS: Document new link-time requirements.
632
633 2008-07-16  Eric Blake  <ebb9@byu.net>
634
635         c-stack: Expose false positives when not using libsigsegv.
636         * modules/c-stack-tests (Files): Expand test.
637         * tests/test-c-stack.c (main): Add means to conditionally trigger
638         non-overflow SIGSEGV.
639         * tests/test-c-stack2.sh: New file.
640
641 2008-07-14  Bruno Haible  <bruno@clisp.org>
642
643         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
644         Reported by Eric Blake.
645
646 2008-07-14  Sam Steingold  <sds@gnu.org>
647             Bruno Haible  <bruno@clisp.org>
648
649         New module libsigsegv.
650         * modules/libsigsegv: New file.
651         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
652         modifications.
653         * MODULES.html.sh (Signal handling): New section.
654
655 2008-07-14  Bruno Haible  <bruno@clisp.org>
656
657         * modules/unictype/ctype-* (Description): Add the word "function".
658         Improves the resulting doc in MODULES.html.
659
660 2008-07-12  Ben Pfaff  <blp@gnu.org>
661
662         Add longlong module.
663         * modules/longlong: New file.
664
665 2008-07-12  Bruno Haible  <bruno@clisp.org>
666
667         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
668         to empty.
669
670 2008-07-10  Ben Pfaff  <blp@gnu.org>
671
672         Add isnan module.
673         * doc/posix-functions/isnan.texi: Mention new module.
674         * lib/math.in.h: Define isnan macro if we have decided to replace
675         it.
676         * m4/isnan.m4: New file.
677         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
678         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
679         also.
680         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
681         redundancy.
682         * m4/math_h.m4: Initialize and substitute variables for isnan
683         module.
684         * modules/isnan: New file.
685         * modules/isnan-tests: New file.
686         * modules/math: Add substitutions for new module.
687         * tests/test-isnan.c: New file.
688         * MODULES.html.sh: Mention new module.
689
690 2008-07-10  Ben Pfaff  <blp@gnu.org>
691
692         Add isnanf module.
693         * lib/isnanf.m4: New file.
694         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
695         (gl_HAVE_ISNANF_IN_LIBM): New macro.
696         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
697         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
698         * modules/isnanf: New file.
699         * modules/isnanf-tests: New file.
700         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
701         files.
702         * tests/test-isnanf-nolibm.c: factored most of its contents into
703         new file tests/test-isnanf.h.
704         * tests/test-isnanf.h: New file.
705         * tests/test-isnanf.c: New file.
706         * MODULES.html.sh: Mention new module.
707         * doc/glibc-functions/isnanf.texi: Mention new module.
708
709 2008-07-10  Ben Pfaff  <blp@gnu.org>
710
711         Add isnand module.
712         * lib/isnand.h: New file.
713         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
714         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
715         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
716         functionality also.
717         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
718         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
719         (gl_HAVE_ISNAND_IN_LIBM): New macro.
720         * modules/isnand: New file.
721         * modules/isnand-tests: New file.
722         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
723         files.
724         * tests/test-isnand-nolibm.c: factored most of its contents into
725         new file tests/test-isnand.h.
726         * tests/test-isnand.h: New file.
727         * tests/test-isnand.c: New file.
728         * MODULES.html.sh: Mention new module.
729
730 2008-07-10  Ben Pfaff  <blp@gnu.org>
731
732         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
733         * lib/isnand.h: Rename lib/isnand-nolibm.h.
734         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
735         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
736         * modules/isnanf-nolibm: Update references to renamed files.
737         * modules/isnand-nolibm: Likewise.
738         * modules/isnanf-nolibm-tests: Likewise.
739         * modules/isnand-nolibm-tests: Likewise.
740         * lib/frexp.c: Likewise.
741         * lib/isfinite.c: Likewise.
742         * lib/signbitd.c: Likewise.
743         * lib/signbitf.c: Likewise.
744         * lib/vasnprintf.c: Likewise.
745         * tests/test-ceilf1.c: Likewise.
746         * tests/test-ceilf2.c: Likewise.
747         * tests/test-floorf1.c: Likewise.
748         * tests/test-floorf2.c: Likewise.
749         * tests/test-frexp.c: Likewise.
750         * tests/test-round1.c: Likewise.
751         * tests/test-round2.c: Likewise.
752         * tests/test-roundf1.c: Likewise.
753         * tests/test-strtod.c: Likewise.
754         * tests/test-trunc1.c: Likewise.
755         * tests/test-trunc2.c: Likewise.
756         * tests/test-truncf1.c: Likewise.
757         * tests/test-truncf2.c: Likewise.
758         * NEWS: Mention the renamed header files.
759
760 2008-07-11  Jim Meyering  <meyering@redhat.com>
761
762         vc-list-files: make the last-resort awk code more portable
763         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
764         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
765         does not support it.
766
767 2008-07-10  Eric Blake  <ebb9@byu.net>
768
769         Work with tar's bootstrap.
770         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
771         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
772         an m4 comment.
773
774 2008-07-09  Jim Meyering  <meyering@redhat.com>
775
776         posix-shell.m4: fix typo that made this test malfunction
777         * m4/posix-shell.m4: Remove capitalization in variable name.
778
779 2008-07-08  Bruno Haible  <bruno@clisp.org>
780
781         * m4/onceonly.m4: Update comments.
782         Reported by Ben Pfaff <blp@cs.stanford.edu>.
783
784 2008-07-04  Jim Meyering  <meyering@redhat.com>
785
786         * users.txt: Add vc-dwim.
787         (bison, coreutils): Use the gitweb URL.
788
789 2008-07-03  Jim Meyering  <meyering@redhat.com>
790
791         * users.txt: Add libffcall.  From Sam Steingold.
792
793 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
794
795         getdate.y: do not ignore TZ with relative day, month or year offset
796         * lib/getdate.y (get_date): Move the tz-handling block to follow the
797         relative-date-handling, since otherwise, the latter would clobber the
798         sole output (an updated Start value) of the tz-handling block.
799         * tests/test-getdate.c: Tests for the fix
800
801 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
802
803         Recognize 'foo_LIBRARIES += libgnu.a'.
804         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
805         makefile snippet has already specified an installation location,
806         also using '+='.
807
808 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
809
810         getdate.y: factor out common actions
811         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
812         Use them in place of open-coded actions.
813
814 2008-07-01  Simon Josefsson  <simon@josefsson.org>
815
816         Add self-test for getdate module.
817         * modules/getdate-tests: New file.
818         * tests/test-getdate.c: New file.
819
820 2008-06-29  Bruno Haible  <bruno@clisp.org>
821
822         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
823         .gitignore.
824         Reported by Sylvain Beucler <beuc@beuc.net>.
825
826 2008-06-29  Bruno Haible  <bruno@clisp.org>
827
828         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
829         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
830
831 2008-06-29  Bruno Haible  <bruno@clisp.org>
832
833         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
834         EXTRA_DIST.
835         Reported by Sylvain Beucler <beuc@beuc.net>.
836
837 2008-06-26  Jim Meyering  <meyering@redhat.com>
838
839         make several modules depend on the "open" module
840         This provides slightly increased consistency when opening-for-write
841         the name of a non-directory spelled with a trailing slash.
842         * modules/chdir-safer: Likewise.
843         * modules/chown: Likewise.
844         * modules/clean-temp: Likewise.
845         * modules/copy-file: Likewise.
846         * modules/fchdir: Likewise.
847         * modules/fcntl-safer: Likewise.
848         * modules/pipe: Likewise.
849         * modules/utime: Likewise.
850         Prompted by Eric Blake and Bruno Haible.
851
852 2008-06-24  Andreas Schwab  <schwab@suse.de>
853
854         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
855         literals can be used as initializers for global variables.
856
857 2008-06-23  Eric Blake  <ebb9@byu.net>
858
859         Make gnulib-cache.m4 easier to diff.
860         * gnulib-tool (func_import): Allow newlines when reading cached
861         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
862
863 2008-06-23  Bruno Haible  <bruno@clisp.org>
864
865         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
866         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
867         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
868         m4/signalblocking.m4.
869         (gl_PREREQ_SIGACTION): Don't invoke it.
870         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
871         gl_PREREQ_SIG_HANDLER_H.
872         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
873         Don't check for sigaction here.
874
875 2008-06-23  Bruno Haible  <bruno@clisp.org>
876
877         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
878         (install_handlers): Don't set the SA_RESETHAND flag.
879
880 2008-06-23  Bruno Haible  <bruno@clisp.org>
881
882         * m4/sigaction.m4: Comment fixes.
883         * lib/signal.in.h: Likewise.
884
885 2008-06-23  Eric Blake  <ebb9@byu.net>
886
887         Fix typo.
888         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
889
890         Avoid SA_ namespace.
891         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
892         Reported by Ralf Wildenhues.
893
894         Avoid test failure due to SA_RESTORER.
895         * tests/test-sigaction.c (SA_MASK): New macro.
896         (main): Avoid failing due to extension flags being set.
897         Reported by Jim Meyering.
898
899         Revert use of sig-handler.h in sigprocmask.c.
900         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
901         it requires the existence of struct sigaction.
902         * lib/sigprocmask.c (handler_t): Restore typedef.
903         (rpl_signal, old_handlers): Use local type.
904
905 2008-06-22  Bruno Haible  <bruno@clisp.org>
906
907         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
908         conditionally.
909         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
910
911 2008-06-22  Bruno Haible  <bruno@clisp.org>
912
913         * doc/posix-functions/siginterrupt.texi: Move note.
914
915         * lib/signal.in.h (SA_RESTART): New macro.
916         * lib/sigaction.c: Update comment.
917
918         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
919
920         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
921         (gl_PREREQ_SIGPROCMASK): Invoke it.
922         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
923
924         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
925
926         * lib/sigprocmask.c: Update a comment.
927
928 2008-06-21  Eric Blake  <ebb9@byu.net>
929
930         Use sigaction module rather than signal().
931         * modules/c-stack (Depends-on): Add sigaction.
932         * modules/fatal-signal (Depends-on): Likewise.
933         * modules/nanosleep (Depends-on): Likewise.
934         * modules/sigprocmask (Files): Add sig-handler.h.
935         * modules/sigaction (Files): Likewise.
936         * lib/sig-handler.h (get_handler): New file, suggested by Paul
937         Eggert.
938         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
939         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
940         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
941         (init_fatal_signals): Likewise.
942         * lib/nanosleep.c (rpl_nanosleep): Likewise.
943         (siginterrupt): Delete fallback.
944         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
945         instead.
946         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
947         siginterrupt.
948
949         New module sigaction, for mingw.
950         * modules/sigaction: New module...
951         * modules/sigaction-tests: ...and its test.
952         * m4/sigaction.m4: New file.
953         * lib/sigaction.c: Likewise.
954         * tests/test-sigaction.c: Likewise.
955         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
956         * modules/signal (Makefile.am): Likewise.
957         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
958         needed.
959         * doc/posix-headers/signal.texi (signal.h): Mention provided
960         types.
961         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
962         that sigaction is preferable.
963         * doc/posix-functions/sigaction.texi (sigaction): Mention new
964         module.
965         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
966         sigaction.
967
968         Improve robustness of sigprocmask by overriding signal.
969         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
970         is in use.
971         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
972         (SIGKILL, SIGSTOP): Provide fallbacks.
973         (rpl_signal): Implement.
974         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
975         signal can be called inside handlers.
976
977         Fix nanosleep module on mingw.
978         * modules/nanosleep (Depends-on): Add sys_select.
979         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
980
981         Fix licensing of sigprocmask.
982         * modules/raise (License): Relicense as LGPL.
983
984 2008-06-21  Bruno Haible  <bruno@clisp.org>
985
986         * lib/propername.c (proper_name_utf8): Don't use the transliterated
987         result if it contains question marks.
988         Reported by Michael Geng <linux@michaelgeng.de>.
989
990 2008-06-19  Bruno Haible  <bruno@clisp.org>
991
992         Fix CVS-ism.
993         * doc/gnulib.texi: Include updated-stamp.texi.
994         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
995         (updated-stamp.texi): New rule.
996         (gnulib.info): Depend on it.
997         * doc/.gitignore: Add updated-stamp.texi.
998         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
999
1000 2008-06-19  Bruno Haible  <bruno@clisp.org>
1001
1002         * doc/Makefile (gnulib.info): Update and simplify dependencies.
1003         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1004
1005 2008-06-19  Eric Blake  <ebb9@byu.net>
1006
1007         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
1008         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
1009         Reported by Stepan Kasal.
1010
1011 2008-06-18  Bruno Haible  <bruno@clisp.org>
1012
1013         * lib/fatal-signal.c (init_fatal_signals): Add comment.
1014         Reported by Eric Blake.
1015
1016 2008-06-18  Eric Blake  <ebb9@byu.net>
1017
1018         Work around cygwin 1.5.25 strsignal bug.
1019         * tests/test-strsignal.c: Allow for const char *.
1020         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
1021
1022 2008-06-18  Simon Josefsson  <simon@josefsson.org>
1023
1024         * users.txt: Update URL to article and add author/date
1025         information.
1026
1027 2008-06-17  Bruno Haible  <bruno@clisp.org>
1028
1029         New macro gl_DISABLE_THREADS.
1030         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
1031         if the user did not pass --enable-threads or --disable-threads option.
1032         (gl_DISABLE_THREADS): New macro.
1033         Reported by Eric Blake <ebb9@byu.net>.
1034
1035 2008-06-17  Bruno Haible  <bruno@clisp.org>
1036
1037         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
1038         when the macro ignores it.
1039         Based on a patch by Eric Blake <ebb9@byu.net>.
1040
1041 2008-06-17  Bruno Haible  <bruno@clisp.org>
1042
1043         * modules/tls (License): Change to LGPLv2+.
1044         Reported by Eric Blake.
1045
1046 2008-06-17  Eric Blake  <ebb9@byu.net>
1047
1048         Simplify c-stack prerequisites.
1049         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
1050         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
1051         no longer requires <ucontext.h> to exist.  Optimize setrlimit
1052         check.
1053         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
1054         <sys/resource.h>.
1055
1056         Move c-stack test into testsuite.
1057         * modules/c-stack-tests: New file.
1058         * lib/c-stack.c [DEBUG]: Move test program...
1059         * tests/test-c-stack.c: ...into this new file.  Skip rather than
1060         fail test if sigaltstack is lacking.
1061         * tests/test-c-stack.sh: New driver file.
1062
1063 2008-06-16  Eric Blake  <ebb9@byu.net>
1064
1065         Use raise module consistently.
1066         * modules/fatal-signal (Depends-on): Add raise.
1067         * modules/sigprocmask (Depends-on): Likewise.
1068         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
1069         * lib/sigprocmask.c (sigprocmask): Likewise.
1070         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1071         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
1072
1073         Fix compliance bug in sigpending.
1074         * lib/sigprocmask.c (sigpending): Return pending array via
1075         parameter, not return value.
1076
1077 2008-06-14  Eric Blake  <ebb9@byu.net>
1078
1079         Improve obstack-printf test code.
1080         * tests/test-obstack-printf.c (test_function): Fix comment, and
1081         simplify usage of obstack_* in macros.  Add a test for coverage.
1082         Reported by Bruno Haible.
1083
1084 2008-06-14  Bruno Haible  <bruno@clisp.org>
1085
1086         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
1087         array size as a constant, not as a const variable.
1088         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
1089         AC_USE_SYSTEM_EXTENSIONS.
1090         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
1091         Test whether the obstack_printf function actually exists.
1092         * modules/obstack-printf (Depends-on): Add extensions.
1093         (Include): Remove obstack.h.
1094         * modules/obstack-printf-posix (Depends-on): Add extensions.
1095         (Include): Remove obstack.h.
1096
1097 2008-06-13  Eric Blake  <ebb9@byu.net>
1098
1099         Add obstack-printf and obstack-printf-posix modules.
1100         * modules/obstack-printf: New file.
1101         * modules/obstack-printf-posix: Likewise.
1102         * MODULES.html.sh (Misc): Mention them.
1103         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
1104         Likewise.
1105         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
1106         Likewise.
1107         * modules/stdio (Makefile.am): Accomodate new modules.
1108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1109         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
1110         Declare.
1111         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
1112         functions.
1113         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
1114         (gl_REPLACE_OBSTACK_PRINTF): New macros
1115         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
1116         * tests/test-obstack-printf.c: New file.
1117         * modules/obstack-printf-tests: Likewise.
1118         * modules/obstack-printf-posix-tests: Likewise.
1119
1120 2008-06-11  Bruno Haible  <bruno@clisp.org>
1121
1122         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
1123         * lib/open.c: Include errno.h.
1124         (open): Fail when attempting to write to a file that has a trailing
1125         slash.
1126         * tests/test-open.c (main): Test against trailing slash bug.
1127         * doc/posix-functions/open.texi: Mention the trailing slash bug.
1128
1129 2008-06-10  Bruno Haible  <bruno@clisp.org>
1130
1131         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
1132         for $? to work inside the trap command, with various /bin/sh-s.
1133         * tests/test-vc-list-files-cvs.sh: Likewise.
1134
1135 2008-06-10  Bruno Haible  <bruno@clisp.org>
1136
1137         * lib/acl-internal.h: Don't include gettext.h here.
1138         * lib/set-mode-acl.c: Include gettext.h here.
1139         * lib/copy-acl.c: Likewise.
1140
1141 2008-06-10  Bruno Haible  <bruno@clisp.org>
1142
1143         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
1144         * lib/wait-process.c (wait_subprocess): Likewise.
1145         * lib/execute.h (execute): Add termsigp argument.
1146         * lib/execute.c (execute): Likewise.
1147         * lib/csharpcomp.c (compile_csharp_using_pnet,
1148         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
1149         * lib/csharpexec.c (execute_csharp_using_pnet,
1150         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
1151         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1152         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
1153         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
1154         is_jikes_present): Update.
1155         * lib/javaexec.c (execute_java_class): Update.
1156         * lib/javaversion.c (execute_and_read_line): Update.
1157         * NEWS: Document the changes.
1158         Reported by Eric Blake.
1159
1160 2008-06-10  Eric Blake  <ebb9@byu.net>
1161
1162         Add missing include.
1163         * tests/test-strstr.c (includes): Add <signal.h>.
1164         * tests/test-strcasestr.c (includes): Likewise.
1165         * tests/test-memmem.c (includes): Likewise.
1166
1167 2008-06-10  Bruno Haible  <bruno@clisp.org>
1168
1169         * lib/wait-process.c (wait_subprocess): Add an assertion.
1170
1171 2008-06-10  Bruno Haible  <bruno@clisp.org>
1172
1173         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
1174
1175 2008-06-10  Bruno Haible  <bruno@clisp.org>
1176
1177         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
1178         using alarm().
1179         * tests/test-strcasestr.c (main): Likewise.
1180         * tests/test-strstr.c (main): Likewise.
1181
1182 2008-06-09  Bruno Haible  <bruno@clisp.org>
1183
1184         Work around the Solaris 10 ACE ACLs ABI change.
1185         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
1186         declare if ACL_NO_TRIVIAL is present.
1187         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
1188         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
1189         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
1190         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
1191         define if ACL_NO_TRIVIAL is present.
1192         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
1193         and use the current ABI.
1194         (file_has_acl): Use same #if condition as elsewhere.
1195         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
1196         in use, and use the current ABI.
1197         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
1198         Reported by Jim Meyering.
1199
1200 2008-06-09  Eric Blake  <ebb9@byu.net>
1201
1202         Work around environments that (stupidly) ignore SIGALRM.
1203         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
1204         before using alarm().
1205         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1206         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1207         Reported by Ian Beckwith <ianb@erislabs.net>.
1208
1209         Produce autobuild blurb earlier in log.
1210         * modules/autobuild (configure.ac-early): Move AB_INIT here.
1211
1212 2008-06-09  Jim Meyering  <meyering@redhat.com>
1213         and Ondřej Vašík  <ovasik@redhat.com>
1214
1215         utimens.c: correct kernel bug work-around
1216         Ondřej Vašík found that the invalid return value of 280 indicates
1217         failure, not success, and the kernel bug we're trying to work
1218         around affects not just the utimensat call, but also the fallback
1219         futimens call.
1220         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
1221         not success.
1222         [HAVE_FUTIMENS]: Use the same work-around, here.
1223
1224 2008-06-09  Jim Meyering  <meyering@redhat.com>
1225
1226         add more guards around definition of ACE_-related code
1227         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
1228         ALLOW and ACE_OWNER are also defined.
1229
1230 2008-06-08  Bruno Haible  <bruno@clisp.org>
1231
1232         * lib/acl-internal.h: Add me as co-author.
1233         * lib/file-has-acl.c: Likewise.
1234         * lib/set-mode-acl.c: Likewise.
1235         * lib/copy-acl.c: Likewise.
1236
1237 2008-06-08  Bruno Haible  <bruno@clisp.org>
1238
1239         Add support for AIX ACLs.
1240         * lib/acl-internal.h (acl_nontrivial): New declaration.
1241         * lib/file-has-acl.c (acl_nontrivial): New function.
1242         (file_has_acl): Add implementation using AIX 4 ACL API.
1243         * lib/set-mode-acl.c (qset_acl): Likewise.
1244         * lib/copy-acl.c (qcopy_acl): Likewise.
1245
1246 2008-06-08  Bruno Haible  <bruno@clisp.org>
1247
1248         Add support for HP-UX ACLs.
1249         * lib/acl-internal.h (acl_nontrivial): New declaration.
1250         * lib/file-has-acl.c (acl_nontrivial): New function.
1251         (file_has_acl): Add implementation using HP-UX 11 ACL API.
1252         * lib/set-mode-acl.c (qset_acl): Likewise.
1253         * lib/copy-acl.c (qcopy_acl): Likewise.
1254
1255 2008-06-08  Bruno Haible  <bruno@clisp.org>
1256
1257         Add support for Cygwin ACLs.
1258         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
1259         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
1260         the chmod_or_fchmod call.
1261         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
1262
1263 2008-06-08  Bruno Haible  <bruno@clisp.org>
1264
1265         Fix bug with setuid modes in Solaris 10+ code.
1266         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
1267         succeeded, when the mode contains some special bits.
1268
1269 2008-06-08  Bruno Haible  <bruno@clisp.org>
1270
1271         Add support for Solaris 7..10 ACLs.
1272         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
1273         declarations.
1274         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
1275         functions.
1276         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
1277         * lib/set-mode-acl.c (qset_acl): Likewise.
1278         * lib/copy-acl.c (qcopy_acl): Likewise.
1279
1280 2008-06-08  Bruno Haible  <bruno@clisp.org>
1281
1282         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
1283         declaration.
1284         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
1285         (acl_access_nontrivial): Remove MacOS X case.
1286         (file_has_acl): Use acl_extended_nontrivial.
1287         * lib/copy-acl.c (qcopy_acl): Likewise.
1288
1289 2008-06-08  Bruno Haible  <bruno@clisp.org>
1290
1291         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
1292
1293 2008-06-08  Jim Meyering  <meyering@redhat.com>
1294
1295         * modules/acl (Maintainer): Add Bruno Haible.
1296
1297 2008-06-07  Bruno Haible  <bruno@clisp.org>
1298
1299         Improve support for Tru64 ACLs.
1300         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
1301         ACL on OSF/1.
1302
1303 2008-06-07  Bruno Haible  <bruno@clisp.org>
1304
1305         Add support for MacOS X ACLs.
1306         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
1307         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
1308         * lib/set-mode-acl.c (qset_acl): Likewise.
1309         * lib/copy-acl.c (qcopy_acl): Likewise.
1310
1311 2008-06-07  Bruno Haible  <bruno@clisp.org>
1312
1313         Fix memory leak introduced on 2008-05-22.
1314         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
1315         use.
1316
1317 2008-06-07  Bruno Haible  <bruno@clisp.org>
1318
1319         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
1320         to construct an empty ACL.
1321
1322 2008-06-07  Bruno Haible  <bruno@clisp.org>
1323
1324         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
1325         precisely.
1326         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
1327
1328 2008-06-07  Bruno Haible  <bruno@clisp.org>
1329
1330         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
1331         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
1332
1333 2008-06-07  Bruno Haible  <bruno@clisp.org>
1334
1335         * doc/posix-functions/_setjmp.texi: Explain the use of this function
1336         regardless of POSIX.
1337         * doc/posix-functions/_longjmp.texi: Likewise.
1338         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
1339         SystemV platform in this case.
1340
1341 2008-06-06  Eric Blake  <ebb9@byu.net>
1342
1343         Document abort() bugs.
1344         * doc/posix-functions/abort.texi (abort): Mention anomalies.
1345
1346         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
1347         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
1348         sigsetjmp.
1349         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
1350         siglongjmp, but only as a macro.
1351         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
1352         is obsolete.
1353         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
1354
1355         Tweak documentation to cover cygwin argz bugs.
1356         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
1357         argz bug fix; no code change needed since no cygwin releases
1358         occurred between the last fix and the bug being tested.
1359         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
1360         module and recently fixed cygwin bugs.
1361         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
1362         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
1363         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
1364         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
1365         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
1366         Likewise.
1367         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
1368         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
1369         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
1370         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
1371         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
1372         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
1373         Likewise.
1374
1375         Avoid gcc warning on cygwin.
1376         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
1377         !ACL_NO_TRIVIAL]: Avoid unused variable.
1378
1379 2008-06-05  Eric Blake  <ebb9@byu.net>
1380
1381         Be tolerant of UNKNOWN version in gnulib-tool test dir.
1382         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
1383         git-version-gen fails to come up with a version.
1384         Reported by Simon Josefsson.
1385
1386 2008-06-05  Jim Meyering  <meyering@redhat.com>
1387             Paul Eggert  <eggert@cs.ucla.edu>
1388
1389         utimens.c: work around a probable Linux kernel bug
1390         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
1391         appears to be a kernel bug that causes utimensat to return 280
1392         instead of 0, indicating success.
1393
1394 2008-06-04  Bruno Haible  <bruno@clisp.org>
1395
1396         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
1397         2008-06-01 commit.
1398
1399 2008-06-04  Bruno Haible  <bruno@clisp.org>
1400
1401         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
1402         * lib/file-has-acl.c (acl_access_nontrivial): New function.
1403         (file_has_acl): Use it. Save errno afterwards.
1404         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
1405
1406 2008-06-03  Bruno Haible  <bruno@clisp.org>
1407
1408         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
1409         draft code. Simplify #ifs.
1410         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
1411         Put Solaris code after POSIX-draft code. Fix comments regarding
1412         Solaris 10, HP-UX. Mention Cygwin.
1413         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
1414
1415 2008-06-03  Eric Blake  <ebb9@byu.net>
1416
1417         Provide fallback for older kernels.
1418         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
1419         Provide runtime fallback if kernel lacks support.
1420         Reported by Mike Frysinger.
1421
1422 2008-06-02  Bruno Haible  <bruno@clisp.org>
1423
1424         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
1425         it exists.
1426
1427 2008-06-02  Bruno Haible  <bruno@clisp.org>
1428
1429         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
1430         * lib/copy-acl.c (qcopy_acl): Update comment.
1431
1432 2008-06-02  Bruno Haible  <bruno@clisp.org>
1433
1434         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
1435         like ACL APIs.
1436
1437 2008-06-02  Bruno Haible  <bruno@clisp.org>
1438
1439         * tests/test-file-has-acl.sh: Use different code for Cygwin.
1440         * tests/test-set-mode-acl.sh: Likewise.
1441         * tests/test-copy-acl.sh: Likewise.
1442         * tests/test-copy-file.sh: Likewise.
1443
1444 2008-06-02  Bruno Haible  <bruno@clisp.org>
1445
1446         * tests/test-file-has-acl.sh: Remove unused code.
1447
1448 2008-06-01  Bruno Haible  <bruno@clisp.org>
1449
1450         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
1451         (copy_acl): Just a wrapper around qcopy_acl that emits the error
1452         messages.
1453         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
1454
1455 2008-06-01  Bruno Haible  <bruno@clisp.org>
1456
1457         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
1458         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
1459         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
1460         APIs.
1461         * modules/acl-tests (configure.ac): Remove tests now contained in
1462         m4/acl.m4.
1463
1464 2008-06-02  Jim Meyering  <meyering@redhat.com>
1465
1466         announce-gen: use a better key-server host name
1467         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
1468         it may be more consistently reliable.  Suggested by Werner Koch
1469         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
1470
1471 2008-06-01  Bruno Haible  <bruno@clisp.org>
1472
1473         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
1474         Reported by Voroskoi Andras <voroskoi@gmail.com>.
1475
1476 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
1477
1478         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
1479
1480 2008-06-01  Bruno Haible  <bruno@clisp.org>
1481
1482         New ACL tests.
1483         * tests/test-file-has-acl.sh: New file.
1484         * tests/test-file-has-acl.c: New file.
1485         * tests/test-set-mode-acl.sh: New file.
1486         * tests/test-set-mode-acl.c: New file.
1487         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
1488         * tests/test-copy-acl.c: New file.
1489         * modules/acl-tests: New file, based on modules/copy-file-tests.
1490         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
1491         (Depends-on): Add acl-tests.
1492         (configure.ac): Remove checks.
1493         (Makefile.am): Don't create test-sameacls program here any more.
1494
1495 2008-06-01  Bruno Haible  <bruno@clisp.org>
1496
1497         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
1498         * tests/test-sameacls.c: Include progname.h.
1499         (main): Invoke set_program_name. Portability fixes for MacOS X,
1500         Solaris, HP-UX.
1501
1502 2008-06-01  Bruno Haible  <bruno@clisp.org>
1503
1504         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
1505         function.
1506         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
1507
1508 2008-06-01  Bruno Haible  <bruno@clisp.org>
1509
1510         * modules/rpmatch (Depends-on): Add strdup.
1511
1512 2008-06-01  Bruno Haible  <bruno@clisp.org>
1513
1514         * lib/pipe.c: Include unistd-safer.h.
1515         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
1516         * modules/pipe (Depends-on): Add unistd-safer.
1517
1518 2008-05-30  Simon Josefsson  <simon@josefsson.org>
1519
1520         * modules/autobuild (configure.ac): Call AB_INIT.
1521
1522 2008-05-30  Simon Josefsson  <simon@josefsson.org>
1523
1524         * tests/test-getaddrinfo.c: Don't print debug messages by default.
1525         Suggested by Bruno Haible <bruno@clisp.org>.
1526
1527 2008-05-30  Simon Josefsson  <simon@josefsson.org>
1528
1529         * tests/test-base64.c: Cast size_t to unsigned long when invoking
1530         printf.  Use %lu instead of %d.  Reported by Bruno Haible
1531         <bruno@clisp.org>.
1532
1533 2008-05-29  Eric Blake  <ebb9@byu.net>
1534
1535         Prefer new POSIX 200x interfaces over futimesat.
1536         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
1537         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
1538         when available.
1539         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
1540
1541 2008-05-28  Bruno Haible  <bruno@clisp.org>
1542
1543         * modules/stpcpy (License): Change to LGPLv2+.
1544         Requested by David Lutterkort <dlutter@redhat.com>.
1545
1546 2008-05-27  Bruno Haible  <bruno@clisp.org>
1547
1548         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
1549         current mingw.
1550         Reported by Jose E. Marchesi <jemarch@gnu.org>.
1551
1552 2008-05-27  Bruno Haible  <bruno@clisp.org>
1553
1554         * modules/iconv_open (Link): New section, from module 'iconv'.
1555         * modules/striconv (Link): Likewise.
1556         * modules/striconveh (Link): Likewise.
1557         * modules/xstriconv (Link): Likewise.
1558         * modules/unicodeio (Link): Likewise.
1559         * modules/propername (Link): Likewise.
1560         Reported by Jim Meyering.
1561
1562 2008-05-26  Jim Meyering  <meyering@redhat.com>
1563
1564         sha256: do not artificially restrict buffer length to be < 2^32
1565         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
1566         uint32_t to size_t.
1567         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
1568         to match.
1569
1570         avoid unaligned access errors, e.g., on sparc
1571         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
1572         direct access through a possibly-unaligned uint64* pointer.
1573         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
1574         direct access through a possibly-unaligned uint32* pointer.
1575         Prompted by this patch from Tom "spot" Callaway:
1576         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
1577
1578         sha512.c: fix typo in comment
1579         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
1580
1581 2008-05-25  Bruno Haible  <bruno@clisp.org>
1582
1583         * lib/set-mode-acl.c: Renamed from lib/acl.c.
1584         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
1585         (Makefile.am): Update lib_SOURCES.
1586
1587 2008-05-25  Bruno Haible  <bruno@clisp.org>
1588
1589         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
1590
1591 2008-05-25  Jim Meyering  <meyering@redhat.com>
1592
1593         useless-if-before-free: freed expr may have white-space differences
1594         * build-aux/useless-if-before-free: Recognize cases in which the
1595         freed expression differs from the tested one in embedded white
1596         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
1597         $1 was used, so we can't make any regexp shy.  Improved tests now
1598         detect this.
1599
1600         useless-if-before-free: accept white space in the expression.
1601         * build-aux/useless-if-before-free: For now, any white space
1602         in the expression must be identical in the free argument.
1603
1604         useless-if-before-free: efficiency tweak
1605         * build-aux/useless-if-before-free: Make the expression-matching
1606         regexp "shy".
1607         Make the *outer* regexp shy, not the expr-matching one.
1608
1609         update code-in-comment to accept cast of free arg
1610         * build-aux/useless-if-before-free: Update regexp.
1611
1612 2008-05-25  Bruno Haible  <bruno@clisp.org>
1613
1614         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
1615         * modules/copy-file-tests (Files, Makefile.am): Update.
1616         * tests/test-copy-file.c (func_test_copy): Update.
1617
1618 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
1619
1620         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
1621
1622 2008-05-23  Bruno Haible  <bruno@clisp.org>
1623
1624         Improve support for ACLs on OSF/1.
1625         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
1626         Remove fallback for unknown flavors of ACLs.
1627
1628 2008-05-22  Bruno Haible  <bruno@clisp.org>
1629
1630         Add support for ACLs on OSF/1.
1631         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
1632         replacements.
1633         (acl_free_text): New macro fallback.
1634         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
1635         acl_free.
1636         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
1637         acl_free_text function. Require AC_C_INLINE.
1638
1639 2008-05-22  Bruno Haible  <bruno@clisp.org>
1640
1641         Make copy_acl work on MacOS X 10.5.
1642         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
1643         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
1644         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
1645         If MODE_INSIDE_ACL, don't assume that every system has the same text
1646         representation for ACLs as FreeBSD.
1647         * lib/copy-acl.c (copy_acl): Add support for platforms with
1648         !MODE_INSIDE_ACL.
1649         * lib/file-has-acl.c (file_has_acl): Likewise.
1650         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
1651         FreeBSD, MacOS X, or IRIX, respectively.
1652
1653 2008-05-22  Bruno Haible  <bruno@clisp.org>
1654
1655         * lib/acl.h: Don't include <sys/acl.h>.
1656         (GETACLCNT): Move fallback to lib/acl-internal.h.
1657         * lib/acl-internal.h: Include <sys/acl.h> here.
1658         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
1659
1660 2008-05-22  Bruno Haible  <bruno@clisp.org>
1661
1662         Split off copy_acl function to separate file.
1663         * lib/copy-acl.c: New file, extracted from lib/acl.c.
1664         * lib/acl.c (copy_acl): Moved function to separate file.
1665         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
1666         * modules/acl (Files): Add lib/copy-acl.c.
1667         (Makefiles.am): Augment lib_SOURCES.
1668
1669 2008-05-22  Bruno Haible  <bruno@clisp.org>
1670
1671         * modules/copy-file-tests: New file.
1672         * tests/test-copy-file.sh: New file.
1673         * tests/test-copy-file.c: New file.
1674         * tests/test-copy-file-sameacls.c: New file.
1675
1676 2008-05-22  Eric Blake  <ebb9@byu.net>
1677
1678         Avoid gcc warning.
1679         * tests/test-memcmp.c (main): Pass NULL indirectly.
1680
1681 2008-05-21  Bruno Haible  <bruno@clisp.org>
1682
1683         Add reference doc about ACLs.
1684         * doc/acl-resources.txt: New file.
1685         * doc/acl-cygwin.txt: New file.
1686
1687 2008-05-21  Bruno Haible  <bruno@clisp.org>
1688
1689         Avoid one more warning from gcc.
1690         * lib/vasnprintf.c (IF_LINT): Update comments.
1691         (VASNPRINTF): Use it also for the 'prefix' array initializer.
1692
1693 2008-05-21  Jim Meyering  <meyering@redhat.com>
1694
1695         avoid a warning from gcc
1696         * lib/vasnprintf.c (IF_LINT): Define.
1697         (scale10_round_decimal_long_double):
1698         Use it to avoid a "may be used uninitialized" warning.
1699         (scale10_round_decimal_double): Likewise.
1700
1701 2008-05-21  Simon Josefsson  <simon@josefsson.org>
1702
1703         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
1704         declared.
1705
1706 2008-05-20  Bruno Haible  <bruno@clisp.org>
1707
1708         * tests/test-memcmp.c (main): Test also the sign of the result. Test
1709         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
1710
1711 2008-05-20  Simon Josefsson  <simon@josefsson.org>
1712
1713         * modules/memcmp-tests: New file.
1714         * tests/test-memcmp.c: New file.
1715
1716 2008-05-19  Bruno Haible  <bruno@clisp.org>
1717
1718         * modules/propername (Notice, configure.ac): Put quoted "..." into
1719         --keyword option.
1720         * lib/propername.h: Update comments accordingly.
1721         Reported by Eric Blake.
1722
1723 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
1724
1725         * modules/getpass-gnu (Depends-on): Add fseeko.
1726
1727 2008-05-19  Simon Josefsson  <simon@josefsson.org>
1728
1729         * modules/base64-tests: New file.
1730
1731 2008-05-19  Bo Borgerson <gigabo@gmail.com>
1732
1733         * lib/base64.c (base64_decode_ctx): If a decode context structure
1734         was passed in use it to ignore newlines.  If a context structure
1735         was _not_ passed in, continue to treat newlines as garbage (this
1736         is the historical behavior).  Formerly base64_decode.
1737         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
1738         takes a decode context structure.
1739         * lib/base64.h (base64_decode): Macro for four-argument calls.
1740         (base64_decode_alloc): Likewise.
1741         * lib/base64.c (base64_decode_ctx): If a decode context structure
1742         was passed in use it to ignore newlines.  If a context structure
1743         was _not_ passed in, continue to treat newlines as garbage (this
1744         is the historical behavior).  Formerly base64_decode.
1745         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
1746         takes a decode context structure.
1747         * lib/base64.h (base64_decode): Macro for four-argument calls.
1748         (base64_decode_alloc): Likewise.
1749
1750 2008-05-19  Jim Meyering  <meyering@redhat.com>
1751
1752         avoid a warning from gcc
1753         * lib/trim.c (IF_LINT): Define.
1754         (trim2): Use it to avoid a "may be used uninitialized" warning.
1755
1756         Fix doc typo.
1757         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
1758
1759 2008-05-19  Bruno Haible  <bruno@clisp.org>
1760
1761         * doc/glibc-functions/getpass.texi: Document limits of other
1762         implementations.
1763
1764 2008-05-19  Simon Josefsson  <simon@josefsson.org>
1765             Bruno Haible <bruno@clisp.org>
1766
1767         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
1768
1769 2008-05-18  Bruno Haible  <bruno@clisp.org>
1770
1771         * modules/propername: New file, from GNU gettext.
1772         * lib/propername.h: New file, from GNU gettext.
1773         * lib/propername.c: New file, from GNU gettext.
1774         * MODULES.html.sh (Internationalization functions): Add propername.
1775
1776 2008-05-16  Jim Meyering  <meyering@redhat.com>
1777             Bruno Haible  <bruno@clisp.org>
1778
1779         Avoid some warnings from "gcc -Wshadow".
1780         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
1781
1782 2008-05-15  Eric Blake  <ebb9@byu.net>
1783
1784         Extend previous patch to cygwin 1.7.0.
1785         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
1786         fast implementation in cygwin >= 1.7.0.
1787         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1788         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1789
1790 2008-05-15  Bruno Haible  <bruno@clisp.org>
1791
1792         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
1793         implementation in glibc >= 2.9.
1794         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1795         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1796
1797 2008-05-15  Bruno Haible  <bruno@clisp.org>
1798
1799         * MODULES.html.sh (Internationalization functions): Remove linebreak.
1800         (Unicode string functions): Add unilbrk/*.
1801         Reported by Karl Berry.
1802
1803 2008-05-15  Eric Blake  <ebb9@byu.net>
1804
1805         Fix violation of <stdbool.h> replacement in regex.
1806         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
1807         * lib/regexec.c (re_search_internal): Likewise.
1808         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
1809
1810 2008-05-15  Jim Meyering  <meyering@redhat.com>
1811
1812         avoid distracting test output when git or cvs is not found
1813         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
1814         * tests/test-vc-list-files-git.sh: Likewise.
1815
1816 2008-05-15  Eric Blake  <ebb9@byu.net>
1817
1818         Glibc finally accepted the memmem speedup code, bugzilla #5514.
1819         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
1820         glibc version.
1821         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
1822         * doc/posix-functions/strstr.texi (strstr): Likewise.
1823         * lib/str-two-way.h (MAX): Sychronize with glibc.
1824
1825 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
1826
1827         * lib/regcomp.c (optimize_utf8): Add a note on why we test
1828         opr.ctx_type.
1829         (calc_first): Initialize constraint field.
1830         (duplicate_node_closure): Use it instead of special casing ANCHORS.
1831         Fix grammar.
1832         (duplicate_node): Merge constraint field for all node types.
1833         (calc_eclosure_iter): Look at constraint field for all node types.
1834         * lib/regex_internal.c (create_cd_newstate): Don't look at
1835         opr.ctx_type.
1836
1837 2008-05-14  Bruno Haible  <bruno@clisp.org>
1838
1839         Help GCC to do better code generation.
1840         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
1841         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
1842         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
1843         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
1844         Declare with attribute 'malloc' if supported.
1845
1846 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
1847
1848         use "echo STR|wc -c" rather than unportable "expr length STR"
1849         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
1850         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
1851
1852 2008-05-14  Jim Meyering  <meyering@redhat.com>
1853
1854         use dd ibs=$n count=1 ... rather than less-portable head -c$n
1855         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
1856         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
1857         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
1858         via Collin Lasse.
1859
1860 2008-05-14  Eric Blake  <ebb9@byu.net>
1861
1862         Avoid quadratic growth in gl_LIBSOURCES.
1863         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
1864         Suggested by Bruno Haible.
1865
1866         Test xmemdup0.
1867         * modules/xmemdup0-tests: New file.
1868         * tests/test-xmemdup0.c: Likewise.
1869
1870 2008-05-13  Eric Blake  <ebb9@byu.net>
1871
1872         Split xmemdup0 into its own module.
1873         * modules/xmemdup0: New file.
1874         * lib/xmemdup0.h: Likewise.
1875         * lib/xmemdup0.c: Likewise.
1876         * MODULES.html.sh (Memory management functions): Add xmemdup0.
1877         * lib/xalloc.h (xmemdup0): Remove.
1878         * lib/xmalloc.c (xmemdup0): Likewise.
1879
1880 2008-05-13  Eric Blake  <ebb9@byu.net>
1881             Bruno Haible  <bruno@clisp.org>
1882
1883         Reduce number of forks required during autoconf.
1884         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
1885         and gl_LIBSOURCES_DIR.
1886         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
1887         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
1888         m4_syscmd per file.
1889         <m4_foreach_w>: Move...
1890         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
1891
1892 2008-05-13  Eric Blake  <ebb9@byu.net>
1893
1894         * gnulib-tool: Fix various comment typos.
1895
1896 2008-05-12  Bruno Haible  <bruno@clisp.org>
1897
1898         Tailor the linebreaking algorithm.
1899         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
1900
1901 2008-05-12  Bruno Haible  <bruno@clisp.org>
1902
1903         Update to Unicode 5.0.0.
1904         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
1905         LBP_JV, LBP_JT. Redistribute values.
1906         (unilbrk_table): Change size.
1907         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
1908         Unicode TR#14 rev. 22.
1909         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
1910         LBP_JV, LBP_JT. Redistribute values.
1911         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
1912         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
1913         Update.
1914         * lib/unilbrk/lbrkprop1.h: Regenerated.
1915         * lib/unilbrk/lbrkprop2.h: Regenerated.
1916         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
1917         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
1918         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
1919         Likewise.
1920         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
1921         Likewise.
1922         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
1923         result.
1924         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
1925         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
1926         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
1927         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
1928         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
1929         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
1930
1931 2008-05-11  Bruno Haible  <bruno@clisp.org>
1932
1933         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
1934
1935 2008-05-11  Bruno Haible  <bruno@clisp.org>
1936
1937         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
1938         * modules/unilbrk/gen-lbrk: New file.
1939
1940 2008-05-11  Bruno Haible  <bruno@clisp.org>
1941
1942         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
1943         * m4/sha512.m4 (gl_SHA512): Likewise.
1944
1945 2008-05-11  Jim Meyering  <meyering@redhat.com>
1946
1947         New modules: crypto/sha256, crypto/sha512 (from coreutils)
1948         * modules/crypto/sha256: New file.
1949         * modules/crypto/sha512: Likewise.
1950         * lib/sha256.c: Likewise.
1951         * lib/sha256.h: Likewise.
1952         * lib/sha512.c: Likewise.
1953         * lib/sha512.h: Likewise.
1954         * lib/u64.h: Likewise.
1955         * m4/sha256.m4: Likewise.
1956         * m4/sha512.m4: Likewise.
1957         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
1958
1959 2008-05-10  Bruno Haible  <bruno@clisp.org>
1960
1961         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
1962         (Input/Output <stdio.h>): Add xprintf.
1963         (Signal handling <signal.h>): Add strsignal.
1964         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
1965         (Core language properties): Add func.
1966         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
1967         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
1968         strings.
1969         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
1970         (Input/output): New section.
1971         (File system functions): Add openat-die, stat-macros.
1972         (Networking functions): Add sockets.
1973         (Unicode string functions): Add unictype/*.
1974         (Support for building libraries and executables): Add gperf.
1975         (Support for building documentation): Add agpl-3.0.
1976         (Misc): Add nocrash.
1977
1978 2008-05-10  Bruno Haible  <bruno@clisp.org>
1979
1980         * modules/unictype/gen-ctype: New file.
1981
1982 2008-05-10  Jim Meyering  <meyering@redhat.com>
1983
1984         Make chdir-safer.c more efficient on a system with no symlinks.
1985         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
1986         also if ELOOP is zero.  Suggested by Bruno Haible.
1987
1988         Make chdir-safer.c slightly safer.
1989         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
1990         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
1991
1992         Avoid compile failure on systems without ELOOP (like mingw).
1993         * lib/chdir-safer.c (ELOOP): Define if not already defined.
1994         Reported by Bruno Haible.
1995
1996 2008-05-10  Bruno Haible  <bruno@clisp.org>
1997
1998         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
1999         (is_utf8_encoding): Use a case-insensitive comparison.
2000         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
2001         streq.
2002
2003 2008-05-10  Bruno Haible  <bruno@clisp.org>
2004
2005         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
2006         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
2007         * lib/unilbrk/ulc-common.h (iconv_string_length,
2008         iconv_string_keeping_offsets): Remove declarations.
2009         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
2010         Don't include <iconv.h>, streq.h, xsize.h.
2011         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
2012         conversion.
2013         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
2014         <iconv.h>, streq.h, xsize.h.
2015         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
2016         conversion.
2017         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
2018         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
2019         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
2020         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
2021
2022 2008-05-10  Bruno Haible  <bruno@clisp.org>
2023
2024         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
2025         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
2026
2027         * modules/unilbrk/u32-width-linebreaks-tests: New file.
2028         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
2029
2030         * modules/unilbrk/u16-width-linebreaks-tests: New file.
2031         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
2032
2033         * modules/unilbrk/u8-width-linebreaks-tests: New file.
2034         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
2035
2036         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
2037         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
2038
2039         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
2040         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
2041
2042         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
2043         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
2044
2045         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
2046         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
2047
2048 2008-05-10  Bruno Haible  <bruno@clisp.org>
2049
2050         Split up 'linebreak' module.
2051         * lib/unilbrk.h: New file, based on lib/linebreak.h.
2052         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
2053         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
2054         modifications.
2055         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
2056         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
2057         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
2058         lib/linebreak.c.
2059         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
2060         lib/linebreak.c.
2061         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
2062         lib/linebreak.c.
2063         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
2064         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
2065         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
2066         lib/linebreak.c.
2067         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
2068         lib/linebreak.c.
2069         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
2070         lib/linebreak.c.
2071         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
2072         lib/linebreak.c.
2073         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
2074         lib/linebreak.c.
2075         * modules/unilbrk/base: New file.
2076         * modules/unilbrk/tables: New file.
2077         * modules/unilbrk/u8-possible-linebreaks: New file.
2078         * modules/unilbrk/u16-possible-linebreaks: New file.
2079         * modules/unilbrk/u32-possible-linebreaks: New file.
2080         * modules/unilbrk/ulc-common: New file.
2081         * modules/unilbrk/ulc-possible-linebreaks: New file.
2082         * modules/unilbrk/u8-width-linebreaks: New file.
2083         * modules/unilbrk/u16-width-linebreaks: New file.
2084         * modules/unilbrk/u32-width-linebreaks: New file.
2085         * modules/unilbrk/ulc-width-linebreaks: New file.
2086         * lib/linebreak.h: Remove file.
2087         * lib/linebreak.c: Remove file.
2088         * m4/linebreak.m4: Remove file.
2089         * modules/linebreak: Remove file.
2090         * NEWS: Mention the changes.
2091
2092 2008-05-09  Eric Blake  <ebb9@byu.net>
2093
2094         Add xmemdup0.
2095         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
2096         implementation.
2097         * lib/xmalloc.c (xmemdup0): New C implementation.
2098
2099 2008-05-08  Bruno Haible  <bruno@clisp.org>
2100
2101         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
2102
2103 2008-05-07  Eric Blake  <ebb9@byu.net>
2104
2105         Support cross-compilation of <wctype.h>.
2106         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
2107         AC_CACHE_CHECK.
2108
2109 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
2110
2111         * build-aux/vc-list-files: Add support for bzr.
2112
2113 2008-05-03  Jim Meyering  <meyering@redhat.com>
2114
2115         avoid failed assertion with tight malloc
2116         * tests/test-getndelim2.c: Correct an off-by-one assertion.
2117
2118 2008-05-03  Simon Josefsson  <simon@josefsson.org>
2119
2120         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
2121         are needed from arpa/inet.h.
2122         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
2123         Reported by Bruno Haible.
2124
2125 2008-05-02  Jim Meyering  <meyering@redhat.com>
2126
2127         avoid compilation error on FreeBSD 6
2128         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
2129
2130 2008-05-01  Jim Meyering  <meyering@redhat.com>
2131
2132         useless-if-before-free: correct --help's exit status description
2133         * build-aux/useless-if-before-free (usage): Like grep, exit 0
2134         for one or more matches, etc.  Reported by Bruno Haible.
2135
2136         vc-list-files: make the stand-alone gnulib test work
2137         * modules/vc-list-files-tests (configure.ac):
2138         Define and AC_SUBST abs_aux_dir.
2139         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
2140         $(abs_top_srcdir) to each script and having each of them
2141         duplicate the work of setting PATH, set PATH here, using
2142         the new variable, abs_aux_dir instead.
2143         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
2144         * tests/test-vc-list-files-git.sh: Likewise.
2145         Reported by Bruno Haible.
2146
2147 2008-05-01  Bruno Haible  <bruno@clisp.org>
2148
2149         * lib/getndelim2.c (getndelim2): Fix newsize computation during
2150         reallocation. Rename 'done' to 'found_delimiter'.
2151
2152 2008-05-01  Jim Meyering  <meyering@redhat.com>
2153
2154         vc-list-files: accommodate /bin/sh like the one from Solaris 10
2155         * build-aux/vc-list-files: Use `...`, not $(...).
2156
2157 2008-04-30  Jim Meyering  <meyering@redhat.com>
2158
2159         add tests for vc-list-files
2160         * modules/vc-list-files-tests: New module.
2161         * tests/test-vc-list-files-cvs.sh: New file.
2162         * tests/test-vc-list-files-git.sh: New file.
2163
2164         avoid a warning from gcc
2165         * lib/getndelim2.c (IF_LINT): Define.
2166         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
2167
2168         vc-list-files: work properly with build-aux/cvsu, too
2169         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
2170         to all cvs-based clauses.
2171
2172         vc-list-files: work properly in the CVS+awk case, too
2173         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
2174
2175         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
2176         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
2177         take more than one file argument, so .  Add quotes, just in case $dir
2178         ever contains a shell meta-character.  Prompted by Soren Hansen in
2179         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
2180
2181 2008-04-29  Eric Blake  <ebb9@byu.net>
2182
2183         Optimize getndelim2 to use block operations when possible.
2184         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
2185         freadseek, and memchr2.
2186         * lib/getndelim2.c (getndelim2): Use them for block reads.
2187
2188 2008-04-29  Bruno Haible  <bruno@clisp.org>
2189
2190         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
2191         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2192         * modules/inet_ntop (Depends-on): Add extensions.
2193         * modules/inet_pton (Depends-on): Likewise.
2194         Reported by Simon Josefsson.
2195
2196 2008-04-29  Jim Meyering  <meyering@redhat.com>
2197
2198         When the is more than one match in a block, match all of them.
2199         * build-aux/useless-if-before-free: Iterate through each block
2200         until there are no more matches.
2201
2202         Fix broken useless-if-before-free script.
2203         * build-aux/useless-if-before-free: Fix typo: missing "?" after
2204         the expression to match cast of argument to free-like function.
2205
2206 2008-04-29  Eric Blake  <ebb9@byu.net>
2207
2208         Use new header.
2209         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
2210
2211 2008-04-29  Jim Meyering  <meyering@redhat.com>
2212
2213         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
2214         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
2215         by gnulib to exist and to declare e.g., inet_ntop.
2216         Don't include "inet_ntop.h", now removed.
2217
2218         * m4/arpa_inet_h.m4: Remove trailing blanks.
2219
2220 2008-04-29  Eric Blake  <ebb9@byu.net>
2221
2222         Silence valgrind on safe reads beyond potential array bounds.
2223         * lib/rawmemchr.valgrind: New file.
2224         * lib/strchrnul.valgrind: Likewise.
2225         * modules/rawmemchr (Files): Distribute new file.
2226         * modules/strchrnul (Files): Likewise.
2227         Suggested by Bruno Haible.
2228
2229 2008-04-29  Bruno Haible  <bruno@clisp.org>
2230
2231         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
2232         (inet_ntop, inet_pton): Change portability warning's wording.
2233         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
2234         Invoke gl_CHECK_NEXT_HEADERS.
2235         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
2236         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
2237         set ARPA_INET_H.
2238         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2239         * modules/arpa_inet (Description): No longer only for systems that
2240         lack it.
2241         (Depends-on): Add include_next.
2242         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
2243         HAVE_ARPA_INET_H.
2244
2245 2008-04-29  Jim Meyering  <meyering@redhat.com>
2246
2247         * modules/mkdir (License): Re-license as LGPLv2+.
2248
2249 2008-04-29  Bruno Haible  <bruno@clisp.org>
2250
2251         * modules/rawmemchr (Maintainer): Set to Eric.
2252         * modules/strchrnul (Maintainer): Likewise.
2253
2254 2008-04-29  Simon Josefsson  <simon@josefsson.org>
2255
2256         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
2257         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
2258
2259         * modules/arpa_inet (arpa/inet.h): Use them.
2260
2261 2008-04-28  Eric Blake  <ebb9@byu.net>
2262
2263         Test getndelim2.
2264         * modules/getndelim2-tests: New file.
2265         * tests/test-getndelim2.c: Likewise.
2266         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
2267         stream.
2268         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
2269
2270         * MODULES.html.sh: Document new module.
2271
2272 2008-04-20  Bruno Haible  <bruno@clisp.org>
2273
2274         * lib/c-stack.c (die): Use raise.
2275         * modules/c-stack (Depends-on): Add raise.
2276
2277 2008-04-28  Bruno Haible  <bruno@clisp.org>
2278
2279         Expect rpmatch to be declared.
2280         * lib/yesno.c (rpmatch): Remove declaration.
2281
2282         Declare rpmatch.
2283         * lib/stdlib.in.h (rpmatch): New declaration.
2284         * lib/rpmatch.c: Include <stdlib.h> first.
2285         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
2286         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
2287         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
2288         HAVE_RPMATCH.
2289         * modules/rpmatch (Depends-on): Add stdlib, extensions.
2290         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
2291         (Include): Set to <stdlib.h>.
2292         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
2293         HAVE_RPMATCH.
2294         * NEWS: Document the change.
2295
2296 2008-04-28  Bruno Haible  <bruno@clisp.org>
2297
2298         Change rpmatch to use nl_langinfo when appropriate.
2299         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
2300         (N_): New macro.
2301         (localized_pattern): New function/macro.
2302         (try): Remove match, nomatch arguments. Copy the pattern into safe
2303         memory before caching it.
2304         (rpmatch): Use localized_pattern. Add translator comments.
2305         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
2306         Suggested by Eric Blake.
2307         * modules/rpmatch (Depends-on): Add stdbool.
2308
2309 2008-04-28  Eric Blake  <ebb9@byu.net>
2310
2311         Add rawmemchr module, matching glibc.
2312         * modules/string (Makefile.am): New indicator.
2313         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
2314         * lib/string.in.h (rawmemchr): Declare when appropriate.
2315         * modules/rawmemchr: New file.
2316         * m4/rawmemchr.m4: Likewise.
2317         * lib/rawmemchr.c: Likewise.
2318         * modules/rawmemchr-tests: Likewise.
2319         * tests/test-rawmemchr.c: Likewise.
2320         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
2321         module.
2322         * modules/strchrnul (Depends-on): Add rawmemchr.
2323         * lib/strchrnul.c (strchrnul): Optimize a corner case.
2324
2325         Whitespace cleanup.
2326         * tests/test-strchrnul.c: Reindent.
2327         * lib/strchrnul.c: Likewise.
2328
2329         Optimize and test strchrnul.
2330         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
2331         * modules/strchrnul-tests: New file.
2332         * tests/test-strchrnul.c: Likewise.
2333
2334         Remove intprops dependency.
2335         * modules/memchr (Depends-on): Remove intprops.
2336         * modules/memrchr (Depends-on): Likewise.
2337         * modules/memchr2 (Depends-on): Likewise.
2338         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
2339         * lib/memrchr.c (__memrchr): Likewise.
2340         * lib/memrchr2.c (memchr2): Likewise.
2341         Reported by Simon Josefsson.
2342
2343 2008-04-28  Simon Josefsson  <simon@josefsson.org>
2344
2345         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
2346         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2347
2348 2008-04-28  Simon Josefsson  <simon@josefsson.org>
2349
2350         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
2351
2352         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
2353
2354         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
2355
2356         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
2357         declarations.
2358         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
2359
2360         * m4/inet_pton.m4: Don't check for header files.
2361
2362         * m4/inet_ntop.m4: Don't check for header files.
2363
2364 2008-04-28  Simon Josefsson  <simon@josefsson.org>
2365
2366         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
2367         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
2368         trigger for cygwin).
2369         Reported by Bruno Haible  <bruno@clisp.org>.
2370
2371 2008-04-28  Bruno Haible  <bruno@clisp.org>
2372
2373         * doc/posix-functions/strdup.texi: Mention mingw problem.
2374
2375 2008-04-27  Bruno Haible  <bruno@clisp.org>
2376
2377         * modules/stat-time-tests (Depends-on): Add sleep.
2378         * tests/test-stat-time.c (force_unlink): New function.
2379         (cleanup): Use it.
2380         (test_mtime): Remove the ctime related tests.
2381         (test_ctime): New function, containing the ctime related tests.
2382         (main): Call test_ctime, except on native Windows platforms.
2383
2384 2008-04-27  Bruno Haible  <bruno@clisp.org>
2385
2386         * lib/rpmatch.c (rpmatch): Add some comments.
2387         Reported by James Youngman <jay@gnu.org>.
2388
2389 2008-04-27  Bruno Haible  <bruno@clisp.org>
2390
2391         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
2392         quiet NaNs.
2393
2394 2008-04-27  Bruno Haible  <bruno@clisp.org>
2395
2396         Make test-yesno.sh work on mingw.
2397         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
2398         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
2399         (main): Set stdin to binary mode.
2400         * modules/yesno-tests (Depends-on): Add binary-io.
2401
2402 2008-04-27  Bruno Haible  <bruno@clisp.org>
2403
2404         Fix 'isfinite' on x86, x86_64, ia64 platforms.
2405         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
2406         argument that lie outside the IEEE 854 domain.
2407         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
2408         (gl_ISFINITE): Use it.
2409         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
2410
2411 2008-04-27  Bruno Haible  <bruno@clisp.org>
2412
2413         Allow local renaming in config.h.
2414         * lib/memrchr.c (memrchr): Don't undefine outside libc.
2415
2416 2008-04-27  Bruno Haible  <bruno@clisp.org>
2417
2418         * lib/memchr.c (__memchr): Change type of 'i'.
2419         * lib/memchr2.c (memchr2): Likewise.
2420
2421 2008-04-26  Eric Blake  <ebb9@byu.net>
2422         and Bruno Haible  <bruno@clisp.org>
2423
2424         Optimize and test memrchr.
2425         * modules/memrchr (Depends-on): Add intprops.
2426         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
2427         * modules/memrchr-tests: New file.
2428         * tests/test-memrchr.c: New file.
2429
2430 2008-04-26  Bruno Haible  <bruno@clisp.org>
2431
2432         Add tentative support for DragonFly BSD.
2433         * lib/stdio-impl.h: Add macros for DragonFly BSD.
2434         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
2435         fp.
2436         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
2437         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
2438         * lib/fpurge.c (fpurge): Likewise.
2439         * lib/freadable.c (freaadable): Likewise.
2440         * lib/freadahead.c (freadahead): Likewise.
2441         * lib/freading.c (freading): Likewise.
2442         * lib/freadptr.c (freadptr): Likewise.
2443         * lib/freadseek.c (freadptrinc): Likewise.
2444         * lib/fseeko.c (fseeko): Likewise.
2445         * lib/fseterr.c (fseterr): Likewise.
2446         * lib/fwritable.c (fwritable): Likewise.
2447         * lib/fwriting.c (fwriting): Likewise.
2448
2449 2008-04-26  Bruno Haible  <bruno@clisp.org>
2450
2451         * lib/stdio-impl.h: New file.
2452         * lib/fbufmode.c: Include stdio-impl.h.
2453         (fbufmode): Use fp_, remove redundant #defines.
2454         * lib/fflush.c: Include stdio-impl.h.
2455         (clear_ungetc_buffer): Remove redundant #defines.
2456         * lib/fpurge.c: Include stdio-impl.h.
2457         (fpurge): Remove redundant #defines.
2458         * lib/freadable.c: Include stdio-impl.h.
2459         (freadable): Remove redundant #defines.
2460         * lib/freadahead.c: Include stdio-impl.h.
2461         (freadahead): Remove redundant #defines.
2462         * lib/freading.c: Include stdio-impl.h.
2463         (freading): Remove redundant #defines.
2464         * lib/freadptr.c: Include stdio-impl.h.
2465         (freadptr): Remove redundant #defines.
2466         * lib/freadseek.c: Include stdio-impl.h.
2467         (freadptrinc): Remove redundant #defines.
2468         * lib/fseeko.c: Include stdio-impl.h.
2469         (rpl_fseeko): Remove redundant #defines.
2470         * lib/fseterr.c: Include stdio-impl.h.
2471         (fseterr): Remove redundant #defines.
2472         * lib/fwritable.c: Include stdio-impl.h.
2473         (fwritable: Remove redundant #defines.
2474         * lib/fwriting.c: Include stdio-impl.h.
2475         (fwriting): Remove redundant #defines.
2476         * modules/fbufmode (Files): Add lib/stdio-impl.h.
2477         * modules/fflush (Files): Likewise.
2478         * modules/fpurge (Files): Likewise.
2479         * modules/freadable (Files): Likewise.
2480         * modules/freadahead (Files): Likewise.
2481         * modules/freading (Files): Likewise.
2482         * modules/freadptr (Files): Likewise.
2483         * modules/freadseek (Files): Likewise.
2484         * modules/fseeko (Files): Likewise.
2485         * modules/fseterr (Files): Likewise.
2486         * modules/fwritable (Files): Likewise.
2487         * modules/fwriting (Files): Likewise.
2488
2489 2008-04-26  Bruno Haible  <bruno@clisp.org>
2490
2491         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
2492         restore_seek_optimization, update_fpos_cache): New functions, extracted
2493         from rpl_fflush.
2494         (rpl_fflush): Use them.
2495         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
2496         (gl_REPLACE_FFLUSH): Use it.
2497
2498 2008-04-26  Bruno Haible  <bruno@clisp.org>
2499
2500         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
2501         on Solaris.
2502         * tests/test-xstrtoimax.sh: Likewise.
2503         * tests/test-xstrtoumax.sh: Likewise.
2504         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2505
2506 2008-04-26  Bruno Haible  <bruno@clisp.org>
2507
2508         * modules/memchr-tests: New file.
2509         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
2510
2511 2008-04-26  Eric Blake  <ebb9@byu.net>
2512             Bruno Haible  <bruno@clisp.org>
2513
2514         * lib/memchr.c: Include intprops.h.
2515         (__memchr): Optimize parallel detection of matching bytes. Rename local
2516         variables. Add explanatory comments.
2517
2518 2008-04-26  Bruno Haible  <bruno@clisp.org>
2519
2520         Fix module 'memchr', broken since 2000-10-28.
2521         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
2522
2523 2008-04-26  Bruno Haible  <bruno@clisp.org>
2524
2525         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
2526         comments.
2527
2528 2008-04-25  Eric Blake  <ebb9@byu.net>
2529
2530         Use native fstatat on cygwin 1.7.0.
2531         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
2532         first.
2533
2534 2008-04-23  Eric Blake  <ebb9@byu.net>
2535
2536         Improve memchr2 performance.
2537         * lib/memchr2.c (memchr2): Further optimize parallel detection of
2538         NUL bytes.
2539         * modules/memchr2 (Depends-on): Use intprops.h.
2540
2541 2008-04-23  Simon Josefsson  <simon@josefsson.org>
2542
2543         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
2544         an inline function instead of a CPP macro.  Patch by Ben Pfaff
2545         <blp@cs.stanford.edu>.
2546
2547 2008-04-23  Simon Josefsson  <simon@josefsson.org>
2548
2549         * lib/arpa_inet.in.h: New file.
2550
2551         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
2552         (Makefile.am): Sed in substitute header file.
2553
2554         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
2555         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
2556
2557         * modules/inet_ntop (configure.ac): Use
2558         gl_ARPA_INET_MODULE_INDICATOR.
2559
2560         * modules/inet_pton (configure.ac): Use
2561         gl_ARPA_INET_MODULE_INDICATOR.
2562
2563 2008-04-22  Jim Meyering  <meyering@redhat.com>
2564
2565         * modules/verify (License): Re-license as LGPLv2+.
2566
2567 2008-04-22  Simon Josefsson  <simon@josefsson.org>
2568
2569         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
2570         parameter to void* as per POSIX standard (MinGW uses char*).
2571
2572 2008-04-21  Bruno Haible  <bruno@clisp.org>
2573
2574         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
2575         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
2576         Define to replacements if REPLACE_ISWCNTRL is 1.
2577         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
2578         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
2579         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
2580         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
2581         what it fixes.
2582         * doc/posix-functions/iswalpha.texi: Likewise.
2583         * doc/posix-functions/iswblank.texi: Likewise.
2584         * doc/posix-functions/iswcntrl.texi: Likewise.
2585         * doc/posix-functions/iswdigit.texi: Likewise.
2586         * doc/posix-functions/iswgraph.texi: Likewise.
2587         * doc/posix-functions/iswlower.texi: Likewise.
2588         * doc/posix-functions/iswprint.texi: Likewise.
2589         * doc/posix-functions/iswpunct.texi: Likewise.
2590         * doc/posix-functions/iswspace.texi: Likewise.
2591         * doc/posix-functions/iswupper.texi: Likewise.
2592         * doc/posix-functions/iswxdigit.texi: Likewise.
2593         Reported by Alain Guibert.
2594
2595 2008-04-21  Bruno Haible  <bruno@clisp.org>
2596
2597         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
2598         Patch by Alain Guibert.
2599
2600 2008-04-21  Bruno Haible  <bruno@clisp.org>
2601
2602         Fix test failures on mingw.
2603         * tests/test-xstrtol.c (print_no_progname): New function.
2604         (main): Install it in error_print_progname hook.
2605         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
2606         * tests/test-xstrtoimax.sh: Likewise.
2607         * tests/test-xstrtoumax.sh: Likewise.
2608
2609 2008-04-21  Bruno Haible  <bruno@clisp.org>
2610
2611         Fix test failure on mingw.
2612         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
2613
2614 2008-04-21  Bruno Haible  <bruno@clisp.org>
2615
2616         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
2617         Actually assign a value.
2618
2619 2008-04-20  Bruno Haible  <bruno@clisp.org>
2620
2621         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
2622         take 2.
2623         * lib/canonicalize.c (canonicalize_file_name): Elide if the
2624         'canonicalize-lgpl' module is also used.
2625         * lib/canonicalize-lgpl.c: Undo last change.
2626         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
2627
2628 2008-04-20  Bruno Haible  <bruno@clisp.org>
2629
2630         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
2631         config.h. Provide _mkdir based fallback for mingw.
2632         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
2633         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
2634         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
2635         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
2636         rather than defining mkdir in config.h.
2637         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
2638         (gl_SYS_STAT_H_DEFAULTS): New macro.
2639         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
2640         HAVE_IO_H any more.
2641         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
2642         HAVE_DECL_MKDIR and HAVE_IO_H.
2643
2644 2008-04-20  Bruno Haible  <bruno@clisp.org>
2645
2646         * lib/isapipe.c: Port to native Windows platforms.
2647
2648 2008-04-20  Bruno Haible  <bruno@clisp.org>
2649
2650         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
2651
2652 2008-04-21  Eric Blake  <ebb9@byu.net>
2653
2654         Work around preprocessors that don't handle UINTMAX_MAX.
2655         * lib/memchr2.c (memchr2): Avoid embedded #if.
2656         Reported by Alain Guibert, fix suggested by Bruno Haible.
2657
2658 2008-04-21  Simon Josefsson  <simon@josefsson.org>
2659
2660         * doc/posix-functions/strftime.texi (strftime): Explain better
2661         Windows incompatibility.  Suggested by Micah Cowan
2662         <micah@cowan.name>.
2663
2664 2008-04-20  Bruno Haible  <bruno@clisp.org>
2665
2666         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
2667         unistr/u8-mblen.
2668
2669 2008-04-20  Bruno Haible  <bruno@clisp.org>
2670
2671         Fix test failure on platforms with non-GNU iconv.
2672         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
2673         (U_TO_U8): Use it, rather than u16_to_u8.
2674         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
2675         units at the end of the input string.
2676         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
2677
2678 2008-04-20  Bruno Haible  <bruno@clisp.org>
2679
2680         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
2681         when the resulting length is 0.
2682         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
2683
2684 2008-04-20  Bruno Haible  <bruno@clisp.org>
2685
2686         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
2687         works.
2688         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
2689
2690 2008-04-20  Bruno Haible  <bruno@clisp.org>
2691
2692         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
2693         * modules/tsearch-tests (configure.ac): Test for initstate function.
2694
2695 2008-04-20  Bruno Haible  <bruno@clisp.org>
2696
2697         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
2698         for nlink_t if missing.
2699         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
2700
2701 2008-04-19  Bruno Haible  <bruno@clisp.org>
2702
2703         Work around snprintf bug on Linux libc5.
2704         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
2705         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2706         gl_SNPRINTF_SIZE1.
2707         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2708         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
2709         that test failed.
2710         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2711         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
2712         * modules/snprintf (Files): Add m4/printf.m4.
2713         * modules/vsnprintf (Files): Likewise.
2714         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
2715         * doc/posix-functions/vsnprintf.texi: Likewise.
2716
2717 2008-04-19  Bruno Haible  <bruno@clisp.org>
2718
2719         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
2720         from 0.0058 to less than 10^-7.
2721
2722 2008-04-19  Bruno Haible  <bruno@clisp.org>
2723
2724         Fix rounding when a precision is given.
2725         * lib/vasnprintf.c (is_borderline): New function.
2726         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
2727         9...9x.
2728         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
2729         %e, %g.
2730         * tests/test-vasprintf-posix.c (test_function): Likewise.
2731         * tests/test-snprintf-posix.h (test_function): Likewise.
2732         * tests/test-sprintf-posix.h (test_function): Likewise.
2733         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
2734         * tests/test-printf-posix.h (test_function): Likewise.
2735         * tests/test-printf-posix.output: Update.
2736         Reported by John Darrington <john@darrington.wattle.id.au> via
2737         Ben Pfaff <blp@cs.stanford.edu>.
2738
2739 2008-04-18  Simon Josefsson  <simon@josefsson.org>
2740
2741         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
2742         Suggested by Bruno Haible <bruno@clisp.org>.
2743
2744 2008-04-17  Bruno Haible  <bruno@clisp.org>
2745
2746         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
2747         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
2748         implementation.
2749         Patch by Bruce Merry <bmerry@gmail.com>.
2750
2751 2008-04-17  Simon Josefsson  <simon@josefsson.org>
2752
2753         * doc/posix-functions/strftime.texi (strftime): Mention that %e
2754         doesn't work under Windows.
2755
2756 2008-04-16  Bruno Haible  <bruno@clisp.org>
2757
2758         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
2759         New macros.
2760         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
2761         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
2762         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
2763         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
2764         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
2765         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
2766         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
2767         macros.
2768         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
2769         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
2770         Northern Sotho, Uighur.
2771
2772 2008-04-16  Bruno Haible  <bruno@clisp.org>
2773
2774         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
2775         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
2776         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
2777         Reported by Daniel Bergström <daniel@octocode.com>.
2778
2779 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
2780             Bruno Haible  <bruno@clisp.org>
2781
2782         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
2783         function.
2784         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
2785         New functions, mostly extracted from gl_locale_name_default.
2786         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
2787
2788 2008-04-16  Eric Blake  <ebb9@byu.net>
2789
2790         Adjust strtod detection to catch glibc 2.7 bug.
2791         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
2792         Reported by John Gatewood Ham.
2793
2794 2008-04-16  Bruno Haible  <bruno@clisp.org>
2795
2796         Add tentative support for Linux libc5.
2797         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
2798         * lib/fpurge.c (fpurge): Likewise.
2799         * lib/freadable.c (freadable): Likewise.
2800         * lib/freadahead.c (freadahead): Likewise.
2801         * lib/freading.c (freading): Likewise.
2802         * lib/freadptr.c (freadptr): Likewise.
2803         * lib/freadseek.c (freadptrinc): Likewise.
2804         * lib/fseeko.c (rpl_fseeko): Likewise.
2805         * lib/fseterr.c (fseterr): Likewise.
2806         * lib/fwritable.c (fwritable): Likewise.
2807         * lib/fwriting.c (fwriting): Likewise.
2808         Reported by Alain Guibert <alguibert+bts@free.fr>.
2809
2810 2008-04-15  Bruno Haible  <bruno@clisp.org>
2811
2812         * modules/mathl (configure.ac): Define module indicator.
2813
2814 2008-04-15  Bruno Haible  <bruno@clisp.org>
2815
2816         * lib/logl.c (logl): Remove unused variables.
2817
2818 2008-04-15  Bruno Haible  <bruno@clisp.org>
2819
2820         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
2821         fails.
2822
2823 2008-04-15  Bruno Haible  <bruno@clisp.org>
2824
2825         * lib/trim.c (trim2): Fix argument of isspace() macro.
2826
2827 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
2828
2829         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
2830         to 0.
2831         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
2832
2833 2008-04-14  Bruno Haible  <bruno@clisp.org>
2834
2835         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
2836         AC_LANG_PROGRAM argument.
2837         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
2838         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
2839         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
2840         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2841         * m4/math_h.m4 (gl_MATH_H): Likewise.
2842         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
2843         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2844         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
2845         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
2846         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
2847         * m4/regex.m4 (gl_REGEX): Likewise.
2848         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
2849         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
2850         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2851         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
2852         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
2853         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2854         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2855         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2856
2857 2008-04-14  Jim Meyering  <meyering@redhat.com>
2858
2859         test-strtod: fix typos: s/abs/fabs/
2860         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
2861
2862 2008-04-13  Bruno Haible  <bruno@clisp.org>
2863
2864         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
2865         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
2866         module is also used and while not building the reloc-wrapper.
2867
2868 2008-04-13  Bruno Haible  <bruno@clisp.org>
2869
2870         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
2871
2872 2008-04-13  Bruno Haible  <bruno@clisp.org>
2873
2874         Fix AIX compilation failure introduced on 2008-04-02.
2875         * tests/test-frexp.c (exp): Undefine before redefining.
2876         * tests/test-frexpl.c (exp): Likewise.
2877
2878 2008-04-13  Bruno Haible  <bruno@clisp.org>
2879
2880         Work around a HP-UX stdio bug.
2881         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
2882         * tests/test-ftello.c (main): Likewise.
2883         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
2884         * doc/posix-functions/ftello.texi: Likewise.
2885
2886 2008-04-13  Bruno Haible  <bruno@clisp.org>
2887
2888         Make test-signbit pass on HP-UX/hppa.
2889         * tests/test-signbit.c (minus_zerol): New variable.
2890         (test_signbitl): Use it.
2891
2892 2008-04-13  Bruno Haible  <bruno@clisp.org>
2893
2894         Make truncl work on OSF/1 4.0.
2895         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
2896         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
2897         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
2898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
2899         HAVE_DECL_TRUNCL.
2900         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
2901         HAVE_DECL_TRUNCL.
2902         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
2903
2904 2008-04-13  Bruno Haible  <bruno@clisp.org>
2905
2906         * lib/unictype.h: Remove trailing comma from enumeration definitions.
2907
2908 2008-04-13  Bruno Haible  <bruno@clisp.org>
2909
2910         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
2911         expression, so as to avoid HP-UX 11 cc compiler bug.
2912
2913 2008-04-13  Bruno Haible  <bruno@clisp.org>
2914
2915         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
2916
2917 2008-04-13  Bruno Haible  <bruno@clisp.org>
2918
2919         * lib/git-merge-changelog.c: Remove empty declaration outside of
2920         functions.
2921
2922 2008-04-13  Bruno Haible  <bruno@clisp.org>
2923
2924         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
2925
2926 2008-04-13  Bruno Haible  <bruno@clisp.org>
2927
2928         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
2929         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
2930         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
2931         also if it exists but lacks definitions of the SHUT_* macros.
2932         * modules/sys_socket (Description): Update.
2933         Reported by Elbert Pol <e.pol@chello.nl>.
2934
2935 2008-04-13  Bruno Haible  <bruno@clisp.org>
2936
2937         * lib/localcharset.c (OS2): Don't redefine if already defined.
2938         Reported by Elbert Pol <e.pol@chello.nl>.
2939
2940 2008-04-13  Bruno Haible  <bruno@clisp.org>
2941
2942         * lib/binary-io.h [__EMX__]: Include <io.h>.
2943         Reported by Elbert Pol <e.pol@chello.nl>.
2944
2945 2008-04-12  Bruno Haible  <bruno@clisp.org>
2946
2947         * lib/fpucw.h: Enable the definitions also for x86_64.
2948         Needed for NetBSD/x86_64.
2949         Reported by Thomas Klausner <tk@giga.or.at>.
2950
2951 2008-04-12  Bruno Haible  <bruno@clisp.org>
2952
2953         * tests/test-strtod.c: Include isnand.h.
2954         (main): Use isnand instead of isnan.
2955         Reported by Jim Meyering.
2956
2957 2008-04-12  Bruno Haible  <bruno@clisp.org>
2958
2959         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
2960         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2961
2962 2008-04-12  Jim Meyering  <meyering@redhat.com>
2963
2964         * m4/math_h.m4 (gl_MATH_H): Fix typos.
2965
2966 2008-04-12  Bruno Haible  <bruno@clisp.org>
2967
2968         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
2969         Reported by Elbert Pol <e.pol@chello.nl>.
2970
2971 2008-04-12  Eric Blake  <ebb9@byu.net>
2972
2973         Work around Solaris 10 math.h bug.
2974         * m4/math_h.m4 (gl_MATH_H): Check for bug.
2975         (gl_MATH_H_DEFAULTS): Set up default.
2976         * modules/math (Makefile.am): Replace new indicators.
2977         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
2978         * tests/test-math.c (main): Test this.
2979         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
2980         * doc/posix-headers/math.texi (math.h): Mention bug.
2981         Reported by Nelson H. F. Beebe and Jim Meyering.
2982
2983 2008-04-11  Bruno Haible  <bruno@clisp.org>
2984
2985         Adapt to future versions of Apple GCC.
2986         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
2987         Reported by Peter O'Gorman <peter@pogma.com>.
2988
2989 2008-04-11  Bruno Haible  <bruno@clisp.org>
2990
2991         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
2992
2993 2008-04-11  Bruno Haible  <bruno@clisp.org>
2994
2995         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
2996
2997         * modules/getaddrinfo-tests (Makefile.am): Define
2998         test_getaddrinfo_LDADD.
2999
3000 2008-04-11  Bruno Haible  <bruno@clisp.org>
3001
3002         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
3003         (init): Fix syntax error.
3004         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
3005         is declared.
3006
3007 2008-04-11  Bruno Haible  <bruno@clisp.org>
3008
3009         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
3010         * modules/glob (Depends-on): Add stdbool.
3011
3012 2008-04-11  Bruno Haible  <bruno@clisp.org>
3013
3014         * lib/trim.c: Include <string.h>.
3015
3016 2008-04-11  Eric Blake  <ebb9@byu.net>
3017
3018         Avoid compile failure on OS/2.
3019         * lib/regex_internal.h (internal_function): Disable optimization
3020         on OS/2 (__EMX__), where it caused compiler error.
3021         Reported by Elbert Pol.
3022
3023 2008-04-11  Bruno Haible  <bruno@clisp.org>
3024
3025         Flush the standard error stream before aborting. Needed on mingw.
3026         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
3027         * tests/test-array_list.c (ASSERT): Likewise.
3028         * tests/test-array_oset.c (ASSERT): Likewise.
3029         * tests/test-avltree_list.c (ASSERT): Likewise.
3030         * tests/test-avltree_oset.c (ASSERT): Likewise.
3031         * tests/test-avltreehash_list.c (ASSERT): Likewise.
3032         * tests/test-binary-io.c (ASSERT): Likewise.
3033         * tests/test-byteswap.c (ASSERT): Likewise.
3034         * tests/test-c-ctype.c (ASSERT): Likewise.
3035         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
3036         * tests/test-c-strcasestr.c (ASSERT): Likewise.
3037         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
3038         * tests/test-c-strstr.c (ASSERT): Likewise.
3039         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
3040         * tests/test-canonicalize.c (ASSERT): Likewise.
3041         * tests/test-carray_list.c (ASSERT): Likewise.
3042         * tests/test-ceilf1.c (ASSERT): Likewise.
3043         * tests/test-ceilf2.c (ASSERT): Likewise.
3044         * tests/test-ceill.c (ASSERT): Likewise.
3045         * tests/test-count-one-bits.c (ASSERT): Likewise.
3046         * tests/test-fbufmode.c (ASSERT): Likewise.
3047         * tests/test-fflush2.c (ASSERT): Likewise.
3048         * tests/test-floorf1.c (ASSERT): Likewise.
3049         * tests/test-floorf2.c (ASSERT): Likewise.
3050         * tests/test-floorl.c (ASSERT): Likewise.
3051         * tests/test-fopen.c (ASSERT): Likewise.
3052         * tests/test-fpending.c (ASSERT): Likewise.
3053         * tests/test-fprintf-posix.c (ASSERT): Likewise.
3054         * tests/test-fpurge.c (ASSERT): Likewise.
3055         * tests/test-freadable.c (ASSERT): Likewise.
3056         * tests/test-freadahead.c (ASSERT): Likewise.
3057         * tests/test-freading.c (ASSERT): Likewise.
3058         * tests/test-freadptr.c (ASSERT): Likewise.
3059         * tests/test-freadptr2.c (ASSERT): Likewise.
3060         * tests/test-freadseek.c (ASSERT): Likewise.
3061         * tests/test-freopen.c (ASSERT): Likewise.
3062         * tests/test-frexp.c (ASSERT): Likewise.
3063         * tests/test-frexpl.c (ASSERT): Likewise.
3064         * tests/test-fseek.c (ASSERT): Likewise.
3065         * tests/test-fseeko.c (ASSERT): Likewise.
3066         * tests/test-fstrcmp.c (ASSERT): Likewise.
3067         * tests/test-ftell.c (ASSERT): Likewise.
3068         * tests/test-ftello.c (ASSERT): Likewise.
3069         * tests/test-func.c (ASSERT): Likewise.
3070         * tests/test-fwritable.c (ASSERT): Likewise.
3071         * tests/test-fwriting.c (ASSERT): Likewise.
3072         * tests/test-getdelim.c (ASSERT): Likewise.
3073         * tests/test-getline.c (ASSERT): Likewise.
3074         * tests/test-i-ring.c (ASSERT): Likewise.
3075         * tests/test-iconv-utf.c (ASSERT): Likewise.
3076         * tests/test-iconv.c (ASSERT): Likewise.
3077         * tests/test-isfinite.c (ASSERT): Likewise.
3078         * tests/test-isnand.c (ASSERT): Likewise.
3079         * tests/test-isnanf.c (ASSERT): Likewise.
3080         * tests/test-isnanl.h (ASSERT): Likewise.
3081         * tests/test-ldexpl.c (ASSERT): Likewise.
3082         * tests/test-linked_list.c (ASSERT): Likewise.
3083         * tests/test-linkedhash_list.c (ASSERT): Likewise.
3084         * tests/test-localename.c (ASSERT): Likewise.
3085         * tests/test-lseek.c (ASSERT): Likewise.
3086         * tests/test-mbscasecmp.c (ASSERT): Likewise.
3087         * tests/test-mbscasestr1.c (ASSERT): Likewise.
3088         * tests/test-mbscasestr2.c (ASSERT): Likewise.
3089         * tests/test-mbscasestr3.c (ASSERT): Likewise.
3090         * tests/test-mbscasestr4.c (ASSERT): Likewise.
3091         * tests/test-mbschr.c (ASSERT): Likewise.
3092         * tests/test-mbscspn.c (ASSERT): Likewise.
3093         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
3094         * tests/test-mbspbrk.c (ASSERT): Likewise.
3095         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
3096         * tests/test-mbsrchr.c (ASSERT): Likewise.
3097         * tests/test-mbsspn.c (ASSERT): Likewise.
3098         * tests/test-mbsstr1.c (ASSERT): Likewise.
3099         * tests/test-mbsstr2.c (ASSERT): Likewise.
3100         * tests/test-mbsstr3.c (ASSERT): Likewise.
3101         * tests/test-memchr2.c (ASSERT): Likewise.
3102         * tests/test-memmem.c (ASSERT): Likewise.
3103         * tests/test-open.c (ASSERT): Likewise.
3104         * tests/test-printf-frexp.c (ASSERT): Likewise.
3105         * tests/test-printf-frexpl.c (ASSERT): Likewise.
3106         * tests/test-printf-posix.c (ASSERT): Likewise.
3107         * tests/test-quotearg.c (ASSERT): Likewise.
3108         * tests/test-rbtree_list.c (ASSERT): Likewise.
3109         * tests/test-rbtree_oset.c (ASSERT): Likewise.
3110         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
3111         * tests/test-round1.c (ASSERT): Likewise.
3112         * tests/test-roundf1.c (ASSERT): Likewise.
3113         * tests/test-roundl.c (ASSERT): Likewise.
3114         * tests/test-signbit.c (ASSERT): Likewise.
3115         * tests/test-sleep.c (ASSERT): Likewise.
3116         * tests/test-snprintf-posix.c (ASSERT): Likewise.
3117         * tests/test-snprintf.c (ASSERT): Likewise.
3118         * tests/test-sprintf-posix.c (ASSERT): Likewise.
3119         * tests/test-stat-time.c (ASSERT): Likewise.
3120         * tests/test-strcasestr.c (ASSERT): Likewise.
3121         * tests/test-strerror.c (ASSERT): Likewise.
3122         * tests/test-striconv.c (ASSERT): Likewise.
3123         * tests/test-striconveh.c (ASSERT): Likewise.
3124         * tests/test-striconveha.c (ASSERT): Likewise.
3125         * tests/test-strsignal.c (ASSERT): Likewise.
3126         * tests/test-strstr.c (ASSERT): Likewise.
3127         * tests/test-strtod.c (ASSERT): Likewise.
3128         * tests/test-trunc1.c (ASSERT): Likewise.
3129         * tests/test-trunc2.c (ASSERT): Likewise.
3130         * tests/test-truncf1.c (ASSERT): Likewise.
3131         * tests/test-truncf2.c (ASSERT): Likewise.
3132         * tests/test-truncl.c (ASSERT): Likewise.
3133         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
3134         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
3135         * tests/test-vasnprintf.c (ASSERT): Likewise.
3136         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
3137         * tests/test-vasprintf.c (ASSERT): Likewise.
3138         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
3139         * tests/test-vprintf-posix.c (ASSERT): Likewise.
3140         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
3141         * tests/test-vsnprintf.c (ASSERT): Likewise.
3142         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
3143         * tests/test-wcwidth.c (ASSERT): Likewise.
3144         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
3145         * tests/test-xprintf-posix.c (ASSERT): Likewise.
3146         * tests/test-xvasprintf.c (ASSERT): Likewise.
3147         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
3148         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
3149         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
3150         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
3151         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
3152         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
3153         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
3154         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
3155         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
3156         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
3157         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
3158         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
3159         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
3160         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
3161         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
3162         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
3163         * tests/unictype/test-block_list.c (ASSERT): Likewise.
3164         * tests/unictype/test-block_of.c (ASSERT): Likewise.
3165         * tests/unictype/test-block_test.c (ASSERT): Likewise.
3166         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
3167         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
3168         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
3169         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
3170         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
3171         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
3172         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
3173         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
3174         * tests/unictype/test-combining.c (ASSERT): Likewise.
3175         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
3176         * tests/unictype/test-digit.c (ASSERT): Likewise.
3177         * tests/unictype/test-mirror.c (ASSERT): Likewise.
3178         * tests/unictype/test-numeric.c (ASSERT): Likewise.
3179         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
3180         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
3181         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
3182         * tests/unictype/test-scripts.c (ASSERT): Likewise.
3183         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
3184         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
3185         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
3186         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
3187         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
3188         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
3189         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
3190         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
3191         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
3192         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
3193         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
3194         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
3195         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
3196         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
3197         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
3198         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
3199         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
3200         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
3201         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
3202         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
3203         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
3204         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
3205         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
3206         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
3207         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
3208         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
3209         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
3210         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
3211         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
3212         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
3213         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
3214         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
3215         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
3216         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
3217         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
3218         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
3219         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
3220         Reported by Eric Blake.
3221
3222 2008-04-11  Bruno Haible  <bruno@clisp.org>
3223
3224         * lib/wchar.in.h: Tweak comment.
3225
3226 2008-04-11  Bruno Haible  <bruno@clisp.org>
3227
3228         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
3229         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
3230         gl_COMMON.
3231         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
3232
3233 2008-04-11  Bruno Haible  <bruno@clisp.org>
3234
3235         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
3236
3237 2008-04-11  Simon Josefsson  <simon@josefsson.org>
3238
3239         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
3240         of attempting to use non-existing /dev/*random.  Based on patch
3241         from Adam Strzelecki <ono@java.pl> in
3242         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
3243
3244 2008-04-08  Bruno Haible  <bruno@clisp.org>
3245
3246         Add tentative support for emx+gcc.
3247         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
3248         * lib/fpurge.c (fpurge): Likewise.
3249         * lib/freadable.c (freadable): Likewise.
3250         * lib/freadahead.c (freadahead): Likewise.
3251         * lib/freading.c (freading): Likewise.
3252         * lib/freadptr.c (freadptr): Likewise.
3253         * lib/freadseek.c (freadptrinc): Likewise.
3254         * lib/fseeko.c (rpl_fseeko): Likewise.
3255         * lib/fseterr.c (fseterr): Likewise.
3256         * lib/fwritable.c (fwritable): Likewise.
3257         * lib/fwriting.c (fwriting): Likewise.
3258         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
3259
3260 2008-04-09  Eric Blake  <ebb9@byu.net>
3261
3262         Avoid some autoconf warnings.
3263         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
3264         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
3265         * m4/afs.m4 (gl_AFS): Likewise.
3266         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
3267         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
3268         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
3269         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
3270         (gl_INTEGER_TYPE_SUFFIX): Likewise.
3271         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
3272         (AC_CHECK_DECLS_ONCE): Likewise.
3273         Rename file...
3274         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
3275         gnulib-tool requires autoconf 2.59 or better.
3276         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
3277
3278 2008-04-08  Eric Blake  <ebb9@byu.net>
3279
3280         Use 'git describe --match' if present (added in git 1.5.5).
3281         * build-aux/git-version-gen: Limit result to tags that match 'v*'
3282         if possible.
3283
3284 2008-04-08  Bruno Haible  <bruno@clisp.org>
3285
3286         Add tentative support for OpenServer.
3287         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
3288         _ptr, _cnt.
3289         * lib/fpurge.c (fpurge): Likewise.
3290         * lib/freadable.c (freadable): Likewise.
3291         * lib/freadahead.c (freadahead): Likewise.
3292         * lib/freading.c (freading): Likewise.
3293         * lib/freadptr.c (freadptr): Likewise.
3294         * lib/freadseek.c (freadptrinc): Likewise.
3295         * lib/fseeko.c (rpl_fseeko): Likewise.
3296         * lib/fseterr.c (fseterr): Likewise.
3297         * lib/fwritable.c (fwritable): Likewise.
3298         * lib/fwriting.c (fwriting): Likewise.
3299         Reported by Roger Cornelius <rac@tenzing.org> and
3300         Brian K. White <brian@aljex.com>.
3301
3302 2008-04-06  Jim Meyering  <meyering@redhat.com>
3303
3304         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
3305
3306 2008-04-06  Bruno Haible  <bruno@clisp.org>
3307
3308         Avoid possible error with non-ASCII bytes in UTF-8 locales.
3309         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
3310         * tests/test-printf-posix.sh: Likewise.
3311         * tests/test-vfprintf-posix.sh: Likewise.
3312         * tests/test-vprintf-posix.sh: Likewise.
3313         * tests/test-xprintf-posix.sh: Likewise.
3314
3315 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3316
3317         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
3318         hide error from 'ls', needed on OS/2.
3319         Report by Elbert Pol <elbert.pol@gmail.com>.
3320
3321 2008-04-04  Eric Blake  <ebb9@byu.net>
3322
3323         Make test-fseeko.c failures meaningful.
3324         * tests/test-fseeko.c: Print line number on failure.
3325         * tests/test-fseek.c: Likewise.
3326         Reported by Nelson H. F. Beebe.
3327
3328         Improve strtod bug detection check.
3329         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
3330         required for Solaris 10.
3331         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
3332
3333 2008-04-04  Bruno Haible  <bruno@clisp.org>
3334
3335         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
3336         by m4/setenv.m4.
3337
3338 2008-04-03  Eric Blake  <ebb9@byu.net>
3339
3340         Ensure sane .version contents.
3341         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
3342         version string.
3343         * build-aux/git-version-gen: Improve documentation.
3344
3345         Make GNU make output nicer.
3346         * top/GNUmakefile [!_have-Makefile]: Add dependency on
3347         MAKECMDGOALS to enforce message for all command line targets.  Set
3348         srcdir for use in maint.mk.
3349
3350         Another maintainer tweak.
3351         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
3352         a target that regenerates version.
3353
3354 2008-04-03  Jim Meyering  <meyering@redhat.com>
3355
3356         vc-list-files: don't cause coreutils "make po-check" failure
3357         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
3358
3359 2008-04-03  Eric Blake  <ebb9@byu.net>
3360
3361         Allow VPATH usage of vc-list-files.
3362         * build-aux/vc-list-files (scriptversion): Add timestamp.
3363         (options): Add --help, --version, -C.
3364         (CVS): Support installed cvsu.
3365
3366 2008-04-02  Bruno Haible  <bruno@clisp.org>
3367
3368         Avoid some "statement with no effect" warnings from gcc.
3369         * tests/test-wctype.c (main): Explicitly ignore unused values.
3370         Reported by Jim Meyering.
3371
3372 2008-04-02  Jim Meyering  <meyering@redhat.com>
3373
3374         Avoid some warnings from "gcc -Wshadow".
3375         * tests/test-frexp.c (exp): Define to a different identifier.
3376         * tests/test-frexpl.c (exp): Likewise.
3377
3378 2008-04-03  Jim Meyering  <meyering@redhat.com>
3379
3380         bootstrap: remove dangling *.[ch] symlinks from lib
3381         * build-aux/bootstrap [dangling symlink removal]: Move find's
3382         -depth option to precede all others, to avoid a warning.
3383         Remove *.[ch] files too, and from "$source_base" (usually lib/).
3384
3385 2008-04-02  Bruno Haible  <bruno@clisp.org>
3386
3387         Avoid some warnings from "gcc -Wshadow".
3388         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
3389         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
3390         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
3391         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
3392         Reported by Jim Meyering.
3393
3394 2008-04-01  Bruno Haible  <bruno@clisp.org>
3395
3396         Fix test to work on IRIX 6.5 with cc.
3397         * tests/test-math.c (numeric_equal): New function.
3398         (main): Use it.
3399
3400 2008-04-01  Bruno Haible  <bruno@clisp.org>
3401
3402         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
3403
3404 2008-04-01  Bruno Haible  <bruno@clisp.org>
3405
3406         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
3407         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3408         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
3409         (Depends-on): Remove math.
3410
3411         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
3412         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3413         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
3414         (Depends-on): Remove math.
3415
3416         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
3417         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3418         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
3419         (Depends-on): Remove math.
3420         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
3421         (Depends-on): Remove math.
3422
3423         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
3424         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3425         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
3426         (Depends-on): Remove math.
3427         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
3428         (Depends-on): Remove math.
3429
3430         * tests/test-round1.c: Include nan.h.
3431         (main): Use NaNd instead of NAN.
3432         * modules/round-tests (Files): Add tests/nan.h.
3433
3434         * tests/test-trunc1.c: Include nan.h.
3435         (main): Use NaNd instead of NAN.
3436         * modules/trunc-tests (Files): Add tests/nan.h.
3437
3438         * tests/test-roundf1.c: Include nan.h.
3439         (main): Use NaNf instead of NAN.
3440         * modules/roundf-tests (Files): Add tests/nan.h.
3441
3442         * tests/test-truncf1.c: Include nan.h.
3443         (main): Use NaNf instead of NAN.
3444         * modules/truncf-tests (Files): Add tests/nan.h.
3445
3446         * tests/test-ceilf1.c: Include nan.h.
3447         (main): Use NaNf instead of NAN.
3448         * modules/ceilf-tests (Files): Add tests/nan.h.
3449
3450         * tests/test-floorf1.c: Include nan.h.
3451         (main): Use NaNf instead of NAN.
3452         * modules/floorf-tests (Files): Add tests/nan.h.
3453
3454         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
3455         (main): Use NaNf instead of NAN.
3456         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
3457
3458         * tests/test-isnand.c: Include nan.h instead of <math.h>.
3459         (main): Use NaNd instead of NAN.
3460         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
3461
3462         * tests/test-frexp.c: Include nan.h.
3463         (main): Use NaNd instead of NAN.
3464         * modules/frexp-tests (Files): Add tests/nan.h.
3465
3466         * lib/isnan.c: Don't include <math.h>.
3467         (FUNC): Don't use NAN macro.
3468         * modules/isnand-nolibm (Depends-on): Remove math.
3469         * modules/isnanf-nolibm (Depends-on): Remove math.
3470         * modules/isnanl (Depends-on): Remove math.
3471         * modules/isnanl-nolibm (Depends-on): Remove math.
3472
3473         * tests/nan.h: New file.
3474
3475 2008-04-01  Eric Blake  <ebb9@byu.net>
3476
3477         Fix typos.
3478         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
3479         values to be the right type.
3480
3481         For now, cater to gnulib strtod inaccuracies.
3482         * tests/test-strtod.c (main): Allow 1-ulp error on expected
3483         fractional results.  While not as nice from a QoI perspective, it
3484         is a quicker patch than correctly implementing decimal to binary
3485         rounding.
3486
3487 2008-03-31  Eric Blake  <ebb9@byu.net>
3488
3489         Guarantee a definition of NAN.
3490         * lib/math.in.h (NAN): Define if missing.
3491         * tests/test-math.c (main): Test it.
3492         * doc/posix-headers/math.texi (math.h): Document this.
3493         * lib/isnan.c (rpl_isnand): Use it.
3494         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
3495         * tests/test-floorf1.c (NaN): Likewise.
3496         * tests/test-frexp.c (NaN): Likewise.
3497         * tests/test-isnand.c (NaN): Likewise.
3498         * tests/test-isnanf.c (NaN): Likewise.
3499         * tests/test-round1.c (NaN): Likewise.
3500         * tests/test-roundf1.c (NaN): Likewise.
3501         * tests/test-snprintf-posix.h (NaN): Likewise.
3502         * tests/test-sprintf-posix.h (NaN): Likewise.
3503         * tests/test-trunc1.c (NaN): Likewise.
3504         * tests/test-truncf1.c (NaN): Likewise.
3505         * tests/test-vasnprintf-posix.c (NaN): Likewise.
3506         * tests/test-vasprintf-posix.c (NaN): Likewise.
3507         * modules/isnand-nolibm (Depends-on): Add math.
3508         * modules/isnanf-nolibm (Depends-on): Likewise.
3509         * modules/isnanl (Depends-on): Likewise.
3510         * modules/isnanl-nolibm (Depends-on): Likewise.
3511         * modules/snprintf-posix-tests (Depends-on): Likewise.
3512         * modules/sprintf-posix-tests (Depends-on): Likewise.
3513         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
3514         * modules/vsprintf-posix-tests (Depends-on): Likewise.
3515         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
3516         * modules/vasprintf-posix-tests (Depends-on): Likewise.
3517
3518 2008-03-31  Bruno Haible  <bruno@clisp.org>
3519
3520         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
3521         * doc/posix-functions/strtod.texi: Likewise.
3522
3523 2008-03-31  Bruno Haible  <bruno@clisp.org>
3524
3525         * tests/test-strtod.c (main): Don't use C99 syntax.
3526
3527 2008-03-31  Bruno Haible  <bruno@clisp.org>
3528
3529         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
3530         Reported by Eric Blake.
3531
3532 2008-03-31  Jim Meyering  <meyering@redhat.com>
3533
3534         Don't compare actual signbit return values.
3535         * tests/test-strtod.c (main): Rather, compare only their
3536         zero/non-zero nature.
3537
3538 2008-03-31  Eric Blake  <ebb9@byu.net>
3539
3540         More strtod documentation.
3541         * doc/posix-functions/strtod.texi (strtod): Interpret more test
3542         failures as distinct bugs.
3543
3544 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3545
3546         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
3547         Problem reported by Erik Benada in
3548         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
3549
3550 2008-03-30  Bruno Haible  <bruno@clisp.org>
3551
3552         * tests/test-strtod.c: Add comments about which assertion fails on which
3553         platform.
3554         * doc/posix-functions/strtod.texi: Add info about many more platforms.
3555
3556 2008-03-30  Eric Blake  <ebb9@byu.net>
3557
3558         Test signbit behavior on zeros.
3559         * tests/test-signbit.c (test_signbitf): Add tests for zero.
3560         (test_signbitd, test_signbitl): Likewise.
3561
3562         More strtod touchups.
3563         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
3564         sign of negative underflow, for now.  Use .5, not .1.
3565         * doc/posix-functions/strtod.texi (strtod): Mention these
3566         limitations.
3567         Reported by Jim Meyering.
3568
3569 2008-03-30  Bruno Haible  <bruno@clisp.org>
3570
3571         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
3572         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
3573
3574 2008-03-30  Bruno Haible  <bruno@clisp.org>
3575
3576         Avoid failure when attempting to return empty iconv results on some
3577         platforms.
3578         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
3579         allocation, don't report ENOMEM when the resulting string is empty.
3580
3581 2008-03-30  Bruno Haible  <bruno@clisp.org>
3582
3583         Fix buffer overrun.
3584         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
3585         Don't consider the width for tmp_length. Check count against tmp_length
3586         before doing the padding. Ensure enough allocation during padding.
3587
3588 2008-03-30  Eric Blake  <ebb9@byu.net>
3589
3590         strtod touchups.
3591         * lib/strtod.c (strtod): Avoid compiler warnings.
3592         Reported by Jim Meyering.
3593
3594 2008-03-30  Bruno Haible  <bruno@clisp.org>
3595
3596         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
3597         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
3598         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
3599         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
3600         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
3601         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
3602         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
3603         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
3604
3605         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
3606         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
3607         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
3608         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
3609         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
3610         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
3611         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
3612         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
3613
3614         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
3615         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
3616         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
3617         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
3618         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
3619         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
3620         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
3621         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
3622
3623         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
3624         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
3625
3626         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
3627         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
3628
3629         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
3630         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
3631
3632         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
3633         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
3634         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
3635
3636         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
3637         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
3638         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
3639
3640         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
3641         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
3642         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
3643
3644         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
3645         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
3646         * modules/vasprintf (Depends-on): Add EOVERFLOW.
3647
3648         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
3649         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
3650         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
3651         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
3652         (Depends-on): Add EOVERFLOW.
3653         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
3654         (Depends-on): Add EOVERFLOW.
3655         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
3656         (Depends-on): Add EOVERFLOW.
3657         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
3658         (Depends-on): Add EOVERFLOW.
3659         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
3660         (Depends-on): Add EOVERFLOW.
3661         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
3662         (Depends-on): Add EOVERFLOW.
3663         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
3664         (Depends-on): Add EOVERFLOW.
3665         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
3666         (Depends-on): Add EOVERFLOW.
3667
3668         * lib/sprintf.c (EOVERFLOW): Remove fallback.
3669         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
3670         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
3671
3672         * lib/snprintf.c (EOVERFLOW): Remove fallback.
3673         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
3674         * modules/snprintf (Depends-on): Add EOVERFLOW.
3675
3676         * lib/poll.c (EOVERFLOW): Remove fallback.
3677         * modules/poll (Depends-on): Add EOVERFLOW.
3678
3679         * lib/getugroups.c (EOVERFLOW): Remove fallback.
3680         * modules/getugroups (Depends-on): Add EOVERFLOW.
3681
3682         * lib/getdelim.c (EOVERFLOW): Remove fallback.
3683         * modules/getdelim (Depends-on): Add EOVERFLOW.
3684
3685         * lib/ftell.c (EOVERFLOW): Remove fallback.
3686         * modules/ftell (Depends-on): Add EOVERFLOW.
3687
3688         * lib/fprintf.c (EOVERFLOW): Remove fallback.
3689         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
3690         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
3691
3692         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
3693
3694         * modules/EOVERFLOW-tests: New file.
3695         * tests/test-EOVERFLOW.c: New file.
3696
3697         * modules/EOVERFLOW: New file.
3698         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
3699
3700 2008-03-30  Bruno Haible  <bruno@clisp.org>
3701
3702         Fix bug introduced on 2007-06-10.
3703         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
3704         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
3705
3706 2008-03-30  Bruno Haible  <bruno@clisp.org>
3707
3708         Improve freadseek's efficiency after ungetc.
3709         * lib/freadseek.c: Include freadahead.h.
3710         (freadptrinc): New function, extracted from freadseek.
3711         (freadseek): Use it in a loop. Use freadahead to determine the number
3712         of loop iterations.
3713         * modules/freadseek (Depends-on): Add freadahead.
3714         (configure.ac): Require AC_C_INLINE.
3715
3716 2008-03-30  Bruno Haible  <bruno@clisp.org>
3717
3718         * lib/freadseek.c (freadseek): Don't ignore the return value of
3719         freadptr.
3720
3721 2008-03-29  Eric Blake  <ebb9@byu.net>
3722
3723         Add hex float support.
3724         * modules/strtod (Depends-on): Add c-ctype.
3725         (Link): Mention POW_LIB.
3726         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
3727         whitespace between 'e' and exponent.
3728         * tests/test-strtod.c (main): Enable hex float tests.
3729         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
3730         now provides.
3731
3732         Document various strtod bugs, with some fixes.
3733         * doc/posix-functions/strtod.texi (strtod): Document bugs with
3734         "-0x", "inf", "nan", and hex constants.
3735         * doc/posix-functions/atof.texi (atof): Likewise.
3736         * modules/stdlib (Makefile.am): Support strtod.
3737         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
3738         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
3739         detect additional strtod bugs.
3740         * lib/stdlib.in.h (rpl_strtod): Add declarations.
3741         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
3742         bool where appropriate.  Parse 'inf' and 'nan'.
3743         * tests/test-strtod.c: New file.
3744         * modules/strtod (Depends-on): Add stdbool, stdlib.
3745         (configure.ac): Turn on module indicator.
3746         * modules/strtod-tests: New module.
3747
3748 2008-03-29  Eric Blake  <ebb9@byu.net>
3749
3750         Fix ftell on mingw.
3751         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
3752         * modules/ftell-tests (Depends-on): Add binary-io.
3753         * modules/ftello-tests (Depends-on): Likewise.
3754         * tests/test-ftell.c (main): Enhance test to cover behavior after
3755         ungetc.  Enforce binary mode.
3756         * tests/test-ftello.c (main): Likewise.
3757
3758         Pass test-freadseek on cygwin.
3759         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
3760         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
3761         ungetc buffer.
3762
3763         * tests/test-fflush2.c (main): Fix typo.
3764
3765 2008-03-29  Bruno Haible  <bruno@clisp.org>
3766
3767         * tests/test-fflush2.c (main): Temporarily disable the contents of
3768         this test.
3769         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
3770         Reported by Eric Blake.
3771
3772 2008-03-28  Simon Josefsson  <simon@josefsson.org>
3773
3774         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
3775         (GC_SHA224_DIGEST_SIZE): Add.
3776
3777         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
3778         (gc_hash_digest_length): Likewise.
3779         (gc_hash_buffer): Likewise.
3780
3781 2008-03-25  Bruno Haible  <bruno@clisp.org>
3782
3783         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
3784         detail which gettext release to use.
3785         Reported by Simon Josefsson.
3786
3787 2008-03-26  Jim Meyering  <meyering@redhat.com>
3788
3789         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
3790         * modules/gnumakefile (clean-GNUmakefile): Also, use
3791         test ... && ... || : syntax rather than if-then ... fi.
3792
3793         gnumakefile: Don't double-quote-expand $(VPATH) value.
3794         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
3795
3796 2008-03-24  Eric Blake  <ebb9@byu.net>
3797
3798         Alter GNUmakefile to install into top directory.
3799         * modules/maintainer-makefile: Split, and add dependency...
3800         * modules/gnumakefile: to this new module.
3801         * build-aux/GNUmakefile: Move...
3802         * top/GNUmakefile: ...here.
3803         * build-aux/maint.mk: Move...
3804         * top/maint.mk: ...here.
3805         * MODULES.html.sh (Support for maintaining...): Document new
3806         module.
3807
3808 2008-03-23  Bruno Haible  <bruno@clisp.org>
3809
3810         * gnulib-tool: New options --vc-files, --no-vc-files.
3811         (func_usage): Document them.
3812         (vc_files): New variable.
3813         (func_import): Consider vc_files.
3814         (func_create_testdir): Set vc_files to empty.
3815         Suggested by Jim Meyering and Karl Berry.
3816
3817 2008-03-23  Bruno Haible  <bruno@clisp.org>
3818
3819         Fix regex compilation error on HP-UX 11.
3820         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
3821         * modules/regex (Files): Add m4/mbstate_t.m4.
3822         Reported by Ton Voon <ton.voon@altinity.com>.
3823
3824 2008-03-23  Bruno Haible  <bruno@clisp.org>
3825
3826         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
3827
3828 2008-03-23  Eric Blake  <ebb9@byu.net>
3829             Bruno Haible  <bruno@clisp.org>
3830
3831         Install files from top/ in the destination directory.
3832         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
3833         augmentation also for the files from top/.
3834         (func_import, func_create_testdir): Rewrite file names:
3835         top/filename -> filename.
3836
3837 2008-03-23  Bruno Haible  <bruno@clisp.org>
3838
3839         Tweak "gnulib --version" output.
3840         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
3841
3842 2008-03-23  Bruno Haible  <bruno@clisp.org>
3843
3844         Tweak "gnulib --version" output.
3845         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
3846         rather than contents of ChangeLog, when possible.
3847
3848 2008-03-21  Eric Blake  <ebb9@byu.net>
3849
3850         More --version tweaks.
3851         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
3852         date of last ChangeLog entry.
3853
3854 2008-03-21  Jim Meyering  <meyering@redhat.com>
3855
3856         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
3857
3858 2008-03-20  Eric Blake  <ebb9@byu.net>
3859
3860         VPATH fix.
3861         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
3862
3863 2008-03-20  Simon Josefsson  <simon@josefsson.org>
3864
3865         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
3866         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
3867
3868 2008-03-20  Eric Blake  <ebb9@byu.net>
3869
3870         Sync GNUmakefile with coreutils.
3871         * build-aux/GNUmakefile (have-Makefile): Rename...
3872         (_have-Makefile): ...to this, for namespace consideration.
3873         (GNUmakefile.cfg): Include, if present.
3874         (_autoreconf): Define a default.
3875         (_is-dist-target): New rule for rebuilds to pick up intra-release
3876         version.
3877         (maint-cfg.mk): Rename...
3878         (cfg.mk): ...to this.
3879
3880 2008-03-18  Jim Meyering  <meyering@redhat.com>
3881
3882         New script and module: mktempd
3883         * MODULES.html.sh (maint+release support): Add mktempd.
3884         * build-aux/mktempd: New file.
3885         * modules/mktempd: New file.
3886
3887 2008-03-15  Jim Meyering  <meyering@redhat.com>
3888
3889         Undo last change.
3890         * lib/sha1.c, lib/md5.c: 63 != ~63.
3891         Reported by Andreas Schwab.
3892
3893         sha1.c, md5.c: Hoist a redundant expression.
3894         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
3895         "ctx->buflen" only once, before calling *_process_block.
3896         * lib/md5.c (md5_process_bytes): Likewise.
3897
3898 2008-03-14  Eric Blake  <ebb9@byu.net>
3899
3900         Bump copyright year in files generated by gnulib-tool.
3901         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
3902         gnulib-tool, rather than hard-coding it.
3903
3904         Fix 'gnulib-tool --version' output to work with git.
3905         * gnulib-tool (func_gnulib_dir): New function, extracted from...
3906         (startup): ...here.
3907         (func_version): Use it to invoke git-version-gen, rather than
3908         relying on CVS keyword expansion.  Modernize wording.
3909         (cvsdatestamp, last_checkin_date, version): Kill unused
3910         variables.
3911
3912 2008-03-12  Jim Meyering  <meyering@redhat.com>
3913
3914         Recognize optional cast of the argument to free.
3915         * build-aux/useless-if-before-free: Update regexps.
3916
3917         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
3918
3919 2008-03-11  Bruno Haible  <bruno@clisp.org>
3920
3921         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
3922         by a single package.
3923         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
3924         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
3925         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
3926         Reported by Sam Steingold <sds@gnu.org>.
3927
3928 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
3929
3930         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
3931         repositories.
3932
3933 2008-03-11  Bruno Haible  <bruno@clisp.org>
3934
3935         Avoid conflicts between local macro definitions.
3936         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
3937         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
3938
3939 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
3940             Bruno Haible  <bruno@clisp.org>
3941
3942         Make va_copy work with some version of xlc on AIX 5.1.
3943         * lib/stdarg.in.h: New file.
3944         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
3945         On AIX, use a <stdarg.h> file substitute.
3946         * modules/stdarg (Files): Add lib/stdarg.in.h.
3947         (Depends-on): Add include_next.
3948         (Makefile.am): Build a stdarg.h substitute if requested.
3949         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
3950
3951 2008-03-10  Bruno Haible  <bruno@clisp.org>
3952
3953         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
3954         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
3955         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
3956
3957 2008-03-10  Bruno Haible  <bruno@clisp.org>
3958
3959         * modules/stdlib (Depends-on): Add include_next, remove
3960         absolute-header.
3961
3962 2008-03-09  Bruno Haible  <bruno@clisp.org>
3963
3964         * lib/freadahead.h (freadahead): Document more precisely.
3965         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
3966         the sum of both buffer sizes.
3967         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
3968         * NEWS: Document the change.
3969
3970 2008-03-09  Bruno Haible  <bruno@clisp.org>
3971
3972         Extend freadptr to return also the buffer size.
3973         * lib/freadptr.h (freadptr): Add sizep argument.
3974         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
3975         (freadptr): Add sizep argument. Determine buffer size like freadahead
3976         does.
3977         * tests/test-freadptr.c: Don't include freadahead.h.
3978         (main): Adapt for new calling convention of freadptr.
3979         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
3980         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
3981         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
3982         tests/test-freadptr2.sh.
3983         (Depends): Remove freadahead.
3984         (TESTS): Add test-freadptr2.sh.
3985         (check_PROGRAMS): Add test-freadptr2.
3986
3987 2008-03-09  Bruno Haible  <bruno@clisp.org>
3988
3989         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
3990         Report and solution by Simon Josefsson.
3991
3992 2008-03-06  Bruno Haible  <bruno@clisp.org>
3993
3994         Make fflush after ungetc work on BSD platforms.
3995         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
3996         * tests/test-fflush2.c: New file.
3997         * tests/test-fflush2.sh: New file.
3998         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
3999         tests/test-fflush2.c.
4000         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
4001         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
4002
4003 2008-03-06  Eric Blake  <ebb9@byu.net>
4004
4005         Likewise for ftello.
4006         * modules/ftello (Dependencies): Add extensions.
4007         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
4008
4009 2008-03-06  Bruno Haible  <bruno@clisp.org>
4010
4011         * modules/fseeko (Dependencies): Add extensions.
4012         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
4013         Needed on glibc systems.
4014
4015 2008-03-06  Bruno Haible  <bruno@clisp.org>
4016
4017         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
4018         email address.
4019         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4020
4021 2008-03-06  Bruno Haible  <bruno@clisp.org>
4022
4023         * users.txt: Add libgnupdf.
4024
4025 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4026
4027         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
4028         (Header File Substitutes, Function Substitutes,
4029         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
4030         (Build robot for gnulib): Fix typo.
4031
4032 2008-03-06  Bruno Haible  <bruno@clisp.org>
4033
4034         * doc/gnulib-tool.texi (VCS Issues): Small updates.
4035         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4036
4037 2008-03-06  Bruno Haible  <bruno@clisp.org>
4038
4039         * doc/func.texi: New file, extracted from doc/gnulib.texi.
4040         * doc/gnulib.texi: Include it.
4041
4042 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4043
4044         * modules/func (License): Change license to unlimited; there was
4045         no LGPL parts in the module anyway.
4046
4047 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4048
4049         * modules/__func__: Renamed to modules/func.
4050         * modules/__func__-tests: Renamed to modules/func-tests.
4051         * tests/test-__func__.c: Renamed to tests/test-func.c.
4052         * m4/__func__.m4: Renamed to m4/func.m4.
4053         * doc/gnulib.texi (__func__): Section renamed to func.
4054         Suggested by Eric Blake <ebb9@byu.net>.
4055
4056 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4057
4058         * doc/gnulib.texi (__func__): Use C99 terminology when talking
4059         about __func__.  Make example self-contained.  Suggested by Eric
4060         Blake <ebb9@byu.net>.
4061
4062         * tests/test-__func__.c (main): Avoid extraneous () around __func.
4063         Suggested by Eric Blake <ebb9@byu.net>.
4064
4065 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4066
4067         * modules/__func__: New file.
4068         * modules/__func__-tests: New file.
4069         * tests/test-__func__.c: New file.
4070         * m4/__func__.m4: New file.
4071         * doc/gnulib.texi (__func__): Document __func__ module.
4072
4073 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4074
4075         * modules/byteswap (License): Re-license as LGPLv2+.
4076
4077 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4078
4079         * doc/Makefile: Add pdf target.
4080
4081 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4082
4083         * modules/inline (License): Use 'unlimited', since there are only
4084         *.m4 files in this module.
4085
4086 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
4087             Bruno Haible  <bruno@clisp.org>
4088
4089         Add support for HP C 7.1 on OpenVMS 8.3.
4090         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
4091
4092 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
4093
4094         Update VMS specifics.
4095         * lib/getopt.c [VMS]: Remove include of unixlib.h.
4096
4097 2008-03-02  Jim Meyering  <meyering@redhat.com>
4098
4099         Remove the last dependency on the "free" module.
4100         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
4101         Reported by Bob Proulx.
4102
4103         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
4104
4105         Remove useless "if" tests before free.  Deprecate "free" module.
4106         * doc/posix-functions/free.texi: Mention that this
4107         module is no longer useful.
4108         * modules/free (Notice): Say this module is obsolete.
4109         * modules/readutmp (Depends-on): Remove free.
4110         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
4111         * lib/putenv.c (putenv): Likewise.
4112         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
4113         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
4114         * tests/test-c-strcasestr.c (main): Likewise.
4115         * tests/test-c-strstr.c (main): Likewise.
4116         * tests/test-mbscasestr1.c (main): Likewise.
4117         * tests/test-mbscasestr2.c (main): Likewise.
4118         * tests/test-mbsstr1.c (main): Likewise.
4119         * tests/test-mbsstr2.c (main): Likewise.
4120         * tests/test-memmem.c (main): Likewise.
4121         * tests/test-strcasestr.c (main): Likewise.
4122         * tests/test-striconv.c (main): Likewise.
4123         * tests/test-striconveh.c (main): Likewise.
4124         * tests/test-striconveha.c (main): Likewise.
4125         * tests/test-strstr.c (main): Likewise.
4126
4127         * build-aux/git-version-gen: Adjust a comment and the Usage string.
4128
4129         bootstrap: sync from coreutils again
4130         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
4131
4132 2008-03-01  Jim Meyering  <meyering@redhat.com>
4133
4134         bootstrap: sync from coreutils
4135         * build-aux/bootstrap (update_po_files): Copy a .po file into place
4136         also when the target doesn't exist.
4137
4138 2008-03-01  Eric Blake  <ebb9@byu.net>
4139
4140         Fix bugs in last patch.
4141         * lib/memchr2.c (memchr2): Fix typo.
4142         * tests/test-memchr2.c: Test previous bug, and don't use GNU
4143         extension.
4144         Reported by Bruce Korb.
4145
4146         New module 'memchr2'.
4147         * modules/memchr2: New file.
4148         * modules/memchr2-tests: Likewise.
4149         * lib/memchr2.h: Likewise.
4150         * lib/memchr2.c: Likewise, based on memchr.c.
4151         * tests/test-memchr2.c: New test.
4152         * MODULES.html.sh (String handling): Add memchr2.
4153
4154 2008-02-29  Bruno Haible  <bruno@clisp.org>
4155
4156         * modules/freadseek-tests: New file.
4157         * tests/test-freadseek.sh: New file.
4158         * tests/test-freadseek.c: New file.
4159
4160         New module 'freadseek'.
4161         * modules/freadseek: New file.
4162         * lib/freadseek.h: New file.
4163         * lib/freadseek.c: New file.
4164         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
4165
4166 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
4167
4168         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
4169         wydawca.
4170
4171         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
4172         program_invocation_name and program_invocation_short_name are
4173         present.
4174
4175 2008-02-28  Bruno Haible  <bruno@clisp.org>
4176
4177         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
4178         * tests/test-freadptr.sh: Also test non-seekable stdin.
4179
4180 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
4181
4182         * build-aux/bootstrap (source_base, m4_base)
4183         (doc_base, tests_base): New variables.
4184         (gnulib_tool_options): Do not hardcode base directories, use
4185         the above variables instead.
4186
4187 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
4188
4189         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
4190
4191 2008-02-28  Bruno Haible  <bruno@clisp.org>
4192
4193         * modules/freadptr-tests: New file.
4194         * tests/test-freadptr.sh: New file.
4195         * tests/test-freadptr.c: New file.
4196
4197         New module 'freadptr'.
4198         * modules/freadptr: New file.
4199         * lib/freadptr.h: New file.
4200         * lib/freadptr.c: New file.
4201         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
4202
4203 2008-02-26  Karl Berry  <karl@freefriends.org>
4204
4205         Sync from Libtool:
4206         * libltdl/argz.c (argz_add, argz_count): New functions.
4207         * libltdl/argz.in.h: Declare them.
4208         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
4209
4210 2008-02-22  Bruno Haible  <bruno@clisp.org>
4211
4212         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
4213         is a pointer type.  Needed for HP-UX 10.
4214         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
4215         * doc/posix-functions/gmtime_r.texi: Likewise.
4216         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
4217
4218 2008-02-24  Bruno Haible  <bruno@clisp.org>
4219
4220         * modules/environ-tests: New file.
4221         * tests/test-environ.c: New file.
4222
4223         New module 'environ'.
4224         * modules/environ: New file.
4225         * lib/unistd.in.h (environ): New declaration.
4226         * m4/environ.m4: New file.
4227         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
4228         after use.
4229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
4230         HAVE_DECL_ENVIRON.
4231         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
4232         HAVE_DECL_ENVIRON.
4233         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
4234         wrong claim that 'environ' is missing on some systems.
4235         * modules/execute (Depends-on): Add environ.
4236         * lib/execute.c (environ): Remove fallback declaration.
4237         * modules/pipe (Depends-on): Add environ.
4238         * lib/pipe.c (environ): Remove fallback declaration.
4239         * modules/setenv (Depends-on): Add environ.
4240         * lib/setenv.c (environ): Remove fallback declaration.
4241         * modules/unsetenv (Depends-on): Add environ.
4242         * lib/unsetenv.c (environ): Remove fallback declaration.
4243         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
4244         m4/environ.m4.
4245         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
4246         (gl_PREREQ_UNSETENV): Likewise.
4247
4248 2008-02-24  Bruno Haible  <bruno@clisp.org>
4249
4250         * doc/posix-functions/environ.texi: Document the MacOS X problem.
4251
4252 2008-02-20  Bob Proulx  <bob@proulx.com>
4253
4254         Enable use of older two part flavor 'git describe'.
4255         * build-aux/git-version-gen: If using the older two part flavor of
4256         git version then recreate the third part now present in the
4257         newer three part flavor of git describe.
4258
4259 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
4260
4261         * lib/fts.c (fts_build): Typo correction to comment.
4262
4263 2008-02-17  Bruno Haible  <bruno@clisp.org>
4264
4265         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
4266         generating no-op conflicts.
4267
4268 2008-02-17  Bruno Haible  <bruno@clisp.org>
4269
4270         Speed up by 10%.
4271         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
4272         result_entries, rather than an index-based loop.
4273
4274 2008-02-17  Bruno Haible  <bruno@clisp.org>
4275
4276         Speed up by 25%.
4277         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
4278         'hashcode_cached'.
4279         (entry_create): New function.
4280         (entry_hashcode): Use the cached hashcode if possible.
4281         (read_changelog_file, try_split_merged_entry): Use entry_create.
4282
4283 2008-02-17  Bruno Haible  <bruno@clisp.org>
4284
4285         Speed up from O(n^2) to O(n) for long ChangeLog files.
4286         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
4287         (read_changelog_file): Change implementation of entries_reversed list
4288         to rbtreehash.
4289         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
4290
4291 2008-02-17  Bruno Haible  <bruno@clisp.org>
4292
4293         New option --split-merged-entry.
4294         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
4295         (find_paragraph_end, try_split_merged_entry): New functions.
4296         (long_options): Add option --split-merged-entry.
4297         (usage): Document option --split-merged-entry.
4298         (main): Implement option --split-merged-entry.
4299         Reported by Eric Blake.
4300
4301 2008-02-17  Bruno Haible  <bruno@clisp.org>
4302
4303         * lib/git-merge-changelog.c: Include c-strstr.h.
4304         (main): Support the "git pull --rebase" situation.
4305         * modules/git-merge-changelog (Depends-on): Add c-strstr.
4306         Reported by Eric Blake.
4307
4308 2008-02-16  Eric Blake  <ebb9@byu.net>
4309
4310         Avoid doubling \ in common case of "c-maybe" quoting style.
4311         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
4312         eliding outer quotes.
4313         * lib/quotearg.h: Document this.
4314         * tests/test-quotearg.c (result_strings, inputs, results_g)
4315         (flag_results, locale_results): Test it by adding a new string to
4316         each test group.
4317         (compare_strings): Test new string.
4318
4319 2008-02-13  Eric Blake  <ebb9@byu.net>
4320
4321         Avoid trigraph quoting in default output.
4322         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
4323         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
4324         unless explicitly requested.
4325         * tests/test-quotearg.c (flag_results, main): Add additional tests.
4326
4327 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
4328
4329         Don't rely on signed integer overflowing to negative value.
4330         * lib/getugroups.c (getugroups): Include <limits.h>.
4331         Instead, compare against INT_MAX, and increment only if the test passes.
4332
4333 2008-02-13  Jim Meyering  <meyering@redhat.com>
4334         and Eric Blake  <ebb9@byu.net>
4335
4336         Avoid shadowing warning and compile errors on Linux.
4337         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
4338         forwarding macros on Linux.
4339         (dcgettext): Define a stub, for Linux.
4340         (results_g, main): Avoid warnings.
4341
4342 2008-02-12  Eric Blake  <ebb9@byu.net>
4343
4344         Silence warning in last patch.
4345         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
4346
4347         Quotearg part 4: add tests, fix c-maybe colon quoting.
4348         * lib/quotearg.h: Improve documentation.
4349         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
4350         escapes when adding outer quotes.  When quoting trigraphs, use
4351         valid C notation.  When quoting NUL, omit extra characters if next
4352         character is not digit.  Alter prototype.
4353         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
4354         callers.
4355         * modules/quotearg-tests: New module.
4356         * tests/test-quotearg.c: New test.
4357
4358 2008-02-07  Eric Blake  <ebb9@byu.net>
4359
4360         Quotearg part 3: add flag to control outer quote elision.
4361         * lib/quotearg.h (c_maybe_quoting_style): New style.
4362         (enum quoting_flags): Better documentation of flags.
4363         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
4364         c-maybe style.
4365         (quotearg_buffer_restyled): Handle new flag to elide outer
4366         quotes.
4367
4368         Quotearg part 2: add flag that can control NUL elision.
4369         * lib/quotearg.h (set_quoting_flags): New prototype.
4370         * lib/quotearg.c (struct quoting_options): Add flag field.
4371         (set_quoting_flags): New function.
4372         (quotearg_buffer_restyled): Add flags parameter.
4373         (quotearg_alloc_mem): Set the flag if length cannot be returned.
4374         (quotearg_n_options): Set the flag, since length cannot be
4375         returned.
4376         (quoting_options_from_style): Default flags correctly.
4377
4378         Quotearg part 1: more wrappers, restore quotearg_char state.
4379         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
4380         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
4381         (quotearg_colon_mem): New wrappers.
4382         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
4383         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
4384         functions.
4385         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
4386         (quotearg_colon_mem): New functions.
4387
4388 2008-02-11  Bruno Haible  <bruno@clisp.org>
4389
4390         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
4391         library in the current directory: it does not work with parallel make.
4392         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4393
4394 2008-02-11  Bruno Haible  <bruno@clisp.org>
4395
4396         * .gitattributes: New file.
4397
4398 2008-02-11  Jim Meyering  <meyering@redhat.com>
4399
4400         useless-if-before-free: Fix reversed exit values.
4401         * build-aux/useless-if-before-free: Use correct values
4402         for EXIT_MATCH and EXIT_NO_MATCH.
4403
4404         * build-aux/useless-if-before-free: Close stdout carefully.
4405
4406 2008-02-10  Bruno Haible  <bruno@clisp.org>
4407
4408         New module 'git-merge-changelog'.
4409         * modules/git-merge-changelog: New file.
4410         * lib/git-merge-changelog.c: New file.
4411
4412 2008-02-10  Jim Meyering  <meyering@redhat.com>
4413
4414         useless-if-before-free: New option: --list (-l).
4415
4416         useless-if-before-free: Don't exit immediately upon open failure.
4417         * build-aux/useless-if-before-free: Exit 2 for errors.
4418         Upon failure to open a file, don't exit immediately.
4419         Rather, just warn and continue with any remaining files.
4420
4421 2008-02-10  Bruno Haible  <bruno@clisp.org>
4422
4423         New abstract list operation 'node_set_value'.
4424         * lib/gl_list.h (gl_list_node_set_value): New function.
4425         (struct gl_list_implementation): New field node_set_value.
4426         * lib/gl_list.c (gl_list_node_set_value): New function.
4427         * lib/gl_array_list.c (gl_array_node_set_value): New function.
4428         (gl_array_list_implementation): Update.
4429         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
4430         (gl_carray_list_implementation): Update.
4431         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
4432         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
4433         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
4434         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
4435         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
4436         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
4437         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4438         Update.
4439         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
4440         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
4441         (gl_sublist_list_implementation): Update.
4442
4443 2008-02-10  Bruno Haible  <bruno@clisp.org>
4444
4445         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
4446         Needed when ELEMENT is #defined to 'some_type *'.
4447
4448 2008-02-10  Jim Meyering  <meyering@redhat.com>
4449
4450         New script and module: useless-if-before-free
4451         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
4452         * build-aux/useless-if-before-free: New file.
4453         * modules/useless-if-before-free: New file.
4454
4455         * build-aux/gitlog-to-changelog: Use committer date, not author date.
4456
4457         xstrtol_error: Fix typo.
4458         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
4459         s/exit_failure/exit_status/.
4460
4461 2008-02-09  Jim Meyering  <meyering@redhat.com>
4462
4463         New script and module: gitlog-to-changelog
4464         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
4465         * modules/gitlog-to-changelog: New file.
4466         * build-aux/gitlog-to-changelog: New file.
4467
4468 2008-02-08  Jim Meyering  <meyering@redhat.com>
4469
4470         Avoid two "parameter unused" warnings.
4471         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
4472         Mark "st" as used.
4473
4474         Use "git COMMAND", not "git-COMMAND".
4475         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
4476         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
4477         * build-aux/git-version-gen: Use "git status", not "git-status".
4478
4479 2008-02-07  Bruno Haible  <bruno@clisp.org>
4480
4481         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
4482         Avoids a crash on Windows Vista.
4483         Reported by Adam Strzelecki <ono@java.pl> via
4484         Simon Josefsson <simon@josefsson.org>.
4485
4486 2008-02-06  Bruno Haible  <bruno@clisp.org>
4487
4488         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
4489         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
4490         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
4491         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
4492         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
4493         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4494         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
4495         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
4496         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4497         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4498         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4499         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4500         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4501         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4502         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4503         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
4504         left-adjust flag.
4505         * tests/test-snprintf-posix.h (test_function): Likewise.
4506         * tests/test-sprintf-posix.h (test_function): Likewise.
4507         * tests/test-vasprintf-posix.c (test_function): Likewise.
4508         * doc/posix-functions/fprintf.texi: Update.
4509         * doc/posix-functions/printf.texi: Update.
4510         * doc/posix-functions/snprintf.texi: Update.
4511         * doc/posix-functions/sprintf.texi: Update.
4512         * doc/posix-functions/vfprintf.texi: Update.
4513         * doc/posix-functions/vprintf.texi: Update.
4514         * doc/posix-functions/vsnprintf.texi: Update.
4515         * doc/posix-functions/vsprintf.texi: Update.
4516         Reported by Peter Fales <psfales@alcatel-lucent.com>.
4517
4518 2008-02-06  Bruno Haible  <bruno@clisp.org>
4519
4520         Fix bug introduced on 2008-01-26.
4521         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
4522
4523 2008-02-06  Bruno Haible  <bruno@clisp.org>
4524
4525         Fix bug introduced on 2007-06-10.
4526         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
4527         !NEED_PRINTF_FLAG_ZERO.
4528
4529 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
4530
4531         getloadavg: use libperfstat on AIX5
4532         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
4533
4534 2008-02-03  Bruno Haible  <bruno@clisp.org>
4535
4536         * lib/diffseq.h: Add comments about required #includes.
4537         Reported by Michael Biggs <gnulib@doubleplum.net>.
4538
4539 2008-02-01  Bruno Haible  <bruno@clisp.org>
4540
4541         * users.txt: Add gnuit.
4542
4543 2008-01-31  Bruno Haible  <bruno@clisp.org>
4544
4545         * lib/md4.c (set_uint32): Mark as inline.
4546         * lib/md5.c (set_uint32): Likewise.
4547         * lib/sha1.c (set_uint32): Likewise.
4548         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
4549         * m4/md5.m4 (gl_MD5): Likewise.
4550         * m4/sha1.m4 (gl_SHA1): Likewise.
4551
4552 2008-01-31  Jim Meyering  <meyering@redhat.com>
4553
4554         Use "sizeof VAR", rather than a literal "4".
4555         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
4556         * lib/md4.c (md4_read_ctx): Likewise.
4557         * lib/sha1.c (sha1_read_ctx): Likewise.
4558
4559 2008-01-31  Simon Josefsson  <simon@josefsson.org>
4560
4561         * tests/test-sha1.c: New file, based on test-md5.c.
4562
4563         * modules/crypto/sha1-tests: New file.
4564
4565 2008-01-31  Simon Josefsson  <simon@josefsson.org>
4566
4567         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
4568
4569 2008-01-31  Jim Meyering  <meyering@redhat.com>
4570
4571         Prefer "sizeof v" over the equivalent "4".
4572         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
4573         * lib/md5.c (set_uint32): Likewise.
4574         * lib/sha1.c (set_uint32): Likewise.
4575
4576 2008-01-31  Simon Josefsson  <simon@josefsson.org>
4577
4578         * lib/sha1.c (set_uint32): Mark function as static.
4579
4580 2008-01-31  Simon Josefsson  <simon@josefsson.org>
4581
4582         md2: clarify comments to say that alignment is not required.
4583         * lib/md2.h: Remove warning about alignment in comment.
4584         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
4585         never been required.
4586
4587 2008-01-31  Simon Josefsson  <simon@josefsson.org>
4588
4589         md4: adapt alignment constraint fix from sha1.
4590         * lib/md4.c (set_uint32): New function, from sha1.c
4591         (md4_read_ctx): Use it.
4592         (md4_finish_ctx): Doc fix.
4593         * lib/md4.h: Doc fix.
4594
4595 2008-01-31  Simon Josefsson  <simon@josefsson.org>
4596
4597         md5: adapt alignment constraint fix from sha1.
4598         * lib/md5.c (set_uint32): New function, from sha1.c
4599         (md5_read_ctx): Use it.
4600         (md5_finish_ctx): Doc fix.
4601         * lib/md5.h: Doc fix.
4602
4603 2008-01-30  Peter Palfrader  <weasel@debian.org>
4604
4605         sha1: remove the result buffer alignment constraint
4606         * lib/sha1.c (set_uint32): New function.
4607         (sha1_read_ctx): Rewrite to remove the result buffer alignment
4608         constraint.
4609         (sha1_finish_ctx): Remove comment warning about alignment constraint.
4610         * lib/sha1.h: Likewise.
4611
4612 2008-01-30  Andreas Schwab  <schwab@suse.de>
4613             Bruno Haible  <bruno@clisp.org>
4614
4615         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
4616         correct definition of LDBL_MIN_EXP.
4617
4618 2008-01-30  Karl Berry  <karl@gnu.org>
4619
4620         * config/srclist-update: try to preserve x bit on updates.
4621         * config/srclistvars.sh: update for karl.
4622
4623 2008-01-29  Jim Meyering  <meyering@redhat.com>
4624
4625         vasnprintf.c: Avoid warning about unused label
4626         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
4627         "overflow" label definition and associated code with the
4628         same cpp condition that guards the sole use of that label.
4629
4630 2008-01-26  Bruno Haible  <bruno@clisp.org>
4631
4632         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
4633         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
4634         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
4635         * lib/isnanl-nolibm.h (isnanl): Likewise.
4636         Reported by Paul Eggert <eggert@cs.ucla.edu>.
4637
4638 2008-01-26  Bruno Haible  <bruno@clisp.org>
4639
4640         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
4641         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
4642
4643 2008-01-26  Bruno Haible  <bruno@clisp.org>
4644
4645         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
4646         GCC >= 4.0 built-in.
4647         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
4648
4649 2008-01-26  Bruno Haible  <bruno@clisp.org>
4650
4651         Rename isnan, applicable to 'double' only, to isnand.
4652         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
4653         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
4654         (configure.ac): Update.
4655         (Include): Replace "isnan.h" with "isnand.h".
4656         * m4/isnand.m4: Renamed from m4/isnan.m4.
4657         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
4658         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
4659         instead of isnan.c.
4660         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
4661         instead of HAVE_ISNAN_IN_LIBC.
4662         (isnand): Renamed from isnan.
4663         * lib/isnand.c: New file.
4664         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
4665         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
4666         (Makefile.am): Update.
4667         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
4668         Include isnand.h instead of isnan.h.
4669         (main): Test isnand instead of isnan.
4670         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
4671         isnan-nolibm.
4672         * modules/frexp (Depends-on): Likewise.
4673         * modules/frexp-tests (Depends-on): Likewise.
4674         * modules/frexp-nolibm (Depends-on): Likewise.
4675         * modules/frexp-nolibm-tests (Depends-on): Likewise.
4676         * modules/isfinite (Depends-on): Likewise.
4677         * modules/round-tests (Depends-on): Likewise.
4678         * modules/signbit (Depends-on): Likewise.
4679         * modules/signbit-tests (Depends-on): Likewise.
4680         * modules/snprintf-posix (Depends-on): Likewise.
4681         * modules/sprintf-posix (Depends-on): Likewise.
4682         * modules/trunc-tests (Depends-on): Likewise.
4683         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
4684         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4685         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4686         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4687         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4688         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4689         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4690         * modules/vasnprintf-posix (Depends-on): Likewise.
4691         * modules/vasprintf-posix (Depends-on): Likewise.
4692         * modules/vfprintf-posix (Depends-on): Likewise.
4693         * modules/vsnprintf-posix (Depends-on): Likewise.
4694         * modules/vsprintf-posix (Depends-on): Likewise.
4695         * lib/frexp.c: Include isnand.h instead of isnan.h.
4696         (ISNAN): Set to isnand instead of isnan.
4697         * lib/isfinite.c: Include isnand.h instead of isnan.h.
4698         (gl_isfinited): Use isnand instead of isnan.
4699         * lib/signbitd.c: Include isnand.h instead of isnan.h.
4700         (gl_signbitd): Use isnand instead of isnan.
4701         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
4702         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
4703         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
4704         (main): Use isnand instead of isnan.
4705         * tests/test-round1.c: Include isnand.h.
4706         (main): Use isnand instead of isnan.
4707         * tests/test-round2.c: Include isnand.h instead of isnan.h.
4708         (ISNAN): Set to isnand instead of isnan.
4709         * tests/test-trunc1.c: Include isnand.h.
4710         (main): Use isnand instead of isnan.
4711         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
4712         (equal): Use isnand instead of isnan.
4713         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
4714         isnand-nolibm.
4715         * NEWS: Mention the change.
4716
4717 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4718             Bruno Haible  <bruno@clisp.org>
4719
4720         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
4721         the GCC builtins for signbits are present and set
4722         REPLACE_SIGNBIT_USING_GCC if so.
4723         * lib/math.in.h (signbit): Define using GCC builtins if
4724         REPLACE_SIGNBIT_USING_GCC is set.
4725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
4726         REPLACE_SIGNBIT_USING_GCC.
4727         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
4728
4729 2008-01-25  Jim Meyering  <meyering@redhat.com>
4730
4731         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
4732         * lib/poll.c: Include <config.h>, not "config.h".
4733         * tests/test-getaddrinfo.c: Likewise.
4734
4735 2008-01-25  Simon Josefsson  <simon@josefsson.org>
4736
4737         * modules/sockets-tests: New file.
4738
4739 2008-01-24  Simon Josefsson  <simon@josefsson.org>
4740
4741         * modules/sockets: New module, can be used to call WSA_Startup and
4742         WSA_Cleanup when needed.
4743
4744         * lib/sockets.h, lib/sockets.c: New files.
4745
4746         * m4/sockets.m4: New file.
4747
4748         * tests/test-sockets.c: New file.
4749
4750 2008-01-19  Bruno Haible  <bruno@clisp.org>
4751
4752         * doc/posix-headers: Renamed from doc/headers.
4753         * doc/posix-functions: Renamed from doc/functions.
4754         * doc/gnulib.texi: Update.
4755
4756 2008-01-19  Bruno Haible  <bruno@clisp.org>
4757
4758         * doc/glibc-functions/strcasestr.texi: Include contents of
4759         doc/functions/strcasestr.texi, fixing the list of platforms.
4760         * doc/functions/strcasestr.texi: Remove file.
4761
4762 2008-01-19  Bruno Haible  <bruno@clisp.org>
4763
4764         * doc/glibc-functions/memmem.texi: Include contents of
4765         doc/functions/memmem.texi.
4766         * doc/functions/memmem.texi: Remove file.
4767
4768 2008-01-18  Bruno Haible  <bruno@clisp.org>
4769
4770         * doc/glibc-functions/*.texi: New files.
4771         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
4772         to use the new files.
4773
4774 2008-01-17  Bruno Haible  <bruno@clisp.org>
4775
4776         * tests/test-gethostname.c (main): Fix printf statement.
4777
4778 2008-01-17  Simon Josefsson  <simon@josefsson.org>
4779
4780         * modules/gethostname-tests: New file.
4781
4782         * tests/test-gethostname.c: New file.
4783
4784 2008-01-17  Simon Josefsson  <simon@josefsson.org>
4785
4786         * lib/gethostname.c: Include string.h unconditionally, strncpy is
4787         used by the UNAME case.  Reported by Bruno Haible
4788         <bruno@clisp.org>.
4789
4790 2008-01-17  Eric Blake  <ebb9@byu.net>
4791
4792         Convert c-strcasestr to be more efficient.
4793         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
4794         (Depends-on): Add c-strcase, remove malloca, strnlen.
4795         * tests/test-c-strcasestr.c (main): Enhance test.
4796         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
4797
4798 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
4799
4800         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
4801         Use it in creating po/Makevars.
4802
4803 2008-01-15  Simon Josefsson  <simon@josefsson.org>
4804
4805         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
4806         Applications that requires it should initialize libgcrypt
4807         manually.
4808
4809 2008-01-16  Simon Josefsson  <simon@josefsson.org>
4810
4811         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
4812
4813 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
4814
4815         Fix problem with getdate on mingw32 reported by Simon Josefsson
4816         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
4817         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
4818         tzname", when deciding whether to declare tzname.
4819         * lib/strftime.c (tzname): Likewise.
4820
4821 2008-01-15  Bruno Haible  <bruno@clisp.org>
4822
4823         Work around a MacOS X 10.5 bug in frexpl().
4824         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
4825         * doc/functions/frexpl.texi: Document the bug.
4826         Reported by Elias Pipping <pipping@gentoo.org>.
4827
4828 2008-01-14  Eric Blake  <ebb9@byu.net>
4829
4830         Touch up previous patch.
4831         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
4832         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
4833
4834         Convert strcasestr module to use Two-Way algorithm.
4835         * modules/strcasestr-simple: New module, based on the old
4836         strcasestr, but with Two-Way rather than KMP.
4837         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
4838         * lib/string.in.h (rpl_strcasestr): Declare.
4839         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
4840         performance.
4841         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
4842         * modules/string (Makefile.am): Support strcasestr.
4843         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
4844         * modules/strcasestr-tests (Depends-on): Check for alarm.
4845         * tests/test-strcasestr.c: Augment test.
4846         * lib/str-two-way.h: Clean up stray macro.
4847         * NEWS: Document new module.
4848         * MODULES.html.sh (string handling): Likewise.
4849         * doc/functions/strcasestr.texi: New file.
4850         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
4851         here, since it is not a POSIX function.
4852
4853 2008-01-14  Colin Watson  <cjwatson@debian.org>
4854             Bruno Haible  <bruno@clisp.org>
4855
4856         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
4857         works fine; if not, set REPLACE_STRSIGNAL.
4858         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
4859         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4860         REPLACE_STRSIGNAL.
4861         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
4862         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
4863         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
4864
4865 2008-01-14  Bruno Haible  <bruno@clisp.org>
4866
4867         * modules/strsignal (Include): Change to <string.h>.
4868
4869 2008-01-14  Colin Watson  <cjwatson@debian.org>
4870
4871         * modules/argp (Notice): Add a notice recommending to change
4872         XGETTEXT_OPTIONS.
4873         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
4874
4875 2008-01-13  Colin Watson  <cjwatson@debian.org>
4876
4877         * modules/strsignal-tests: New file.
4878         * tests/test-strsignal.c: New file.
4879
4880         * lib/strsignal.c: New file, from glibc with modifications.
4881         * lib/siglist.h: New file, from glibc with modifications.
4882         * lib/string.in.h (strsignal): New declaration.
4883         * m4/strsignal.m4: New file.
4884         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4885         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
4886         * modules/strsignal: New file.
4887         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
4888         HAVE_DECL_STRSIGNAL.
4889
4890 2008-01-13  Bruno Haible  <bruno@clisp.org>
4891
4892         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
4893         locale encoding is not ASCII. Needed for OpenBSD 4.0.
4894         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4895         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4896
4897 2008-01-13  Bruno Haible  <bruno@clisp.org>
4898
4899         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
4900         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
4901         * lib/argp.h (__attribute__): Likewise.
4902         * lib/c-stack.c (__attribute__): Likewise.
4903         * lib/error.h (__attribute__): Likewise.
4904         * lib/fts.c (__attribute__): Likewise.
4905         * lib/openat.h (__attribute__): Likewise.
4906         * lib/stdio.in.h (__attribute__): Likewise.
4907         * lib/string.in.h (__attribute__): Likewise.
4908         * lib/utimens.c (__attribute__): Likewise.
4909         * lib/vasnprintf.h (__attribute__): Likewise.
4910         * lib/xalloc.h (__attribute__): Likewise.
4911         * lib/xprintf.h (__attribute__): Likewise.
4912         * lib/xstrtol.h (__attribute__): Likewise.
4913         * lib/xvasprintf.h (__attribute__): Likewise.
4914
4915 2008-01-12  Bruno Haible  <bruno@clisp.org>
4916
4917         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
4918         * doc/glibc-headers/a.out.texi: New file.
4919         * doc/glibc-headers/aliases.texi: New file.
4920         * doc/glibc-headers/alloca.texi: New file.
4921         * doc/glibc-headers/ar.texi: New file.
4922         * doc/glibc-headers/argp.texi: New file.
4923         * doc/glibc-headers/argz.texi: New file.
4924         * doc/glibc-headers/byteswap.texi: New file.
4925         * doc/glibc-headers/crypt.texi: New file.
4926         * doc/glibc-headers/endian.texi: New file.
4927         * doc/glibc-headers/envz.texi: New file.
4928         * doc/glibc-headers/err.texi: New file.
4929         * doc/glibc-headers/error.texi: New file.
4930         * doc/glibc-headers/execinfo.texi: New file.
4931         * doc/glibc-headers/fpu_control.texi: New file.
4932         * doc/glibc-headers/fstab.texi: New file.
4933         * doc/glibc-headers/fts.texi: New file.
4934         * doc/glibc-headers/getopt.texi: New file.
4935         * doc/glibc-headers/ieee754.texi: New file.
4936         * doc/glibc-headers/ifaddrs.texi: New file.
4937         * doc/glibc-headers/libintl.texi: New file.
4938         * doc/glibc-headers/mcheck.texi: New file.
4939         * doc/glibc-headers/mntent.texi: New file.
4940         * doc/glibc-headers/obstack.texi: New file.
4941         * doc/glibc-headers/paths.texi: New file.
4942         * doc/glibc-headers/printf.texi: New file.
4943         * doc/glibc-headers/pty.texi: New file.
4944         * doc/glibc-headers/resolv.texi: New file.
4945         * doc/glibc-headers/shadow.texi: New file.
4946         * doc/glibc-headers/sysexits.texi: New file.
4947         * doc/glibc-headers/ttyent.texi: New file.
4948
4949 2008-01-12  Jim Meyering  <meyering@redhat.com>
4950
4951         announce-gen: emit Gnulib's git-based version string.
4952         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
4953         New option --gnulib-version=V, where V is expected to be
4954         the output of running git describe in the gnulib directory.
4955         (get_tool_versions): Request feedback on xdelta.  I suspect it's
4956         not useful, and plan to stop publishing an xdelta file with each
4957         coreutils release.
4958
4959         * build-aux/announce-gen: Also check for lzma-compressed files.
4960
4961 2008-01-11  Bruno Haible  <bruno@clisp.org>
4962
4963         * tests/test-memmem.c (main): Increase maximum allowed time.
4964         * tests/test-strstr.c (main): Likewise.
4965
4966 2008-01-11  Bruno Haible  <bruno@clisp.org>
4967
4968         * doc/functions/memmem.texi: Add more precisions about platforms.
4969         * doc/functions/strstr.texi: Likewise.
4970
4971 2008-01-10  Eric Blake  <ebb9@byu.net>
4972
4973         * m4/strstr.m4: Delete cruft from copy-n-paste.
4974         Reported by Bruno Haible.
4975
4976 2008-01-10  Bruno Haible  <bruno@clisp.org>
4977
4978         Make c-strstr rely on strstr.
4979         * lib/c-strstr.c: Don't include str-kmp.h.
4980         (c_strstr): Define in terms of strstr.
4981         * modules/c-strstr (Files): Remove lib/str-kmp.h.
4982         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
4983
4984 2008-01-10  Bruno Haible  <bruno@clisp.org>
4985
4986         * doc/gnulib.texi (String Functions in C Locale): New section.
4987         * doc/c-ctype.texi: New file.
4988         * doc/c-strcase.texi: New file.
4989         * doc/c-strcaseeq.texi: New file.
4990         * doc/c-strcasestr.texi: New file.
4991         * doc/c-strstr.texi: New file.
4992         * doc/c-strtod.texi: New file.
4993         * doc/c-strtold.texi: New file.
4994
4995 2008-01-10  Eric Blake  <ebb9@byu.net>
4996
4997         * lib/relocatable.h: Fix a comment.
4998
4999 2008-01-10  Eric Blake  <ebb9@byu.net>
5000
5001         Share two-way algorithm.
5002         * lib/str-two-way.h: New file, merged from...
5003         * lib/memmem.c: ...here...
5004         * lib/strstr.c: ...and here.
5005         * modules/memmem (Files): Use it.
5006         * modules/strstr (Files): Likewise.
5007
5008         Avoid quadratic strstr implementations.
5009         * lib/strstr.c: New file.
5010         * m4/strstr.m4: Likewise.
5011         * modules/strstr: Likewise.
5012         * modules/strstr-tests: Likewise.
5013         * tests/test-strstr.c: Likewise.
5014         * lib/string.in.h (rpl_strstr): Declare.
5015         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
5016         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
5017         * modules/string (Makefile.am): Likewise.
5018         * MODULES.html.sh (string handling): Mention new module.
5019         * doc/functions/strstr.texi (strstr): Document the bug.
5020
5021 2008-01-10  Bruno Haible  <bruno@clisp.org>
5022
5023         * lib/relocatable.h (relocate): State whether result is freshly
5024         allocated or not.
5025         * lib/relocatable.c (relocate): Return a freshly allocated string
5026         instead of a pointer to a privately held string.
5027         Reported by Sylvain Beucler <beuc@gnu.org>.
5028
5029 2008-01-10  Colin Watson  <cjwatson@debian.org>
5030
5031         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
5032         s/S_ISNLK/S_ISLNK/.
5033
5034 2008-01-09  Bruno Haible  <bruno@clisp.org>
5035
5036         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
5037         and other files.
5038         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
5039         if it's only a guess.
5040         * modules/memmem: Simplify by depending on memmem-simple.
5041
5042 2008-01-09  Bruno Haible  <bruno@clisp.org>
5043
5044         Work around OpenBSD 4.0 tdelete() bug.
5045         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
5046         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
5047         macros and don't redefine the enum values.
5048         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
5049         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
5050         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
5051
5052 2008-01-09  Bruno Haible  <bruno@clisp.org>
5053
5054         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
5055         (main): Don't perform the tests if setlocale did not install a UTF-8
5056         locale. Needed on OpenBSD 4.0.
5057         * modules/wcwidth-tests (Depends-on): Add localcharset.
5058
5059 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
5060
5061         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
5062         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
5063         * NEWS: announce this.
5064         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
5065
5066 2008-01-09  Simon Josefsson  <simon@josefsson.org>
5067         and Eric Blake  <ebb9@byu.net>
5068
5069         Add memmem-simple module.
5070         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
5071         (gl_FUNC_MEMMEM): Separate performance from presence checks.
5072         * modules/memmem-simple: New file.
5073         * modules/memmem (Description): Tweak.
5074         * MODULES.html.sh (string handling): Mention new module.
5075         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
5076         addressed by memmem-simple.
5077         * NEWS: Document the difference.
5078
5079 2008-01-09  Eric Blake  <ebb9@byu.net>
5080
5081         Give gcc some memmem optimization hints.
5082         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
5083         (strcasestr): Declare as pure.
5084         * modules/memmem (Maintainer): Claim my implementation.
5085
5086 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5087
5088         Support AIX 6.1 and higher.
5089         * build-aux/config.libpath: Likewise.
5090         * build-aux/config.rpath: Likewise.
5091
5092 2008-01-08  Jim Meyering  <meyering@redhat.com>
5093             Bruno Haible  <bruno@clisp.org>
5094
5095         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
5096         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
5097         Reported by Peter Fales in
5098         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
5099
5100 2008-01-08  Bruno Haible  <bruno@clisp.org>
5101
5102         * modules/unictype/category-of (Depends-on): Add
5103         unictype/category-none.
5104         * modules/unictype/category-and-tests (Depends-on): Add
5105         unictype/category-{L,N,Lu,Nd}.
5106         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
5107         * modules/unictype/category-or-tests (Depends-on): Add
5108         unictype/category-{L,N}.
5109         * modules/unictype/category-name-tests (Depends-on): Add
5110         unictype/category-{Z,Nl}.
5111         Reported by Simon Josefsson.
5112
5113 2008-01-08  Bruno Haible  <bruno@clisp.org>
5114
5115         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
5116         convention better.
5117         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
5118         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
5119         Reported by Peter Miller <millerp@canb.auug.org.au>.
5120
5121 2008-01-08  Eric Blake  <ebb9@byu.net>
5122
5123         Rewrite memmem to guarantee linear complexity without malloc.
5124         * lib/memmem.c (memmem): Use Two-Way rather than
5125         Knuth-Morris-Pratt, to allow O(1) space usage.
5126         (critical_factorization, two_way_short_needle)
5127         (two_way_long_needle): New functions.
5128         (knuth_morris_pratt): Delete.
5129         * modules/memmem (Depends-on): No longer need malloca or stdbool.
5130         Add stdint.
5131         * tests/test-memmem.c (main): Add tests for periodic needle and
5132         sublinear performance.
5133         * doc/functions/memmem.texi (memmem): Document other deficiencies
5134         in cygwin and older glibc.
5135
5136 2008-01-08  Bruno Haible  <bruno@clisp.org>
5137
5138         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
5139         augmentation.
5140
5141 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
5142
5143         Add a configure time option: --disable-acl.
5144         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
5145         AC_ARG_ENABLE(acl).
5146
5147 2008-01-06  Simon Josefsson  <simon@josefsson.org>
5148
5149         * tests/test-localename.c: Don't include obsolete "setenv.h".
5150
5151         * modules/localename-tests (Depends-on): Need unsetenv.
5152
5153 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5154
5155         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
5156
5157 2008-01-06  Colin Watson  <cjwatson@debian.org>
5158
5159         * users.txt: Add man-db.
5160
5161 2008-01-07  Bruno Haible  <bruno@clisp.org>
5162
5163         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
5164         previous section name.
5165
5166 2008-01-07  Bruno Haible  <bruno@clisp.org>
5167
5168         * lib/progname.c (set_program_name): Don't strip off a leading
5169         "lt-" prefix outside a .libs directory.
5170         Suggested by Paul Eggert.
5171
5172 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
5173             Bruno Haible  <bruno@clisp.org>
5174
5175         Improve memory cleanup in 'relocatable' module.
5176         * lib/relocatable.h (compute_curr_prefix): Change return type to
5177         'char *'.
5178         * lib/relocatable.c (compute_curr_prefix): Change return type to
5179         'char *'. Free curr_installdir after use.
5180         (relocate): Free curr_prefix_better after use.
5181         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
5182
5183 2008-01-01  Bruno Haible  <bruno@clisp.org>
5184
5185         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
5186         failure on older glibc systems.
5187         Reported by Peter Fales <psfales@alcatel-lucent.com>.
5188
5189 2008-01-05  Eric Blake  <ebb9@byu.net>
5190
5191         Avoid quadratic system memmem.
5192         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
5193         Reported by Ralf Wildenhues.
5194
5195         Fix memmem test for mingw.
5196         * modules/memmem-tests (configure.ac): Check for alarm.
5197         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
5198         it.
5199         * doc/functions/memmem.texi: New file.
5200         * doc/gnulib.texi (Function Substitutes): Add memmem.
5201         Reported by Bruno Haible.
5202
5203 2008-01-04  Bruno Haible  <bruno@clisp.org>
5204
5205         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
5206         Require gl_HEADER_STRINGS_H_DEFAULTS, not
5207         gl_HEADER_STRING_H_DEFAULTS.
5208
5209 2008-01-04  Eric Blake  <ebb9@byu.net>
5210
5211         Shorten duration of memmem test.
5212         * tests/test-memmem.c (main): Use alarm to declare failure if test
5213         is taking too long.
5214         Reported by Ralf Wildenhues.
5215
5216 2007-12-21  Simon Josefsson  <simon@josefsson.org>
5217
5218         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
5219         string, needed by strerror.
5220
5221 2008-01-03  Colin Watson  <cjwatson@debian.org>
5222             Bruno Haible  <bruno@clisp.org>
5223
5224         * doc/gnulib-tool.texi (Localization): New section.
5225
5226 2008-01-02  Bruno Haible  <bruno@clisp.org>
5227
5228         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
5229         variables to 'unsigned char *' type.
5230         Reported by Paul Eggert.
5231
5232 2008-01-02  Jim Meyering  <jim@meyering.net>
5233
5234         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
5235
5236 2007-12-31  Jim Meyering  <jim@meyering.net>
5237
5238         Avoid use of private FTS type name.
5239         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
5240
5241 2007-12-30  Karl Berry  <karl@gnu.org>
5242
5243         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
5244         work around defect in Texinfo and/or the standalone Info browser.
5245
5246 2007-12-30  Bruno Haible  <bruno@clisp.org>
5247
5248         Unify 5 copies of the KMP code.
5249         * lib/str-kmp.h: New file.
5250         * lib/c-strcasestr.c: Include str-kmp.h.
5251         (knuth_morris_pratt): Remove function.
5252         (c_strcasestr): Update.
5253         * lib/c-strstr.c: Include str-kmp.h.
5254         (knuth_morris_pratt): Remove function.
5255         (c_strcasestr): Update.
5256         * lib/mbscasestr.c: Include str-kmp.h.
5257         (knuth_morris_pratt_unibyte): Remove function.
5258         * lib/mbsstr.c: Include str-kmp.h.
5259         (knuth_morris_pratt_unibyte): Remove function.
5260         * lib/strcasestr.c: Include str-kmp.h.
5261         (knuth_morris_pratt): Remove function.
5262         (strcasestr): Update.
5263         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
5264         * modules/c-strstr (Files): Likewise.
5265         * modules/mbscasestr (Files): Likewise.
5266         * modules/mbsstr (Files): Likewise.
5267         * modules/strcasestr (Files): Likewise.
5268         Suggested by Paul Eggert.
5269
5270 2007-12-30  Bruno Haible  <bruno@clisp.org>
5271
5272         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
5273         defined.
5274
5275 2007-12-30  Bruno Haible  <bruno@clisp.org>
5276
5277         * lib/xmalloca.h: Include xalloc.h.
5278         (xnmalloca): New macro.
5279
5280 2007-12-30  Bruno Haible  <bruno@clisp.org>
5281
5282         * lib/malloca.h (nmalloca): New macro.
5283         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
5284         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
5285         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
5286         knuth_morris_pratt_multibyte): Likewise.
5287         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
5288         knuth_morris_pratt_multibyte): Likewise.
5289         * lib/memmem.c (knuth_morris_pratt): Likewise.
5290         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
5291
5292 2007-12-25  Bruno Haible  <bruno@clisp.org>
5293
5294         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
5295         * lib/glob.c: Don't include openat.h.
5296         (link_exists2_p): Add back the code that deals with the
5297         !GLOB_ALTDIRFUNC case.
5298         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
5299         let it do the filename concatenation.
5300         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
5301         * modules/glob (Depends-on): Remove openat.
5302
5303 2007-12-31  Bruno Haible  <bruno@clisp.org>
5304
5305         * modules/dirfd (License): Change to LGPLv2+.
5306         Approved by Jim Meyering.
5307
5308 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5309
5310         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
5311         when multiplying M by sizeof (size_t).
5312
5313 2007-12-10  Martin Lambers  <marlam@marlam.de>
5314
5315         Override getpagesize on mingw.
5316         * lib/getpagesize.c: New file.
5317         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
5318         * modules/getpagesize (Files): Add lib/getpagesize.c.
5319         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
5320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5321         REPLACE_GETPAGESIZE.
5322         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
5323
5324 2007-12-25  Bruno Haible  <bruno@clisp.org>
5325
5326         * modules/localcharset (Notice): New field.
5327         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
5328         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
5329
5330 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5331             Bruno Haible  <bruno@clisp.org>
5332
5333         Avoid using the syntax symbol() in formatted documentation.
5334         * MODULES.html.sh (func_module): When replacing symbol() with a
5335         hyperlink, remove the parentheses. Show an error if some remain.
5336         Recognize and render the '...' syntax.
5337         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
5338         Rework. Add paragraph about GCC's inlining.
5339         * doc/alloca.texi: Likewise.
5340         * doc/error.texi: Remove parentheses from symbol reference.
5341         * doc/gnulib-intro.texi: Likewise.
5342         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
5343         * modules/fnmatch (Description): Reword to say "the ... function".
5344         * modules/full-read (Description): Likewise.
5345         * modules/full-write (Description): Likewise.
5346         * modules/safe-read (Description): Likewise.
5347         * modules/safe-write (Description): Likewise.
5348         * modules/strchrnul (Description): Likewise.
5349         * modules/trim (Description): Likewise.
5350         * modules/error (Description): Remove parentheses from symbol
5351         references.
5352         * modules/verror (Description): Likewise.
5353         Reported by Karl Berry.
5354
5355 2007-12-25  Bruno Haible  <bruno@clisp.org>
5356
5357         Fixup after 2007-10-16 commit.
5358         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
5359
5360 2007-12-24  Bruno Haible  <bruno@clisp.org>
5361
5362         Make --enable-relocatable work with DESTDIR.
5363         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
5364         to compute installdir from destprog.
5365         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
5366         also set the RELOC_DESTDIR variable.
5367         Reported by Левашев Иван <octagram@bluebottle.com>.
5368
5369 2007-12-24  Bruno Haible  <bruno@clisp.org>
5370
5371         Fix link error due to xalloc_die().
5372         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
5373         of xreadlink.
5374         * lib/relocwrapper.c: Update comments.
5375         * build-aux/install-reloc: Remove xreadlink.c from file list.
5376         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
5377         xreadlink.c.
5378         Reported by Левашев Иван <octagram@bluebottle.com>.
5379
5380 2007-12-24  Bruno Haible  <bruno@clisp.org>
5381
5382         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
5383         * lib/setenv.h: Remove file.
5384         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
5385         lib/setenv.h.
5386         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
5387         (Depends-on): Add stdlib.
5388         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
5389         gl_FUNC_UNSETENV.
5390         (Include): Replace setenv.h with <stdlib.h>.
5391         * modules/unsetenv: New file.
5392         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
5393         * lib/unsetenv.c: Include <stdlib.h> first.
5394         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
5395         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
5396         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
5397         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
5398         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
5399         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
5400         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
5401         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
5402         * doc/functions/unsetenv.texi: Update.
5403         * modules/xsetenv (Depends-on): Add unsetenv.
5404         * modules/getdate (Depends-on): Likewise.
5405         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
5406         * lib/xsetenv.c: Don't include setenv.h.
5407         * lib/getdate.y: Likewise.
5408         * lib/relocwrapper.c: Likewise.
5409         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
5410         (Depends-on): Add stdlib.
5411         * NEWS: Mention the changes.
5412         Reported by Левашев Иван <octagram@bluebottle.com>.
5413
5414 2007-12-23  Bruno Haible  <bruno@clisp.org>
5415
5416         * lib/memmem.c (memmem): Use lowercase variable names. Tab
5417         indentation.
5418
5419 2007-12-23  Bruno Haible  <bruno@clisp.org>
5420
5421         * lib/c-strcasestr.c: Add more comments.
5422         * lib/c-strstr.c: Likewise.
5423         * lib/mbscasestr.c: Likewise.
5424         * lib/mbsstr.c: Likewise.
5425         * lib/strcasestr.c: Likewise.
5426         * lib/memmem.c: Likewise.
5427
5428 2007-12-23  Bruno Haible  <bruno@clisp.org>
5429
5430         * tests/test-memmem.c: Include <string.h> first.
5431
5432 2007-12-22  Bruno Haible  <bruno@clisp.org>
5433
5434         * gnulib-tool (func_create_testdir): Change $auxdir while generating
5435         the contents of $testsbase.
5436         Reported by Ralf Wildenhues.
5437
5438 2007-12-22  Bruno Haible  <bruno@clisp.org>
5439
5440         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
5441         two variables local_ldadd_before, local_ldadd_last.
5442
5443 2007-12-20  Eric Blake  <ebb9@byu.net>
5444
5445         Work around circular library issue when cross-compiling.
5446         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
5447         that progname.o does not need to pull in rpl_memcmp.
5448
5449 2007-12-19  Eric Blake  <ebb9@byu.net>
5450
5451         Fix memmem to avoid O(n^2) worst-case complexity.
5452         * lib/memmem.c (knuth_morris_pratt): New function.
5453         (memmem): Use it if first few naive iterations fail.
5454         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
5455         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
5456         * modules/memchr (License): Likewise.
5457         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
5458         malloca.
5459         * tests/test-memmem.c: Rewrite, borrowing ideas from
5460         test-mbsstr1.c; the old version wouldn't even compile!
5461         * modules/memmem-tests: New file.
5462         * lib/string.in.h (rpl_memmem): Add declaration.
5463         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
5464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
5465         REPLACE_MEMMEM.
5466
5467 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5468
5469         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
5470         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
5471         before any system include files, and undef after them all.  This
5472         should fix a problem on VMS reported by John E. Malmberg in
5473         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
5474
5475 2007-12-17  Eric Blake  <ebb9@byu.net>
5476
5477         Revert addition of verify, for BSD/OS.
5478         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
5479         can't handle large files, for the sake of obsolete platforms.
5480         * modules/fseeko (Depends-on): Remove verify.
5481         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
5482         * doc/functions/ftello.texi (ftello): Likewise.
5483         * doc/functions/fgetpos.texi (fgetpos): Likewise.
5484         Reported by Larry Jones.
5485
5486 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
5487
5488         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
5489         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
5490
5491 2007-12-17  Jim Meyering  <meyering@redhat.com>
5492
5493         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
5494         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
5495         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
5496         * modules/getcwd (Depends-on): Add openat.
5497         Reported by Petr Salinger.
5498
5499 2007-12-17  Bruno Haible  <bruno@clisp.org>
5500
5501         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
5502         avoid a segmentation fault of the configure test on x86_64 systems.
5503
5504 2007-12-15  Jim Meyering  <meyering@redhat.com>
5505
5506         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
5507
5508 2007-12-13  Eric Blake  <ebb9@byu.net>
5509
5510         Another fseek test.
5511         * tests/test-fseek.c (main): Also test ungetc handling.
5512         * tests/test-fseeko.c (main): Likewise.
5513         * modules/fseeko (Depends-on): Add verify.
5514         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
5515         large.
5516         Reported by Larry Jones.
5517
5518         Fix fseeko on mingw.
5519         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
5520         seek.
5521
5522         Beef up fseek tests.
5523         * tests/test-fseek.c (main): Also test eof handling.
5524         * tests/test-fseeko.c (main): Likewise.
5525         Reported by Larry Jones.
5526
5527 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
5528
5529         Fix fseeko on BSD-based platforms.
5530         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
5531         successful seek.
5532
5533 2007-12-12  Eric Blake  <ebb9@byu.net>
5534
5535         Allow circular dependency of separate libtests.a
5536         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
5537         when use_libtests.
5538
5539 2007-12-11  Eric Blake  <ebb9@byu.net>
5540
5541         Fix bug with -0.0L in previous patch.
5542         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
5543         * tests/test-isnan.c (main): Also test on zeroes.
5544         * tests/test-isnanf.c (main): Likewise.
5545         * tests/test-isnanl.h (main): Likewise.
5546
5547         Detect pseudo-denormals on x86 even when cross-compiling.
5548         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
5549         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
5550         invalid bit patterns that happen to satisfy ==.
5551
5552         Avoid link failures with separate libtests.a.
5553         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
5554         last, to satisfy circular dependencies.
5555
5556 2007-12-11  Eric Blake  <ebb9@byu.net>
5557         and Bruno Haible  <bruno@clisp.org>
5558
5559         Fix OpenBSD 4.0 <float.h> handling of long double.
5560         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
5561         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
5562         * doc/headers/float.texi (float.h): Document OpenBSD bug.
5563
5564 2007-12-11  Jim Meyering  <meyering@redhat.com>
5565
5566         * users.txt: Add libvirt.
5567
5568         Support versions of autoconf prior to 2.59c.
5569         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
5570         if it is not already defined.
5571
5572 2007-12-09  Bruno Haible  <bruno@clisp.org>
5573
5574         Let 'gnulib-tool --import' collect sources needed for the tests in
5575         tests/ rather than in lib/.
5576         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
5577         argument. If true, add rules to generate libtests.a, and put libtests.a
5578         into $(LDADD). Consider source files in subdirectories and set
5579         uses_subdirs.
5580         (func_emit_initmacro_start, func_emit_initmacro_end,
5581         func_emit_initmacro_done): Pass all arguments explicitly.
5582         (func_import): Determine two module lists main_modules,
5583         testsrelated_modules. Determine use_libtests. Determine two variables
5584         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
5585         instead of just sed_transform_lib_file. Determine two variables
5586         main_files and testsrelated_files. Compute 'files' as the union of
5587         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
5588         func_add_or_update. In the generated gnulib-comp.m4, collect the
5589         object files for tests/ in different variables than those for lib/.
5590         Substitute LIBTESTS_LIBDEPS.
5591         (func_create_testdir): Combine the uses_subdirs results from
5592         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
5593
5594 2007-12-09  Bruno Haible  <bruno@clisp.org>
5595
5596         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
5597         the build-aux directory.
5598
5599 2007-12-09  Bruno Haible  <bruno@clisp.org>
5600
5601         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
5602         introduced on 2006-09-09.
5603
5604 2007-12-07  Jim Meyering  <meyering@redhat.com>
5605
5606         Let these macros work also with autoconf-2.59.
5607         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
5608         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
5609         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5610
5611 2007-12-06  Jim Meyering  <meyering@redhat.com>
5612
5613         Avoid a configure-time syntax error in gl_FUNC_ACL.
5614         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
5615         function in each branch, before testing the cache variable.
5616
5617 2007-12-04  Eric Blake  <ebb9@byu.net>
5618
5619         Make scripts executable.
5620         * build-aux/config.guess: Add execute permissions.
5621         * build-aux/config.sub: Likewise.
5622         * build-aux/gendocs.sh: Likewise.
5623
5624         Fix frexp on mingw.
5625         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
5626         cross-compiling.
5627         * doc/functions/frexp.texi (frexp): Document the bug.
5628
5629         Make cygwin fseeko check more reliable.
5630         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
5631         version numbers, rather than unrelated feature check.
5632         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
5633         * doc/functions/ftello.texi (ftello): Likewise.
5634         Reported by Bruno Haible.
5635
5636         * m4/strerror.m4: Bump version number.
5637
5638 2007-12-03  Bruno Haible  <bruno@clisp.org>
5639
5640         * doc/functions/mprotect.texi: Mention the mingw problem.
5641
5642 2007-12-03  Eric Blake  <ebb9@byu.net>
5643
5644         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
5645         REPLACE_STRERROR is initialized before this macro.
5646
5647 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
5648
5649         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
5650         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
5651         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
5652         put -lsec in even for programs other than 'ls'.  This fixes a problem
5653         for gettext reported by Bruno Haible in
5654         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
5655         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
5656         Add support for Solaris 10.  This isn't efficient, but should get the
5657         job done for now.
5658
5659 2007-12-03  James Youngman  <jay@gnu.org>
5660
5661         * doc/regexprops-generic.texi: change "an close-group" to "a
5662         close-group" and "illegal" to "not allowed".
5663
5664 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5665
5666         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
5667         pr_byname.h. Needed for the rare case when the maintainer has done
5668         "make maintainer-clean" in the source directory and then attempts a
5669         build outside the source directory.
5670         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
5671         scripts_byname.h.
5672
5673 2007-12-02  Martin Lambers <marlam@marlam.de>
5674             Bruno Haible  <bruno@clisp.org>
5675
5676         * lib/getpagesize.h: Remove file.
5677         * lib/unistd.in.h: Include declaration of getpagesize here.
5678         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
5679         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
5680         HAVE_SYS_PARAM_H.
5681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
5682         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
5683         * modules/getpagesize (Files): Remove lib/getpagesize.h.
5684         (Depends-on): Add unistd.
5685         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5686         (Include): Use <unistd.h> instead of getpagesize.h.
5687         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
5688         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
5689         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
5690         gl_GETPAGESIZE invocation, already handled by module dependency.
5691         * lib/pagealign_alloc.c: Don't include getpagesize.h.
5692
5693 2007-12-02  Bruno Haible  <bruno@clisp.org>
5694
5695         * modules/strings-tests: New file.
5696         * tests/test-strings.c: New file.
5697
5698         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
5699         * lib/strings.in.h: New file.
5700         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
5701         * m4/strings_h.m4: New file.
5702         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
5703         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
5704         * modules/strings: New file.
5705         * modules/string (Makefile.am): Update.
5706         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
5707         Reported by Karl Berry.
5708
5709 2007-12-01  Eric Blake  <ebb9@byu.net>
5710
5711         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
5712         accomodate fix in cygwin 1.5.25.
5713
5714 2007-12-01  Jim Meyering  <meyering@redhat.com>
5715
5716         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
5717         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
5718         that would inhibit utf8-optimization of a regexp containing line-
5719         or buffer-anchors, e.g., `^', `$'.
5720
5721 2007-11-30  Bruno Haible  <bruno@clisp.org>
5722
5723         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
5724         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
5725         glthread_recursive_lock_init.
5726         * lib/lock.c (glthread_recursive_lock_init)
5727         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
5728         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
5729
5730 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
5731
5732         New function qset_acl, like set_acl but with syscall semantics.
5733         * lib/acl.h (qset_acl): New decl.
5734         * lib/acl.c (qset_acl): New function.
5735         (set_acl): Use new function.  Use more-consistent diagnostics.
5736
5737 2007-11-28  Jim Meyering  <meyering@redhat.com>
5738
5739         * modules/physmem (License): Change from GPL to LGPLv2+.
5740
5741 2007-11-26  Bruno Haible  <bruno@clisp.org>
5742
5743         * lib/vasnprintf.c (decode_long_double): Don't abort if the
5744         'long double' type has excess precision.
5745         Reported by Jim Meyering in
5746         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
5747
5748 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5749
5750         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
5751         Sync from <http://gnu.org/licenses>.
5752         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
5753         with license text from same location.
5754         * doc/maintain.texi, doc/standards.texi:  Sync from
5755         <http://savannah.gnu.org/projects/gnustandards>.
5756
5757 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
5758         and Jim Meyering  <meyering@redhat.com>
5759
5760         Adjust getdate' grammar to accept a slightly more regular language.
5761         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
5762         Before, the former was rejected.
5763         * lib/getdate.y (digits_to_date_time): New function, factored
5764         out of ...
5765         (number): ...here.  Just call digits_to_date_time.
5766         (hybrid): New non-terminal to handle an <unsigned number,
5767         signed relative offset> sequence consistently.
5768
5769 2007-11-18  Jim Meyering  <meyering@redhat.com>
5770
5771         Pull my changes from coreutils:
5772         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
5773         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
5774         use of $gnulib_tool_option_extras, so that it's separated from the
5775         preceding argument.
5776
5777         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
5778         * build-aux/bootstrap (cp_mark_as_generated): Create any required
5779         parent destination directories before copying a file into place.
5780
5781 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
5782
5783         bootstrap: work also with 4-argument variant of AC_INIT
5784         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
5785
5786 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
5787
5788         Port test-getaddrinfo to Solaris.
5789         Problem reported by Bruno Haible in
5790         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
5791         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
5792         explanation of setting 'hints'.
5793         Don't reject an implementation merely because it returns EAI_SERVICE.
5794         (EAI_SERVICE): Define to 0 if not defined.
5795
5796 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
5797
5798         The license of gnu-make and posix-shell is now "GPLed build tool".
5799         * modules/gnu-make (License): Likewise.
5800         * modules/posix-shell (License): Likewise.
5801
5802         New module posix-shell, for determining a POSIX shell
5803         or perhaps something that is close enough to a POSIX shell.
5804         * m4/posix-shell.m4: New file.
5805         * modules/posix-shell: New file.
5806
5807         * MODULES.html.sh: Mention new module.
5808
5809         New module gnu-make, for determining whether we're using GNU Make.
5810         * m4/gnu-make.m4: New file.
5811         * modules/gnu-make: New file.
5812         * MODULES.html.sh: Mention new module.
5813
5814 2007-11-14  Jim Meyering  <meyering@redhat.com>
5815
5816         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
5817         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
5818         use this macro to create a function _definition_.
5819         Remove useless "#undef ARGMATCH_DIE".
5820
5821 2007-11-14  Bruno Haible  <bruno@clisp.org>
5822
5823         * lib/config.charset: Update for OpenBSD 4.1.
5824         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
5825
5826 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
5827
5828         Document 64-bit #if problems in stdint.texi.
5829         * doc/headers/stdint.texi (stdint.h): Mention problems with
5830         64-bit-#if, and how to work around them.
5831
5832         Don't insist on 'long long int' support in the preprocessor.  It
5833         breaks too many things.  For example, PRIdMAX still uses a 'long
5834         long int' format with the latest Sun compiler, even though
5835         HAVE_LONG_LONG_INT isn't defined due to that compiler's
5836         preprocessor problem.  This causes the latest coreutils to dump
5837         core on Solaris 10 sparc with the Sun C compiler.
5838         Instead, fix the 2007-10-16 problem in a different way, by evaluating
5839         the troublesome expressions at configure-time, not at #if-time.
5840         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
5841         preprocessor.
5842         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
5843         compile-time C checks, done at 'configure'-time.
5844         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
5845         * modules/inttypes (Makefile): Substitute the new symbols that
5846         gl_INTTYPES_H now generates.
5847         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
5848
5849 2007-11-12  Bruno Haible  <bruno@clisp.org>
5850
5851         Tests for Unicode character classification functions.
5852
5853         * modules/unictype/bidicategory-byname-tests: New file.
5854         * modules/unictype/bidicategory-name-tests: New file.
5855         * modules/unictype/bidicategory-of-tests: New file.
5856         * modules/unictype/bidicategory-test-tests: New file.
5857         * modules/unictype/block-list-tests: New file.
5858         * modules/unictype/block-of-tests: New file.
5859         * modules/unictype/block-test-tests: New file.
5860         * modules/unictype/category-C-tests: New file.
5861         * modules/unictype/category-Cc-tests: New file.
5862         * modules/unictype/category-Cf-tests: New file.
5863         * modules/unictype/category-Cn-tests: New file.
5864         * modules/unictype/category-Co-tests: New file.
5865         * modules/unictype/category-Cs-tests: New file.
5866         * modules/unictype/category-L-tests: New file.
5867         * modules/unictype/category-Ll-tests: New file.
5868         * modules/unictype/category-Lm-tests: New file.
5869         * modules/unictype/category-Lo-tests: New file.
5870         * modules/unictype/category-Lt-tests: New file.
5871         * modules/unictype/category-Lu-tests: New file.
5872         * modules/unictype/category-M-tests: New file.
5873         * modules/unictype/category-Mc-tests: New file.
5874         * modules/unictype/category-Me-tests: New file.
5875         * modules/unictype/category-Mn-tests: New file.
5876         * modules/unictype/category-N-tests: New file.
5877         * modules/unictype/category-Nd-tests: New file.
5878         * modules/unictype/category-Nl-tests: New file.
5879         * modules/unictype/category-No-tests: New file.
5880         * modules/unictype/category-P-tests: New file.
5881         * modules/unictype/category-Pc-tests: New file.
5882         * modules/unictype/category-Pd-tests: New file.
5883         * modules/unictype/category-Pe-tests: New file.
5884         * modules/unictype/category-Pf-tests: New file.
5885         * modules/unictype/category-Pi-tests: New file.
5886         * modules/unictype/category-Po-tests: New file.
5887         * modules/unictype/category-Ps-tests: New file.
5888         * modules/unictype/category-S-tests: New file.
5889         * modules/unictype/category-Sc-tests: New file.
5890         * modules/unictype/category-Sk-tests: New file.
5891         * modules/unictype/category-Sm-tests: New file.
5892         * modules/unictype/category-So-tests: New file.
5893         * modules/unictype/category-Z-tests: New file.
5894         * modules/unictype/category-Zl-tests: New file.
5895         * modules/unictype/category-Zp-tests: New file.
5896         * modules/unictype/category-Zs-tests: New file.
5897         * modules/unictype/category-and-not-tests: New file.
5898         * modules/unictype/category-and-tests: New file.
5899         * modules/unictype/category-byname-tests: New file.
5900         * modules/unictype/category-name-tests: New file.
5901         * modules/unictype/category-none-tests: New file.
5902         * modules/unictype/category-of-tests: New file.
5903         * modules/unictype/category-or-tests: New file.
5904         * modules/unictype/category-test-withtable-tests: New file.
5905         * modules/unictype/combining-class-tests: New file.
5906         * modules/unictype/ctype-alnum-tests: New file.
5907         * modules/unictype/ctype-alpha-tests: New file.
5908         * modules/unictype/ctype-blank-tests: New file.
5909         * modules/unictype/ctype-cntrl-tests: New file.
5910         * modules/unictype/ctype-digit-tests: New file.
5911         * modules/unictype/ctype-graph-tests: New file.
5912         * modules/unictype/ctype-lower-tests: New file.
5913         * modules/unictype/ctype-print-tests: New file.
5914         * modules/unictype/ctype-punct-tests: New file.
5915         * modules/unictype/ctype-space-tests: New file.
5916         * modules/unictype/ctype-upper-tests: New file.
5917         * modules/unictype/ctype-xdigit-tests: New file.
5918         * modules/unictype/decimal-digit-tests: New file.
5919         * modules/unictype/digit-tests: New file.
5920         * modules/unictype/mirror-tests: New file.
5921         * modules/unictype/numeric-tests: New file.
5922         * modules/unictype/property-alphabetic-tests: New file.
5923         * modules/unictype/property-ascii-hex-digit-tests: New file.
5924         * modules/unictype/property-bidi-arabic-digit-tests: New file.
5925         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
5926         * modules/unictype/property-bidi-block-separator-tests: New file.
5927         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
5928         * modules/unictype/property-bidi-common-separator-tests: New file.
5929         * modules/unictype/property-bidi-control-tests: New file.
5930         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
5931         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
5932         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
5933         * modules/unictype/property-bidi-european-digit-tests: New file.
5934         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
5935         * modules/unictype/property-bidi-left-to-right-tests: New file.
5936         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
5937         * modules/unictype/property-bidi-other-neutral-tests: New file.
5938         * modules/unictype/property-bidi-pdf-tests: New file.
5939         * modules/unictype/property-bidi-segment-separator-tests: New file.
5940         * modules/unictype/property-bidi-whitespace-tests: New file.
5941         * modules/unictype/property-byname-tests: New file.
5942         * modules/unictype/property-combining-tests: New file.
5943         * modules/unictype/property-composite-tests: New file.
5944         * modules/unictype/property-currency-symbol-tests: New file.
5945         * modules/unictype/property-dash-tests: New file.
5946         * modules/unictype/property-decimal-digit-tests: New file.
5947         * modules/unictype/property-default-ignorable-code-point-tests: New file.
5948         * modules/unictype/property-deprecated-tests: New file.
5949         * modules/unictype/property-diacritic-tests: New file.
5950         * modules/unictype/property-extender-tests: New file.
5951         * modules/unictype/property-format-control-tests: New file.
5952         * modules/unictype/property-grapheme-base-tests: New file.
5953         * modules/unictype/property-grapheme-extend-tests: New file.
5954         * modules/unictype/property-grapheme-link-tests: New file.
5955         * modules/unictype/property-hex-digit-tests: New file.
5956         * modules/unictype/property-hyphen-tests: New file.
5957         * modules/unictype/property-id-continue-tests: New file.
5958         * modules/unictype/property-id-start-tests: New file.
5959         * modules/unictype/property-ideographic-tests: New file.
5960         * modules/unictype/property-ids-binary-operator-tests: New file.
5961         * modules/unictype/property-ids-trinary-operator-tests: New file.
5962         * modules/unictype/property-ignorable-control-tests: New file.
5963         * modules/unictype/property-iso-control-tests: New file.
5964         * modules/unictype/property-join-control-tests: New file.
5965         * modules/unictype/property-left-of-pair-tests: New file.
5966         * modules/unictype/property-line-separator-tests: New file.
5967         * modules/unictype/property-logical-order-exception-tests: New file.
5968         * modules/unictype/property-lowercase-tests: New file.
5969         * modules/unictype/property-math-tests: New file.
5970         * modules/unictype/property-non-break-tests: New file.
5971         * modules/unictype/property-not-a-character-tests: New file.
5972         * modules/unictype/property-numeric-tests: New file.
5973         * modules/unictype/property-other-alphabetic-tests: New file.
5974         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
5975         * modules/unictype/property-other-grapheme-extend-tests: New file.
5976         * modules/unictype/property-other-id-continue-tests: New file.
5977         * modules/unictype/property-other-id-start-tests: New file.
5978         * modules/unictype/property-other-lowercase-tests: New file.
5979         * modules/unictype/property-other-math-tests: New file.
5980         * modules/unictype/property-other-uppercase-tests: New file.
5981         * modules/unictype/property-paired-punctuation-tests: New file.
5982         * modules/unictype/property-paragraph-separator-tests: New file.
5983         * modules/unictype/property-pattern-syntax-tests: New file.
5984         * modules/unictype/property-pattern-white-space-tests: New file.
5985         * modules/unictype/property-private-use-tests: New file.
5986         * modules/unictype/property-punctuation-tests: New file.
5987         * modules/unictype/property-quotation-mark-tests: New file.
5988         * modules/unictype/property-radical-tests: New file.
5989         * modules/unictype/property-sentence-terminal-tests: New file.
5990         * modules/unictype/property-soft-dotted-tests: New file.
5991         * modules/unictype/property-space-tests: New file.
5992         * modules/unictype/property-terminal-punctuation-tests: New file.
5993         * modules/unictype/property-test-tests: New file.
5994         * modules/unictype/property-titlecase-tests: New file.
5995         * modules/unictype/property-unassigned-code-value-tests: New file.
5996         * modules/unictype/property-unified-ideograph-tests: New file.
5997         * modules/unictype/property-uppercase-tests: New file.
5998         * modules/unictype/property-variation-selector-tests: New file.
5999         * modules/unictype/property-white-space-tests: New file.
6000         * modules/unictype/property-xid-continue-tests: New file.
6001         * modules/unictype/property-xid-start-tests: New file.
6002         * modules/unictype/property-zero-width-tests: New file.
6003         * modules/unictype/scripts-tests: New file.
6004         * modules/unictype/syntax-c-ident-tests: New file.
6005         * modules/unictype/syntax-c-whitespace-tests: New file.
6006         * modules/unictype/syntax-java-ident-tests: New file.
6007         * modules/unictype/syntax-java-whitespace-tests: New file.
6008         * tests/unictype/test-bidi_byname.c: New file.
6009         * tests/unictype/test-bidi_name.c: New file.
6010         * tests/unictype/test-bidi_of.c: New file.
6011         * tests/unictype/test-bidi_test.c: New file.
6012         * tests/unictype/test-block_list.c: New file.
6013         * tests/unictype/test-block_of.c: New file.
6014         * tests/unictype/test-block_test.c: New file.
6015         * tests/unictype/test-categ_and.c: New file.
6016         * tests/unictype/test-categ_and_not.c: New file.
6017         * tests/unictype/test-categ_byname.c: New file.
6018         * tests/unictype/test-categ_name.c: New file.
6019         * tests/unictype/test-categ_none.c: New file.
6020         * tests/unictype/test-categ_of.c: New file.
6021         * tests/unictype/test-categ_or.c: New file.
6022         * tests/unictype/test-categ_test_withtable.c: New file.
6023         * tests/unictype/test-combining.c: New file.
6024         * tests/unictype/test-decdigit.c: New file.
6025         * tests/unictype/test-digit.c: New file.
6026         * tests/unictype/test-mirror.c: New file.
6027         * tests/unictype/test-numeric.c: New file.
6028         * tests/unictype/test-pr_byname.c: New file.
6029         * tests/unictype/test-pr_test.c: New file.
6030         * tests/unictype/test-predicate-part1.h: New file.
6031         * tests/unictype/test-predicate-part2.h: New file.
6032         * tests/unictype/test-scripts.c: New file.
6033         * tests/unictype/test-sy_c_ident.c: New file.
6034         * tests/unictype/test-sy_java_ident.c: New file.
6035
6036         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
6037         for Unicode 5.0.0.
6038         * tests/unictype/test-categ_Cc.c: Likewise.
6039         * tests/unictype/test-categ_Cf.c: Likewise.
6040         * tests/unictype/test-categ_Cn.c: Likewise.
6041         * tests/unictype/test-categ_Co.c: Likewise.
6042         * tests/unictype/test-categ_Cs.c: Likewise.
6043         * tests/unictype/test-categ_L.c: Likewise.
6044         * tests/unictype/test-categ_Ll.c: Likewise.
6045         * tests/unictype/test-categ_Lm.c: Likewise.
6046         * tests/unictype/test-categ_Lo.c: Likewise.
6047         * tests/unictype/test-categ_Lt.c: Likewise.
6048         * tests/unictype/test-categ_Lu.c: Likewise.
6049         * tests/unictype/test-categ_M.c: Likewise.
6050         * tests/unictype/test-categ_Mc.c: Likewise.
6051         * tests/unictype/test-categ_Me.c: Likewise.
6052         * tests/unictype/test-categ_Mn.c: Likewise.
6053         * tests/unictype/test-categ_N.c: Likewise.
6054         * tests/unictype/test-categ_Nd.c: Likewise.
6055         * tests/unictype/test-categ_Nl.c: Likewise.
6056         * tests/unictype/test-categ_No.c: Likewise.
6057         * tests/unictype/test-categ_P.c: Likewise.
6058         * tests/unictype/test-categ_Pc.c: Likewise.
6059         * tests/unictype/test-categ_Pd.c: Likewise.
6060         * tests/unictype/test-categ_Pe.c: Likewise.
6061         * tests/unictype/test-categ_Pf.c: Likewise.
6062         * tests/unictype/test-categ_Pi.c: Likewise.
6063         * tests/unictype/test-categ_Po.c: Likewise.
6064         * tests/unictype/test-categ_Ps.c: Likewise.
6065         * tests/unictype/test-categ_S.c: Likewise.
6066         * tests/unictype/test-categ_Sc.c: Likewise.
6067         * tests/unictype/test-categ_Sk.c: Likewise.
6068         * tests/unictype/test-categ_Sm.c: Likewise.
6069         * tests/unictype/test-categ_So.c: Likewise.
6070         * tests/unictype/test-categ_Z.c: Likewise.
6071         * tests/unictype/test-categ_Zl.c: Likewise.
6072         * tests/unictype/test-categ_Zp.c: Likewise.
6073         * tests/unictype/test-categ_Zs.c: Likewise.
6074         * tests/unictype/test-ctype_alnum.c: Likewise.
6075         * tests/unictype/test-ctype_alpha.c: Likewise.
6076         * tests/unictype/test-ctype_blank.c: Likewise.
6077         * tests/unictype/test-ctype_cntrl.c: Likewise.
6078         * tests/unictype/test-ctype_digit.c: Likewise.
6079         * tests/unictype/test-ctype_graph.c: Likewise.
6080         * tests/unictype/test-ctype_lower.c: Likewise.
6081         * tests/unictype/test-ctype_print.c: Likewise.
6082         * tests/unictype/test-ctype_punct.c: Likewise.
6083         * tests/unictype/test-ctype_space.c: Likewise.
6084         * tests/unictype/test-ctype_upper.c: Likewise.
6085         * tests/unictype/test-ctype_xdigit.c: Likewise.
6086         * tests/unictype/test-decdigit.h: Likewise.
6087         * tests/unictype/test-digit.h: Likewise.
6088         * tests/unictype/test-numeric.h: Likewise.
6089         * tests/unictype/test-pr_alphabetic.c: Likewise.
6090         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
6091         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6092         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6093         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
6094         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6095         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
6096         * tests/unictype/test-pr_bidi_control.c: Likewise.
6097         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
6098         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
6099         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6100         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6101         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6102         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6103         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6104         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6105         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
6106         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
6107         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
6108         * tests/unictype/test-pr_combining.c: Likewise.
6109         * tests/unictype/test-pr_composite.c: Likewise.
6110         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6111         * tests/unictype/test-pr_dash.c: Likewise.
6112         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6113         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
6114         * tests/unictype/test-pr_deprecated.c: Likewise.
6115         * tests/unictype/test-pr_diacritic.c: Likewise.
6116         * tests/unictype/test-pr_extender.c: Likewise.
6117         * tests/unictype/test-pr_format_control.c: Likewise.
6118         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6119         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6120         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6121         * tests/unictype/test-pr_hex_digit.c: Likewise.
6122         * tests/unictype/test-pr_hyphen.c: Likewise.
6123         * tests/unictype/test-pr_id_continue.c: Likewise.
6124         * tests/unictype/test-pr_id_start.c: Likewise.
6125         * tests/unictype/test-pr_ideographic.c: Likewise.
6126         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
6127         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
6128         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6129         * tests/unictype/test-pr_iso_control.c: Likewise.
6130         * tests/unictype/test-pr_join_control.c: Likewise.
6131         * tests/unictype/test-pr_left_of_pair.c: Likewise.
6132         * tests/unictype/test-pr_line_separator.c: Likewise.
6133         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6134         * tests/unictype/test-pr_lowercase.c: Likewise.
6135         * tests/unictype/test-pr_math.c: Likewise.
6136         * tests/unictype/test-pr_non_break.c: Likewise.
6137         * tests/unictype/test-pr_not_a_character.c: Likewise.
6138         * tests/unictype/test-pr_numeric.c: Likewise.
6139         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6140         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
6141         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
6142         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6143         * tests/unictype/test-pr_other_id_start.c: Likewise.
6144         * tests/unictype/test-pr_other_lowercase.c: Likewise.
6145         * tests/unictype/test-pr_other_math.c: Likewise.
6146         * tests/unictype/test-pr_other_uppercase.c: Likewise.
6147         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
6148         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
6149         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
6150         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
6151         * tests/unictype/test-pr_private_use.c: Likewise.
6152         * tests/unictype/test-pr_punctuation.c: Likewise.
6153         * tests/unictype/test-pr_quotation_mark.c: Likewise.
6154         * tests/unictype/test-pr_radical.c: Likewise.
6155         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6156         * tests/unictype/test-pr_soft_dotted.c: Likewise.
6157         * tests/unictype/test-pr_space.c: Likewise.
6158         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6159         * tests/unictype/test-pr_titlecase.c: Likewise.
6160         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6161         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6162         * tests/unictype/test-pr_uppercase.c: Likewise.
6163         * tests/unictype/test-pr_variation_selector.c: Likewise.
6164         * tests/unictype/test-pr_white_space.c: Likewise.
6165         * tests/unictype/test-pr_xid_continue.c: Likewise.
6166         * tests/unictype/test-pr_xid_start.c: Likewise.
6167         * tests/unictype/test-pr_zero_width.c: Likewise.
6168         * tests/unictype/test-sy_c_whitespace.c: Likewise.
6169         * tests/unictype/test-sy_java_whitespace.c: Likewise.
6170
6171 2007-11-12  Bruno Haible  <bruno@clisp.org>
6172
6173         Unicode character classification functions.
6174         * lib/unictype.h: New file.
6175         * modules/unictype/base: New file.
6176         * modules/unictype/category-L: New file.
6177         * modules/unictype/category-Lu: New file.
6178         * modules/unictype/category-Ll: New file.
6179         * modules/unictype/category-Lt: New file.
6180         * modules/unictype/category-Lm: New file.
6181         * modules/unictype/category-Lo: New file.
6182         * modules/unictype/category-M: New file.
6183         * modules/unictype/category-Mn: New file.
6184         * modules/unictype/category-Mc: New file.
6185         * modules/unictype/category-Me: New file.
6186         * modules/unictype/category-N: New file.
6187         * modules/unictype/category-Nd: New file.
6188         * modules/unictype/category-Nl: New file.
6189         * modules/unictype/category-No: New file.
6190         * modules/unictype/category-P: New file.
6191         * modules/unictype/category-Pc: New file.
6192         * modules/unictype/category-Pd: New file.
6193         * modules/unictype/category-Ps: New file.
6194         * modules/unictype/category-Pe: New file.
6195         * modules/unictype/category-Pi: New file.
6196         * modules/unictype/category-Pf: New file.
6197         * modules/unictype/category-Po: New file.
6198         * modules/unictype/category-S: New file.
6199         * modules/unictype/category-Sm: New file.
6200         * modules/unictype/category-Sc: New file.
6201         * modules/unictype/category-Sk: New file.
6202         * modules/unictype/category-So: New file.
6203         * modules/unictype/category-Z: New file.
6204         * modules/unictype/category-Zs: New file.
6205         * modules/unictype/category-Zl: New file.
6206         * modules/unictype/category-Zp: New file.
6207         * modules/unictype/category-C: New file.
6208         * modules/unictype/category-Cc: New file.
6209         * modules/unictype/category-Cf: New file.
6210         * modules/unictype/category-Cs: New file.
6211         * modules/unictype/category-Co: New file.
6212         * modules/unictype/category-Cn: New file.
6213         * modules/unictype/category-or: New file.
6214         * modules/unictype/category-of: New file.
6215         * modules/unictype/category-test: New file.
6216         * modules/unictype/category-test-withtable: New file.
6217         * modules/unictype/category-byname: New file.
6218         * modules/unictype/category-none: New file.
6219         * modules/unictype/category-and: New file.
6220         * modules/unictype/category-and-not: New file.
6221         * modules/unictype/category-name: New file.
6222         * modules/unictype/combining-class: New file.
6223         * modules/unictype/category-all: New file.
6224         * modules/unictype/bidicategory-all: New file.
6225         * modules/unictype/bidicategory-byname: New file.
6226         * modules/unictype/bidicategory-name: New file.
6227         * modules/unictype/bidicategory-of: New file.
6228         * modules/unictype/bidicategory-test: New file.
6229         * modules/unictype/decimal-digit: New file.
6230         * modules/unictype/digit: New file.
6231         * modules/unictype/numeric: New file.
6232         * modules/unictype/mirror: New file.
6233         * modules/unictype/property-white-space: New file.
6234         * modules/unictype/property-alphabetic: New file.
6235         * modules/unictype/property-other-alphabetic: New file.
6236         * modules/unictype/property-not-a-character: New file.
6237         * modules/unictype/property-default-ignorable-code-point: New file.
6238         * modules/unictype/property-other-default-ignorable-code-point: New
6239         file.
6240         * modules/unictype/property-deprecated: New file.
6241         * modules/unictype/property-logical-order-exception: New file.
6242         * modules/unictype/property-variation-selector: New file.
6243         * modules/unictype/property-private-use: New file.
6244         * modules/unictype/property-unassigned-code-value: New file.
6245         * modules/unictype/property-uppercase: New file.
6246         * modules/unictype/property-other-uppercase: New file.
6247         * modules/unictype/property-lowercase: New file.
6248         * modules/unictype/property-other-lowercase: New file.
6249         * modules/unictype/property-titlecase: New file.
6250         * modules/unictype/property-soft-dotted: New file.
6251         * modules/unictype/property-id-start: New file.
6252         * modules/unictype/property-other-id-start: New file.
6253         * modules/unictype/property-id-continue: New file.
6254         * modules/unictype/property-other-id-continue: New file.
6255         * modules/unictype/property-xid-start: New file.
6256         * modules/unictype/property-xid-continue: New file.
6257         * modules/unictype/property-pattern-white-space: New file.
6258         * modules/unictype/property-pattern-syntax: New file.
6259         * modules/unictype/property-join-control: New file.
6260         * modules/unictype/property-grapheme-base: New file.
6261         * modules/unictype/property-grapheme-extend: New file.
6262         * modules/unictype/property-other-grapheme-extend: New file.
6263         * modules/unictype/property-grapheme-link: New file.
6264         * modules/unictype/property-bidi-control: New file.
6265         * modules/unictype/property-bidi-left-to-right: New file.
6266         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
6267         * modules/unictype/property-bidi-arabic-right-to-left: New file.
6268         * modules/unictype/property-bidi-european-digit: New file.
6269         * modules/unictype/property-bidi-eur-num-separator: New file.
6270         * modules/unictype/property-bidi-eur-num-terminator: New file.
6271         * modules/unictype/property-bidi-arabic-digit: New file.
6272         * modules/unictype/property-bidi-common-separator: New file.
6273         * modules/unictype/property-bidi-block-separator: New file.
6274         * modules/unictype/property-bidi-segment-separator: New file.
6275         * modules/unictype/property-bidi-whitespace: New file.
6276         * modules/unictype/property-bidi-non-spacing-mark: New file.
6277         * modules/unictype/property-bidi-boundary-neutral: New file.
6278         * modules/unictype/property-bidi-pdf: New file.
6279         * modules/unictype/property-bidi-embedding-or-override: New file.
6280         * modules/unictype/property-bidi-other-neutral: New file.
6281         * modules/unictype/property-hex-digit: New file.
6282         * modules/unictype/property-ascii-hex-digit: New file.
6283         * modules/unictype/property-ideographic: New file.
6284         * modules/unictype/property-unified-ideograph: New file.
6285         * modules/unictype/property-radical: New file.
6286         * modules/unictype/property-ids-binary-operator: New file.
6287         * modules/unictype/property-ids-trinary-operator: New file.
6288         * modules/unictype/property-zero-width: New file.
6289         * modules/unictype/property-space: New file.
6290         * modules/unictype/property-non-break: New file.
6291         * modules/unictype/property-iso-control: New file.
6292         * modules/unictype/property-format-control: New file.
6293         * modules/unictype/property-dash: New file.
6294         * modules/unictype/property-hyphen: New file.
6295         * modules/unictype/property-punctuation: New file.
6296         * modules/unictype/property-line-separator: New file.
6297         * modules/unictype/property-paragraph-separator: New file.
6298         * modules/unictype/property-quotation-mark: New file.
6299         * modules/unictype/property-sentence-terminal: New file.
6300         * modules/unictype/property-terminal-punctuation: New file.
6301         * modules/unictype/property-currency-symbol: New file.
6302         * modules/unictype/property-math: New file.
6303         * modules/unictype/property-other-math: New file.
6304         * modules/unictype/property-paired-punctuation: New file.
6305         * modules/unictype/property-left-of-pair: New file.
6306         * modules/unictype/property-combining: New file.
6307         * modules/unictype/property-composite: New file.
6308         * modules/unictype/property-decimal-digit: New file.
6309         * modules/unictype/property-numeric: New file.
6310         * modules/unictype/property-diacritic: New file.
6311         * modules/unictype/property-extender: New file.
6312         * modules/unictype/property-ignorable-control: New file.
6313         * modules/unictype/property-test: New file.
6314         * modules/unictype/property-byname: New file.
6315         * modules/unictype/property-all: New file.
6316         * modules/unictype/scripts: New file.
6317         * modules/unictype/scripts-all: New file.
6318         * modules/unictype/block-of: New file.
6319         * modules/unictype/block-test: New file.
6320         * modules/unictype/block-list: New file.
6321         * modules/unictype/block-all: New file.
6322         * modules/unictype/syntax-c-whitespace: New file.
6323         * modules/unictype/syntax-java-whitespace: New file.
6324         * modules/unictype/syntax-c-ident: New file.
6325         * modules/unictype/syntax-java-ident: New file.
6326         * modules/unictype/ctype-alnum: New file.
6327         * modules/unictype/ctype-alpha: New file.
6328         * modules/unictype/ctype-cntrl: New file.
6329         * modules/unictype/ctype-digit: New file.
6330         * modules/unictype/ctype-graph: New file.
6331         * modules/unictype/ctype-lower: New file.
6332         * modules/unictype/ctype-print: New file.
6333         * modules/unictype/ctype-punct: New file.
6334         * modules/unictype/ctype-space: New file.
6335         * modules/unictype/ctype-upper: New file.
6336         * modules/unictype/ctype-xdigit: New file.
6337         * modules/unictype/ctype-blank: New file.
6338         * lib/unictype/bidi_byname.c: New file.
6339         * lib/unictype/bidi_name.c: New file.
6340         * lib/unictype/bidi_of.c: New file.
6341         * lib/unictype/bidi_test.c: New file.
6342         * lib/unictype/bitmap.h: New file.
6343         * lib/unictype/block_test.c: New file.
6344         * lib/unictype/blocks.c: New file.
6345         * lib/unictype/categ_C.c: New file.
6346         * lib/unictype/categ_Cc.c: New file.
6347         * lib/unictype/categ_Cf.c: New file.
6348         * lib/unictype/categ_Cn.c: New file.
6349         * lib/unictype/categ_Co.c: New file.
6350         * lib/unictype/categ_Cs.c: New file.
6351         * lib/unictype/categ_L.c: New file.
6352         * lib/unictype/categ_Ll.c: New file.
6353         * lib/unictype/categ_Lm.c: New file.
6354         * lib/unictype/categ_Lo.c: New file.
6355         * lib/unictype/categ_Lt.c: New file.
6356         * lib/unictype/categ_Lu.c: New file.
6357         * lib/unictype/categ_M.c: New file.
6358         * lib/unictype/categ_Mc.c: New file.
6359         * lib/unictype/categ_Me.c: New file.
6360         * lib/unictype/categ_Mn.c: New file.
6361         * lib/unictype/categ_N.c: New file.
6362         * lib/unictype/categ_Nd.c: New file.
6363         * lib/unictype/categ_Nl.c: New file.
6364         * lib/unictype/categ_No.c: New file.
6365         * lib/unictype/categ_P.c: New file.
6366         * lib/unictype/categ_Pc.c: New file.
6367         * lib/unictype/categ_Pd.c: New file.
6368         * lib/unictype/categ_Pe.c: New file.
6369         * lib/unictype/categ_Pf.c: New file.
6370         * lib/unictype/categ_Pi.c: New file.
6371         * lib/unictype/categ_Po.c: New file.
6372         * lib/unictype/categ_Ps.c: New file.
6373         * lib/unictype/categ_S.c: New file.
6374         * lib/unictype/categ_Sc.c: New file.
6375         * lib/unictype/categ_Sk.c: New file.
6376         * lib/unictype/categ_Sm.c: New file.
6377         * lib/unictype/categ_So.c: New file.
6378         * lib/unictype/categ_Z.c: New file.
6379         * lib/unictype/categ_Zl.c: New file.
6380         * lib/unictype/categ_Zp.c: New file.
6381         * lib/unictype/categ_Zs.c: New file.
6382         * lib/unictype/categ_and.c: New file.
6383         * lib/unictype/categ_and_not.c: New file.
6384         * lib/unictype/categ_byname.c: New file.
6385         * lib/unictype/categ_name.c: New file.
6386         * lib/unictype/categ_none.c: New file.
6387         * lib/unictype/categ_of.c: New file.
6388         * lib/unictype/categ_or.c: New file.
6389         * lib/unictype/categ_test.c: New file.
6390         * lib/unictype/combining.c: New file.
6391         * lib/unictype/ctype_alnum.c: New file.
6392         * lib/unictype/ctype_alpha.c: New file.
6393         * lib/unictype/ctype_blank.c: New file.
6394         * lib/unictype/ctype_cntrl.c: New file.
6395         * lib/unictype/ctype_digit.c: New file.
6396         * lib/unictype/ctype_graph.c: New file.
6397         * lib/unictype/ctype_lower.c: New file.
6398         * lib/unictype/ctype_print.c: New file.
6399         * lib/unictype/ctype_punct.c: New file.
6400         * lib/unictype/ctype_space.c: New file.
6401         * lib/unictype/ctype_upper.c: New file.
6402         * lib/unictype/ctype_xdigit.c: New file.
6403         * lib/unictype/decdigit.c: New file.
6404         * lib/unictype/digit.c: New file.
6405         * lib/unictype/identsyntaxmap.h: New file.
6406         * lib/unictype/mirror.c: New file.
6407         * lib/unictype/numeric.c: New file.
6408         * lib/unictype/pr_alphabetic.c: New file.
6409         * lib/unictype/pr_ascii_hex_digit.c: New file.
6410         * lib/unictype/pr_bidi_arabic_digit.c: New file.
6411         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
6412         * lib/unictype/pr_bidi_block_separator.c: New file.
6413         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
6414         * lib/unictype/pr_bidi_common_separator.c: New file.
6415         * lib/unictype/pr_bidi_control.c: New file.
6416         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
6417         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
6418         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
6419         * lib/unictype/pr_bidi_european_digit.c: New file.
6420         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
6421         * lib/unictype/pr_bidi_left_to_right.c: New file.
6422         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
6423         * lib/unictype/pr_bidi_other_neutral.c: New file.
6424         * lib/unictype/pr_bidi_pdf.c: New file.
6425         * lib/unictype/pr_bidi_segment_separator.c: New file.
6426         * lib/unictype/pr_bidi_whitespace.c: New file.
6427         * lib/unictype/pr_byname.c: New file.
6428         * lib/unictype/pr_byname.gperf: New file.
6429         * lib/unictype/pr_combining.c: New file.
6430         * lib/unictype/pr_composite.c: New file.
6431         * lib/unictype/pr_currency_symbol.c: New file.
6432         * lib/unictype/pr_dash.c: New file.
6433         * lib/unictype/pr_decimal_digit.c: New file.
6434         * lib/unictype/pr_default_ignorable_code_point.c: New file.
6435         * lib/unictype/pr_deprecated.c: New file.
6436         * lib/unictype/pr_diacritic.c: New file.
6437         * lib/unictype/pr_extender.c: New file.
6438         * lib/unictype/pr_format_control.c: New file.
6439         * lib/unictype/pr_grapheme_base.c: New file.
6440         * lib/unictype/pr_grapheme_extend.c: New file.
6441         * lib/unictype/pr_grapheme_link.c: New file.
6442         * lib/unictype/pr_hex_digit.c: New file.
6443         * lib/unictype/pr_hyphen.c: New file.
6444         * lib/unictype/pr_id_continue.c: New file.
6445         * lib/unictype/pr_id_start.c: New file.
6446         * lib/unictype/pr_ideographic.c: New file.
6447         * lib/unictype/pr_ids_binary_operator.c: New file.
6448         * lib/unictype/pr_ids_trinary_operator.c: New file.
6449         * lib/unictype/pr_ignorable_control.c: New file.
6450         * lib/unictype/pr_iso_control.c: New file.
6451         * lib/unictype/pr_join_control.c: New file.
6452         * lib/unictype/pr_left_of_pair.c: New file.
6453         * lib/unictype/pr_line_separator.c: New file.
6454         * lib/unictype/pr_logical_order_exception.c: New file.
6455         * lib/unictype/pr_lowercase.c: New file.
6456         * lib/unictype/pr_math.c: New file.
6457         * lib/unictype/pr_non_break.c: New file.
6458         * lib/unictype/pr_not_a_character.c: New file.
6459         * lib/unictype/pr_numeric.c: New file.
6460         * lib/unictype/pr_other_alphabetic.c: New file.
6461         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
6462         * lib/unictype/pr_other_grapheme_extend.c: New file.
6463         * lib/unictype/pr_other_id_continue.c: New file.
6464         * lib/unictype/pr_other_id_start.c: New file.
6465         * lib/unictype/pr_other_lowercase.c: New file.
6466         * lib/unictype/pr_other_math.c: New file.
6467         * lib/unictype/pr_other_uppercase.c: New file.
6468         * lib/unictype/pr_paired_punctuation.c: New file.
6469         * lib/unictype/pr_paragraph_separator.c: New file.
6470         * lib/unictype/pr_pattern_syntax.c: New file.
6471         * lib/unictype/pr_pattern_white_space.c: New file.
6472         * lib/unictype/pr_private_use.c: New file.
6473         * lib/unictype/pr_punctuation.c: New file.
6474         * lib/unictype/pr_quotation_mark.c: New file.
6475         * lib/unictype/pr_radical.c: New file.
6476         * lib/unictype/pr_sentence_terminal.c: New file.
6477         * lib/unictype/pr_soft_dotted.c: New file.
6478         * lib/unictype/pr_space.c: New file.
6479         * lib/unictype/pr_terminal_punctuation.c: New file.
6480         * lib/unictype/pr_test.c: New file.
6481         * lib/unictype/pr_titlecase.c: New file.
6482         * lib/unictype/pr_unassigned_code_value.c: New file.
6483         * lib/unictype/pr_unified_ideograph.c: New file.
6484         * lib/unictype/pr_uppercase.c: New file.
6485         * lib/unictype/pr_variation_selector.c: New file.
6486         * lib/unictype/pr_white_space.c: New file.
6487         * lib/unictype/pr_xid_continue.c: New file.
6488         * lib/unictype/pr_xid_start.c: New file.
6489         * lib/unictype/pr_zero_width.c: New file.
6490         * lib/unictype/scripts.c: New file.
6491         * lib/unictype/sy_c_ident.c: New file.
6492         * lib/unictype/sy_c_whitespace.c: New file.
6493         * lib/unictype/sy_java_ident.c: New file.
6494         * lib/unictype/sy_java_whitespace.c: New file.
6495
6496         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
6497         Unicode 5.0.0.
6498         * lib/unictype/blocks.h: Likewise.
6499         * lib/unictype/categ_C.h: Likewise.
6500         * lib/unictype/categ_Cc.h: Likewise.
6501         * lib/unictype/categ_Cf.h: Likewise.
6502         * lib/unictype/categ_Cn.h: Likewise.
6503         * lib/unictype/categ_Co.h: Likewise.
6504         * lib/unictype/categ_Cs.h: Likewise.
6505         * lib/unictype/categ_L.h: Likewise.
6506         * lib/unictype/categ_Ll.h: Likewise.
6507         * lib/unictype/categ_Lm.h: Likewise.
6508         * lib/unictype/categ_Lo.h: Likewise.
6509         * lib/unictype/categ_Lt.h: Likewise.
6510         * lib/unictype/categ_Lu.h: Likewise.
6511         * lib/unictype/categ_M.h: Likewise.
6512         * lib/unictype/categ_Mc.h: Likewise.
6513         * lib/unictype/categ_Me.h: Likewise.
6514         * lib/unictype/categ_Mn.h: Likewise.
6515         * lib/unictype/categ_N.h: Likewise.
6516         * lib/unictype/categ_Nd.h: Likewise.
6517         * lib/unictype/categ_Nl.h: Likewise.
6518         * lib/unictype/categ_No.h: Likewise.
6519         * lib/unictype/categ_P.h: Likewise.
6520         * lib/unictype/categ_Pc.h: Likewise.
6521         * lib/unictype/categ_Pd.h: Likewise.
6522         * lib/unictype/categ_Pe.h: Likewise.
6523         * lib/unictype/categ_Pf.h: Likewise.
6524         * lib/unictype/categ_Pi.h: Likewise.
6525         * lib/unictype/categ_Po.h: Likewise.
6526         * lib/unictype/categ_Ps.h: Likewise.
6527         * lib/unictype/categ_S.h: Likewise.
6528         * lib/unictype/categ_Sc.h: Likewise.
6529         * lib/unictype/categ_Sk.h: Likewise.
6530         * lib/unictype/categ_Sm.h: Likewise.
6531         * lib/unictype/categ_So.h: Likewise.
6532         * lib/unictype/categ_Z.h: Likewise.
6533         * lib/unictype/categ_Zl.h: Likewise.
6534         * lib/unictype/categ_Zp.h: Likewise.
6535         * lib/unictype/categ_Zs.h: Likewise.
6536         * lib/unictype/categ_of.h: Likewise.
6537         * lib/unictype/combining.h: Likewise.
6538         * lib/unictype/ctype_alnum.h: Likewise.
6539         * lib/unictype/ctype_alpha.h: Likewise.
6540         * lib/unictype/ctype_blank.h: Likewise.
6541         * lib/unictype/ctype_cntrl.h: Likewise.
6542         * lib/unictype/ctype_digit.h: Likewise.
6543         * lib/unictype/ctype_graph.h: Likewise.
6544         * lib/unictype/ctype_lower.h: Likewise.
6545         * lib/unictype/ctype_print.h: Likewise.
6546         * lib/unictype/ctype_punct.h: Likewise.
6547         * lib/unictype/ctype_space.h: Likewise.
6548         * lib/unictype/ctype_upper.h: Likewise.
6549         * lib/unictype/ctype_xdigit.h: Likewise.
6550         * lib/unictype/decdigit.h: Likewise.
6551         * lib/unictype/digit.h: Likewise.
6552         * lib/unictype/mirror.h: Likewise.
6553         * lib/unictype/numeric.h: Likewise.
6554         * lib/unictype/pr_alphabetic.h: Likewise.
6555         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6556         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6557         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6558         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6559         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6560         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6561         * lib/unictype/pr_bidi_control.h: Likewise.
6562         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6563         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6564         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6565         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6566         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6567         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6568         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6569         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6570         * lib/unictype/pr_bidi_pdf.h: Likewise.
6571         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6572         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6573         * lib/unictype/pr_combining.h: Likewise.
6574         * lib/unictype/pr_composite.h: Likewise.
6575         * lib/unictype/pr_currency_symbol.h: Likewise.
6576         * lib/unictype/pr_dash.h: Likewise.
6577         * lib/unictype/pr_decimal_digit.h: Likewise.
6578         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6579         * lib/unictype/pr_deprecated.h: Likewise.
6580         * lib/unictype/pr_diacritic.h: Likewise.
6581         * lib/unictype/pr_extender.h: Likewise.
6582         * lib/unictype/pr_format_control.h: Likewise.
6583         * lib/unictype/pr_grapheme_base.h: Likewise.
6584         * lib/unictype/pr_grapheme_extend.h: Likewise.
6585         * lib/unictype/pr_grapheme_link.h: Likewise.
6586         * lib/unictype/pr_hex_digit.h: Likewise.
6587         * lib/unictype/pr_hyphen.h: Likewise.
6588         * lib/unictype/pr_id_continue.h: Likewise.
6589         * lib/unictype/pr_id_start.h: Likewise.
6590         * lib/unictype/pr_ideographic.h: Likewise.
6591         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6592         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6593         * lib/unictype/pr_ignorable_control.h: Likewise.
6594         * lib/unictype/pr_iso_control.h: Likewise.
6595         * lib/unictype/pr_join_control.h: Likewise.
6596         * lib/unictype/pr_left_of_pair.h: Likewise.
6597         * lib/unictype/pr_line_separator.h: Likewise.
6598         * lib/unictype/pr_logical_order_exception.h: Likewise.
6599         * lib/unictype/pr_lowercase.h: Likewise.
6600         * lib/unictype/pr_math.h: Likewise.
6601         * lib/unictype/pr_non_break.h: Likewise.
6602         * lib/unictype/pr_not_a_character.h: Likewise.
6603         * lib/unictype/pr_numeric.h: Likewise.
6604         * lib/unictype/pr_other_alphabetic.h: Likewise.
6605         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6606         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6607         * lib/unictype/pr_other_id_continue.h: Likewise.
6608         * lib/unictype/pr_other_id_start.h: Likewise.
6609         * lib/unictype/pr_other_lowercase.h: Likewise.
6610         * lib/unictype/pr_other_math.h: Likewise.
6611         * lib/unictype/pr_other_uppercase.h: Likewise.
6612         * lib/unictype/pr_paired_punctuation.h: Likewise.
6613         * lib/unictype/pr_paragraph_separator.h: Likewise.
6614         * lib/unictype/pr_pattern_syntax.h: Likewise.
6615         * lib/unictype/pr_pattern_white_space.h: Likewise.
6616         * lib/unictype/pr_private_use.h: Likewise.
6617         * lib/unictype/pr_punctuation.h: Likewise.
6618         * lib/unictype/pr_quotation_mark.h: Likewise.
6619         * lib/unictype/pr_radical.h: Likewise.
6620         * lib/unictype/pr_sentence_terminal.h: Likewise.
6621         * lib/unictype/pr_soft_dotted.h: Likewise.
6622         * lib/unictype/pr_space.h: Likewise.
6623         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6624         * lib/unictype/pr_titlecase.h: Likewise.
6625         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6626         * lib/unictype/pr_unified_ideograph.h: Likewise.
6627         * lib/unictype/pr_uppercase.h: Likewise.
6628         * lib/unictype/pr_variation_selector.h: Likewise.
6629         * lib/unictype/pr_white_space.h: Likewise.
6630         * lib/unictype/pr_xid_continue.h: Likewise.
6631         * lib/unictype/pr_xid_start.h: Likewise.
6632         * lib/unictype/pr_zero_width.h: Likewise.
6633         * lib/unictype/scripts.h: Likewise.
6634         * lib/unictype/scripts_byname.gperf: Likewise.
6635         * lib/unictype/sy_c_ident.h: Likewise.
6636         * lib/unictype/sy_c_whitespace.h: Likewise.
6637         * lib/unictype/sy_java_ident.h: Likewise.
6638         * lib/unictype/sy_java_whitespace.h: Likewise.
6639
6640         * lib/unictype/Makefile: New file.
6641         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
6642         glibc.
6643         * lib/unictype/3level.h: New file, copied from glibc.
6644         * lib/unictype/3levelbit.h: New file.
6645
6646 2007-11-11  Bruno Haible  <bruno@clisp.org>
6647
6648         * modules/gperf: New file.
6649         * modules/iconv_open (Depends-on): Add it.
6650         (Makefile.am): Remove the GPERF definition.
6651
6652 2007-11-11  Bruno Haible  <bruno@clisp.org>
6653
6654         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
6655         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
6656
6657 2007-11-11  Bruno Haible  <bruno@clisp.org>
6658
6659         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
6660         (usage): Remove function.
6661
6662 2007-11-11  Bruno Haible  <bruno@clisp.org>
6663
6664         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
6665         gl_FUNC_CEILF_LIBS.
6666         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
6667         gl_FUNC_CEIL_LIBS.
6668         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
6669         gl_FUNC_CEILL_LIBS.
6670         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
6671         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
6672         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
6673
6674 2007-11-11  Bruno Haible  <bruno@clisp.org>
6675
6676         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
6677         roundf were declared but do not exist on functions.
6678         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
6679         roundl were declared but do not exist on functions.
6680         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
6681         HAVE_FLOORL_AND_CEILL, respectively.
6682         Needed for Sun C on Solaris 10.
6683
6684 2007-11-11  Bruno Haible  <bruno@clisp.org>
6685
6686         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
6687         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
6688         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
6689         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
6690         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
6691         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
6692         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
6693         HAVE_DECL_ROUNDF.
6694         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
6695         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
6696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
6697         of HAVE_DECL_ROUND*.
6698         * modules/math (Makefile.am): Update.
6699
6700 2007-11-10  Bruno Haible  <bruno@clisp.org>
6701
6702         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
6703         ptrdiff_t as m4/intl.m4.
6704
6705 2007-11-10  Jim Meyering  <meyering@redhat.com>
6706
6707         Avoid link failure for the argmatch test.
6708         * tests/test-argmatch.c (usage): Define function to avoid a link
6709         failure: argmatch_die requires a usage function.
6710
6711 2007-11-09  Bruno Haible  <bruno@clisp.org>
6712
6713         * doc/functions/snprintf.texi: Mention BeOS deficiency.
6714         * doc/functions/vsnprintf.texi: Likewise.
6715         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
6716         with a size argument < 2.
6717
6718 2007-11-09  Bruno Haible  <bruno@clisp.org>
6719
6720         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
6721         buffer. Fixes an inefficiency introduced on 2007-11-03.
6722
6723 2007-11-09  Bruno Haible  <bruno@clisp.org>
6724
6725         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
6726         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
6727
6728 2007-11-08  Jim Meyering  <meyering@redhat.com>
6729
6730         Change cache variable name prefix "jm_" to "gl_" everywhere.
6731         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
6732         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
6733         * m4/uptime.m4: s/gl_/jm_/
6734
6735 2007-11-07  Bruno Haible  <bruno@clisp.org>
6736
6737         Update to GNU gettext 0.17.
6738         * m4/intl.m4: Update to GNU gettext 0.17.
6739         * m4/po.m4: Likewise.
6740         * modules/gettext (Files): Remove m4/ulonglong.m4.
6741         (configure.ac): Require gettext infrastructure from version 0.17.
6742
6743 2007-11-06  Bruno Haible  <bruno@clisp.org>
6744
6745         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
6746         symbolic values are not defined in a public header.
6747         * lib/freadable.c (freadable) [QNX]: Likewise.
6748         * lib/freadahead.c (freadahead) [QNX]: Likewise.
6749         * lib/freading.c (freading) [QNX]: Likewise.
6750         * lib/fseterr.c (fseterr) [QNX]: Likewise.
6751         * lib/fwritable.c (fwritable) [QNX]: Likewise.
6752         * lib/fwriting.c (fwriting) [QNX]: Likewise.
6753         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
6754         Reported by Alain Magloire.
6755
6756         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
6757
6758 2007-11-05  Bruno Haible  <bruno@clisp.org>
6759
6760         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
6761         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
6762         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
6763         Reported by Eric Blake.
6764
6765 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6766             Bruno Haible  <bruno@clisp.org>
6767
6768         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
6769         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
6770         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
6771         (malloc): Undefine also before including <stdlib.h>.
6772         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
6773         Needed on OSF/1 4.0.
6774
6775 2007-11-05  Jim Meyering  <meyering@redhat.com>
6776
6777         git-version-gen: sync from coreutils.
6778         * build-aux/git-version-gen: Add comments.
6779         Change the first '-' to '.' in the snapshot version string,
6780         e.g., 6.9-377-08144 -> 6.9.377-08144
6781         Remove first parameter.
6782         Don't declare a version "-dirty" merely because a time
6783         stamp has changed.
6784
6785 2007-11-04  Bruno Haible  <bruno@clisp.org>
6786
6787         * lib/lock.h: Protect all macro definitions containing an 'if'
6788         statement through a "do { ... } while (0)".
6789         * lib/tls.h: Likewise.
6790
6791 2007-11-04  Bruno Haible  <bruno@clisp.org>
6792
6793         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
6794
6795 2007-11-04  Bruno Haible  <bruno@clisp.org>
6796
6797         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
6798         * modules/fprintf-posix (Depends-on): Add nocrash.
6799         * modules/snprintf-posix (Depends-on): Likewise.
6800         * modules/sprintf-posix (Depends-on): Likewise.
6801         * modules/vasnprintf-posix (Depends-on): Likewise.
6802         * modules/vasprintf-posix (Depends-on): Likewise.
6803         * modules/vfprintf-posix (Depends-on): Likewise.
6804         * modules/vsnprintf-posix (Depends-on): Likewise.
6805         * modules/vsprintf-posix (Depends-on): Likewise.
6806         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6807         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6808         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6809         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6810         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6811         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6812         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6813
6814 2007-11-04  Bruno Haible  <bruno@clisp.org>
6815
6816         * modules/nocrash: New file.
6817         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
6818         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
6819
6820 2007-11-04  Bruno Haible  <bruno@clisp.org>
6821
6822         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
6823         precision handling.
6824         * tests/test-vasprintf-posix.c (test_function): Likewise.
6825         * tests/test-snprintf-posix.h (test_function): Likewise.
6826         * tests/test-sprintf-posix.h (test_function): Likewise.
6827
6828         Fix *printf behaviour for large precisions on mingw and BeOS.
6829         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
6830         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
6831         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
6832         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6833         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6834         gl_PRINTF_PRECISION and test its result. Invoke
6835         gl_PREREQ_VASNPRINTF_PRECISION.
6836         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6837         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6838         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6839         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6840         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6841         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6842         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6843         * doc/functions/fprintf.texi: Update.
6844         * doc/functions/printf.texi: Update.
6845         * doc/functions/snprintf.texi: Update.
6846         * doc/functions/sprintf.texi: Update.
6847         * doc/functions/vfprintf.texi: Update.
6848         * doc/functions/vprintf.texi: Update.
6849         * doc/functions/vsnprintf.texi: Update.
6850         * doc/functions/vsprintf.texi: Update.
6851
6852 2007-11-04  Bruno Haible  <bruno@clisp.org>
6853
6854         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
6855
6856 2007-11-04  Bruno Haible  <bruno@clisp.org>
6857
6858         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
6859         Reported by Sylvain Beucler <beuc@gnu.org>.
6860
6861 2007-11-03  Bruno Haible  <bruno@clisp.org>
6862
6863         * tests/test-fprintf-posix2.sh: New file.
6864         * tests/test-fprintf-posix2.c: New file.
6865         * modules/fprintf-posix-tests (Files): Add them.
6866         (TESTS): Add test-fprintf-posix2.sh.
6867         (configure.ac): Check for getrlimit and setrlimit.
6868         (check_PROGRAMS): Add test-fprintf-posix2.
6869
6870         * tests/test-printf-posix2.sh: New file.
6871         * tests/test-printf-posix2.c: New file.
6872         * modules/printf-posix-tests (Files): Add them.
6873         (TESTS): Add test-printf-posix2.sh.
6874         (configure.ac): Check for getrlimit and setrlimit.
6875         (check_PROGRAMS): Add test-printf-posix2.
6876
6877         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
6878         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
6879         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
6880         (decode_double): New function, copied from decode_long_double.
6881         (scale10_round_decimal_decoded): New function, extracted from
6882         scale10_round_decimal_long_double.
6883         (scale10_round_decimal_long_double): Use it.
6884         (scale10_round_decimal_double): New function.
6885         (floorlog10): New function.
6886         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
6887         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
6888         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6889         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6890         gl_PRINTF_ENOMEM and test its result. Invoke
6891         gl_PREREQ_VASNPRINTF_ENOMEM.
6892         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6893         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6894         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6895         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6896         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6897         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6898         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6899         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
6900         * modules/snprintf-posix (Depends-on): Likewise.
6901         * modules/sprintf-posix (Depends-on): Likewise.
6902         * modules/vasnprintf-posix (Depends-on): Likewise.
6903         * modules/vasprintf-posix (Depends-on): Likewise.
6904         * modules/vfprintf-posix (Depends-on): Likewise.
6905         * modules/vsnprintf-posix (Depends-on): Likewise.
6906         * modules/vsprintf-posix (Depends-on): Likewise.
6907         * doc/functions/fprintf.texi: Update.
6908         * doc/functions/printf.texi: Update.
6909         * doc/functions/snprintf.texi: Update.
6910         * doc/functions/sprintf.texi: Update.
6911         * doc/functions/vfprintf.texi: Update.
6912         * doc/functions/vprintf.texi: Update.
6913         * doc/functions/vsnprintf.texi: Update.
6914         * doc/functions/vsprintf.texi: Update.
6915
6916 2007-11-03  Bruno Haible  <bruno@clisp.org>
6917
6918         * modules/frexp-nolibm-tests: New file.
6919
6920         * modules/frexp-nolibm: New file.
6921         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
6922
6923 2007-11-03  Bruno Haible  <bruno@clisp.org>
6924
6925         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
6926         value is C99 compliant.
6927         Needed for OSF/1 5.1.
6928
6929 2007-11-03  Bruno Haible  <bruno@clisp.org>
6930
6931         Fix out-of-memory handling of vasnprintf.
6932         * lib/printf-parse.c: Include <errno.h>.
6933         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
6934         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
6935         is already set.
6936
6937 2007-11-02  Eric Blake  <ebb9@byu.net>
6938
6939         Fix tests on cygwin.
6940         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
6941
6942 2007-11-01  Bruno Haible  <bruno@clisp.org>
6943
6944         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
6945         warning.
6946         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
6947         needed for POSIX compatibility.
6948
6949 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6950
6951         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
6952         for compatibility with GNU.
6953
6954 2007-11-01  Bruno Haible  <bruno@clisp.org>
6955
6956         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
6957         (putenv): Renamed from rpl_putenv. Change argument type from
6958         'const char *' to 'char *'.
6959         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
6960         of defining putenv in config.h, just set REPLACE_PUTENV.
6961         * modules/putenv (Depends-on): Add stdlib.
6962         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6963         (Include): Use <stdlib.h>.
6964         * lib/stdlib.in.h (putenv): New declaration.
6965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
6966         REPLACE_PUTENV.
6967         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
6968         REPLACE_PUTENV.
6969         Needed for MacOS X 10.5.0.
6970         Reported by Peter O'Gorman <peter@pogma.com>.
6971
6972 2007-11-01  Jim Meyering  <meyering@redhat.com>
6973
6974         Treat an empty date string exactly like "0".
6975         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
6976         if the remaining date string (to be parsed) is empty, use "0".
6977         Reported by Mischa Molhoek and discussed in this thread:
6978         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
6979
6980 2007-10-31  Bruno Haible  <bruno@clisp.org>
6981
6982         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
6983         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
6984         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
6985         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
6986         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
6987         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
6988
6989 2007-10-31  Bruno Haible  <bruno@clisp.org>
6990
6991         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
6992         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
6993         (AC_TYPE_LONG_LONG_INT): Use it.
6994         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
6995         it as well.
6996         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
6997         to m4/longlong.m4.
6998         * modules/stdint (Files): Remove m4/ulonglong.m4.
6999         * modules/strtoull (Files): Use m4/longlong.m4 instead of
7000         m4/ulonglong.m4.
7001         * modules/strtoumax (Files): Likewise.
7002
7003 2007-10-30  Bruno Haible  <bruno@clisp.org>
7004
7005         * modules/xvasprintf-posix: New file.
7006         Suggested by Eric Blake.
7007
7008 2007-10-30  Bruno Haible  <bruno@clisp.org>
7009
7010         * modules/xprintf-posix-tests: New file.
7011         * tests/test-xprintf-posix.sh: New file.
7012         * tests/test-xprintf-posix.c: New file.
7013         * tests/test-xfprintf-posix.c: New file.
7014
7015         * modules/xprintf-posix: New file.
7016
7017 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7018
7019         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
7020         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
7021         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
7022
7023 2007-10-29  Bruno Haible  <bruno@clisp.org>
7024
7025         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
7026         contain the special marker '_cv_'.
7027         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
7028         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
7029         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
7030         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
7031         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
7032         Reported by Ralf Wildenhues.
7033
7034 2007-10-29  Bruno Haible  <bruno@clisp.org>
7035
7036         * gnulib-tool (func_import): When --lgpl is not specified, set
7037         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
7038         GPLv3.
7039         Reported by Simon Josefsson.
7040
7041 2007-10-28  Bruno Haible  <bruno@clisp.org>
7042
7043         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
7044         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
7045         HAVE_DECL_ISFINITE.
7046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
7047         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
7048         HAVE_DECL_ISFINITE.
7049
7050 2007-10-28  Bruno Haible  <bruno@clisp.org>
7051
7052         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
7053         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
7054
7055 2007-10-28  Bruno Haible  <bruno@clisp.org>
7056
7057         Fix link errors with Sun C 5.0 on Solaris 10.
7058         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
7059         function is declared but not present in the compiler's libm.
7060         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7061         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7062         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
7063         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
7064         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
7065         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
7066         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
7067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
7068         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
7069         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
7070         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
7071         HAVE_DECL_FLOORL.
7072
7073 2007-10-28  Bruno Haible  <bruno@clisp.org>
7074
7075         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
7076         gl_FUNC_FLOORL. Cache the result.
7077         (gl_FUNC_FLOORL): Use it.
7078         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
7079         gl_FUNC_CEILL. Cache the result.
7080         (gl_FUNC_CEILL): Use it.
7081
7082         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
7083         gl_FUNC_FLOOR. Cache the result.
7084         (gl_FUNC_FLOOR): Use it.
7085         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
7086         gl_FUNC_CEIL. Cache the result.
7087         (gl_FUNC_CEIL): Use it.
7088
7089         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
7090         gl_FUNC_FLOORF. Cache the result.
7091         (gl_FUNC_FLOORF): Use it.
7092         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
7093         gl_FUNC_CEILF. Cache the result.
7094         (gl_FUNC_CEILF): Use it.
7095
7096 2007-10-28  Bruno Haible  <bruno@clisp.org>
7097
7098         * gnulib-tool: Allow specifying the LGPL version number through
7099         --lgpl=2 or --lgpl=3.
7100         (func_usage): Document --lgpl with argument.
7101         Handle --lgpl=... arguments.
7102         (func_import): Recognize also gl_LGPL calls with an argument. When
7103         --lgpl=2 is used and the module's license is just LGPL, report an
7104         error. Set sed_transform_lib_file according to the lgpl variable. In
7105         the generated files, use --lgpl or gl_LGPL invocations with argument,
7106         if necessary.
7107         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
7108         an LGPv2+ license.
7109         * doc/gnulib-tool.texi (Modified imports): Update explanation of
7110         gl_LGPL macro.
7111
7112 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7113             Bruno Haible  <bruno@clisp.org>
7114
7115         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
7116         (u16_uctomb_aux): Likewise.
7117         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
7118         !HAVE_INLINE.
7119         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
7120
7121 2007-10-28  Bruno Haible  <bruno@clisp.org>
7122
7123         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
7124         Invoke AM_GETTEXT_OPTION if it exists.
7125         * modules/vasprintf: Likewise.
7126         * modules/verror: Likewise.
7127         * modules/xprintf: Likewise.
7128         * modules/xvasprintf: Likewise.
7129
7130 2007-10-27  Ben Pfaff  <blp@gnu.org>
7131
7132         * lib/math.in.h: Define isfinite macro and prototypes for
7133         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
7134         implementations.
7135         * m4/math_h.m4: New substitutions for isfinite module.
7136         * lib/isfinite.c: New file.
7137         * m4/isfinite.m4: New file.
7138         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
7139         * modules/isfinite: New file.
7140         * modules/isfinite-tests: New file.
7141         * tests/tests-isfinite.c: New file.
7142         * doc/functions/isfinite.texi: Mention isfinite module.
7143         * MODULES.html.sh: Mention new module.
7144
7145 2007-10-27  Ben Pfaff  <blp@gnu.org>
7146
7147         Ralf Wildenhues reported that Tru64 4.0D declares the round
7148         functions but does not have definitions.
7149         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
7150         cannot be found in any library, set the output variable to
7151         "missing" instead of "".
7152         * m4/round.m4: Also use our substitute if we cannot find round in
7153         any library, even if it is declared.
7154         * m4/roundf.m4: Likewise for roundf.
7155         * m4/roundl.m4: Likewise for roundl.
7156         * lib/math.in.h: Undefine roundf, round, roundl before defining
7157         their replacements, to allow for hypothetical systems where these
7158         may be defined as macros but not available in libraries.
7159
7160 2007-10-27  Bruno Haible  <bruno@clisp.org>
7161
7162         * doc/gnulib.texi: Invoke @firstparagraphindent.
7163         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
7164         changes in gnulib.
7165         (Source changes): New section.
7166
7167 2007-10-26  Bruno Haible  <bruno@clisp.org>
7168
7169         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
7170         borrowed from autoconf.
7171
7172 2007-10-26  Bruno Haible  <bruno@clisp.org>
7173
7174         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
7175         strerror returned the empty string. Needed on HP-UX 11.00.
7176
7177 2007-10-24  Micah Cowan  <micah@cowan.name>
7178
7179         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
7180         * build-aux/bootstrap: Remove support for now-unnecessary option,
7181         --cvs-user, and envvars CVS_USER, CVS_RSH.
7182
7183 2007-10-24  Jim Meyering  <meyering@redhat.com>
7184
7185         Avoid diagnostics from sha1sum when there is no cached checksum.
7186         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
7187         if the po.s1 file hasn't been created yet.
7188
7189         * build-aux/bootstrap: Sync from coreutils:
7190         2007-10-24  Jim Meyering  <meyering@redhat.com>
7191         Get gnulib from the git repository, not from an obsolete cvs one.
7192         * build-aux/bootstrap: Suggestion from Micah Cowan.
7193         2007-10-04  Jim Meyering  <jim@meyering.net>
7194         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
7195         (update_po_files): Work also when there are no .po files in po/.
7196
7197 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
7198
7199         * README: Append ".git" to git and cg examples.
7200         Problem reported by Benoit Sigoure.
7201
7202 2007-10-23  Micah Cowan  <micah@cowan.name>
7203
7204         * users.txt: Add wget.
7205
7206 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7207
7208         Fix linking of some unistdio tests on FreeBSD.
7209         * modules/unistdio/u16-vsnprintf-tests
7210         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
7211         * modules/unistdio/u16-vsprintf-tests
7212         (test_u16_vsnprintf1_LDADD): Likewise.
7213         * modules/unistdio/u32-vsnprintf-tests
7214         (test_u32_vsnprintf1_LDADD): Likewise.
7215         * modules/unistdio/u32-vsprintf-tests
7216         (test_u32_vsprintf1_LDADD): Likewise.
7217         * modules/unistdio/u8-vsnprintf-tests
7218         (test_u8_vsnprintf1_LDADD): Likewise.
7219         * modules/unistdio/u8-vsprintf-tests
7220         (test_u8_vsprintf1_LDADD): Likewise.
7221         * modules/unistdio/ulc-vsnprintf-tests
7222         (test_ulc_vsnprintf1_LDADD): Likewise.
7223         * modules/unistdio/ulc-vsprintf-tests
7224         (test_ulc_vsprintf1_LDADD): Likewise.
7225
7226         Fix linking of some uniconv tests on FreeBSD.
7227         * modules/uniconv/u16-conv-from-enc-tests
7228         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
7229         * modules/uniconv/u16-conv-to-enc-tests
7230         (test_u16_conv_to_enc_LDADD): Likewise.
7231         * modules/uniconv/u16-strconv-from-enc-tests
7232         (test_u16_strconv_from_enc_LDADD): Likewise.
7233         * modules/uniconv/u16-strconv-to-enc-tests
7234         (test_u16_strconv_to_enc_LDADD): Likewise.
7235         * modules/uniconv/u32-conv-from-enc-tests
7236         (test_u32_conv_from_enc_LDADD): Likewise.
7237         * modules/uniconv/u32-conv-to-enc-tests
7238         (test_u32_conv_to_enc_LDADD): Likewise.
7239         * modules/uniconv/u32-strconv-from-enc-tests
7240         (test_u32_strconv_from_enc_LDADD): Likewise.
7241         * modules/uniconv/u32-strconv-to-enc-tests
7242         (test_u32_strconv_to_enc_LDADD): Likewise.
7243         * modules/uniconv/u8-conv-from-enc-tests
7244         (test_u8_conv_from_enc_LDADD): Likewise.
7245         * modules/uniconv/u8-conv-to-enc-tests
7246         (test_u8_conv_to_enc_LDADD): Likewise.
7247         * modules/uniconv/u8-strconv-from-enc-tests
7248         (test_u8_strconv_from_enc_LDADD): Likewise.
7249         * modules/uniconv/u8-strconv-to-enc-tests
7250         (test_u8_strconv_to_enc_LDADD): Likewise.
7251
7252 2007-10-22  Bruno Haible  <bruno@clisp.org>
7253
7254         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
7255         size.
7256
7257 2007-10-22  Eric Blake  <ebb9@byu.net>
7258
7259         Tweak x*printf documentation.
7260         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
7261         variable name and comments.
7262         Suggested by Bruno Haible.
7263
7264 2007-10-22  Bruno Haible  <bruno@clisp.org>
7265
7266         * lib/acl.c (copy_acl): Fix file name in comment.
7267
7268 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
7269
7270         Fix Tru64 problem with stdbool.h.
7271         * lib/stdbool.in.h (false, true):
7272         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
7273         Don't declare as an enum in this situation; it runs afoul of Tru64.
7274         Problem reported by Steven M. Schweda in
7275         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
7276
7277 2007-10-22  Eric Blake  <ebb9@byu.net>
7278
7279         Also wrap vf?printf.
7280         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
7281         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
7282         (xvprintf, xvfprintf): New functions.
7283
7284 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7285
7286         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
7287         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
7288
7289         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
7290         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
7291
7292 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
7293
7294         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
7295         by Bruno Haible.
7296
7297 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7298
7299         * lib/getloadavg.c
7300         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
7301         Undef `sys' after including sys/table.h, for Tru64 4.0D.
7302
7303         * tests/test-i-ring.c: Work for C89.
7304
7305 2007-10-22  Bruno Haible  <bruno@clisp.org>
7306
7307         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
7308         -1u, in preprocessor expression, so that we don't test for the bug
7309         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
7310         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
7311
7312 2007-10-22  Eric Blake  <ebb9@byu.net>
7313
7314         * tests/test-yesno.sh: Silence stderr during test.
7315
7316 2007-10-22  Simon Josefsson  <simon@josefsson.org>
7317
7318         * modules/crypto/gc-camellia: New file.
7319
7320         * m4/gc-camellia.m4: New file.
7321
7322         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
7323
7324         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
7325
7326 2007-10-22  Simon Josefsson  <simon@josefsson.org>
7327
7328         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
7329         --help to stdout.  Reported by sms@antinode.org (Steven
7330         M. Schweda).
7331
7332 2007-10-22  Simon Josefsson  <simon@josefsson.org>
7333
7334         * users.txt: Fix link to libksba.
7335
7336 2007-10-21  Ben Pfaff  <blp@gnu.org>
7337
7338         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
7339         round.c roundf implementation that depends on floorf and ceilf to
7340         be tested unconditionally.
7341
7342 2007-10-21  Ben Pfaff  <blp@gnu.org>
7343
7344         * m4/check-libm-func.m4: Removed.
7345         * m4/check-math-lib.m4: New file.
7346         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
7347         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
7348         definition and lack of AC_LIBOBJ([roundf]).
7349         * m4/roundl.m4: Ditto, and similarly for roundl.
7350         * modules/round: Reference new m4 file.
7351         * modules/roundf: Ditto.
7352         * modules/roundl: Ditto.
7353         * tests/test-round2.c (main): Use ROUND instead of round.
7354         Bug report from Bruno Haible.
7355
7356 2007-10-21  Bruno Haible  <bruno@clisp.org>
7357
7358         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
7359         context.
7360
7361 2007-10-21  Bruno Haible  <bruno@clisp.org>
7362
7363         * tests/test-wcwidth.c (main): Allow negative result for some control
7364         characters.
7365
7366         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
7367         Needed on OSF/1 5.1.
7368
7369 2007-10-21  Bruno Haible  <bruno@clisp.org>
7370
7371         * tests/test-floorf1.c: Include isnanf.h.
7372         (main): Use isnanf() instead of isnan().
7373         * tests/test-ceilf1.c: Include isnanf.h.
7374         (main): Use isnanf() instead of isnan().
7375         * tests/test-truncf1.c: Include isnanf.h.
7376         (main): Use isnanf() instead of isnan().
7377         * tests/test-roundf1.c: Include isnanf.h.
7378         (main): Use isnanf() instead of isnan().
7379
7380 2007-10-21  Eric Blake  <ebb9@byu.net>
7381
7382         * users.txt: Update URL for m4.
7383
7384 2007-10-21  Bruno Haible  <bruno@clisp.org>
7385
7386         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
7387
7388 2007-10-21  Bruno Haible  <bruno@clisp.org>
7389
7390         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
7391         Git's management files if the CVS files are not present.
7392
7393 2007-10-20  Bruno Haible  <bruno@clisp.org>
7394
7395         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
7396         gcc-3.4.x.
7397
7398 2007-10-20  Ben Pfaff  <blp@gnu.org>
7399
7400         * lib/math.in.h: Declare round, roundf, roundl if we are providing
7401         implementations.
7402         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
7403         * lib/round.c: New file.
7404         * lib/roundf.c: New file.
7405         * lib/roundl.c: New file.
7406         * m4/round.m4: New file.
7407         * m4/roundf.m4: New file.
7408         * m4/roundl.m4: New file.
7409         * m4/check-libm-func-m4: New file.
7410         * modules/math: Replace round, roundf, roundl related @VARS@ in
7411         math.in.h.
7412         * modules/round: New file.
7413         * modules/round-tests: New file.
7414         * modules/roundf: New file.
7415         * modules/roundf-tests: New file.
7416         * modules/roundl: New file.
7417         * modules/roundl-tests: New file.
7418         * tests/test-round1.c: New file.
7419         * tests/test-round2.c: New file.
7420         * tests/test-roundf1.c: New file.
7421         * tests/test-roundf2.c: New file.
7422         * tests/test-roundl.c: New file.
7423         * doc/functions/round.texi: Mention round module.
7424         * doc/functions/roundf.texi: Mention roundf module.
7425         * doc/functions/roundl.texi: Mention roundl module.
7426         * MODULES.html.sh: Mention new modules.
7427         Thanks to Bruno Haible for suggestions.
7428
7429 2007-10-20  Jim Meyering  <meyering@redhat.com>
7430
7431         * lib/xprintf.c: Include <config.h> unconditionally.
7432
7433         Change xprintf's license to GPL.
7434         * modules/xprintf (License): s/LGPL/GPL/, since this module
7435         depends on modules (exit and exitfail) which are GPL.
7436         Suggestion from Bruno Haible.
7437
7438         xprintf fixes.
7439         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
7440         Use a clearer diagnostic.
7441         Patch from Bruno Haible.
7442
7443 2007-10-20  Bruno Haible  <bruno@clisp.org>
7444
7445         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
7446         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
7447         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7448
7449 2007-10-20  Bruno Haible  <bruno@clisp.org>
7450
7451         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
7452         precision in the comparison result > x - 1 or similar.
7453         * tests/test-ceilf2.c (correct_result_p): Likewise.
7454         * tests/test-truncf2.c (correct_result_p): Likewise.
7455         * tests/test-trunc2.c (correct_result_p): Likewise.
7456         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7457
7458 2007-10-20  Bruno Haible  <bruno@clisp.org>
7459
7460         * modules/ceil: New file.
7461         * m4/ceil.m4: New file.
7462         * doc/functions/ceil.texi: Mention the 'ceil' module.
7463
7464 2007-10-20  Bruno Haible  <bruno@clisp.org>
7465
7466         * modules/floor: New file.
7467         * m4/floor.m4: New file.
7468         * doc/functions/floor.texi: Mention the 'floor' module.
7469
7470 2007-10-20  Bruno Haible  <bruno@clisp.org>
7471
7472         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
7473         of %a.
7474         * modules/floorf-tests (Depends-on): Likewise.
7475         * modules/truncf-tests (Depends-on): Likewise.
7476         * modules/trunc-tests (Depends-on): Likewise.
7477         Reported by Ben Pfaff.
7478
7479 2007-10-19  Jim Meyering  <meyering@redhat.com>
7480
7481         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
7482         Don't bother testing specific errno values.  Just test ferror.
7483
7484         New module: xprintf
7485         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
7486
7487 2007-10-19  Bruno Haible  <bruno@clisp.org>
7488
7489         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
7490         syntax.
7491         * modules/javaexec (Makefile.am): Likewise.
7492         * modules/relocatable-prog (Makefile.am): Likewise.
7493         Suggested by Jim Meyering.
7494
7495 2007-10-18  Bruno Haible  <bruno@clisp.org>
7496
7497         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
7498         Reported by Jim Meyering.
7499
7500 2007-10-18  Eric Blake  <ebb9@byu.net>
7501
7502         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
7503
7504 2007-10-18  Bruno Haible  <bruno@clisp.org>
7505
7506         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
7507         the format string into writable memory. Needed in Fortify conditions.
7508
7509 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
7510             Bruno Haible  <bruno@clisp.org>
7511
7512         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
7513         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
7514         * modules/trim (Depends-on): Add mbchar.
7515         (configure.ac): Add gl_FUNC_MBRTOWC.
7516         (Makefile.am): Augment lib_SOURCES.
7517
7518 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
7519
7520         Modify glob.c to use fstatat and dirfd, to simplify it.
7521         Suggested by Eric Blake.
7522         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
7523         Don't include <stdbool.h>; not used.
7524         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
7525         (link_exists_p): Simplify implementation, since we can now assume
7526         dirfd and fstatat.
7527         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
7528
7529 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7530
7531         * gnulib-tool (func_get_dependencies): Fix sed script to
7532         match only tests.
7533
7534 2007-10-17  Bruno Haible  <bruno@clisp.org>
7535
7536         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
7537         allow locale names without encoding suffix.
7538         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7539         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7540
7541 2007-10-16  Bruno Haible  <bruno@clisp.org>
7542
7543         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
7544         * lib/getgroups.c (getgroups): Likewise.
7545         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
7546
7547 2007-10-16  Bruno Haible  <bruno@clisp.org>
7548
7549         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
7550         * modules/malloc-posix (License): Likewise.
7551         * modules/realloc-posix (License): Likewise.
7552         * modules/calloc-posix (License): Likewise.
7553         * modules/intprops (License): Change from GPL to LGPL, with
7554         Paul Eggert's approval.
7555
7556 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
7557
7558         Merge glibc changes into lib/glob.c.
7559
7560         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
7561         2007-10-15 04:59:03 UTC.  Here are the changes:
7562
7563         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
7564
7565         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
7566
7567         * lib/glob.c: Add some branch prediction throughout.
7568
7569         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
7570
7571         [BZ #5103]
7572         * lib/glob.c (glob): Recognize patterns starting \/.
7573
7574         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7575
7576         [BZ #3996]
7577         * lib/glob.c (attribute_hidden): Define if not defined.
7578         (glob): Unescape dirname, filename or username when needed and not
7579         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7580         is NULL.  Handle unescaped [ in pattern without closing ].
7581         Don't pass GLOB_CHECK down to recursive glob for directories.
7582         (__glob_pattern_type): New function.
7583         (__glob_pattern_p): Implement using __glob_pattern_type.
7584         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7585         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7586         Remove unreachable code.
7587
7588         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
7589
7590         * lib/glob.c (glob_in_dir): Add some comments and asserts to
7591         explain why there are no leaks.
7592
7593         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
7594
7595         [BZ #3253]
7596         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
7597         time, rather allocate increasingly bigger arrays of pointers, if
7598         possible with alloca, if too large with malloc.
7599
7600 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
7601
7602         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
7603         Problem reported by H.Merijn Brand in
7604         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
7605         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
7606         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
7607
7608 2007-10-15  Bruno Haible  <bruno@clisp.org>
7609
7610         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
7611         with explicit rpl_ prefix.
7612         * lib/fopen.c (fopen): Likewise.
7613         * lib/freopen.c (freopen): Likewise.
7614         * lib/iconv.c (iconv): Likewise.
7615         * lib/iconv_close.c (iconv_close): Likewise.
7616
7617 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7618
7619         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
7620
7621 2007-10-15  Bruno Haible  <bruno@clisp.org>
7622
7623         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
7624         <stddef.h> instead of <stdlib.h> since we only need NULL.
7625         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7626
7627 2007-10-15  Bruno Haible  <bruno@clisp.org>
7628
7629         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
7630         Replace paragraph talking about LIBOBJS.
7631         Reported by Colin Watson <cjwatson@debian.org>.
7632
7633 2007-10-15  Bruno Haible  <bruno@clisp.org>
7634
7635         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
7636         <stdlib.h> before using NULL.
7637
7638 2007-10-15  Simon Josefsson  <simon@josefsson.org>
7639
7640         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
7641         Reported by Albert Chin <china@thewrittenword.com>.
7642
7643 2007-10-14  Bruno Haible  <bruno@clisp.org>
7644
7645         * modules/iconv_open-utf-tests: New file.
7646         * tests/test-iconv-utf.c: New file.
7647
7648         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
7649         * modules/iconv_open-utf: New file.
7650         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
7651         (iconv, iconv_close): New declarations.
7652         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
7653         be defined.
7654         (iconv_open): Add special handling of conversion between UTF-8 and
7655         UTF-{16,32}{BE,LE}.
7656         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
7657         * lib/iconv_close.c: New file.
7658         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
7659         gl_FUNC_ICONV_OPEN.
7660         (gl_FUNC_ICONV_OPEN): Use it.
7661         (gl_FUNC_ICONV_OPEN_UTF): New macro.
7662         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
7663         and REPLACE_ICONV_UTF.
7664         * modules/iconv_open (Depends-on): Add c-strcase.
7665         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
7666         ICONV_CONST.
7667         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
7668
7669 2007-10-13  Albert Chin  <china@thewrittenword.com>
7670             Bruno Haible  <bruno@clisp.org>
7671
7672         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
7673         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
7674
7675 2007-10-13  Bruno Haible  <bruno@clisp.org>
7676
7677         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
7678         defined, use the ISO C99 inline semantics.
7679         * lib/argp.h (ARGP_EI): Likewise.
7680
7681 2007-10-13  Bruno Haible  <bruno@clisp.org>
7682
7683         Handle 'inline' change in gcc 4.3.0.
7684         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
7685         argp_fmtstream_write, argp_fmtstream_set_lmargin,
7686         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
7687         argp_fmtstream_point): Disable 'extern' declaration if the function
7688         definition is going to be provided inline.
7689         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
7690         semantics, not the ISO C99 inline semantics.
7691         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
7692         'extern' declaration if the function definition is going to be provided
7693         inline.
7694         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
7695         the GNU C inline semantics, not the ISO C99 inline semantics. With
7696         GCC 4.2, avoid a warning.
7697
7698 2007-10-13  Bruno Haible  <bruno@clisp.org>
7699
7700         * lib/freading.h (freading): Enable the use of __freading for
7701         glibc >= 2.7.
7702         * lib/freading.c (freading): Likewise.
7703
7704 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
7705
7706         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
7707         "warning: C99 inline functions are not supported; using GNU89".
7708
7709 2007-10-12  Bruno Haible  <bruno@clisp.org>
7710
7711         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
7712         of 2.
7713         * tests/test-ceilf2.c: New file.
7714         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
7715
7716         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
7717         * modules/ceilf-tests: Update.
7718
7719 2007-10-12  Bruno Haible  <bruno@clisp.org>
7720
7721         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
7722         of 2.
7723         * tests/test-floorf2.c: New file.
7724         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
7725
7726         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
7727         * modules/floorf-tests: Update.
7728
7729 2007-10-12  Bruno Haible  <bruno@clisp.org>
7730
7731         * tests/test-trunc2.c: New file.
7732         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
7733
7734         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
7735         * modules/trunc-tests: Update.
7736
7737 2007-10-12  Bruno Haible  <bruno@clisp.org>
7738
7739         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
7740         of 2.
7741         * tests/test-truncf2.c: New file.
7742         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
7743
7744         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
7745         * modules/truncf-tests: Update.
7746
7747 2007-10-11  Eric Blake  <ebb9@byu.net>
7748
7749         Don't claim strerror is broken on Interix.
7750         * doc/functions/strerror.texi (strerror): Known broken systems are
7751         now Solaris 8, and not Interix.
7752         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
7753         Interix on cross-compile.
7754         Reported by Martin Koeppe in
7755         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
7756
7757 2007-10-11  Bruno Haible  <bruno@clisp.org>
7758
7759         * modules/i-ring-tests: New file.
7760         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
7761         instead of assert.
7762
7763 2007-10-11  Bruno Haible  <bruno@clisp.org>
7764
7765         * modules/filenamecat-tests: New file.
7766         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
7767         * lib/filenamecat.c: Remove test code.
7768
7769 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7770
7771         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
7772
7773         * lib/strerror.c: Include <string.h> always, to test interface,
7774         and to remove the need for the dummy.
7775         Include intprops.h to compute width instead of doing it ourselves
7776         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
7777         (strerror): Define it to return NULL if there's no system strerror.
7778         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
7779         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
7780         ancient pre-strerror Unix systems well any more.  Saying "unknown
7781         system error" is enough.
7782         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
7783         simpler strerror.c implementation.
7784         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
7785         Simplify the tests to reflect the simpler strerror implementation.
7786         * modules/strerror (Depends-on): Add intprops.
7787
7788 2007-10-09  Eric Blake  <ebb9@byu.net>
7789
7790         Silence test-fpending.
7791         * modules/fpending-tests (Files): Add wrapper script.
7792         * tests/test-fpending.sh: New file.
7793
7794 2007-10-09  Bruno Haible  <bruno@clisp.org>
7795
7796         * MODULES.html.sh (func_module): Don't create a hyperlink for
7797         function names like 'printf_frexp'.
7798         (Misc): Add crc, memxor.
7799         (Characteristics of floating types): New section.
7800         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
7801         isnanf-nolibm, signbit, trunc, truncf, truncl.
7802         (Enhancements for ISO C 99 functions): New subsection Input/output.
7803         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
7804         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
7805         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
7806         (Compatibility checks for POSIX:2001 functions): Add clock-time.
7807         (Enhancements for POSIX:2001 functions): Add chdir-long.
7808         (File system functions): Add areadlink, chdir-safer, read-file.
7809         Remove cycle-check.
7810         (File system as inode set): New section.
7811         (Date and time): Add gethrxtime.
7812         (Multithreading): Add openmp.
7813         (Internationalization functions): Add localename.
7814         (Unicode string functions): Add unistr/u*-mbsnlen.
7815         (Support for maintaining and releasing projects): Add git-version-gen.
7816         (Lone files): Remove directories.
7817
7818 2007-10-08  Ben Pfaff  <blp@gnu.org>
7819
7820         * lib/xmalloca.h: Fix typo in comment.
7821
7822 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7823
7824         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
7825         when avoiding problems with integer overflow.  Use a portable test
7826         instead.
7827
7828 2007-10-08  Simon Josefsson  <simon@josefsson.org>
7829
7830         * modules/dummy (License): Change to LGPLv2+.
7831         * modules/float (License): Likewise
7832         * modules/realloc (License): Likewise
7833         * modules/stdlib (License): Likewise
7834
7835 2007-10-07  Bruno Haible  <bruno@clisp.org>
7836
7837         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
7838         * floor.c (TWO_MANT_DIG): Likewise.
7839         * ceil.c (TWO_MANT_DIG): Likewise.
7840         Reported by Ben Pfaff.
7841
7842 2007-10-07  Bruno Haible  <bruno@clisp.org>
7843
7844         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
7845         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
7846         * lib/frexp.c (FUNC): Likewise.
7847         * lib/printf-frexp.h (printf_frexp): Likewise.
7848         * lib/printf-frexpl.h (printf_frexpl): Likewise.
7849         * lib/printf-frexp.c (FUNC): Likewise.
7850         Suggested by Jim Meyering.
7851
7852 2007-10-07  Jim Meyering  <meyering@redhat.com>
7853
7854         Make xnanosleep's integer overflow test more robust.
7855         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
7856         so that gcc-4.3.0 doesn't optimize away this test for overflow.
7857
7858 2007-10-07  Bruno Haible  <bruno@clisp.org>
7859
7860         * NEWS: Mention the license change.
7861
7862         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
7863         abbreviations in the modules files.
7864
7865         Change copyright notice from GPLv2+ to GPLv3+.
7866         * README: Change copyright notice.
7867         * MODULES.html.sh: Likewise.
7868         * build-aux/bootstrap.conf: Likewise.
7869         * build-aux/config.libpath: Likewise.
7870         * build-aux/csharpcomp.sh.in: Likewise.
7871         * build-aux/csharpexec.sh.in: Likewise.
7872         * build-aux/install-reloc: Likewise.
7873         * build-aux/javacomp.sh.in: Likewise.
7874         * build-aux/javaexec.sh.in: Likewise.
7875         * build-aux/ldd.sh.in: Likewise.
7876         * build-aux/reloc-ldflags: Likewise.
7877         * build-aux/relocatable.sh.in: Likewise.
7878         * build-aux/x-to-1.in: Likewise.
7879         * check-module: Likewise.
7880         * config/srclistvars.sh: Likewise.
7881         * gnulib-tool: Likewise.
7882         * lib/acl-internal.h: Likewise.
7883         * lib/acl.c: Likewise.
7884         * lib/acl.h: Likewise.
7885         * lib/acl_entries.c: Likewise.
7886         * lib/areadlink-with-size.c: Likewise.
7887         * lib/areadlink.c: Likewise.
7888         * lib/areadlink.h: Likewise.
7889         * lib/argmatch.c: Likewise.
7890         * lib/argmatch.h: Likewise.
7891         * lib/argp-ba.c: Likewise.
7892         * lib/argp-eexst.c: Likewise.
7893         * lib/argp-fmtstream.c: Likewise.
7894         * lib/argp-fmtstream.h: Likewise.
7895         * lib/argp-fs-xinl.c: Likewise.
7896         * lib/argp-help.c: Likewise.
7897         * lib/argp-namefrob.h: Likewise.
7898         * lib/argp-parse.c: Likewise.
7899         * lib/argp-pin.c: Likewise.
7900         * lib/argp-pv.c: Likewise.
7901         * lib/argp-pvh.c: Likewise.
7902         * lib/argp-xinl.c: Likewise.
7903         * lib/argp.h: Likewise.
7904         * lib/at-func.c: Likewise.
7905         * lib/atanl.c: Likewise.
7906         * lib/backupfile.c: Likewise.
7907         * lib/backupfile.h: Likewise.
7908         * lib/basename.c: Likewise.
7909         * lib/binary-io.h: Likewise.
7910         * lib/byteswap.in.h: Likewise.
7911         * lib/c-stack.c: Likewise.
7912         * lib/c-stack.h: Likewise.
7913         * lib/c-strcasestr.c: Likewise.
7914         * lib/c-strcasestr.h: Likewise.
7915         * lib/c-strstr.c: Likewise.
7916         * lib/c-strstr.h: Likewise.
7917         * lib/c-strtod.c: Likewise.
7918         * lib/calloc.c: Likewise.
7919         * lib/canon-host.c: Likewise.
7920         * lib/canon-host.h: Likewise.
7921         * lib/canonicalize-lgpl.c: Likewise.
7922         * lib/canonicalize.c: Likewise.
7923         * lib/canonicalize.h: Likewise.
7924         * lib/ceil.c: Likewise.
7925         * lib/ceilf.c: Likewise.
7926         * lib/ceill.c: Likewise.
7927         * lib/chdir-long.c: Likewise.
7928         * lib/chdir-long.h: Likewise.
7929         * lib/chdir-safer.c: Likewise.
7930         * lib/chdir-safer.h: Likewise.
7931         * lib/chown.c: Likewise.
7932         * lib/classpath.c: Likewise.
7933         * lib/classpath.h: Likewise.
7934         * lib/clean-temp.c: Likewise.
7935         * lib/clean-temp.h: Likewise.
7936         * lib/cloexec.c: Likewise.
7937         * lib/close-stream.c: Likewise.
7938         * lib/closein.c: Likewise.
7939         * lib/closein.h: Likewise.
7940         * lib/closeout.c: Likewise.
7941         * lib/closeout.h: Likewise.
7942         * lib/concat-filename.c: Likewise.
7943         * lib/copy-file.c: Likewise.
7944         * lib/copy-file.h: Likewise.
7945         * lib/count-one-bits.h: Likewise.
7946         * lib/crc.c: Likewise.
7947         * lib/crc.h: Likewise.
7948         * lib/creat-safer.c: Likewise.
7949         * lib/csharpcomp.c: Likewise.
7950         * lib/csharpcomp.h: Likewise.
7951         * lib/csharpexec.c: Likewise.
7952         * lib/csharpexec.h: Likewise.
7953         * lib/cycle-check.c: Likewise.
7954         * lib/cycle-check.h: Likewise.
7955         * lib/diacrit.c: Likewise.
7956         * lib/diacrit.h: Likewise.
7957         * lib/diffseq.h: Likewise.
7958         * lib/dirchownmod.c: Likewise.
7959         * lib/dirent.in.h: Likewise.
7960         * lib/dirfd.c: Likewise.
7961         * lib/dirfd.h: Likewise.
7962         * lib/dirname.c: Likewise.
7963         * lib/dirname.h: Likewise.
7964         * lib/dummy.c: Likewise.
7965         * lib/dup-safer.c: Likewise.
7966         * lib/dup2.c: Likewise.
7967         * lib/eealloc.h: Likewise.
7968         * lib/error.c: Likewise.
7969         * lib/error.h: Likewise.
7970         * lib/euidaccess.c: Likewise.
7971         * lib/exclude.c: Likewise.
7972         * lib/exclude.h: Likewise.
7973         * lib/execute.c: Likewise.
7974         * lib/execute.h: Likewise.
7975         * lib/exitfail.c: Likewise.
7976         * lib/exitfail.h: Likewise.
7977         * lib/expl.c: Likewise.
7978         * lib/fatal-signal.c: Likewise.
7979         * lib/fatal-signal.h: Likewise.
7980         * lib/fbufmode.c: Likewise.
7981         * lib/fbufmode.h: Likewise.
7982         * lib/fchdir.c: Likewise.
7983         * lib/fchmodat.c: Likewise.
7984         * lib/fchownat.c: Likewise.
7985         * lib/fcntl--.h: Likewise.
7986         * lib/fcntl-safer.h: Likewise.
7987         * lib/fcntl.in.h: Likewise.
7988         * lib/fd-safer.c: Likewise.
7989         * lib/fflush.c: Likewise.
7990         * lib/file-has-acl.c: Likewise.
7991         * lib/file-set.c: Likewise.
7992         * lib/file-type.c: Likewise.
7993         * lib/file-type.h: Likewise.
7994         * lib/fileblocks.c: Likewise.
7995         * lib/filemode.c: Likewise.
7996         * lib/filemode.h: Likewise.
7997         * lib/filename.h: Likewise.
7998         * lib/filenamecat.c: Likewise.
7999         * lib/filenamecat.h: Likewise.
8000         * lib/findprog.c: Likewise.
8001         * lib/findprog.h: Likewise.
8002         * lib/float.in.h: Likewise.
8003         * lib/floor.c: Likewise.
8004         * lib/floorf.c: Likewise.
8005         * lib/floorl.c: Likewise.
8006         * lib/fopen-safer.c: Likewise.
8007         * lib/fopen.c: Likewise.
8008         * lib/fpending.c: Likewise.
8009         * lib/fpending.h: Likewise.
8010         * lib/fprintf.c: Likewise.
8011         * lib/fprintftime.h: Likewise.
8012         * lib/fpucw.h: Likewise.
8013         * lib/fpurge.c: Likewise.
8014         * lib/fpurge.h: Likewise.
8015         * lib/freadable.c: Likewise.
8016         * lib/freadable.h: Likewise.
8017         * lib/freadahead.c: Likewise.
8018         * lib/freadahead.h: Likewise.
8019         * lib/freading.c: Likewise.
8020         * lib/freading.h: Likewise.
8021         * lib/free.c: Likewise.
8022         * lib/freopen.c: Likewise.
8023         * lib/frexp.c: Likewise.
8024         * lib/frexpl.c: Likewise.
8025         * lib/fseek.c: Likewise.
8026         * lib/fseterr.c: Likewise.
8027         * lib/fseterr.h: Likewise.
8028         * lib/fstatat.c: Likewise.
8029         * lib/fstrcmp.c: Likewise.
8030         * lib/fstrcmp.h: Likewise.
8031         * lib/fsusage.c: Likewise.
8032         * lib/fsusage.h: Likewise.
8033         * lib/ftell.c: Likewise.
8034         * lib/ftello.c: Likewise.
8035         * lib/fts-cycle.c: Likewise.
8036         * lib/fts.c: Likewise.
8037         * lib/fts_.h: Likewise.
8038         * lib/full-read.c: Likewise.
8039         * lib/full-read.h: Likewise.
8040         * lib/full-write.c: Likewise.
8041         * lib/full-write.h: Likewise.
8042         * lib/fwritable.c: Likewise.
8043         * lib/fwritable.h: Likewise.
8044         * lib/fwriteerror.c: Likewise.
8045         * lib/fwriteerror.h: Likewise.
8046         * lib/fwriting.c: Likewise.
8047         * lib/fwriting.h: Likewise.
8048         * lib/gcd.c: Likewise.
8049         * lib/gcd.h: Likewise.
8050         * lib/getcwd.c: Likewise.
8051         * lib/getdate.h: Likewise.
8052         * lib/getdate.y: Likewise.
8053         * lib/getdomainname.c: Likewise.
8054         * lib/getdomainname.h: Likewise.
8055         * lib/getgroups.c: Likewise.
8056         * lib/gethostname.c: Likewise.
8057         * lib/gethrxtime.c: Likewise.
8058         * lib/gethrxtime.h: Likewise.
8059         * lib/getloadavg.c: Likewise.
8060         * lib/getndelim2.c: Likewise.
8061         * lib/getndelim2.h: Likewise.
8062         * lib/getnline.c: Likewise.
8063         * lib/getnline.h: Likewise.
8064         * lib/getopt.c: Likewise.
8065         * lib/getopt.in.h: Likewise.
8066         * lib/getopt1.c: Likewise.
8067         * lib/getopt_int.h: Likewise.
8068         * lib/getpagesize.h: Likewise.
8069         * lib/getsubopt.c: Likewise.
8070         * lib/gettime.c: Likewise.
8071         * lib/getugroups.c: Likewise.
8072         * lib/getugroups.h: Likewise.
8073         * lib/getusershell.c: Likewise.
8074         * lib/gl_anyavltree_list1.h: Likewise.
8075         * lib/gl_anyavltree_list2.h: Likewise.
8076         * lib/gl_anyhash_list1.h: Likewise.
8077         * lib/gl_anyhash_list2.h: Likewise.
8078         * lib/gl_anylinked_list1.h: Likewise.
8079         * lib/gl_anylinked_list2.h: Likewise.
8080         * lib/gl_anyrbtree_list1.h: Likewise.
8081         * lib/gl_anyrbtree_list2.h: Likewise.
8082         * lib/gl_anytree_list1.h: Likewise.
8083         * lib/gl_anytree_list2.h: Likewise.
8084         * lib/gl_anytree_oset.h: Likewise.
8085         * lib/gl_anytreehash_list1.h: Likewise.
8086         * lib/gl_anytreehash_list2.h: Likewise.
8087         * lib/gl_array_list.c: Likewise.
8088         * lib/gl_array_list.h: Likewise.
8089         * lib/gl_array_oset.c: Likewise.
8090         * lib/gl_array_oset.h: Likewise.
8091         * lib/gl_avltree_list.c: Likewise.
8092         * lib/gl_avltree_list.h: Likewise.
8093         * lib/gl_avltree_oset.c: Likewise.
8094         * lib/gl_avltree_oset.h: Likewise.
8095         * lib/gl_avltreehash_list.c: Likewise.
8096         * lib/gl_avltreehash_list.h: Likewise.
8097         * lib/gl_carray_list.c: Likewise.
8098         * lib/gl_carray_list.h: Likewise.
8099         * lib/gl_linked_list.c: Likewise.
8100         * lib/gl_linked_list.h: Likewise.
8101         * lib/gl_linkedhash_list.c: Likewise.
8102         * lib/gl_linkedhash_list.h: Likewise.
8103         * lib/gl_list.c: Likewise.
8104         * lib/gl_list.h: Likewise.
8105         * lib/gl_oset.c: Likewise.
8106         * lib/gl_oset.h: Likewise.
8107         * lib/gl_rbtree_list.c: Likewise.
8108         * lib/gl_rbtree_list.h: Likewise.
8109         * lib/gl_rbtree_oset.c: Likewise.
8110         * lib/gl_rbtree_oset.h: Likewise.
8111         * lib/gl_rbtreehash_list.c: Likewise.
8112         * lib/gl_rbtreehash_list.h: Likewise.
8113         * lib/gl_sublist.c: Likewise.
8114         * lib/gl_sublist.h: Likewise.
8115         * lib/group-member.c: Likewise.
8116         * lib/group-member.h: Likewise.
8117         * lib/hard-locale.c: Likewise.
8118         * lib/hard-locale.h: Likewise.
8119         * lib/hash-pjw.c: Likewise.
8120         * lib/hash-pjw.h: Likewise.
8121         * lib/hash-triple.c: Likewise.
8122         * lib/hash.c: Likewise.
8123         * lib/hash.h: Likewise.
8124         * lib/human.c: Likewise.
8125         * lib/human.h: Likewise.
8126         * lib/i-ring.c: Likewise.
8127         * lib/i-ring.h: Likewise.
8128         * lib/idcache.c: Likewise.
8129         * lib/imaxabs.c: Likewise.
8130         * lib/imaxdiv.c: Likewise.
8131         * lib/inet_pton.c: Likewise.
8132         * lib/inet_pton.h: Likewise.
8133         * lib/intprops.h: Likewise.
8134         * lib/inttostr.c: Likewise.
8135         * lib/inttostr.h: Likewise.
8136         * lib/inttypes.in.h: Likewise.
8137         * lib/isapipe.c: Likewise.
8138         * lib/isdir.c: Likewise.
8139         * lib/isnan.c: Likewise.
8140         * lib/isnan.h: Likewise.
8141         * lib/isnanf.c: Likewise.
8142         * lib/isnanf.h: Likewise.
8143         * lib/isnanl-nolibm.h: Likewise.
8144         * lib/isnanl.c: Likewise.
8145         * lib/isnanl.h: Likewise.
8146         * lib/javacomp.c: Likewise.
8147         * lib/javacomp.h: Likewise.
8148         * lib/javaexec.c: Likewise.
8149         * lib/javaexec.h: Likewise.
8150         * lib/javaversion.c: Likewise.
8151         * lib/javaversion.h: Likewise.
8152         * lib/javaversion.java: Likewise.
8153         * lib/lbrkprop.h: Likewise.
8154         * lib/lchmod.h: Likewise.
8155         * lib/lchown.c: Likewise.
8156         * lib/ldexpl.c: Likewise.
8157         * lib/linebreak.c: Likewise.
8158         * lib/linebreak.h: Likewise.
8159         * lib/linebuffer.c: Likewise.
8160         * lib/linebuffer.h: Likewise.
8161         * lib/locale.in.h: Likewise.
8162         * lib/logl.c: Likewise.
8163         * lib/long-options.c: Likewise.
8164         * lib/long-options.h: Likewise.
8165         * lib/lstat.c: Likewise.
8166         * lib/lstat.h: Likewise.
8167         * lib/math.in.h: Likewise.
8168         * lib/mbchar.c: Likewise.
8169         * lib/mbchar.h: Likewise.
8170         * lib/mbfile.h: Likewise.
8171         * lib/mbiter.h: Likewise.
8172         * lib/mbscasecmp.c: Likewise.
8173         * lib/mbscasestr.c: Likewise.
8174         * lib/mbschr.c: Likewise.
8175         * lib/mbscspn.c: Likewise.
8176         * lib/mbslen.c: Likewise.
8177         * lib/mbsncasecmp.c: Likewise.
8178         * lib/mbsnlen.c: Likewise.
8179         * lib/mbspbrk.c: Likewise.
8180         * lib/mbspcasecmp.c: Likewise.
8181         * lib/mbsrchr.c: Likewise.
8182         * lib/mbssep.c: Likewise.
8183         * lib/mbsspn.c: Likewise.
8184         * lib/mbsstr.c: Likewise.
8185         * lib/mbstok_r.c: Likewise.
8186         * lib/mbswidth.c: Likewise.
8187         * lib/mbswidth.h: Likewise.
8188         * lib/mbuiter.h: Likewise.
8189         * lib/memcasecmp.c: Likewise.
8190         * lib/memcasecmp.h: Likewise.
8191         * lib/memchr.c: Likewise.
8192         * lib/memcmp.c: Likewise.
8193         * lib/memcoll.c: Likewise.
8194         * lib/memcoll.h: Likewise.
8195         * lib/memcpy.c: Likewise.
8196         * lib/memrchr.c: Likewise.
8197         * lib/mkancesdirs.c: Likewise.
8198         * lib/mkdir-p.c: Likewise.
8199         * lib/mkdir-p.h: Likewise.
8200         * lib/mkdir.c: Likewise.
8201         * lib/mkdirat.c: Likewise.
8202         * lib/mkdtemp.c: Likewise.
8203         * lib/mkstemp-safer.c: Likewise.
8204         * lib/mkstemp.c: Likewise.
8205         * lib/modechange.c: Likewise.
8206         * lib/modechange.h: Likewise.
8207         * lib/mountlist.c: Likewise.
8208         * lib/mountlist.h: Likewise.
8209         * lib/mpsort.c: Likewise.
8210         * lib/nanosleep.c: Likewise.
8211         * lib/obstack.c: Likewise.
8212         * lib/obstack.h: Likewise.
8213         * lib/open-safer.c: Likewise.
8214         * lib/open.c: Likewise.
8215         * lib/openat-die.c: Likewise.
8216         * lib/openat-priv.h: Likewise.
8217         * lib/openat-proc.c: Likewise.
8218         * lib/openat.c: Likewise.
8219         * lib/openat.h: Likewise.
8220         * lib/pagealign_alloc.c: Likewise.
8221         * lib/pagealign_alloc.h: Likewise.
8222         * lib/physmem.c: Likewise.
8223         * lib/physmem.h: Likewise.
8224         * lib/pipe-safer.c: Likewise.
8225         * lib/pipe.c: Likewise.
8226         * lib/pipe.h: Likewise.
8227         * lib/posixtm.c: Likewise.
8228         * lib/posixtm.h: Likewise.
8229         * lib/posixver.c: Likewise.
8230         * lib/printf-frexp.c: Likewise.
8231         * lib/printf-frexp.h: Likewise.
8232         * lib/printf-frexpl.c: Likewise.
8233         * lib/printf-frexpl.h: Likewise.
8234         * lib/printf.c: Likewise.
8235         * lib/progname.c: Likewise.
8236         * lib/progname.h: Likewise.
8237         * lib/progreloc.c: Likewise.
8238         * lib/putenv.c: Likewise.
8239         * lib/quote.c: Likewise.
8240         * lib/quote.h: Likewise.
8241         * lib/quotearg.c: Likewise.
8242         * lib/quotearg.h: Likewise.
8243         * lib/raise.c: Likewise.
8244         * lib/readline.c: Likewise.
8245         * lib/readline.h: Likewise.
8246         * lib/readlink.c: Likewise.
8247         * lib/readtokens.c: Likewise.
8248         * lib/readtokens.h: Likewise.
8249         * lib/readtokens0.c: Likewise.
8250         * lib/readtokens0.h: Likewise.
8251         * lib/readutmp.c: Likewise.
8252         * lib/readutmp.h: Likewise.
8253         * lib/realloc.c: Likewise.
8254         * lib/relocwrapper.c: Likewise.
8255         * lib/rename-dest-slash.c: Likewise.
8256         * lib/rename.c: Likewise.
8257         * lib/rmdir.c: Likewise.
8258         * lib/rpmatch.c: Likewise.
8259         * lib/safe-read.c: Likewise.
8260         * lib/safe-read.h: Likewise.
8261         * lib/safe-write.c: Likewise.
8262         * lib/safe-write.h: Likewise.
8263         * lib/same-inode.h: Likewise.
8264         * lib/same.c: Likewise.
8265         * lib/same.h: Likewise.
8266         * lib/save-cwd.c: Likewise.
8267         * lib/save-cwd.h: Likewise.
8268         * lib/savedir.c: Likewise.
8269         * lib/savedir.h: Likewise.
8270         * lib/savewd.c: Likewise.
8271         * lib/savewd.h: Likewise.
8272         * lib/search.in.h: Likewise.
8273         * lib/setenv.c: Likewise.
8274         * lib/setenv.h: Likewise.
8275         * lib/settime.c: Likewise.
8276         * lib/sh-quote.c: Likewise.
8277         * lib/sh-quote.h: Likewise.
8278         * lib/sig2str.c: Likewise.
8279         * lib/sig2str.h: Likewise.
8280         * lib/signal.in.h: Likewise.
8281         * lib/signbitd.c: Likewise.
8282         * lib/signbitf.c: Likewise.
8283         * lib/signbitl.c: Likewise.
8284         * lib/sigprocmask.c: Likewise.
8285         * lib/sincosl.c: Likewise.
8286         * lib/sleep.c: Likewise.
8287         * lib/sprintf.c: Likewise.
8288         * lib/sqrtl.c: Likewise.
8289         * lib/stat-time.h: Likewise.
8290         * lib/stdio--.h: Likewise.
8291         * lib/stdio-safer.h: Likewise.
8292         * lib/stdlib--.h: Likewise.
8293         * lib/stdlib-safer.h: Likewise.
8294         * lib/stdlib.in.h: Likewise.
8295         * lib/stpcpy.c: Likewise.
8296         * lib/stpncpy.c: Likewise.
8297         * lib/strchrnul.c: Likewise.
8298         * lib/strcspn.c: Likewise.
8299         * lib/strerror.c: Likewise.
8300         * lib/strftime.c: Likewise.
8301         * lib/strftime.h: Likewise.
8302         * lib/striconveh.c: Likewise.
8303         * lib/striconveh.h: Likewise.
8304         * lib/striconveha.c: Likewise.
8305         * lib/striconveha.h: Likewise.
8306         * lib/stripslash.c: Likewise.
8307         * lib/strnlen1.c: Likewise.
8308         * lib/strnlen1.h: Likewise.
8309         * lib/strtod.c: Likewise.
8310         * lib/strtoimax.c: Likewise.
8311         * lib/strtok_r.c: Likewise.
8312         * lib/strtol.c: Likewise.
8313         * lib/strtoll.c: Likewise.
8314         * lib/strtoul.c: Likewise.
8315         * lib/strtoull.c: Likewise.
8316         * lib/sysexits.in.h: Likewise.
8317         * lib/tempname.c: Likewise.
8318         * lib/tempname.h: Likewise.
8319         * lib/timespec.h: Likewise.
8320         * lib/tls.c: Likewise.
8321         * lib/tls.h: Likewise.
8322         * lib/tmpdir.c: Likewise.
8323         * lib/tmpdir.h: Likewise.
8324         * lib/tmpfile-safer.c: Likewise.
8325         * lib/tmpfile.c: Likewise.
8326         * lib/trigl.c: Likewise.
8327         * lib/trigl.h: Likewise.
8328         * lib/trim.c: Likewise.
8329         * lib/trim.h: Likewise.
8330         * lib/trunc.c: Likewise.
8331         * lib/truncf.c: Likewise.
8332         * lib/truncl.c: Likewise.
8333         * lib/tsearch.c: Likewise.
8334         * lib/unicodeio.c: Likewise.
8335         * lib/unicodeio.h: Likewise.
8336         * lib/unistd--.h: Likewise.
8337         * lib/unistd-safer.h: Likewise.
8338         * lib/unistdio/ulc-fprintf.c: Likewise.
8339         * lib/unistdio/ulc-vfprintf.c: Likewise.
8340         * lib/unlinkdir.c: Likewise.
8341         * lib/unlinkdir.h: Likewise.
8342         * lib/unlocked-io.h: Likewise.
8343         * lib/unsetenv.c: Likewise.
8344         * lib/userspec.c: Likewise.
8345         * lib/utime.c: Likewise.
8346         * lib/utimecmp.c: Likewise.
8347         * lib/utimecmp.h: Likewise.
8348         * lib/utimens.c: Likewise.
8349         * lib/verify.h: Likewise.
8350         * lib/verror.c: Likewise.
8351         * lib/verror.h: Likewise.
8352         * lib/version-etc-fsf.c: Likewise.
8353         * lib/version-etc.c: Likewise.
8354         * lib/version-etc.h: Likewise.
8355         * lib/vfprintf.c: Likewise.
8356         * lib/vprintf.c: Likewise.
8357         * lib/vsprintf.c: Likewise.
8358         * lib/w32spawn.h: Likewise.
8359         * lib/wait-process.c: Likewise.
8360         * lib/wait-process.h: Likewise.
8361         * lib/wcwidth.c: Likewise.
8362         * lib/write-any-file.c: Likewise.
8363         * lib/xalloc-die.c: Likewise.
8364         * lib/xalloc.h: Likewise.
8365         * lib/xasprintf.c: Likewise.
8366         * lib/xgetcwd.c: Likewise.
8367         * lib/xgetcwd.h: Likewise.
8368         * lib/xgetdomainname.c: Likewise.
8369         * lib/xgetdomainname.h: Likewise.
8370         * lib/xgethostname.c: Likewise.
8371         * lib/xmalloc.c: Likewise.
8372         * lib/xmalloca.c: Likewise.
8373         * lib/xmalloca.h: Likewise.
8374         * lib/xmemcoll.c: Likewise.
8375         * lib/xnanosleep.c: Likewise.
8376         * lib/xreadlink.c: Likewise.
8377         * lib/xreadlink.h: Likewise.
8378         * lib/xsetenv.c: Likewise.
8379         * lib/xsetenv.h: Likewise.
8380         * lib/xstriconv.c: Likewise.
8381         * lib/xstriconv.h: Likewise.
8382         * lib/xstrndup.c: Likewise.
8383         * lib/xstrndup.h: Likewise.
8384         * lib/xstrtod.c: Likewise.
8385         * lib/xstrtod.h: Likewise.
8386         * lib/xstrtol-error.c: Likewise.
8387         * lib/xstrtol.c: Likewise.
8388         * lib/xstrtol.h: Likewise.
8389         * lib/xtime.h: Likewise.
8390         * lib/xvasprintf.c: Likewise.
8391         * lib/xvasprintf.h: Likewise.
8392         * lib/yesno.c: Likewise.
8393         * lib/yesno.h: Likewise.
8394         * posix-modules: Likewise.
8395         * tests/test-alloca-opt.c: Likewise.
8396         * tests/test-arcfour.c: Likewise.
8397         * tests/test-arctwo.c: Likewise.
8398         * tests/test-argmatch.c: Likewise.
8399         * tests/test-argp-2.sh: Likewise.
8400         * tests/test-argp.c: Likewise.
8401         * tests/test-arpa_inet.c: Likewise.
8402         * tests/test-array_list.c: Likewise.
8403         * tests/test-array_oset.c: Likewise.
8404         * tests/test-atexit.c: Likewise.
8405         * tests/test-avltree_list.c: Likewise.
8406         * tests/test-avltree_oset.c: Likewise.
8407         * tests/test-avltreehash_list.c: Likewise.
8408         * tests/test-base64.c: Likewise.
8409         * tests/test-binary-io.c: Likewise.
8410         * tests/test-byteswap.c: Likewise.
8411         * tests/test-c-ctype.c: Likewise.
8412         * tests/test-c-strcasecmp.c: Likewise.
8413         * tests/test-c-strcasestr.c: Likewise.
8414         * tests/test-c-strncasecmp.c: Likewise.
8415         * tests/test-c-strstr.c: Likewise.
8416         * tests/test-canonicalize-lgpl.c: Likewise.
8417         * tests/test-canonicalize.c: Likewise.
8418         * tests/test-carray_list.c: Likewise.
8419         * tests/test-ceilf.c: Likewise.
8420         * tests/test-ceill.c: Likewise.
8421         * tests/test-count-one-bits.c: Likewise.
8422         * tests/test-crc.c: Likewise.
8423         * tests/test-dirname.c: Likewise.
8424         * tests/test-fbufmode.c: Likewise.
8425         * tests/test-fcntl.c: Likewise.
8426         * tests/test-fflush.c: Likewise.
8427         * tests/test-floorf.c: Likewise.
8428         * tests/test-floorl.c: Likewise.
8429         * tests/test-fopen.c: Likewise.
8430         * tests/test-fprintf-posix.c: Likewise.
8431         * tests/test-fprintf-posix.h: Likewise.
8432         * tests/test-fpurge.c: Likewise.
8433         * tests/test-freadable.c: Likewise.
8434         * tests/test-freadahead.c: Likewise.
8435         * tests/test-freading.c: Likewise.
8436         * tests/test-freopen.c: Likewise.
8437         * tests/test-frexp.c: Likewise.
8438         * tests/test-frexpl.c: Likewise.
8439         * tests/test-fseek.c: Likewise.
8440         * tests/test-fseeko.c: Likewise.
8441         * tests/test-fseterr.c: Likewise.
8442         * tests/test-fstrcmp.c: Likewise.
8443         * tests/test-ftell.c: Likewise.
8444         * tests/test-ftello.c: Likewise.
8445         * tests/test-fwritable.c: Likewise.
8446         * tests/test-fwriting.c: Likewise.
8447         * tests/test-getaddrinfo.c: Likewise.
8448         * tests/test-getpass.c: Likewise.
8449         * tests/test-gettimeofday.c: Likewise.
8450         * tests/test-hmac-md5.c: Likewise.
8451         * tests/test-hmac-sha1.c: Likewise.
8452         * tests/test-iconv.c: Likewise.
8453         * tests/test-iconvme.c: Likewise.
8454         * tests/test-inttypes.c: Likewise.
8455         * tests/test-isnan.c: Likewise.
8456         * tests/test-isnanf.c: Likewise.
8457         * tests/test-isnanl-nolibm.c: Likewise.
8458         * tests/test-isnanl.c: Likewise.
8459         * tests/test-isnanl.h: Likewise.
8460         * tests/test-ldexpl.c: Likewise.
8461         * tests/test-linked_list.c: Likewise.
8462         * tests/test-linkedhash_list.c: Likewise.
8463         * tests/test-locale.c: Likewise.
8464         * tests/test-localename.c: Likewise.
8465         * tests/test-lock.c: Likewise.
8466         * tests/test-lseek.c: Likewise.
8467         * tests/test-malloca.c: Likewise.
8468         * tests/test-math.c: Likewise.
8469         * tests/test-mbscasecmp.c: Likewise.
8470         * tests/test-mbscasestr1.c: Likewise.
8471         * tests/test-mbscasestr2.c: Likewise.
8472         * tests/test-mbscasestr3.c: Likewise.
8473         * tests/test-mbscasestr4.c: Likewise.
8474         * tests/test-mbschr.c: Likewise.
8475         * tests/test-mbscspn.c: Likewise.
8476         * tests/test-mbsncasecmp.c: Likewise.
8477         * tests/test-mbspbrk.c: Likewise.
8478         * tests/test-mbspcasecmp.c: Likewise.
8479         * tests/test-mbsrchr.c: Likewise.
8480         * tests/test-mbsspn.c: Likewise.
8481         * tests/test-mbsstr1.c: Likewise.
8482         * tests/test-mbsstr2.c: Likewise.
8483         * tests/test-mbsstr3.c: Likewise.
8484         * tests/test-md5.c: Likewise.
8485         * tests/test-memmem.c: Likewise.
8486         * tests/test-netinet_in.c: Likewise.
8487         * tests/test-open.c: Likewise.
8488         * tests/test-printf-frexp.c: Likewise.
8489         * tests/test-printf-frexpl.c: Likewise.
8490         * tests/test-printf-posix.c: Likewise.
8491         * tests/test-printf-posix.h: Likewise.
8492         * tests/test-rbtree_list.c: Likewise.
8493         * tests/test-rbtree_oset.c: Likewise.
8494         * tests/test-rbtreehash_list.c: Likewise.
8495         * tests/test-read-file.c: Likewise.
8496         * tests/test-rijndael.c: Likewise.
8497         * tests/test-search.c: Likewise.
8498         * tests/test-signbit.c: Likewise.
8499         * tests/test-sleep.c: Likewise.
8500         * tests/test-snprintf-posix.c: Likewise.
8501         * tests/test-snprintf-posix.h: Likewise.
8502         * tests/test-snprintf.c: Likewise.
8503         * tests/test-sprintf-posix.c: Likewise.
8504         * tests/test-sprintf-posix.h: Likewise.
8505         * tests/test-stat-time.c: Likewise.
8506         * tests/test-stdbool.c: Likewise.
8507         * tests/test-stdint.c: Likewise.
8508         * tests/test-stdio.c: Likewise.
8509         * tests/test-stdlib.c: Likewise.
8510         * tests/test-stpncpy.c: Likewise.
8511         * tests/test-strcasestr.c: Likewise.
8512         * tests/test-striconv.c: Likewise.
8513         * tests/test-striconveh.c: Likewise.
8514         * tests/test-striconveha.c: Likewise.
8515         * tests/test-string.c: Likewise.
8516         * tests/test-sys_select.c: Likewise.
8517         * tests/test-sys_socket.c: Likewise.
8518         * tests/test-sys_stat.c: Likewise.
8519         * tests/test-sys_time.c: Likewise.
8520         * tests/test-sysexits.c: Likewise.
8521         * tests/test-time.c: Likewise.
8522         * tests/test-tls.c: Likewise.
8523         * tests/test-trunc.c: Likewise.
8524         * tests/test-truncf.c: Likewise.
8525         * tests/test-truncl.c: Likewise.
8526         * tests/test-unistd.c: Likewise.
8527         * tests/test-vasnprintf-posix.c: Likewise.
8528         * tests/test-vasnprintf-posix2.c: Likewise.
8529         * tests/test-vasnprintf.c: Likewise.
8530         * tests/test-vasprintf-posix.c: Likewise.
8531         * tests/test-vasprintf.c: Likewise.
8532         * tests/test-verify.c: Likewise.
8533         * tests/test-vfprintf-posix.c: Likewise.
8534         * tests/test-vprintf-posix.c: Likewise.
8535         * tests/test-vsnprintf-posix.c: Likewise.
8536         * tests/test-vsnprintf.c: Likewise.
8537         * tests/test-vsprintf-posix.c: Likewise.
8538         * tests/test-wchar.c: Likewise.
8539         * tests/test-wctype.c: Likewise.
8540         * tests/test-wcwidth.c: Likewise.
8541         * tests/test-xstrtol.c: Likewise.
8542         * tests/test-xvasprintf.c: Likewise.
8543         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
8544         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
8545         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8546         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8547         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8548         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
8549         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8550         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8551         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8552         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
8553         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8554         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8555         * tests/uniname/test-uninames.c: Likewise.
8556         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
8557         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
8558         * tests/unistdio/test-u16-printf1.h: Likewise.
8559         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
8560         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
8561         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
8562         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
8563         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
8564         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
8565         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
8566         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
8567         * tests/unistdio/test-u32-printf1.h: Likewise.
8568         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
8569         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
8570         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
8571         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
8572         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
8573         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
8574         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
8575         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
8576         * tests/unistdio/test-u8-printf1.h: Likewise.
8577         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
8578         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
8579         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
8580         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
8581         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
8582         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
8583         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
8584         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
8585         * tests/unistdio/test-ulc-printf1.h: Likewise.
8586         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
8587         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
8588         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
8589         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
8590         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
8591         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
8592         * tests/uniwidth/test-u16-strwidth.c: Likewise.
8593         * tests/uniwidth/test-u16-width.c: Likewise.
8594         * tests/uniwidth/test-u32-strwidth.c: Likewise.
8595         * tests/uniwidth/test-u32-width.c: Likewise.
8596         * tests/uniwidth/test-u8-strwidth.c: Likewise.
8597         * tests/uniwidth/test-u8-width.c: Likewise.
8598         * tests/uniwidth/test-uc_width.c: Likewise.
8599         * config/srclist-update: Likewise.
8600         (fixlicense): Update to GPLv3+.
8601
8602         Change copyright notice from LGPLv2.1+ to LGPLv3+.
8603         * tests/test-tsearch.c: Change copyright notice.
8604
8605         Change copyright notice from LGPLv2.0+ to LGPLv3+.
8606         * lib/c-strcaseeq.h: Change copyright notice.
8607         * lib/streq.h: Likewise.
8608         * lib/uniconv.h: Likewise.
8609         * lib/uniconv/u-conv-from-enc.h: Likewise.
8610         * lib/uniconv/u-conv-to-enc.h: Likewise.
8611         * lib/uniconv/u-strconv-from-enc.h: Likewise.
8612         * lib/uniconv/u-strconv-to-enc.h: Likewise.
8613         * lib/uniconv/u16-conv-from-enc.c: Likewise.
8614         * lib/uniconv/u16-conv-to-enc.c: Likewise.
8615         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
8616         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
8617         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
8618         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
8619         * lib/uniconv/u32-conv-from-enc.c: Likewise.
8620         * lib/uniconv/u32-conv-to-enc.c: Likewise.
8621         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
8622         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
8623         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
8624         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
8625         * lib/uniconv/u8-conv-from-enc.c: Likewise.
8626         * lib/uniconv/u8-conv-to-enc.c: Likewise.
8627         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
8628         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
8629         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
8630         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
8631         * lib/uniname.h: Likewise.
8632         * lib/uniname/uniname.c: Likewise.
8633         * lib/unistdio.h: Likewise.
8634         * lib/unistdio/u-asnprintf.h: Likewise.
8635         * lib/unistdio/u-asprintf.h: Likewise.
8636         * lib/unistdio/u-printf-args.c: Likewise.
8637         * lib/unistdio/u-printf-args.h: Likewise.
8638         * lib/unistdio/u-printf-parse.h: Likewise.
8639         * lib/unistdio/u-snprintf.h: Likewise.
8640         * lib/unistdio/u-sprintf.h: Likewise.
8641         * lib/unistdio/u-vasprintf.h: Likewise.
8642         * lib/unistdio/u-vsnprintf.h: Likewise.
8643         * lib/unistdio/u-vsprintf.h: Likewise.
8644         * lib/unistdio/u16-asnprintf.c: Likewise.
8645         * lib/unistdio/u16-asprintf.c: Likewise.
8646         * lib/unistdio/u16-printf-parse.c: Likewise.
8647         * lib/unistdio/u16-snprintf.c: Likewise.
8648         * lib/unistdio/u16-sprintf.c: Likewise.
8649         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
8650         * lib/unistdio/u16-u16-asprintf.c: Likewise.
8651         * lib/unistdio/u16-u16-snprintf.c: Likewise.
8652         * lib/unistdio/u16-u16-sprintf.c: Likewise.
8653         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
8654         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
8655         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
8656         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
8657         * lib/unistdio/u16-vasnprintf.c: Likewise.
8658         * lib/unistdio/u16-vasprintf.c: Likewise.
8659         * lib/unistdio/u16-vsnprintf.c: Likewise.
8660         * lib/unistdio/u16-vsprintf.c: Likewise.
8661         * lib/unistdio/u32-asnprintf.c: Likewise.
8662         * lib/unistdio/u32-asprintf.c: Likewise.
8663         * lib/unistdio/u32-printf-parse.c: Likewise.
8664         * lib/unistdio/u32-snprintf.c: Likewise.
8665         * lib/unistdio/u32-sprintf.c: Likewise.
8666         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
8667         * lib/unistdio/u32-u32-asprintf.c: Likewise.
8668         * lib/unistdio/u32-u32-snprintf.c: Likewise.
8669         * lib/unistdio/u32-u32-sprintf.c: Likewise.
8670         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
8671         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
8672         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
8673         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
8674         * lib/unistdio/u32-vasnprintf.c: Likewise.
8675         * lib/unistdio/u32-vasprintf.c: Likewise.
8676         * lib/unistdio/u32-vsnprintf.c: Likewise.
8677         * lib/unistdio/u32-vsprintf.c: Likewise.
8678         * lib/unistdio/u8-asnprintf.c: Likewise.
8679         * lib/unistdio/u8-asprintf.c: Likewise.
8680         * lib/unistdio/u8-printf-parse.c: Likewise.
8681         * lib/unistdio/u8-snprintf.c: Likewise.
8682         * lib/unistdio/u8-sprintf.c: Likewise.
8683         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
8684         * lib/unistdio/u8-u8-asprintf.c: Likewise.
8685         * lib/unistdio/u8-u8-snprintf.c: Likewise.
8686         * lib/unistdio/u8-u8-sprintf.c: Likewise.
8687         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
8688         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
8689         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
8690         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
8691         * lib/unistdio/u8-vasnprintf.c: Likewise.
8692         * lib/unistdio/u8-vasprintf.c: Likewise.
8693         * lib/unistdio/u8-vsnprintf.c: Likewise.
8694         * lib/unistdio/u8-vsprintf.c: Likewise.
8695         * lib/unistdio/ulc-asnprintf.c: Likewise.
8696         * lib/unistdio/ulc-asprintf.c: Likewise.
8697         * lib/unistdio/ulc-printf-parse.c: Likewise.
8698         * lib/unistdio/ulc-snprintf.c: Likewise.
8699         * lib/unistdio/ulc-sprintf.c: Likewise.
8700         * lib/unistdio/ulc-vasnprintf.c: Likewise.
8701         * lib/unistdio/ulc-vasprintf.c: Likewise.
8702         * lib/unistdio/ulc-vsnprintf.c: Likewise.
8703         * lib/unistdio/ulc-vsprintf.c: Likewise.
8704         * lib/unistr.h: Likewise.
8705         * lib/unistr/u-cpy-alloc.h: Likewise.
8706         * lib/unistr/u-cpy.h: Likewise.
8707         * lib/unistr/u-endswith.h: Likewise.
8708         * lib/unistr/u-move.h: Likewise.
8709         * lib/unistr/u-set.h: Likewise.
8710         * lib/unistr/u-startswith.h: Likewise.
8711         * lib/unistr/u-stpcpy.h: Likewise.
8712         * lib/unistr/u-stpncpy.h: Likewise.
8713         * lib/unistr/u-strcat.h: Likewise.
8714         * lib/unistr/u-strcpy.h: Likewise.
8715         * lib/unistr/u-strcspn.h: Likewise.
8716         * lib/unistr/u-strdup.h: Likewise.
8717         * lib/unistr/u-strlen.h: Likewise.
8718         * lib/unistr/u-strncat.h: Likewise.
8719         * lib/unistr/u-strncpy.h: Likewise.
8720         * lib/unistr/u-strnlen.h: Likewise.
8721         * lib/unistr/u-strpbrk.h: Likewise.
8722         * lib/unistr/u-strspn.h: Likewise.
8723         * lib/unistr/u-strstr.h: Likewise.
8724         * lib/unistr/u-strtok.h: Likewise.
8725         * lib/unistr/u16-check.c: Likewise.
8726         * lib/unistr/u16-chr.c: Likewise.
8727         * lib/unistr/u16-cmp.c: Likewise.
8728         * lib/unistr/u16-cpy-alloc.c: Likewise.
8729         * lib/unistr/u16-cpy.c: Likewise.
8730         * lib/unistr/u16-endswith.c: Likewise.
8731         * lib/unistr/u16-mblen.c: Likewise.
8732         * lib/unistr/u16-mbsnlen.c: Likewise.
8733         * lib/unistr/u16-mbtouc-aux.c: Likewise.
8734         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
8735         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
8736         * lib/unistr/u16-mbtouc.c: Likewise.
8737         * lib/unistr/u16-mbtoucr.c: Likewise.
8738         * lib/unistr/u16-move.c: Likewise.
8739         * lib/unistr/u16-next.c: Likewise.
8740         * lib/unistr/u16-prev.c: Likewise.
8741         * lib/unistr/u16-set.c: Likewise.
8742         * lib/unistr/u16-startswith.c: Likewise.
8743         * lib/unistr/u16-stpcpy.c: Likewise.
8744         * lib/unistr/u16-stpncpy.c: Likewise.
8745         * lib/unistr/u16-strcat.c: Likewise.
8746         * lib/unistr/u16-strchr.c: Likewise.
8747         * lib/unistr/u16-strcmp.c: Likewise.
8748         * lib/unistr/u16-strcpy.c: Likewise.
8749         * lib/unistr/u16-strcspn.c: Likewise.
8750         * lib/unistr/u16-strdup.c: Likewise.
8751         * lib/unistr/u16-strlen.c: Likewise.
8752         * lib/unistr/u16-strmblen.c: Likewise.
8753         * lib/unistr/u16-strmbtouc.c: Likewise.
8754         * lib/unistr/u16-strncat.c: Likewise.
8755         * lib/unistr/u16-strncmp.c: Likewise.
8756         * lib/unistr/u16-strncpy.c: Likewise.
8757         * lib/unistr/u16-strnlen.c: Likewise.
8758         * lib/unistr/u16-strpbrk.c: Likewise.
8759         * lib/unistr/u16-strrchr.c: Likewise.
8760         * lib/unistr/u16-strspn.c: Likewise.
8761         * lib/unistr/u16-strstr.c: Likewise.
8762         * lib/unistr/u16-strtok.c: Likewise.
8763         * lib/unistr/u16-to-u32.c: Likewise.
8764         * lib/unistr/u16-to-u8.c: Likewise.
8765         * lib/unistr/u16-uctomb-aux.c: Likewise.
8766         * lib/unistr/u16-uctomb.c: Likewise.
8767         * lib/unistr/u32-check.c: Likewise.
8768         * lib/unistr/u32-chr.c: Likewise.
8769         * lib/unistr/u32-cmp.c: Likewise.
8770         * lib/unistr/u32-cpy-alloc.c: Likewise.
8771         * lib/unistr/u32-cpy.c: Likewise.
8772         * lib/unistr/u32-endswith.c: Likewise.
8773         * lib/unistr/u32-mblen.c: Likewise.
8774         * lib/unistr/u32-mbsnlen.c: Likewise.
8775         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
8776         * lib/unistr/u32-mbtouc.c: Likewise.
8777         * lib/unistr/u32-mbtoucr.c: Likewise.
8778         * lib/unistr/u32-move.c: Likewise.
8779         * lib/unistr/u32-next.c: Likewise.
8780         * lib/unistr/u32-prev.c: Likewise.
8781         * lib/unistr/u32-set.c: Likewise.
8782         * lib/unistr/u32-startswith.c: Likewise.
8783         * lib/unistr/u32-stpcpy.c: Likewise.
8784         * lib/unistr/u32-stpncpy.c: Likewise.
8785         * lib/unistr/u32-strcat.c: Likewise.
8786         * lib/unistr/u32-strchr.c: Likewise.
8787         * lib/unistr/u32-strcmp.c: Likewise.
8788         * lib/unistr/u32-strcpy.c: Likewise.
8789         * lib/unistr/u32-strcspn.c: Likewise.
8790         * lib/unistr/u32-strdup.c: Likewise.
8791         * lib/unistr/u32-strlen.c: Likewise.
8792         * lib/unistr/u32-strmblen.c: Likewise.
8793         * lib/unistr/u32-strmbtouc.c: Likewise.
8794         * lib/unistr/u32-strncat.c: Likewise.
8795         * lib/unistr/u32-strncmp.c: Likewise.
8796         * lib/unistr/u32-strncpy.c: Likewise.
8797         * lib/unistr/u32-strnlen.c: Likewise.
8798         * lib/unistr/u32-strpbrk.c: Likewise.
8799         * lib/unistr/u32-strrchr.c: Likewise.
8800         * lib/unistr/u32-strspn.c: Likewise.
8801         * lib/unistr/u32-strstr.c: Likewise.
8802         * lib/unistr/u32-strtok.c: Likewise.
8803         * lib/unistr/u32-to-u16.c: Likewise.
8804         * lib/unistr/u32-to-u8.c: Likewise.
8805         * lib/unistr/u32-uctomb.c: Likewise.
8806         * lib/unistr/u8-check.c: Likewise.
8807         * lib/unistr/u8-chr.c: Likewise.
8808         * lib/unistr/u8-cmp.c: Likewise.
8809         * lib/unistr/u8-cpy-alloc.c: Likewise.
8810         * lib/unistr/u8-cpy.c: Likewise.
8811         * lib/unistr/u8-endswith.c: Likewise.
8812         * lib/unistr/u8-mblen.c: Likewise.
8813         * lib/unistr/u8-mbsnlen.c: Likewise.
8814         * lib/unistr/u8-mbtouc-aux.c: Likewise.
8815         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
8816         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
8817         * lib/unistr/u8-mbtouc.c: Likewise.
8818         * lib/unistr/u8-mbtoucr.c: Likewise.
8819         * lib/unistr/u8-move.c: Likewise.
8820         * lib/unistr/u8-next.c: Likewise.
8821         * lib/unistr/u8-prev.c: Likewise.
8822         * lib/unistr/u8-set.c: Likewise.
8823         * lib/unistr/u8-startswith.c: Likewise.
8824         * lib/unistr/u8-stpcpy.c: Likewise.
8825         * lib/unistr/u8-stpncpy.c: Likewise.
8826         * lib/unistr/u8-strcat.c: Likewise.
8827         * lib/unistr/u8-strchr.c: Likewise.
8828         * lib/unistr/u8-strcmp.c: Likewise.
8829         * lib/unistr/u8-strcpy.c: Likewise.
8830         * lib/unistr/u8-strcspn.c: Likewise.
8831         * lib/unistr/u8-strdup.c: Likewise.
8832         * lib/unistr/u8-strlen.c: Likewise.
8833         * lib/unistr/u8-strmblen.c: Likewise.
8834         * lib/unistr/u8-strmbtouc.c: Likewise.
8835         * lib/unistr/u8-strncat.c: Likewise.
8836         * lib/unistr/u8-strncmp.c: Likewise.
8837         * lib/unistr/u8-strncpy.c: Likewise.
8838         * lib/unistr/u8-strnlen.c: Likewise.
8839         * lib/unistr/u8-strpbrk.c: Likewise.
8840         * lib/unistr/u8-strrchr.c: Likewise.
8841         * lib/unistr/u8-strspn.c: Likewise.
8842         * lib/unistr/u8-strstr.c: Likewise.
8843         * lib/unistr/u8-strtok.c: Likewise.
8844         * lib/unistr/u8-to-u16.c: Likewise.
8845         * lib/unistr/u8-to-u32.c: Likewise.
8846         * lib/unistr/u8-uctomb-aux.c: Likewise.
8847         * lib/unistr/u8-uctomb.c: Likewise.
8848         * lib/unitypes.h: Likewise.
8849         * lib/uniwidth.h: Likewise.
8850         * lib/uniwidth/cjk.h: Likewise.
8851         * lib/uniwidth/u16-strwidth.c: Likewise.
8852         * lib/uniwidth/u16-width.c: Likewise.
8853         * lib/uniwidth/u32-strwidth.c: Likewise.
8854         * lib/uniwidth/u32-width.c: Likewise.
8855         * lib/uniwidth/u8-strwidth.c: Likewise.
8856         * lib/uniwidth/u8-width.c: Likewise.
8857         * lib/uniwidth/width.c: Likewise.
8858
8859 2007-10-07  Bruno Haible  <bruno@clisp.org>
8860
8861         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
8862         The file is still under LGPL (see modules/inttypes).
8863
8864 2007-10-06  Bruno Haible  <bruno@clisp.org>
8865
8866         * modules/trunc (Dependencies): Add 'extensions'.
8867         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
8868         Reported by Ben Pfaff <blp@gnu.org>.
8869
8870 2007-10-06  Bruno Haible  <bruno@clisp.org>
8871
8872         * modules/freopen-tests: New file.
8873         * tests/test-freopen.c: New file.
8874
8875         * modules/fopen-tests: New file.
8876         * tests/test-fopen.c: New file.
8877
8878         * modules/fopen: New file.
8879         * lib/fopen.c: New file.
8880         * m4/fopen.m4: New file.
8881         * modules/freopen: New file.
8882         * lib/freopen.c: New file.
8883         * m4/freopen.m4: New file.
8884         * lib/stdio.in.h (fopen, freopen): New declarations.
8885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
8886         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
8887         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
8888         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
8889         * doc/functions/fopen.texi: Mention the 'fopen' module.
8890         * doc/functions/freopen.texi: Mention the 'freopen' module.
8891
8892 2007-10-06  Bruno Haible  <bruno@clisp.org>
8893
8894         * modules/open-tests: New file.
8895         * tests/test-open.c: New file.
8896
8897         * modules/open: New file.
8898         * lib/open.c: New file.
8899         * m4/open.m4: New file.
8900         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
8901         lib/open.c does.
8902         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
8903         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
8904         macros.
8905         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
8906         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
8907         REPLACE_OPEN.
8908         * doc/functions/open.texi: Mention the 'open' module.
8909
8910 2007-10-04  Bruno Haible  <bruno@clisp.org>
8911
8912         * modules/ceill-tests: New file.
8913         * tests/test-ceill.c: New file.
8914
8915         * modules/ceill: New file.
8916         * lib/ceill.c: Replace entire file.
8917         * m4/ceill.m4: New file.
8918         * lib/math.in.h (ceill): Replace declaration.
8919         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
8920         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
8921         * doc/functions/ceill.texi: Mention the 'ceill' module.
8922         * modules/mathl (Files): Remove lib/ceill.c.
8923         (Depends-on): Add ceill.
8924
8925 2007-10-04  Bruno Haible  <bruno@clisp.org>
8926
8927         * modules/ceilf-tests: New file.
8928         * tests/test-ceilf.c: New file.
8929
8930         * modules/ceilf: New file.
8931         * lib/ceil.c: New file.
8932         * lib/ceilf.c: New file.
8933         * m4/ceilf.m4: New file.
8934         * lib/math.in.h (ceilf): New declaration.
8935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
8936         HAVE_DECL_CEILF.
8937         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
8938         HAVE_DECL_CEILF.
8939         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
8940
8941 2007-10-04  Bruno Haible  <bruno@clisp.org>
8942
8943         * modules/floorl-tests: New file.
8944         * tests/test-floorl.c: New file.
8945
8946         * modules/floorl: New file.
8947         * lib/floorl.c: Replace entire file.
8948         * m4/floorl.m4: New file.
8949         * lib/math.in.h (floorl): Replace declaration.
8950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
8951         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
8952         * doc/functions/floorl.texi: Mention the 'floorl' module.
8953         * modules/mathl (Files): Remove lib/floorl.c.
8954         (Depends-on): Add floorl.
8955
8956 2007-10-04  Bruno Haible  <bruno@clisp.org>
8957
8958         * modules/floorf-tests: New file.
8959         * tests/test-floorf.c: New file.
8960
8961         * modules/floorf: New file.
8962         * lib/floor.c: New file.
8963         * lib/floorf.c: New file.
8964         * m4/floorf.m4: New file.
8965         * lib/math.in.h (floorf): New declaration.
8966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
8967         HAVE_DECL_FLOORF.
8968         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
8969         HAVE_DECL_FLOORF.
8970         * doc/functions/floorf.texi: Mention the 'floorf' module.
8971
8972 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
8973             Bruno Haible  <bruno@clisp.org>
8974
8975         Advertise for the Git server instead of the CVS server.
8976         * doc/gnulib-intro.texi (Steady Development): Mention the Git
8977         repository instead of the CVS one.
8978         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
8979         about all VCS systems generically.
8980         * doc/gnulib.texi (Introduction): Capitalize `Git'.
8981
8982 2007-10-04  Bruno Haible  <bruno@clisp.org>
8983
8984         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
8985         means.
8986         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
8987
8988 2007-10-04  Bruno Haible  <bruno@clisp.org>
8989
8990         * modules/truncl-tests: New file.
8991         * tests/test-truncl.c: New file.
8992
8993         * modules/truncl: New file.
8994         * lib/truncl.c: New file.
8995         * m4/truncl.m4: New file.
8996         * lib/math.in.h (truncl): New declaration.
8997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
8998         HAVE_DECL_TRUNCL.
8999         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
9000         HAVE_DECL_TRUNCL.
9001         * doc/functions/truncl.texi: Mention the 'truncl' module.
9002
9003 2007-10-04  Bruno Haible  <bruno@clisp.org>
9004
9005         * modules/truncf-tests: New file.
9006         * tests/test-truncf.c: New file.
9007
9008         * modules/truncf: New file.
9009         * lib/trunc.c: Make paramerizable through USE_* macros.
9010         * lib/truncf.c: New file.
9011         * m4/truncf.m4: New file.
9012         * lib/math.in.h (truncf): New declaration.
9013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
9014         HAVE_DECL_TRUNCF.
9015         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
9016         HAVE_DECL_TRUNCF.
9017         * doc/functions/truncf.texi: Mention the 'truncf' module.
9018
9019 2007-10-03  Bruno Haible  <bruno@clisp.org>
9020
9021         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
9022         augmentation also for tests modules.
9023         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
9024         * modules/atexit-tests (Makefile.am): Likewise.
9025         * modules/binary-io-tests (Makefile.am): Likewise.
9026         * modules/c-strcase-tests (Makefile.am): Likewise.
9027         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
9028         * modules/canonicalize-tests (Makefile.am): Likewise.
9029         * modules/closein-tests (Makefile.am): Likewise.
9030         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9031         * modules/freadahead-tests (Makefile.am): Likewise.
9032         * modules/fseek-tests (Makefile.am): Likewise.
9033         * modules/fseeko-tests (Makefile.am): Likewise.
9034         * modules/ftell-tests (Makefile.am): Likewise.
9035         * modules/ftello-tests (Makefile.am): Likewise.
9036         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
9037         * modules/isnanl-tests (Makefile.am): Likewise.
9038         * modules/lseek-tests (Makefile.am): Likewise.
9039         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9040         * modules/mbscasestr-tests (Makefile.am): Likewise.
9041         * modules/mbschr-tests (Makefile.am): Likewise.
9042         * modules/mbscspn-tests (Makefile.am): Likewise.
9043         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9044         * modules/mbspbrk-tests (Makefile.am): Likewise.
9045         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9046         * modules/mbsrchr-tests (Makefile.am): Likewise.
9047         * modules/mbsspn-tests (Makefile.am): Likewise.
9048         * modules/mbsstr-tests (Makefile.am): Likewise.
9049         * modules/printf-posix-tests (Makefile.am): Likewise.
9050         * modules/snprintf-posix-tests (Makefile.am): Likewise.
9051         * modules/sprintf-posix-tests (Makefile.am): Likewise.
9052         * modules/tsearch-tests (Makefile.am): Likewise.
9053         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9054         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9055         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9056         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9057         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9058         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9059         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9060         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9061         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
9062         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
9063         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9064         * modules/xstrtol-tests (Makefile.am): Likewise.
9065         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9066         * modules/yesno-tests (Makefile.am): Likewise.
9067
9068 2007-10-03  Bruno Haible  <bruno@clisp.org>
9069
9070         * modules/trunc-tests: New file.
9071         * tests/test-trunc.c: New file.
9072
9073         * modules/trunc: New file.
9074         * lib/trunc.c: New file.
9075         * m4/trunc.m4: New file.
9076         * lib/math.in.h (trunc): New declaration.
9077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
9078         HAVE_DECL_TRUNC.
9079         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
9080         HAVE_DECL_TRUNC.
9081         * doc/functions/trunc.texi: Mention the 'trunc' module.
9082
9083 2007-10-03  Bruno Haible  <bruno@clisp.org>
9084
9085         * tests/test-fpending.c: New file, mostly copied
9086         from coreutils/lib/t-fpending.c.
9087         * modules/fpending-tests: New file.
9088
9089 2007-10-03  Bruno Haible  <bruno@clisp.org>
9090
9091         Port the stdio extensions to QNX (untested).
9092         * lib/fseterr.c (fseterr): Add support for QNX.
9093         * lib/fbufmode.c (fbufmode): Likewise.
9094         * lib/freadable.c (freadable): Likewise.
9095         * lib/fwritable.c (fwritable): Likewise.
9096         * lib/freading.c (freading): Likewise.
9097         * lib/fwriting.c (fwriting): Likewise.
9098         * lib/freadahead.c (freadahed): Likewise.
9099         * lib/fpurge.c (fpurge): Likewise.
9100         * lib/fseeko.c (rpl_fseeko): Likewise.
9101
9102 2007-10-03  Bruno Haible  <bruno@clisp.org>
9103             Jim Meyering  <jim@meyering.net>
9104             Eric Blake  <ebb9@byu.net>
9105
9106         * doc/relocatable.texi: Use @command instead of @program.
9107
9108 2007-10-02  Jim Meyering  <jim@meyering.net>
9109
9110         Perform one more "_.h" -> ".in.h" substitution.
9111         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
9112         instead of unistd_.h here, too.
9113
9114 2007-10-01  Bruno Haible  <bruno@clisp.org>
9115
9116         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
9117         Needed for the alloca-opt module.
9118
9119 2007-09-30  Bruno Haible  <bruno@clisp.org>
9120
9121         * lib/alloca.in.h: Renamed from lib/alloca_.h.
9122         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
9123         alloca_.h.
9124         * lib/argz.in.h: Renamed from lib/argz_.h.
9125         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
9126         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
9127         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
9128         byteswap_.h.
9129         * lib/dirent.in.h: Renamed from lib/dirent_.h.
9130         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
9131         dirent_.h.
9132         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
9133         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
9134         fcntl_.h.
9135         * lib/float.in.h: Renamed from lib/float_.h.
9136         * modules/float (Files, Makefile.am): Use float.in.h instead of
9137         float_.h.
9138         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
9139         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
9140         fnmatch_.h.
9141         * lib/getopt.in.h: Renamed from lib/getopt_.h.
9142         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
9143         getopt_.h.
9144         * lib/glob.in.h: Renamed from lib/glob_.h.
9145         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
9146         * lib/iconv.in.h: Renamed from lib/iconv_.h.
9147         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
9148         iconv_.h.
9149         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
9150         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
9151         inttypes_.h.
9152         * lib/locale.in.h: Renamed from lib/locale_.h.
9153         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
9154         locale_.h.
9155         * lib/math.in.h: Renamed from lib/math_.h.
9156         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
9157         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
9158         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
9159         of netinet_in_.h. Add dependency.
9160         * lib/poll.in.h: Renamed from lib/poll_.h.
9161         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
9162         * lib/search.in.h: Renamed from lib/search_.h.
9163         * modules/search (Files, Makefile.am): Use search.in.h instead of
9164         search_.h.
9165         * lib/signal.in.h: Renamed from lib/signal_.h.
9166         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
9167         _signal.h.
9168         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
9169         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
9170         stdbool_.h.
9171         * lib/stdint.in.h: Renamed from lib/stdint_.h.
9172         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
9173         stdint_.h.
9174         * lib/stdio.in.h: Renamed from lib/stdio_.h.
9175         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
9176         stdio_.h.
9177         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
9178         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
9179         stdlib_.h.
9180         * lib/string.in.h: Renamed from lib/string_.h.
9181         * modules/string (Files, Makefile.am): Use string.in.h instead of
9182         string_.h.
9183         * doc/gnulib-tool.texi (Initial import): Update.
9184         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
9185         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
9186         of sys_select_.h. Add dependency.
9187         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
9188         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
9189         of sys_socket_.h.
9190         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
9191         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
9192         sys_stat_.h.
9193         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
9194         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
9195         sys_time_.h.
9196         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
9197         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
9198         sysexits_.h.
9199         * lib/time.in.h: Renamed from lib/time_.h.
9200         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
9201         * lib/unistd.in.h: Renamed from lib/unistd_.h.
9202         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
9203         unistd_.h.
9204         * lib/wchar.in.h: Renamed from lib/wchar_.h.
9205         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
9206         wchar_.h.
9207         * lib/wctype.in.h: Renamed from lib/wctype_.h.
9208         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
9209         wctype_.h.
9210         * build-aux/bootstrap (slurp): Update.
9211         * lib/.cppi-disable: Update.
9212
9213 2007-09-30  Bruno Haible  <bruno@clisp.org>
9214
9215         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
9216         Needed on BeOS.
9217
9218 2007-09-30  Bruno Haible  <bruno@clisp.org>
9219
9220         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
9221
9222 2007-09-29  Bruno Haible  <bruno@clisp.org>
9223
9224         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
9225
9226 2007-09-29  Bruno Haible  <bruno@clisp.org>
9227
9228         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
9229         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
9230         * build-aux/install-reloc: Compile also areadlink.c.
9231         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
9232
9233 2007-09-29  Bruno Haible  <bruno@clisp.org>
9234
9235         * gnulib-tool (func_emit_initmacro_done): Indentation.
9236
9237 2007-09-29  Bruno Haible  <bruno@clisp.org>
9238
9239         * README: Add CVS checkout update instructions.
9240         Info from Bob Proulx <bob@proulx.com>.
9241
9242 2007-09-28  Eric Blake  <ebb9@byu.net>
9243
9244         Provide move-if-change.
9245         * build-aux/move-if-change: New file, based on best practice
9246         rather than any canonical upstream location.
9247
9248 2007-09-28  Jim Meyering  <jim@meyering.net>
9249
9250         Fix canonicalize loop-detection corner case.
9251         Do not attempt to stat the symlink values stored via seen_triple.
9252         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
9253         on linux-2.6.18, (but not 2.6.22).
9254         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
9255         triple_compare.  The former compares dev,ino,filename, while the latter
9256         would actually stat dirname(filename) when dev and ino were equal.
9257         * lib/hash-triple.c: Install <string.h>.
9258         (STREQ): Define.
9259         (triple_compare_ino_str): New function.
9260         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
9261
9262 2007-09-28  Eric Blake  <ebb9@byu.net>
9263
9264         Enforce that AC_REPLACE_FUNCS files exist.
9265         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
9266         override check for typos.
9267
9268         Fix test-closein on Solaris 10.
9269         * tests/test-closein.c (main): Don't assume stdin can be inherited
9270         closed on all systems.
9271         * tests/test-closein.sh: Likewise.
9272         Reported by Piotr Tarnowski.
9273
9274 2007-09-28  Jim Meyering  <jim@meyering.net>
9275
9276         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
9277
9278 2007-09-27  Jim Meyering  <jim@meyering.net>
9279
9280         canonicalize: Avoid a false-positive cycle failure.
9281         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
9282         Sort.  Remove cycle-check.
9283         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
9284         not cycle-check.h.
9285         (seen_triple): New function.
9286         (canonicalize_filename_mode): Use it instead of cycle-check.
9287         * tests/test-canonicalize.c: Add a test for this bug.
9288         * tests/test-canonicalize.sh: Set up and run the test.
9289
9290         New module, file-set, from coreutils.
9291         * modules/file-set: Define it.
9292         * lib/file-set.c, lib/file-set.h: Implement.
9293
9294         New module, hash-triple, from coreutils.
9295         * modules/hash-triple: Define it.
9296         * lib/hash-triple.c, lib/hash-triple.h: Implement.
9297
9298 2007-09-25  Eric Blake  <ebb9@byu.net>
9299
9300         Fix strerror on Interix.
9301         * lib/string_.h (strerror): Declare replacement.
9302         * doc/functions/strerror.texi (strerror): Document the Interix
9303         shortcoming.
9304         * modules/string (Makefile.am): Support new hooks.
9305         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
9306         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
9307         gl_FUNC_STRERROR_SEPARATE.
9308         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
9309         * lib/strerror.c (rpl_strerror): Provide replacement.
9310         * modules/strerror (Depends-on): Add string.
9311         (configure.ac): Detect use of module.
9312         * tests/test-strerror.c: New file.
9313         * modules/strerror-tests: New test module.
9314         * modules/argp (Depends-on): Add strerror.
9315         * modules/error (Depends-on): Likewise.
9316         Reported by Martin Koeppe.
9317
9318 2007-09-24  Bruno Haible  <bruno@clisp.org>
9319
9320         * README: Update git instructions.
9321
9322 2007-09-24  Eric Blake  <ebb9@byu.net>
9323
9324         Revert fpending breakage from 2007-09-08.
9325         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
9326         __fpending.c.
9327
9328 2007-09-24  Jim Meyering  <jim@meyering.net>
9329
9330         filenamecat.c: Add a test.
9331         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
9332         showing how the function works when DIR is the empty string.
9333
9334 2007-09-21  Simon Josefsson  <simon@josefsson.org>
9335
9336         * tests/test-canonicalize.sh: Turn on executable bit.
9337
9338 2007-09-19  Eric Blake  <ebb9@byu.net>
9339
9340         * README: Update CVS instructions.
9341
9342 2007-09-18  Bruno Haible  <bruno@clisp.org>
9343
9344         * modules/areadlink: New file.
9345         * lib/areadlink.h (areadlink): New declaration.
9346         * lib/areadlink.c: New file, based on lib/xreadlink.c.
9347
9348 2007-09-17  Jim Meyering  <jim@meyering.net>
9349
9350         * lib/savewd.c (ESTALE) [!defined]: Define.
9351         Reported to be required on Interix by Martin Koeppe.
9352
9353 2007-09-17  Bruno Haible  <bruno@clisp.org>
9354
9355         * gnulib-tool (func_version): Use $version.
9356
9357 2007-09-16  Bruno Haible  <bruno@clisp.org>
9358
9359         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
9360         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
9361         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
9362         Reported by Greg Schafer <gschafer@zip.com.au>.
9363
9364 2007-09-15  Bruno Haible  <bruno@clisp.org>
9365
9366         * gnulib-tool (sed): Try a little harder to make bash understand the
9367         alias.
9368         Reported by Bruce Korb <bruce.korb@gmail.com>.
9369
9370 2007-09-13  Eric Blake  <ebb9@byu.net>
9371
9372         * ChangeLog: Remove conflict markers.
9373
9374 2007-09-13  Simon Josefsson  <simon@josefsson.org>
9375
9376         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
9377         Reported by Bruno Haible <bruno@clisp.org>.
9378
9379 2007-09-12  Bruno Haible  <bruno@clisp.org>
9380
9381         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
9382         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
9383         is not defined.
9384
9385 2007-09-12  Eric Blake  <ebb9@byu.net>
9386
9387         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
9388         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
9389         Autoconf definition.
9390         * modules/euidaccess (Depends-on): Add extensions, for
9391         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
9392         * modules/fnmatch (Depends-on): Likewise.
9393         * modules/getaddrinfo (Depends-on): Likewise.
9394         * modules/getdelim (Depends-on): Likewise.
9395         * modules/getline (Depends-on): Likewise.
9396         * modules/getsubopt (Depends-on): Likewise.
9397         * modules/gettext (Depends-on): Likewise.
9398         * modules/group-member (Depends-on): Likewise.
9399         * modules/mbchar (Depends-on): Likewise.
9400         * modules/memmem (Depends-on): Likewise.
9401         * modules/mempcpy (Depends-on): Likewise.
9402         * modules/memrchr (Depends-on): Likewise.
9403         * modules/pagealign_alloc (Depends-on): Likewise.
9404         * modules/readutmp (Depends-on): Likewise.
9405         * modules/stpcpy (Depends-on): Likewise.
9406         * modules/stpncpy (Depends-on): Likewise.
9407         * modules/strchrnul (Depends-on): Likewise.
9408         * modules/strndup (Depends-on): Likewise.
9409         * modules/strsep (Depends-on): Likewise.
9410         * modules/strverscmp (Depends-on): Likewise.
9411         * modules/vasprintf (Depends-on): Likewise.
9412         * modules/wcwidth (Depends-on): Likewise.
9413         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
9414         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
9415         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
9416         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
9417         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9418         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9419         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
9420         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
9421         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
9422         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
9423         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9424         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
9425         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
9426         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9427         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
9428         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9429         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9430         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
9431         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9432         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
9433         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
9434         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
9435         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
9436         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
9437         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
9438         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9439         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
9440         so that lock.m4 can be used in gettext without extensions module.
9441
9442 2007-09-11  Bruno Haible  <bruno@clisp.org>
9443
9444         * m4/isc-posix.m4: Remove file.
9445         Suggested by Eric Blake.
9446
9447 2007-09-11  Eric Blake  <ebb9@byu.net>
9448
9449         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
9450
9451 2007-09-10  Bruno Haible  <bruno@clisp.org>
9452
9453         * posix-modules: Fix typo in error message.
9454         Reported by Matt <mkraai@beckman.com>.
9455
9456 2007-09-09  Bruno Haible  <bruno@clisp.org>
9457
9458         * doc/functions/getdelim.texi: Update list of platforms lacking the
9459         function.
9460         * doc/functions/getline.texi: Likewise.
9461
9462 2007-09-09  Jim Meyering  <jim@meyering.net>
9463
9464         * lib/hash.c (hash_initialize): Detect calloc failure.
9465         Reported by Bruno Haible.
9466
9467 2007-09-09  Bruno Haible  <bruno@clisp.org>
9468
9469         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
9470         malloc or realloc fails.
9471
9472 2007-09-09  Bruno Haible  <bruno@clisp.org>
9473
9474         * modules/getcwd (Depends-on): Add malloc-posix.
9475         * modules/glob (Depends-on): Likewise.
9476         * modules/putenv (Depends-on): Likewise.
9477         * modules/strdup (Depends-on): Likewise.
9478         * modules/getdelim (Depends-on): Add realloc-posix.
9479         * modules/read-file (Depends-on): Likewise.
9480
9481 2007-09-09  Bruno Haible  <bruno@clisp.org>
9482
9483         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
9484         (gl_FUNC_MALLOC_POSIX): Require it.
9485         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
9486         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
9487         * modules/realloc (Files): Add m4/malloc.m4.
9488         * modules/calloc (Files): Likewise.
9489
9490 2007-09-09  Bruno Haible  <bruno@clisp.org>
9491
9492         * modules/malloc-posix: New file.
9493         * modules/malloc (Depends-on): Add malloc-posix.
9494         * lib/malloc.c: Include errno.h.
9495         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
9496         and a POSIX-compatible malloc into a single function. Set ENOMEM
9497         when returning NULL.
9498         * m4/malloc.m4: New file.
9499         * doc/functions/malloc.texi: Mention the malloc-posix module.
9500         * lib/stdlib_.h (malloc): New declaration.
9501         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9502         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
9503         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
9504         and HAVE_MALLOC_POSIX.
9505
9506 2007-09-09  Bruno Haible  <bruno@clisp.org>
9507
9508         * modules/realloc-posix: New file.
9509         * modules/realloc (Depends-on): Add realloc-posix.
9510         * lib/realloc.c: Include errno.h.
9511         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
9512         and a POSIX-compatible realloc into a single function. Set ENOMEM
9513         when returning NULL.
9514         * m4/realloc.m4: New file.
9515         * doc/functions/realloc.texi: Mention the realloc-posix module.
9516         * lib/stdlib_.h (realloc): New declaration.
9517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9518         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
9519         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
9520         and HAVE_REALLOC_POSIX.
9521
9522 2007-09-09  Bruno Haible  <bruno@clisp.org>
9523
9524         * modules/calloc-posix: New file.
9525         * modules/calloc (Depends-on): Add calloc-posix.
9526         * lib/calloc.c: Include errno.h.
9527         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
9528         and a POSIX-compatible calloc into a single function. Set ENOMEM
9529         when returning NULL.
9530         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
9531         * doc/functions/calloc.texi: Mention the calloc-posix module.
9532         * lib/stdlib_.h (calloc): New declaration.
9533         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9534         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
9535         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
9536         and HAVE_CALLOC_POSIX.
9537
9538 2007-09-09  Bruno Haible  <bruno@clisp.org>
9539
9540         Allow for modules to show an arbitrary notice.
9541         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
9542         * gnulib-tool: New option --extract-notice.
9543         (func_usage): Document it.
9544         (sed_extract_prog): Update.
9545         (func_get_notice): New function.
9546         (func_modules_notice): New function.
9547         (func_import, func_create_testdir): Invoke it.
9548         Suggested by Jim Meyering.
9549
9550 2007-09-09  Bruno Haible  <bruno@clisp.org>
9551
9552         * gnulib-tool: New options --verbose, --quiet.
9553         (func_usage): Document them.
9554         (verbose): New variable.
9555         (func_execute_command): New function.
9556         (func_import): Don't show the module list and the file list if
9557         $verbose < 0.
9558         (func_create_testdir): Likewise. Use func_execute_command.
9559         (func_create_megatestdir): Use func_execute_command.
9560
9561 2007-09-08  Bruno Haible  <bruno@clisp.org>
9562
9563         * gnulib-tool (func_import): Prefer rsync over wget when available,
9564         for fetching the PO files.
9565
9566 2007-09-08  Bruno Haible  <bruno@clisp.org>
9567
9568         * posix-modules: New file. Portions copied from gnulib-tool.
9569         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
9570
9571 2007-09-08  Jim Meyering  <jim@meyering.net>
9572
9573         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
9574         * lib/fpending.h: Rename from __fpending.h.
9575         * lib/fpending.c: Rename from __fpending.c.
9576         Include "fpending.h", not "__fpending.h".
9577         * lib/__fpending.h, lib/__fpending.c: Remove files.
9578         * modules/fpending (Files): Reflect new file names.
9579         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
9580
9581 2007-09-08  Bruno Haible  <bruno@clisp.org>
9582
9583         * m4/inttypes-h.m4: Remove stub file.
9584
9585 2007-09-07  Simon Josefsson  <simon@josefsson.org>
9586
9587         * doc/headers/stdint.texi: Discuss #include_next issue.
9588
9589 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
9590
9591         * build-aux/bootstrap: Remove obsolete comment about wget --help.
9592
9593 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9594
9595         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
9596         in variable name.
9597
9598 2007-09-03  Jim Meyering  <jim@meyering.net>
9599
9600         New module: git-version-gen.
9601         * modules/git-version-gen: New file.
9602
9603         Import changes from coreutils for bootstrap script.
9604
9605         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
9606
9607         bootstrap: uses rsync to download the .po files
9608         * build-aux/bootstrap (po_download_command_format): New global.
9609         (download_po_files): Use rsync.
9610         (update_po_files): Don't remove .po files after download,
9611         so future rsync runs can take advantage of the copies.
9612
9613         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
9614
9615         Solve the unnecessary-.po-file-regeneration problem once and for all.
9616         * build-aux/bootstrap (download_po_files): New function, renamed from
9617         get_translations.  Now, downloads, but doesn't update LINGUAS.
9618         (update_po_files): New function.
9619
9620         bootstrap: Ignore more.
9621         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
9622         uniwidth to e.g., lib/.gitignore.
9623         (slurp): Handle the sys_stat_.h -> sys mapping, too.
9624
9625         * build-aux/bootstrap: New setting: vc_ignore.
9626         (insert_sorted_if_absent): Create $file if absent.
9627         Adapt to new, possibly empty, list: $vc_ignore.
9628
9629         bootstrap: generate more ignorable names
9630         * build-aux/bootstrap (slurp): When generating ignorable names,
9631         also map .sin to .sed, .gperf to .c, and .y to .c.
9632
9633 2007-09-03  Jim Meyering  <jim@meyering.net>
9634
9635         * build-aux/git-version-gen: New file, from coreutils.  For details, see
9636         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
9637
9638 2007-09-02  Bruno Haible  <bruno@clisp.org>
9639
9640         Fix mis-recognition of 'mcs' on QNX 6.
9641         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
9642         output contains the string "Mono".
9643         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
9644         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
9645
9646 2007-09-01  Bruno Haible  <bruno@clisp.org>
9647
9648         Fix collision between uniwidth/* and linebreak modules.
9649         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
9650         u32_width): Remove declarations.
9651         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
9652         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
9653         streq3, streq2, streq1, streq0): Remove functions.
9654         (STREQ): Remove macro.
9655         (is_cjk_encoding): Remove function.
9656         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
9657         (uc_width, u8_width, u16_width, u32_width): Remove functions.
9658         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
9659         * NEWS: Document the change.
9660
9661 2007-09-01  Bruno Haible  <bruno@clisp.org>
9662
9663         * lib/streq.h: Add double-inclusion guard.
9664
9665 2007-09-01  Karl Berry  <karl@gnu.org>
9666
9667         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
9668
9669 2007-08-28  Jim Meyering  <jim@meyering.net>
9670
9671         Rename mreadlink_with_size to areadlink_with_size.
9672         * NEWS: Document the change.
9673         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
9674         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
9675         * lib/mreadlink.h: Rename this to...
9676         * lib/areadlink.h: ...this.
9677         * modules/mreadlink-with-size: Rename this to...
9678         * modules/areadlink-with-size: ...this.
9679         * lib/canonicalize.c: Reflect the renaming.
9680         * modules/canonicalize: Likewise.
9681
9682 2007-08-26  Bruno Haible  <bruno@clisp.org>
9683
9684         * gnulib-tool (func_import): When deciding which files to remove,
9685         consider also dangling symbolic links.
9686         Reported by Eric Blake.
9687
9688 2007-08-26  Bruno Haible  <bruno@clisp.org>
9689
9690         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
9691
9692 2007-08-23  Simon Josefsson  <simon@josefsson.org>
9693
9694         * lib/readline.c: Don't include getline.h, the prototype is now
9695         found in stdio.h.
9696
9697 2007-08-23  Jim Meyering  <jim@meyering.net>
9698
9699         Getdelim touchup.
9700         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
9701         around the funlockfile call, since funlockfile never sets errno.
9702         Don't set errno upon failed realloc.
9703
9704 2007-08-22  Eric Blake  <ebb9@byu.net>
9705
9706         Getline touchups.
9707         * lib/getdelim.c (getdelim): Revert regression that required *n to
9708         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
9709         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
9710         getdelim, rather than whether implementation is missing.
9711         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
9712         * lib/stdio_.h (getline): Also declare if replacement is
9713         required.
9714         * doc/functions/getdelim.texi: New file.
9715         * doc/functions/getline.texi: Likewise.
9716         * doc/gnulib.texi (Function Substitutes): Add new files.
9717         Reported by Bruno Haible.
9718
9719 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
9720
9721         * users.txt: Add Guile.
9722
9723 2007-08-22  Eric Blake  <ebb9@byu.net>
9724
9725         * tests/test-getdelim.c (main): Use remove, not unlink.
9726         * tests/test-getline.c (main): Likewise.
9727
9728         Move getline and getdelim into stdio.h, per POSIX 200x.
9729         * modules/getline (Files): Remove getline.h.
9730         (Depends-on): Add stdio.
9731         (configure.ac): Add module indicator.
9732         * modules/getdelim (Files): Remove getdelim.h.
9733         (Depends-on): Add stdio.
9734         (configure.ac): Add module indicator.
9735         * modules/stdio (Makefile.am): Work with new indicators.
9736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9737         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
9738         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9739         * lib/getdelim.h: Delete.
9740         * lib/getline.h: Delete.
9741         * lib/stdio_.h (getdelim, getline): Declare.
9742         * modules/getdelim-tests: New module.
9743         * modules/getline-tests: Likewise.
9744         * tests/test-getdelim.c: New file.
9745         * tests/test-getline.c: Likewise.
9746         * NEWS: Document the change.
9747         * lib/getline.c: Update choice of header.
9748         * lib/csharpcomp.c: Likewise.
9749         * lib/getpass.c: Likewise.
9750         * lib/javacomp.c: Likewise.
9751         * lib/javaversion.c: Likewise.
9752         * lib/yesno.c: Likewise.
9753         * lib/getdelim.c: Likewise.
9754         (getdelim): Set errno on failure, and avoid memory leak.
9755
9756 2007-08-19  Bruno Haible  <bruno@clisp.org>
9757
9758         * modules/closein (Depends-on): Add freadahead.
9759         * lib/closein.c: Include freadahead.h.
9760         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
9761         is zero.
9762
9763 2007-08-19  Bruno Haible  <bruno@clisp.org>
9764
9765         * modules/freadahead-tests: New file.
9766         * tests/test-freadahead.sh: New file.
9767         * tests/test-freadahead.c: New file.
9768
9769         * modules/freadahead: New file.
9770         * lib/freadahead.h: New file.
9771         * lib/freadahead.c: New file.
9772         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
9773         fbufmode, fpurge, freadable, fwritable.
9774
9775 2007-08-19  Eric Blake  <ebb9@byu.net>
9776
9777         Test yesno in combination with closein.
9778         * lib/yesno.c (yesno): Document use of stdin.
9779         * modules/yesno-tests (Files): New module.
9780         * tests/test-yesno.c (main): New file.
9781         * tests/test-yesno.sh: Likewise.
9782
9783 2007-08-19  Bruno Haible  <bruno@clisp.org>
9784
9785         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
9786         * lib/fseeko.c (rpl_fseeko): Likewise.
9787         * lib/fseterr.c (fseterr): Likewise.
9788
9789 2007-08-19  Bruno Haible  <bruno@clisp.org>
9790
9791         * tests/test-lseek.c (main): Disable a test for BeOS.
9792         * doc/functions/lseek.texi: Document the BeOS bug.
9793
9794 2007-08-19  Bruno Haible  <bruno@clisp.org>
9795             Eric Blake  <ebb9@byu.net>
9796
9797         * lib/lseek.c: Include <sys/stat.h>.
9798         (rpl_lseek): Add workaround code also for Unix platforms.
9799         Needed for BeOS.
9800         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
9801         * doc/functions/lseek.texi: Document BeOS definiency.
9802
9803 2007-08-18  Bruno Haible  <bruno@clisp.org>
9804
9805         * modules/fstrcmp-tests: New file.
9806         * tests/test-fstrcmp.c: New file.
9807
9808 2007-08-18  Bruno Haible  <bruno@clisp.org>
9809
9810         * modules/fstrcmp: New file, from GNU gettext with modifications.
9811         * lib/fstrcmp.h: New file, from GNU gettext.
9812         * lib/fstrcmp.c: New file, from GNU gettext.
9813         * MODULES.html.sh (String handling): Add fstrcmp.
9814
9815 2007-08-18  Bruno Haible  <bruno@clisp.org>
9816
9817         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
9818         'bool'.
9819         (diag, compareseq): Remove const from the ctxt argument.
9820         (USE_HEURISTIC): Undefine at the end.
9821
9822 2007-08-18  Jim Meyering  <jim@meyering.net>
9823
9824         New file: lib/idcache.h
9825         * NEWS: Mention the addition.
9826         * modules/idcache (Files): Add lib/idcache.h
9827         * lib/idcache.c: Include "idcache.h".
9828         Don't include <sys/types.h>.
9829         Add a FIXME comment.
9830         Move file-scoped "static" declarations to the top.
9831         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
9832
9833 2007-08-17  Bruno Haible  <bruno@clisp.org>
9834         and Paul Eggert  <eggert@cs.ucla.edu>
9835
9836         * MODULES.html.sh: Add diffseq.
9837         * modules/diffseq: New file.
9838         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
9839         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
9840
9841 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
9842
9843         Import changes from coreutils for bootstrap script.
9844
9845         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
9846
9847         * build-aux/bootstrap (slurp): Work even in environments where
9848         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
9849         current code does not slurp files whose names start with ".", and
9850         this looks like it might be a troublesome area.
9851
9852         2007-07-11  Jim Meyering  <jim@meyering.net>
9853
9854         If there's a GPL vN copyright comment, require that N == 3.
9855
9856         2007-07-08  Jim Meyering  <jim@meyering.net>
9857
9858         Run the coreutils-specific code only if tests/Makefile.am.in exists.
9859         * build-aux/bootstrap (mam_template): Move definition out of loop.
9860
9861         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
9862
9863         * build-aux/bootstrap (symlink_to_dir): Rename function from
9864         symlink_to_gnulib.  Add a directory parameter.  Update all
9865         callers.
9866         (cp_mark_as_generated): Also check for -- and link to -- files in
9867         gl/.
9868
9869         2007-07-08  Jim Meyering  <jim@meyering.net>
9870
9871         Adapt to deeper hierarchy in gnulib.
9872         * build-aux/bootstrap (symlink_to_dir): If the destination
9873         directory doesn't exist, create it. This is required at least for
9874         "lib/uniwidth/cjk.h".
9875
9876         2007-05-15  Jim Meyering  <jim@meyering.net>
9877
9878         * build-aux/bootstrap: Now that generated Makefile.am files
9879         are no longer under version control, they must be created at
9880         bootstrap time.
9881
9882 2007-08-14  Ben Pfaff  <blp@gnu.org>
9883
9884         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
9885
9886 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
9887
9888         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
9889         given the changes below.
9890         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
9891         even on hosts that have padding bits beyond the supported 64.
9892
9893 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9894
9895         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
9896         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
9897         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
9898         depends on it.
9899         (xstrtol_error): Remove.
9900         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
9901         but with a different signature.
9902         (ATTRIBUTE_NORETURN, __attribute__): New macros.
9903         * lib/xstrtol-error.c: Include exitfail.h.
9904         (xstrtol_fatal): New function, with a different signature from the
9905         old xstrtol_error, so that the caller need not worry about passing
9906         in an exit status, or about storage management of the option argument.
9907         (xstrtol_error): Now a static function.  Redo signature to
9908         implement xstrtol_fatal.  Output the correct number of hyphens in
9909         front of the option so that the caller need not worry about
9910         storage management.
9911         (N_): New macro.
9912         (_): Remove; not used now.
9913         * modules/xstrtol: Depend on getopt.
9914         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
9915         of old STRTOL_FATAL_ERROR macro.
9916         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
9917         of test program.
9918         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
9919         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
9920
9921 2007-08-08  Eric Blake  <ebb9@byu.net>
9922
9923         * lib/xstrtol-error.c: Add missing include.
9924
9925         Move xstrtol messages into gnulib domain, when --pobase is used.
9926         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
9927         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
9928         * modules/xstrtol (Files): Distribute new file.
9929         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
9930         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
9931         * tests/test-xstrtol.c: ...into new file.
9932         * tests/test-xstrtoul.c: Also test xstrtoul.
9933         * tests/test-xstrtoimax.c: Also test xstrtoimax.
9934         * tests/test-xstrtoumax.c: Also test xstrtoumax.
9935         * tests/test-xstrtol.sh: Drive the tests.
9936         * tests/test-xstrtoimax.sh: Likewise.
9937         * tests/test-xstrtoumax.sh: Likewise.
9938         * modules/xstrtol-tests: New module.
9939         * modules/xstrtoimax-tests: Likewise.
9940         * modules/xstrtoumax-tests: Likewise.
9941
9942 2007-08-08  Jim Meyering  <jim@meyering.net>
9943
9944         New function: mfile_name_concat.
9945         * lib/filenamecat.c (mfile_name_concat): New function, just like
9946         file_name_concat, but return NULL upon failure rather than exiting
9947         with a diagnostic.
9948         * lib/filenamecat.h: Declare it.
9949
9950 2007-08-07  Bruno Haible  <bruno@clisp.org>
9951
9952         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
9953         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
9954         warning from gcc.
9955         Reported by Eric Blake.
9956
9957 2007-08-07  Simon Josefsson  <simon@josefsson.org>
9958
9959         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
9960         * modules/crypto/arcfour (License): Likewise.
9961         * modules/crypto/des-tests (License): Likewise.
9962         * modules/crypto/gc-arctwo-tests (License): Likewise.
9963         * modules/crypto/gc-des-tests (License): Likewise.
9964         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
9965         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
9966         * modules/crypto/gc-md2-tests (License): Likewise.
9967         * modules/crypto/gc-md4-tests (License): Likewise.
9968         * modules/crypto/gc-md5-tests (License): Likewise.
9969         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
9970         * modules/crypto/gc-rijndael-tests (License): Likewise.
9971         * modules/crypto/gc-sha1-tests (License): Likewise.
9972         * modules/crypto/gc-tests (License): Likewise.
9973         * modules/crypto/hmac-md5 (License): Likewise.
9974         * modules/crypto/hmac-sha1 (License): Likewise.
9975         * modules/crypto/md2-tests (License): Likewise.
9976         * modules/crypto/md4-tests (License): Likewise.
9977         * modules/crypto/md5 (License): Likewise.
9978         * modules/crypto/rijndael (License): Likewise.
9979         * modules/crypto/sha1 (License): Likewise.
9980         * modules/memxor (License): Likewise.
9981
9982 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
9983         and Bruno Haible  <bruno@clisp.org>
9984
9985         * NEWS: Describe interface changes to human, xstrtol.
9986         * lib/human.h: Include <xstrtol.h>.
9987         (human_options): Return enum strtol_error, not int.  Remove
9988         bool arg; take int * instead.
9989         * lib/human.c: Don't include "gettext.h".
9990         (_): Remove; no longer used.
9991         Don't include <xstrtol.h>, since human.h does it.
9992         (human_options): Adjust to abovementioned interface changes.
9993         Do not report error to stderr; that's now the caller's
9994         responsibility.
9995         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
9996         interface change.
9997         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
9998         Str, Argument_type_string.  All uses changed.  Put " argument"
9999         in diagnostics to make them clearer.  Change wording of suffix
10000         message for clarity.
10001         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
10002         Argument_type_string.
10003         (STRTOL_FATAL_WARN): Remove; no longer used.
10004         * modules/human (Depends-on): Remove gettext-h.
10005
10006 2007-08-06  Simon Josefsson  <simon@josefsson.org>
10007
10008         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
10009
10010 2007-07-31  Bruno Haible  <bruno@clisp.org>
10011
10012         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
10013         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
10014         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
10015
10016 2007-07-31  Bruno Haible  <bruno@clisp.org>
10017
10018         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
10019         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
10020
10021 2007-07-30  Bruno Haible  <bruno@clisp.org>
10022
10023         * modules/base64 (License): Use the synonymous term "LGPLv2+".
10024         * modules/c-ctype (License): Likewise.
10025         * modules/c-strcase (License): Likewise.
10026         * modules/check-version (License): Likewise.
10027         * modules/iconv (License): Likewise.
10028         * modules/iconv_open (License): Likewise.
10029         * modules/read-file (License): Likewise.
10030         * modules/striconv (License): Likewise.
10031         * modules/strverscmp (License): Likewise.
10032         * modules/vasprintf (License): Likewise.
10033         * modules/crypto/des (License): Likewise.
10034         * modules/crypto/gc (License): Likewise.
10035         * modules/crypto/gc-arcfour (License): Likewise.
10036         * modules/crypto/gc-arctwo (License): Likewise.
10037         * modules/crypto/gc-des (License): Likewise.
10038         * modules/crypto/gc-hmac-md5 (License): Likewise.
10039         * modules/crypto/gc-hmac-sha1 (License): Likewise.
10040         * modules/crypto/gc-md2 (License): Likewise.
10041         * modules/crypto/gc-md4 (License): Likewise.
10042         * modules/crypto/gc-md5 (License): Likewise.
10043         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
10044         * modules/crypto/gc-random (License): Likewise.
10045         * modules/crypto/gc-rijndael (License): Likewise.
10046         * modules/crypto/gc-sha1 (License): Likewise.
10047         * modules/crypto/md2 (License): Likewise.
10048         * modules/crypto/md4 (License): Likewise.
10049
10050 2007-07-30  Jim Meyering  <jim@meyering.net>
10051
10052         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
10053         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
10054         it has valid stat data.  This bug would cause du not to count the
10055         sizes of inaccessible directories.
10056         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
10057         in <http://bugzilla.redhat.com/250077>.
10058
10059 2007-07-25  Peter O'Gorman  <peter@pogma.com>
10060             Bruno Haible  <bruno@clisp.org>
10061
10062         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
10063         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
10064         #include_next, gives a diagnostic about it, but reports no error in
10065         the exit code.
10066         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
10067
10068 2007-07-24  Ben Pfaff  <blp@gnu.org>
10069
10070         Improve name: "count-one-bits" is better than "popcount".
10071         * MODULES.html.sh: Update name.
10072         * lib/popcount.h: Renamed lib/count-one-bits.h.
10073         (popcount): Renamed count_one_bits.
10074         (popcountl): Renamed count_one_bits_l.
10075         (popcountll): Renamed count_one_bits_ll.
10076         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
10077         * modules/popcount: Renamed module/count-one-bits.
10078         * modules/popcount-tests: Renamed module/count-one-bits-tests.
10079         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
10080
10081 2007-07-23  Ben Pfaff  <blp@gnu.org>
10082
10083         * lib/popcount.h (popcount32): Reduce size of constants, to allow
10084         better code generation, and add U to large constants to avoid
10085         warnings, in non-GCC case.
10086         Suggested by Bruno Haible.
10087
10088 2007-07-23  Ben Pfaff  <blp@gnu.org>
10089
10090         * lib/popcount.h: Use verify_true instead of if...abort.
10091         * modules/popcount: Depend on verify module.
10092         Suggested by Jim Meyering.
10093
10094 2007-07-23  Bruno Haible  <bruno@clisp.org>
10095
10096         * gnulib-tool (func_import): Create a .cvsignore file also when the
10097         directory is not yet in CVS but the toplevel directory is. When
10098         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
10099         Reported by Karl Berry.
10100
10101 2007-07-22  Ben Pfaff  <blp@gnu.org>
10102
10103         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
10104         case.
10105         Suggested by Eric Blake.
10106
10107 2007-07-22  Ben Pfaff  <blp@gnu.org>
10108
10109         New module: popcount.
10110         * MODULES.html.sh: Add popcount.
10111         * modules/popcount: New file.
10112         * modules/popcount-tests: New file.
10113         * tests/test-popcount.c: New file.
10114         * lib/popcount.h: New file.
10115         * m4/popcount.m4: New file.
10116
10117 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10118
10119         * build-aux/announce-gen: Update to GPLv3.
10120
10121         * build-aux/config.guess: Update from config.
10122
10123 2007-07-21  Bruno Haible  <bruno@clisp.org>
10124
10125         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
10126         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
10127
10128 2007-07-20  Jim Meyering  <jim@meyering.net>
10129
10130         * check-module: Diagnose a self-dependency.
10131
10132 2007-07-19  Bruno Haible  <bruno@clisp.org>
10133
10134         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
10135         empty.
10136         Reported by Eric Blake.
10137
10138 2007-07-18  Bruno Haible  <bruno@clisp.org>
10139
10140         * gnulib-tool: New options --po-base, --po-domain.
10141         (func_usage): Document them.
10142         (pobase, po_domain): New variables.
10143         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
10144         DEFAULT_TEXT_DOMAIN.
10145         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
10146         (func_import): Consider pobase and po_domain. Create a po/ directory.
10147         (func_create_testdir): Set pobase and po_domain to empty.
10148         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
10149         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
10150
10151 2007-07-18  Bruno Haible  <bruno@clisp.org>
10152
10153         * gnulib-tool (func_get_automake_snippet): Synthesize also an
10154         EXTRA_DIST augmentation for files in build-aux/.
10155
10156 2007-07-16  Bruno Haible  <bruno@clisp.org>
10157
10158         * modules/lseek (License): Use the synonymous term "LGPLv2+".
10159         * modules/getdelim (License): Likewise.
10160
10161 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10162
10163         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
10164         * modules/d-type (License): Likewise.
10165         * modules/extensions (License): Likewise.
10166         * modules/fnmatch (License): Likewise.
10167         * modules/fseeko (License): Likewise.
10168         * modules/getaddrinfo (License): Likewise.
10169         * modules/getline (License): Likewise.
10170         * modules/getlogin_r (License): Likewise.
10171         * modules/getpass (License): Likewise.
10172         * modules/gettimeofday (License): Likewise.
10173         * modules/glob (License): Likewise.
10174         * modules/inet_ntop (License): Likewise.
10175         * modules/malloc (License): Likewise.
10176         * modules/malloca (License): Likewise.
10177         * modules/memmem (License): Likewise.
10178         * modules/mempcpy (License): Likewise.
10179         * modules/memset (License): Likewise.
10180         * modules/minmax (License): Likewise.
10181         * modules/mktime (License): Likewise.
10182         * modules/netinet_in (License): Likewise.
10183         * modules/pathmax (License): Likewise.
10184         * modules/poll (License): Likewise.
10185         * modules/regex (License): Likewise.
10186         * modules/snprintf (License): Likewise.
10187         * modules/stdbool (License): Likewise.
10188         * modules/stdint (License): Likewise.
10189         * modules/stdio (License): Likewise.
10190         * modules/strcase (License): Likewise.
10191         * modules/strcasestr (License): Likewise.
10192         * modules/strdup (License): Likewise.
10193         * modules/string (License): Likewise.
10194         * modules/strndup (License): Likewise.
10195         * modules/strnlen (License): Likewise.
10196         * modules/strpbrk (License): Likewise.
10197         * modules/strptime (License): Likewise.
10198         * modules/strsep (License): Likewise.
10199         * modules/sys_select (License): Likewise.
10200         * modules/sys_socket (License): Likewise.
10201         * modules/sys_stat (License): Likewise.
10202         * modules/sys_time (License): Likewise.
10203         * modules/time (License): Likewise.
10204         * modules/time_r (License): Likewise.
10205         * modules/timegm (License): Likewise.
10206         * modules/unistd (License): Likewise.
10207         * modules/vsnprintf (License): Likewise.
10208         * modules/wctype (License): Likewise.
10209
10210 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10211
10212         * modules/argz (License): LGPLv2+.
10213
10214 2007-07-15  Karl Berry  <karl@gnu.org>
10215
10216         * doc/gnulib.texi: revise node structure per new fdl.texi.
10217
10218 2007-07-14  Bruno Haible  <bruno@clisp.org>
10219
10220         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
10221         the output file.
10222         * lib/uniname/uninames.h: Regenerated.
10223
10224 2007-07-14  Karl Berry  <karl@gnu.org>
10225
10226         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
10227         omitting sectioning and index commands.
10228
10229 2007-07-13  Bruno Haible  <bruno@clisp.org>
10230
10231         New gnulib-tool option --more-symlinks.
10232         * gnulib-tool (func_usage): Document --more-symlinks.
10233         (do_copyrights): New variable.
10234         Recognize option --more-symlinks.
10235         (func_import): Don't add a copyright notice transform to
10236         sed_transform_lib_file if do_copyrights is empty.
10237
10238 2007-07-13  Bruno Haible  <bruno@clisp.org>
10239
10240         * lib/vasnprintf.c (decimal_point_char): Define also if
10241         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
10242         && !NEED_PRINTF_DIRECTIVE_A.
10243         Reported by Clemens Koller <clemens.koller@anagramm.de> via
10244         Gary V. Vaughan <gary@gnu.org>.
10245
10246 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
10247
10248         * lib/inttypes_.h: Undo previous change, since it was fixed
10249         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
10250
10251 2007-07-13  Bruno Haible  <bruno@clisp.org>
10252
10253         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
10254         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
10255
10256 2007-07-13  Jim Meyering  <jim@meyering.net>
10257
10258         df: Don't fail for Tru64's "file-on-file mount".
10259         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
10260         so we fall through and use statfs instead.  Details here:
10261         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
10262         Reported by Albert Chin.
10263
10264 2007-07-13  Bruno Haible  <bruno@clisp.org>
10265
10266         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
10267         * modules/configmake (License): Likewise.
10268         * modules/gettext (License): Likewise.
10269         * modules/gettext-h (License): Likewise.
10270         * modules/include_next (License): Likewise.
10271         * modules/link-warning (License): Likewise.
10272         * modules/localcharset (License): Likewise.
10273         * modules/localename (License): Likewise.
10274         * modules/lock (License): Likewise.
10275         * modules/relocatable-lib-lgpl (License): Likewise.
10276         * modules/size_max (License): Likewise.
10277         * modules/vasnprintf (License): Likewise.
10278         * modules/wchar (License): Likewise.
10279         * modules/xsize (License): Likewise.
10280
10281 2007-07-13  Bruno Haible  <bruno@clisp.org>
10282
10283         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
10284         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
10285
10286 2007-07-12  Bruno Haible  <bruno@clisp.org>
10287
10288         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
10289         in the modules files.
10290
10291 2007-07-11  Karl Berry  <karl@gnu.org>
10292
10293         * MODULES.html.sh (func_module): use
10294          sed -e '\|^'"${includefile}"'$|d'
10295          instead of /.../d, to avoid errors on $includefile's containing /.
10296
10297 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
10298
10299         * gnulib-tool (func_import): Avoid duplication of --avoid
10300         statements
10301         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
10302         names to `_' in variable names.
10303
10304 2007-07-10  Eric Blake  <ebb9@byu.net>
10305
10306         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
10307         * NEWS: Document this change.
10308
10309 2007-07-08  Bruno Haible  <bruno@clisp.org>
10310
10311         Update to Unicode 5.0.
10312         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
10313         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
10314         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
10315         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
10316         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
10317         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
10318         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
10319         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
10320         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
10321         U+10A3F, U+1D242..U+1D244.
10322         (nonspacing_table_ind): Update.
10323         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
10324         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
10325
10326 2007-07-08  Bruno Haible  <bruno@clisp.org>
10327
10328         Update to Unicode 5.0.
10329         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
10330         code transform. Extend the name index field of unicode_name_to_code and
10331         unicode_code_to_name from 16 to 24 bits.
10332         * lib/uniname/uniname.c (unicode_character_name,
10333         unicode_name_character): Add the range 0x12xxx to the code transform.
10334         * lib/uniname/uninames.h: Regenerated.
10335         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
10336
10337 2007-07-07  Bruno Haible  <bruno@clisp.org>
10338
10339         * modules/wcwidth-tests: New file.
10340         * tests/test-wcwidth.c: New file.
10341
10342         Work around MacOS X wcwidth() bug.
10343         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
10344         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
10345         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
10346         original wcwidth in non-UTF-8 locales.
10347         * modules/wcwidth (Depends-on): Add localcharset, streq,
10348         uniwidth/width.
10349         * doc/functions/wcwidth.texi: Update.
10350
10351 2007-07-07  Bruno Haible  <bruno@clisp.org>
10352
10353         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
10354         (wcwidth): New declaration.
10355         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
10356         macros.
10357         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
10358         here. Prepare for creating <wchar.h> unconditionally.
10359         * modules/wchar (Depends-on): Add link-warning.
10360         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
10361         REPLACE_WCWIDTH, and GL_LINK_WARNING.
10362         * lib/wcwidth.h: Remove file.
10363         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
10364         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
10365         * modules/wcwidth (Files): Remove lib/wcwidth.h.
10366         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
10367         (Include): Replace wcwidth.h with <wchar.h>.
10368         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
10369         * lib/mbchar.h: Don't include wcwidth.h.
10370         * lib/mbswidth.c: Likewise.
10371         * NEWS: Mention the change.
10372
10373 2007-07-07  Bruno Haible  <bruno@clisp.org>
10374
10375         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
10376         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
10377         definition with an external declaration.
10378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
10379         defined as a function. Remove AC_C_INLINE requirement.
10380         * modules/wcwidth (Files): Add lib/wcwidth.c.
10381         (Makefile.am): Remove redundant statement.
10382
10383 2007-07-07  Bruno Haible  <bruno@clisp.org>
10384
10385         * MODULES.html.sh (Unicode string functions): Add the new modules.
10386
10387         * tests/uniwidth/test-u32-strwidth.c: New file.
10388         * modules/uniwidth/u32-strwidth-tests: New file.
10389
10390         * lib/uniwidth/u32-strwidth.c: New file.
10391         * modules/uniwidth/u32-strwidth: New file.
10392
10393         * tests/uniwidth/test-u16-strwidth.c: New file.
10394         * modules/uniwidth/u16-strwidth-tests: New file.
10395
10396         * lib/uniwidth/u16-strwidth.c: New file.
10397         * modules/uniwidth/u16-strwidth: New file.
10398
10399         * tests/uniwidth/test-u8-strwidth.c: New file.
10400         * modules/uniwidth/u8-strwidth-tests: New file.
10401
10402         * lib/uniwidth/u8-strwidth.c: New file.
10403         * modules/uniwidth/u8-strwidth: New file.
10404
10405         * tests/uniwidth/test-u32-width.c: New file.
10406         * modules/uniwidth/u32-width-tests: New file.
10407
10408         * lib/uniwidth/u32-width.c: New file.
10409         * modules/uniwidth/u32-width: New file.
10410
10411         * tests/uniwidth/test-u16-width.c: New file.
10412         * modules/uniwidth/u16-width-tests: New file.
10413
10414         * lib/uniwidth/u16-width.c: New file.
10415         * modules/uniwidth/u16-width: New file.
10416
10417         * tests/uniwidth/test-u8-width.c: New file.
10418         * modules/uniwidth/u8-width-tests: New file.
10419
10420         * lib/uniwidth/u8-width.c: New file.
10421         * modules/uniwidth/u8-width: New file.
10422
10423         * tests/uniwidth/test-uc_width.c: New file.
10424         * modules/uniwidth/width-tests: New file.
10425
10426         * lib/uniwidth/width.c: New file, from GNU libiconv.
10427         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
10428         * modules/uniwidth/width: New file.
10429
10430         * lib/uniwidth.h: New file, from GNU libiconv.
10431         * modules/uniwidth/base: New file.
10432
10433 2007-07-07  Bruno Haible  <bruno@clisp.org>
10434
10435         * lib/uniname.h: New file, from GNU gettext.
10436         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
10437         * lib/uniname/uninames.h: New file, from GNU gettext.
10438         * lib/uniname/uniname.c: New file, from GNU gettext.
10439         * tests/uniname/test-uninames.sh: New file.
10440         * tests/uniname/test-uninames.c: New file, from GNU gettext.
10441         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
10442         * modules/uniname/base: New file.
10443         * modules/uniname/uniname: New file.
10444         * modules/uniname/uniname-tests: New file.
10445         * MODULES.html.sh (Unicode string functions): Add the new modules.
10446
10447 2007-07-06  Bruno Haible  <bruno@clisp.org>
10448
10449         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
10450
10451 2007-07-06  Bruno Haible  <bruno@clisp.org>
10452
10453         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
10454         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
10455         includes <cygwin/sys_time.h> which includes <sys/select.h> which
10456         include <sys/time.h>.
10457         Reported by Eric Blake.
10458
10459 2007-07-06  Eric Blake  <ebb9@byu.net>
10460
10461         Fix testing canonicalize on cygwin.
10462         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
10463         Revert patch from 2007-06-19.
10464         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
10465         canonicalize module is also in use.
10466         * tests/test-canonicalize.c: New file.
10467         * tests/test-canonicalize.sh: Likewise.
10468         * modules/canonicalize-tests: Likewise.
10469
10470 2007-07-06  Jim Meyering  <jim@meyering.net>
10471
10472         * lib/getugroups.c (getugroups): Detect getgrent failure.
10473         Adjust comment to reflect reality: this function may return -1.
10474
10475 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
10476
10477         * build-aux/bootstrap (TP_URL,get_translations): Update to use
10478         the new TP address.
10479         (usage): Fix typo
10480         (gnulib_mk): New variable.
10481
10482 2007-07-05  Jim Meyering  <jim@meyering.net>
10483
10484         Don't let endgrent clobber errno, no matter how improbable.
10485         * lib/getugroups.c (getugroups): Save and restore errno around
10486         endgrent call.
10487
10488         Close the group DB even when failing with 2^31 or more members.
10489         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
10490
10491 2007-07-04  Jim Meyering  <jim@meyering.net>
10492
10493         * lib/getugroups.h: New file.
10494         * lib/getugroups.c: Include "getugroups.h".
10495         Remove uses of "register" keyword.
10496         Move local variable, "cp", down into scope where used.
10497         Give "username" parameter the "const" attribute.
10498         * modules/getugroups (Files): Add lib/getugroups.h
10499
10500 2007-07-04  Karl Berry  <karl@gnu.org>
10501
10502         * MODULES.html.sh (func_all_modules): Complete rename of
10503         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
10504
10505 2007-07-02  Bruno Haible  <bruno@clisp.org>
10506
10507         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
10508         mode, when inttypes.h comes from gnulib.
10509         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
10510
10511 2007-07-02  Simon Josefsson  <simon@josefsson.org>
10512
10513         * NEWS: Mention lgpl module name change.
10514
10515         * modules/lgpl-2.1: Renamed from lgpl.
10516
10517         * NEWS: Mention gpl module name change.
10518
10519         * modules/gpl-3.0: New file, based on gpl-2.0.
10520
10521         * modules/gpl-2.0: Renamed from gpl.
10522
10523         * modules/gpl: Fix filename, doc/gpl.texi is now found at
10524         doc/gpl-2.0.texi.
10525
10526 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
10527
10528         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
10529         #define __STDC_LIMIT_MACROS temporarily while including
10530         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
10531         Problem reported by Joel E. Denny in
10532         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
10533
10534 2007-07-01  Bruno Haible  <bruno@clisp.org>
10535
10536         * lib/unistdio.h: New file.
10537         * lib/unistdio/u-asnprintf.h: New file.
10538         * lib/unistdio/u-asprintf.h: New file.
10539         * lib/unistdio/u-printf-args.c: New file.
10540         * lib/unistdio/u-printf-args.h: New file.
10541         * lib/unistdio/u-printf-parse.h: New file.
10542         * lib/unistdio/u-snprintf.h: New file.
10543         * lib/unistdio/u-sprintf.h: New file.
10544         * lib/unistdio/u-vasprintf.h: New file.
10545         * lib/unistdio/u-vsnprintf.h: New file.
10546         * lib/unistdio/u-vsprintf.h: New file.
10547         * lib/unistdio/ulc-asnprintf.c: New file.
10548         * lib/unistdio/ulc-asprintf.c: New file.
10549         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
10550         * lib/unistdio/ulc-printf-parse.c: New file.
10551         * lib/unistdio/ulc-snprintf.c: New file.
10552         * lib/unistdio/ulc-sprintf.c: New file.
10553         * lib/unistdio/ulc-vasnprintf.c: New file.
10554         * lib/unistdio/ulc-vasprintf.c: New file.
10555         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
10556         * lib/unistdio/ulc-vsnprintf.c: New file.
10557         * lib/unistdio/ulc-vsprintf.c: New file.
10558         * lib/unistdio/u8-asnprintf.c: New file.
10559         * lib/unistdio/u8-asprintf.c: New file.
10560         * lib/unistdio/u8-printf-parse.c: New file.
10561         * lib/unistdio/u8-snprintf.c: New file.
10562         * lib/unistdio/u8-sprintf.c: New file.
10563         * lib/unistdio/u8-vasnprintf.c: New file.
10564         * lib/unistdio/u8-vasprintf.c: New file.
10565         * lib/unistdio/u8-vsnprintf.c: New file.
10566         * lib/unistdio/u8-vsprintf.c: New file.
10567         * lib/unistdio/u8-u8-asnprintf.c: New file.
10568         * lib/unistdio/u8-u8-asprintf.c: New file.
10569         * lib/unistdio/u8-u8-snprintf.c: New file.
10570         * lib/unistdio/u8-u8-sprintf.c: New file.
10571         * lib/unistdio/u8-u8-vasnprintf.c: New file.
10572         * lib/unistdio/u8-u8-vasprintf.c: New file.
10573         * lib/unistdio/u8-u8-vsnprintf.c: New file.
10574         * lib/unistdio/u8-u8-vsprintf.c: New file.
10575         * lib/unistdio/u16-asnprintf.c: New file.
10576         * lib/unistdio/u16-asprintf.c: New file.
10577         * lib/unistdio/u16-printf-parse.c: New file.
10578         * lib/unistdio/u16-snprintf.c: New file.
10579         * lib/unistdio/u16-sprintf.c: New file.
10580         * lib/unistdio/u16-vasnprintf.c: New file.
10581         * lib/unistdio/u16-vasprintf.c: New file.
10582         * lib/unistdio/u16-vsnprintf.c: New file.
10583         * lib/unistdio/u16-vsprintf.c: New file.
10584         * lib/unistdio/u16-u16-asnprintf.c: New file.
10585         * lib/unistdio/u16-u16-asprintf.c: New file.
10586         * lib/unistdio/u16-u16-snprintf.c: New file.
10587         * lib/unistdio/u16-u16-sprintf.c: New file.
10588         * lib/unistdio/u16-u16-vasnprintf.c: New file.
10589         * lib/unistdio/u16-u16-vasprintf.c: New file.
10590         * lib/unistdio/u16-u16-vsnprintf.c: New file.
10591         * lib/unistdio/u16-u16-vsprintf.c: New file.
10592         * lib/unistdio/u32-asnprintf.c: New file.
10593         * lib/unistdio/u32-asprintf.c: New file.
10594         * lib/unistdio/u32-printf-parse.c: New file.
10595         * lib/unistdio/u32-snprintf.c: New file.
10596         * lib/unistdio/u32-sprintf.c: New file.
10597         * lib/unistdio/u32-vasnprintf.c: New file.
10598         * lib/unistdio/u32-vasprintf.c: New file.
10599         * lib/unistdio/u32-vsnprintf.c: New file.
10600         * lib/unistdio/u32-vsprintf.c: New file.
10601         * lib/unistdio/u32-u32-asnprintf.c: New file.
10602         * lib/unistdio/u32-u32-asprintf.c: New file.
10603         * lib/unistdio/u32-u32-snprintf.c: New file.
10604         * lib/unistdio/u32-u32-sprintf.c: New file.
10605         * lib/unistdio/u32-u32-vasnprintf.c: New file.
10606         * lib/unistdio/u32-u32-vasprintf.c: New file.
10607         * lib/unistdio/u32-u32-vsnprintf.c: New file.
10608         * lib/unistdio/u32-u32-vsprintf.c: New file.
10609         * tests/unistdio/test-ulc-asnprintf1.c: New file.
10610         * tests/unistdio/test-ulc-asnprintf1.h: New file.
10611         * tests/unistdio/test-ulc-printf1.h: New file.
10612         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
10613         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
10614         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
10615         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
10616         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
10617         * tests/unistdio/test-ulc-vasprintf1.c: New file.
10618         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
10619         * tests/unistdio/test-ulc-vsprintf1.c: New file.
10620         * tests/unistdio/test-u8-asnprintf1.c: New file.
10621         * tests/unistdio/test-u8-asnprintf1.h: New file.
10622         * tests/unistdio/test-u8-printf1.h: New file.
10623         * tests/unistdio/test-u8-vasnprintf1.c: New file.
10624         * tests/unistdio/test-u8-vasnprintf2.c: New file.
10625         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
10626         * tests/unistdio/test-u8-vasnprintf3.c: New file.
10627         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
10628         * tests/unistdio/test-u8-vasprintf1.c: New file.
10629         * tests/unistdio/test-u8-vsnprintf1.c: New file.
10630         * tests/unistdio/test-u8-vsprintf1.c: New file.
10631         * tests/unistdio/test-u16-asnprintf1.c: New file.
10632         * tests/unistdio/test-u16-asnprintf1.h: New file.
10633         * tests/unistdio/test-u16-printf1.h: New file.
10634         * tests/unistdio/test-u16-vasnprintf1.c: New file.
10635         * tests/unistdio/test-u16-vasnprintf2.c: New file.
10636         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
10637         * tests/unistdio/test-u16-vasnprintf3.c: New file.
10638         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
10639         * tests/unistdio/test-u16-vasprintf1.c: New file.
10640         * tests/unistdio/test-u16-vsnprintf1.c: New file.
10641         * tests/unistdio/test-u16-vsprintf1.c: New file.
10642         * tests/unistdio/test-u32-asnprintf1.c: New file.
10643         * tests/unistdio/test-u32-asnprintf1.h: New file.
10644         * tests/unistdio/test-u32-printf1.h: New file.
10645         * tests/unistdio/test-u32-vasnprintf1.c: New file.
10646         * tests/unistdio/test-u32-vasnprintf2.c: New file.
10647         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
10648         * tests/unistdio/test-u32-vasnprintf3.c: New file.
10649         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
10650         * tests/unistdio/test-u32-vasprintf1.c: New file.
10651         * tests/unistdio/test-u32-vsnprintf1.c: New file.
10652         * tests/unistdio/test-u32-vsprintf1.c: New file.
10653         * modules/unistdio/base: New file.
10654         * modules/unistdio/u-printf-args: New file.
10655         * modules/unistdio/ulc-asnprintf: New file.
10656         * modules/unistdio/ulc-asprintf: New file.
10657         * modules/unistdio/ulc-fprintf: New file.
10658         * modules/unistdio/ulc-printf-parse: New file.
10659         * modules/unistdio/ulc-snprintf: New file.
10660         * modules/unistdio/ulc-sprintf: New file.
10661         * modules/unistdio/ulc-vasnprintf: New file.
10662         * modules/unistdio/ulc-vasprintf: New file.
10663         * modules/unistdio/ulc-vfprintf: New file.
10664         * modules/unistdio/ulc-vsnprintf: New file.
10665         * modules/unistdio/ulc-vsprintf: New file.
10666         * modules/unistdio/u8-asnprintf: New file.
10667         * modules/unistdio/u8-asprintf: New file.
10668         * modules/unistdio/u8-printf-parse: New file.
10669         * modules/unistdio/u8-snprintf: New file.
10670         * modules/unistdio/u8-sprintf: New file.
10671         * modules/unistdio/u8-vasnprintf: New file.
10672         * modules/unistdio/u8-vasprintf: New file.
10673         * modules/unistdio/u8-vsnprintf: New file.
10674         * modules/unistdio/u8-vsprintf: New file.
10675         * modules/unistdio/u8-u8-asnprintf: New file.
10676         * modules/unistdio/u8-u8-asprintf: New file.
10677         * modules/unistdio/u8-u8-snprintf: New file.
10678         * modules/unistdio/u8-u8-sprintf: New file.
10679         * modules/unistdio/u8-u8-vasnprintf: New file.
10680         * modules/unistdio/u8-u8-vasprintf: New file.
10681         * modules/unistdio/u8-u8-vsnprintf: New file.
10682         * modules/unistdio/u8-u8-vsprintf: New file.
10683         * modules/unistdio/u16-asnprintf: New file.
10684         * modules/unistdio/u16-asprintf: New file.
10685         * modules/unistdio/u16-printf-parse: New file.
10686         * modules/unistdio/u16-snprintf: New file.
10687         * modules/unistdio/u16-sprintf: New file.
10688         * modules/unistdio/u16-vasnprintf: New file.
10689         * modules/unistdio/u16-vasprintf: New file.
10690         * modules/unistdio/u16-vsnprintf: New file.
10691         * modules/unistdio/u16-vsprintf: New file.
10692         * modules/unistdio/u16-u16-asnprintf: New file.
10693         * modules/unistdio/u16-u16-asprintf: New file.
10694         * modules/unistdio/u16-u16-snprintf: New file.
10695         * modules/unistdio/u16-u16-sprintf: New file.
10696         * modules/unistdio/u16-u16-vasnprintf: New file.
10697         * modules/unistdio/u16-u16-vasprintf: New file.
10698         * modules/unistdio/u16-u16-vsnprintf: New file.
10699         * modules/unistdio/u16-u16-vsprintf: New file.
10700         * modules/unistdio/u32-asnprintf: New file.
10701         * modules/unistdio/u32-asprintf: New file.
10702         * modules/unistdio/u32-printf-parse: New file.
10703         * modules/unistdio/u32-snprintf: New file.
10704         * modules/unistdio/u32-sprintf: New file.
10705         * modules/unistdio/u32-vasnprintf: New file.
10706         * modules/unistdio/u32-vasprintf: New file.
10707         * modules/unistdio/u32-vsnprintf: New file.
10708         * modules/unistdio/u32-vsprintf: New file.
10709         * modules/unistdio/u32-u32-asnprintf: New file.
10710         * modules/unistdio/u32-u32-asprintf: New file.
10711         * modules/unistdio/u32-u32-snprintf: New file.
10712         * modules/unistdio/u32-u32-sprintf: New file.
10713         * modules/unistdio/u32-u32-vasnprintf: New file.
10714         * modules/unistdio/u32-u32-vasprintf: New file.
10715         * modules/unistdio/u32-u32-vsnprintf: New file.
10716         * modules/unistdio/u32-u32-vsprintf: New file.
10717         * modules/unistdio/ulc-asnprintf-tests: New file.
10718         * modules/unistdio/ulc-vasnprintf-tests: New file.
10719         * modules/unistdio/ulc-vasprintf-tests: New file.
10720         * modules/unistdio/ulc-vsnprintf-tests: New file.
10721         * modules/unistdio/ulc-vsprintf-tests: New file.
10722         * modules/unistdio/u8-asnprintf-tests: New file.
10723         * modules/unistdio/u8-vasnprintf-tests: New file.
10724         * modules/unistdio/u8-vasprintf-tests: New file.
10725         * modules/unistdio/u8-vsnprintf-tests: New file.
10726         * modules/unistdio/u8-vsprintf-tests: New file.
10727         * modules/unistdio/u16-asnprintf-tests: New file.
10728         * modules/unistdio/u16-vasnprintf-tests: New file.
10729         * modules/unistdio/u16-vasprintf-tests: New file.
10730         * modules/unistdio/u16-vsnprintf-tests: New file.
10731         * modules/unistdio/u16-vsprintf-tests: New file.
10732         * modules/unistdio/u32-asnprintf-tests: New file.
10733         * modules/unistdio/u32-vasnprintf-tests: New file.
10734         * modules/unistdio/u32-vasprintf-tests: New file.
10735         * modules/unistdio/u32-vsnprintf-tests: New file.
10736         * modules/unistdio/u32-vsprintf-tests: New file.
10737         * MODULES.html.sh (Unicode string functions): Add the new modules.
10738
10739 2007-07-01  Bruno Haible  <bruno@clisp.org>
10740
10741         * lib/sprintf.c (sprintf): Limit the available length estimation,
10742         to avoid address wraparound.
10743         * lib/vsprintf.c (vsprintf): Likewise.
10744         * modules/sprintf-posix (Dependencies): Add stdint.
10745         * modules/vsprintf-posix (Dependencies): Likewise.
10746
10747 2007-07-01  Bruno Haible  <bruno@clisp.org>
10748
10749         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
10750         Windows PATH as well. Conservative double-quoting. Comments.
10751
10752 2007-07-01  Bruno Haible  <bruno@clisp.org>
10753             Eric Blake  <ebb9@byu.net>
10754             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10755
10756         * gnulib-tool (self_abspathname): Fix algorithm to cope with
10757         empty components in $PATH, denoting '.'.
10758
10759 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10760
10761         * gnulib-tool: Fix indentation.
10762         (func_create_megatestdir): Likewise.
10763         Report by Bruno Haible.
10764
10765 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10766
10767         Sync from Automake.
10768         * build-aux/gnupload: Fix shell portability issues with for loops.
10769         Report by Karl Berry.
10770
10771 2007-06-29  Simon Josefsson  <simon@josefsson.org>
10772
10773         * build-aux/maint.mk (POURL): Use translationproject.org.
10774
10775 2007-06-27  Simon Josefsson  <simon@josefsson.org>
10776             Bruno Haible  <bruno@clisp.org>
10777
10778         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
10779         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
10780         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
10781         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
10782         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
10783
10784 2007-06-27  Bruno Haible  <bruno@clisp.org>
10785
10786         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
10787         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
10788
10789 2007-06-26  Karl Berry  <karl@gnu.org>
10790
10791         * MODULES.html.sh: remove xreadlink-with-size.
10792
10793 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10794
10795         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
10796         method that I hope also handles the double-include problem noted
10797         by Bruno Haible in
10798         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
10799
10800 2007-06-23  Bruno Haible  <bruno@clisp.org>
10801
10802         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10803         Don't let the 'mostlyclean' target fail if the last subdirectory could
10804         not be removed.
10805         Reported by Karl Berry.
10806
10807 2007-06-23  Bruno Haible  <bruno@clisp.org>
10808
10809         * gnulib-tool (echo): Add a speedier workaround for ksh.
10810         * tests/test-echo.sh: Likewise.
10811
10812 2007-06-23  Bruno Haible  <bruno@clisp.org>
10813
10814         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
10815         * tests/test-echo.sh: Likewise.
10816
10817 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10818
10819         * gnulib-tool (IFS): Initialize early, so we don't set it to
10820         empty later.
10821         (self_abspathname): Rewrite algorithm to set it, reindent.
10822         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
10823         (func_create_megatestdir): Merge some sed scripts.
10824
10825 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10826
10827         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
10828         exposed by Sun Studio 11 cc on Solaris 8.
10829
10830 2007-06-22  Bruno Haible  <bruno@clisp.org>
10831
10832         * gnulib-tool (echo): Ensure the echo primitive does not interpret
10833         backslashes.
10834         * tests/test-echo.sh: New file.
10835
10836 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10837
10838         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
10839         simplify `sed_replace_build_aux' scripts, they are portable but
10840         echoing them with `echo' is not.
10841         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
10842
10843 2007-06-21  Karl Berry  <karl@gnu.org>
10844
10845         * config/srclist.txt: guess we can't handle the licenses via
10846         srclist at the moment.
10847
10848 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
10849
10850         * MODULES.html.sh: Add include_next.
10851         * modules/include_next: New file.
10852
10853 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
10854
10855         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
10856         INCLUDE_NEXT.
10857         (gl_CHECK_NEXT_HEADERS): New macro.
10858         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
10859         the obsolescent gl_ABSOLUTE_HEADER.
10860         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
10861         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
10862         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
10863         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10864         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10865         * m4/math_h.m4 (gl_MATH_H): Likewise.
10866         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
10867         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10868         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10869         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10870         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
10871         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
10872         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
10873         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10874         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10875         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10876         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
10877         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10878         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10879         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10880         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10881         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10882         * m4/inttypes.m4 (gl_INTTYPES_H): Define
10883         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
10884         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
10885         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
10886         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
10887         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
10888         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
10889         * lib/float_.h: Likewise.
10890         * lib/inttypes_.h: Likewise.
10891         * lib/math_.h: Likewise.
10892         * lib/search_.h: Likewise.
10893         * lib/signal_.h: Likewise.
10894         * lib/stdint_.h: Likewise.
10895         * lib/stdio_.h: Likewise.
10896         * lib/stdlib_.h: Likewise.
10897         * lib/string_.h: Likewise.
10898         * lib/sys_stat_.h: Likewise.
10899         * lib/sys_time_.h: Likewise.
10900         * lib/time_.h: Likewise.
10901         * lib/unistd_.h: Likewise.
10902         * lib/wchar_.h: Likewise.
10903         * lib/wctype_.h: Likewise.
10904         * lib/dirent_.h: Likewise.
10905         * lib/iconv_.h: Likewise.
10906         * lib/locale_.h: Likewise.
10907         * lib/netinet_in_.h: Likewise.
10908         * lib/sys_select_.h: Likewise.
10909         * lib/sys_socket_.h: Likewise.
10910         * lib/sysexits_.h: Likewise.
10911         * modules/fcntl (Depends-on): Depend on include_next, not
10912         absolute_header.
10913         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
10914         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
10915         * modules/fchdir: Likewise.
10916         * modules/float: Likewise.
10917         * modules/iconv_open: Likewise.
10918         * modules/inttypes: Likewise.
10919         * modules/locale: Likewise.
10920         * modules/math: Likewise.
10921         * modules/netinet_in: Likewise.
10922         * modules/search: Likewise.
10923         * modules/signal: Likewise.
10924         * modules/stdint: Likewise.
10925         * modules/stdio: Likewise.
10926         * modules/stdlib: Likewise.
10927         * modules/string: Likewise.
10928         * modules/sys_select: Likewise.
10929         * modules/sys_socket: Likewise.
10930         * modules/sys_stat: Likewise.
10931         * modules/sys_time: Likewise.
10932         * modules/sysexits: Likewise.
10933         * modules/time: Likewise.
10934         * modules/unistd: Likewise.
10935         * modules/wchar: Likewise.
10936         * modules/wctype: Likewise.
10937         * modules/sys_stat: Change maintainer to "all".
10938         * modules/unistd: Likewise.
10939
10940 2007-06-20  Karl Berry  <karl@gnu.org>
10941
10942         * config/srclist.txt: track www changes in license files.
10943
10944 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
10945
10946         * build-aux/bootstrap: Remove stray dot.
10947         Make sure build_aux settings are honored when linking
10948         gnulib_extra_files.
10949
10950 2007-06-19  Eric Blake  <ebb9@byu.net>
10951
10952         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
10953         Allow compilation on cygwin.
10954
10955 2007-06-19  Jim Meyering  <jim@meyering.net>
10956
10957         xreadlink-with-size: Remove module.  No longer used.
10958         Ex-callers now use xreadlink or mreadlink-with-size.
10959         * modules/xreadlink-with-size: Remove module.
10960         * lib/xreadlink-with-size.c: Remove file.
10961         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
10962         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
10963         just before the function definition *is* accurate.
10964
10965         Eliminate one way canonicalize_filename_mode could exit.
10966         * lib/canonicalize.c (canonicalize_filename_mode):
10967         Use mreadlink_with_size, not xreadlink_with_size.
10968
10969 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
10970
10971         Detect porting problems to FreeBSD/arm, which has time_t wider than
10972         long int.  Original problem reported for GNU diff by Xin Li in
10973         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
10974         * modules/getdate (Depends-on): Add intprops, verify.
10975         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
10976         is an integer type no wider than long int.
10977
10978 2007-06-18  Jim Meyering  <jim@meyering.net>
10979
10980         New module: mreadlink-with-size.
10981         * MODULES.html.sh: Add mreadlink-with-size.
10982         * modules/mreadlink-with-size: New module
10983         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
10984         not xreadlink-with-size.
10985         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
10986
10987 2007-06-16  Bruno Haible  <bruno@clisp.org>
10988
10989         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
10990         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
10991         Reported by Gary V. Vaughan <gary@gnu.org>.
10992
10993 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10994
10995         Revamp lchown so that it lives in unistd.h where it belongs.
10996         * lib/lchown.h: Remove.
10997         * lib/dirchownmod.c: Don't include lib/lchown.h.
10998         * lib/fchownat.c: Likewise.
10999         * lib/openat.c: Likewise.
11000         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
11001         does not follow symlinks.
11002         (EOPNOTSUPP): Define if not defined.
11003         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
11004         is defined to 0.
11005         (lchown): New decl.
11006         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
11007         Do not check for lchown decl.
11008         Set REPLACE_LCHOWN.
11009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
11010         REPLACE_LCHOWN.
11011         * modules/chown: Make it clear it follows symlinks.
11012         * modules/lchown: Make it clear it doesn't follow symlinks.
11013         (Files): Remove lib/lchown.h
11014         (Depends-on): Add unistd.
11015         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
11016         (Include): Include <unistd.h>, not "lchown.h".
11017         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
11018         REPLACE_LCHOWN.
11019
11020 2007-06-15  Jim Meyering  <jim@meyering.net>
11021
11022         Change license (GPL to LGPL) of fsusage and dependents.
11023         * modules/fsusage (License): Change to LGPL.
11024         * modules/full-read (License): Likewise.
11025         * modules/full-write (License): Likewise.
11026         * modules/safe-read (License): Likewise.
11027         * modules/safe-write (License): Likewise.
11028
11029 2007-06-14  Ben Pfaff  <blp@gnu.org>
11030
11031         Missing part of allocsa -> malloca transition.
11032         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
11033         gl_MALLOCA.
11034
11035 2007-06-12  Bruno Haible  <bruno@clisp.org>
11036
11037         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
11038         to ia64, x86_64, i386.
11039         Reported by Eric Blake.
11040
11041 2007-06-12  Bruno Haible  <bruno@clisp.org>
11042
11043         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
11044         cross-compiling to x86_64.
11045
11046 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
11047
11048         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
11049         glitch reported by Ralf Wildenhues in
11050         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
11051
11052         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
11053         Vin Shelton.
11054
11055 2007-06-11  Bruno Haible  <bruno@clisp.org>
11056
11057         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
11058         replacement string.
11059         Reported by Eric Blake.
11060
11061 2007-06-10  Bruno Haible  <bruno@clisp.org>
11062
11063         Prepare vasnprintf code for use with Unicode strings.
11064         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
11065         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
11066         TYPE_U32_STRING.
11067         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
11068         a_u32_string variants.
11069         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
11070         * lib/printf-args.c: Don't include config.h and the specification
11071         header if PRINTF_FETCHARGS is already defined.
11072         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
11073         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
11074         TYPE_U16_STRING, TYPE_U32_STRING.
11075         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
11076         u16_directive, u16_directives, u32_directive, u32_directives): New
11077         types.
11078         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
11079         New declarations.
11080         * lib/printf-parse.c: Don't include config.h and the specification
11081         header if PRINTF_PARSE is already defined. Eliminate the set of
11082         parameters for WIDE_CHAR_VERSION; the user of this file must provide
11083         them now. Include c-ctype.h.
11084         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
11085         directive and CHAR_T_ONLY_ASCII.
11086         * lib/vasnprintf.c: Don't include config.h and the specification header
11087         if VASNPRINTF is already defined.
11088         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
11089         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
11090         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
11091         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
11092         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
11093         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
11094         code accordingly.
11095         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
11096         pad_ourselves also in this case, with the 'c' and 's' directives, and
11097         with a different notion of "width".
11098         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
11099
11100 2007-06-10  Bruno Haible  <bruno@clisp.org>
11101
11102         * modules/unistr/u32-mbsnlen: New file.
11103         * lib/unistr/u32-mbsnlen.c: New file.
11104
11105         * modules/unistr/u16-mbsnlen: New file.
11106         * lib/unistr/u16-mbsnlen.c: New file.
11107
11108         * modules/unistr/u8-mbsnlen: New file.
11109         * lib/unistr/u8-mbsnlen.c: New file.
11110
11111         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
11112         declarations.
11113
11114 2007-06-10  Bruno Haible  <bruno@clisp.org>
11115
11116         * lib/string_.h (mbsnlen): New declaration.
11117         * lib/mbsnlen.c: New file.
11118         * m4/mbsnlen.m4: New file.
11119         * modules/mbsnlen: New file.
11120         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
11121         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
11122         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
11123
11124 2007-06-10  Bruno Haible  <bruno@clisp.org>
11125
11126         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
11127
11128 2007-06-10  Bruno Haible  <bruno@clisp.org>
11129
11130         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
11131         * lib/mbuiter.h: Likewise.
11132
11133 2007-06-10  Bruno Haible  <bruno@clisp.org>
11134
11135         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
11136         declaration.
11137
11138 2007-06-10  Karl Berry  <karl@gnu.org>
11139
11140         * config/srclist.txt: remove gettext entries, Bruno prefers
11141         to update individually.
11142
11143 2007-06-10  Bruno Haible  <bruno@clisp.org>
11144
11145         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
11146         'maxlen'. Ensure only length + width bytes are allocated, not
11147         length + 1 + width.
11148
11149 2007-06-09  Bruno Haible  <bruno@clisp.org>
11150
11151         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
11152         (CHAR_T): Remove macro.
11153         (VASNPRINTF): Update.
11154
11155 2007-06-09  Bruno Haible  <bruno@clisp.org>
11156
11157         * MODULES.html.sh (Unicode string functions): Add the new modules.
11158
11159         * modules/uniconv/u32-conv-to-enc: New file.
11160         * lib/uniconv/u32-conv-to-enc.c: New file.
11161         * modules/uniconv/u32-conv-to-enc-tests: New file.
11162         * tests/uniconv/test-u32-conv-to-enc.c: New file.
11163
11164         * modules/uniconv/u16-conv-to-enc: New file.
11165         * lib/uniconv/u16-conv-to-enc.c: New file.
11166         * lib/uniconv/u-conv-to-enc.h: New file.
11167         * modules/uniconv/u16-conv-to-enc-tests: New file.
11168         * tests/uniconv/test-u16-conv-to-enc.c: New file.
11169
11170         * modules/uniconv/u8-conv-to-enc: New file.
11171         * lib/uniconv/u8-conv-to-enc.c: New file.
11172         * modules/uniconv/u8-conv-to-enc-tests: New file.
11173         * tests/uniconv/test-u8-conv-to-enc.c: New file.
11174
11175         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
11176         u32_conv_to_encoding): New declarations.
11177
11178 2007-06-09  Bruno Haible  <bruno@clisp.org>
11179
11180         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
11181
11182 2007-06-09  Bruno Haible  <bruno@clisp.org>
11183
11184         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
11185         * modules/malloca: Renamed from modules/allocsa, updated.
11186         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
11187         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
11188         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
11189         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
11190         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
11191         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
11192         * modules/xmalloca: Renamed from modules/xallocsa, updated.
11193         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
11194         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
11195         * modules/c-strcasestr (Depends-on): Update.
11196         * lib/c-strcasestr.c: Update.
11197         * modules/c-strstr (Depends-on): Update.
11198         * lib/c-strstr.c: Update.
11199         * modules/canonicalize-lgpl (Depends-on): Update.
11200         * lib/canonicalize-lgpl.c: Update.
11201         * modules/clean-temp (Depends-on): Update.
11202         * lib/clean-temp.c: Update.
11203         * modules/csharpcomp (Depends-on): Update.
11204         * lib/csharpcomp.c: Update.
11205         * modules/csharpexec (Depends-on): Update.
11206         * lib/csharpexec.c: Update.
11207         * modules/javacomp (Depends-on): Update.
11208         * lib/javacomp.c: Update.
11209         * modules/javaexec (Depends-on): Update.
11210         * lib/javaexec.c: Update.
11211         * modules/mbscasestr (Depends-on): Update.
11212         * lib/mbscasestr.c: Update.
11213         * modules/mbsstr (Depends-on): Update.
11214         * lib/mbsstr.c: Update.
11215         * modules/setenv (Depends-on): Update.
11216         * lib/setenv.c: Update.
11217         * modules/strcasestr (Depends-on): Update.
11218         * lib/strcasestr.c: Update.
11219         * modules/striconveha (Depends-on): Update.
11220         * lib/striconveha.c: Update.
11221         * modules/relocatable-prog-wrapper (Files): Update.
11222         * lib/relocwrapper.c: Update.
11223         * build-aux/install-reloc: Update.
11224         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
11225
11226 2007-06-08  Bruno Haible  <bruno@clisp.org>
11227
11228         Port to uClibc.
11229         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
11230         * lib/fpurge.c (fpurge): Likewise.
11231         * lib/freading.c (freading): Likewise.
11232         * lib/fseeko.c (rpl_fseeko): Likewise.
11233         * lib/fseterr.c (fseterr): Likewise.
11234         * lib/fwriting.c (fwriting): Likewise.
11235         * tests/test-fflush.c (main): Avoid a failure on uClibc.
11236
11237 2007-06-08  Bruno Haible  <bruno@clisp.org>
11238
11239         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
11240         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
11241         * modules/gettext (Files): Add m4/intlmacosx.m4.
11242
11243 2007-06-07  Bruno Haible  <bruno@clisp.org>
11244
11245         * modules/localename-tests: New file.
11246         * tests/test-localename.c: New file.
11247
11248         New module 'localename'.
11249         * lib/localename.h: New file.
11250         * lib/localename.c: New file, from GNU gettext.
11251         * m4/localename.m4: New file.
11252         * modules/localename: New file.
11253
11254 2007-06-07  Bruno Haible  <bruno@clisp.org>
11255
11256         Work around the lack of <wchar.h> on some builds of uClibc.
11257         * doc/headers/wchar.texi: Update.
11258         * lib/wchar_.h: Include <wchar.h> only if it exists.
11259         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
11260         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
11261         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
11262         doesn't exist.
11263         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
11264         * modules/mbfile (Depends-on): Add wchar.
11265         * modules/mbiter (Depends-on): Likewise.
11266         * modules/mbuiter (Depends-on): Likewise.
11267         Reported by Simon Josefsson.
11268
11269 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
11270
11271         Work around problem reported by Steven M. Schweda in
11272         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
11273         Tru64 5.1B with the Compaq compiler environment installed declares
11274         an 'isblank' function but does not define it in the C library.
11275         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
11276         * lib/regex_internal.h (isblank): Likewise.
11277         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
11278         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11279
11280 2007-06-05  Bruno Haible  <bruno@clisp.org>
11281
11282         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
11283         ia64.
11284         * modules/printf-safe: New file.
11285         * modules/fprintf-posix (Depends-on): Add printf-safe.
11286         * modules/printf-posix (Depends-on): Likewise.
11287         * modules/snprintf-posix (Depends-on): Likewise.
11288         * modules/sprintf-posix (Depends-on): Likewise.
11289         * modules/vasnprintf-posix (Depends-on): Likewise.
11290         * modules/vasprintf-posix (Depends-on): Likewise.
11291         * modules/vfprintf-posix (Depends-on): Likewise.
11292         * modules/vprintf-posix (Depends-on): Likewise.
11293         * modules/vsnprintf-posix (Depends-on): Likewise.
11294         * modules/vsprintf-posix (Depends-on): Likewise.
11295         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11296         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
11297         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
11298         "no" on i386, x86_64, ia64.
11299         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
11300         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11301         on i386, x86_64, ia64.
11302         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
11303         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11304         on i386, x86_64, ia64.
11305         * tests/test-vasnprintf-posix.c: Include float.h.
11306         (LDBL80_WORDS): New macro.
11307         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11308         on i386, x86_64, ia64.
11309         * tests/test-vasprintf-posix.c: Include float.h.
11310         (LDBL80_WORDS): New macro.
11311         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11312         on i386, x86_64, ia64.
11313         * tests/test-snprintf-posix.c: Include float.h.
11314         * tests/test-sprintf-posix.c: Likewise.
11315         * tests/test-vsnprintf-posix.c: Likewise.
11316         * tests/test-vsprintf-posix.c: Likewise.
11317
11318 2007-06-05  Bruno Haible  <bruno@clisp.org>
11319
11320         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
11321         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
11322         non-IEEE numbers on i386, x86_64, ia64.
11323         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
11324         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
11325         * tests/test-isnanl.h: Include float.h.
11326         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
11327
11328 2007-06-05  Bruno Haible  <bruno@clisp.org>
11329
11330         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
11331         also the %a / %A. Handle the %a / %A code before this extra handling.
11332
11333 2007-06-05  Bruno Haible  <bruno@clisp.org>
11334
11335         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
11336         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
11337
11338 2007-06-05  Bruno Haible  <bruno@clisp.org>
11339
11340         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
11341         typo in variable name.
11342
11343 2007-06-05  Eric Blake  <ebb9@byu.net>
11344
11345         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
11346         Reported by Simon Josefsson.
11347
11348 2007-06-04  Bruno Haible  <bruno@clisp.org>
11349
11350         Avoid test failures on some PowerPC platforms.
11351         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
11352         Define differently for PowerPC.
11353         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
11354         Reported by Gary V. Vaughan <gary@gnu.org>.
11355
11356 2007-06-02  Bruno Haible  <bruno@clisp.org>
11357
11358         Fix test-stdint failure on FreeBSD/ia64.
11359         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
11360         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
11361         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
11362         * doc/headers/stdint.texi: Update.
11363
11364 2007-06-01  Bruno Haible  <bruno@clisp.org>
11365
11366         * tests/test-binary-io.c (main): Pass a third argument to open().
11367         Reported by Gary V. Vaughan <gary@gnu.org>.
11368
11369 2007-06-01  Bruno Haible  <bruno@clisp.org>
11370
11371         * doc/functions/frexpl.texi: Update for mingw.
11372
11373 2007-06-01  Bruno Haible  <bruno@clisp.org>
11374
11375         * tests/test-lseek.c (main): Disable test of errno for invalid third
11376         argument.
11377         * doc/functions/lseek.texi: Update.
11378         Reported by Gary V. Vaughan <gary@gnu.org>.
11379
11380 2007-05-28  Bruno Haible  <bruno@clisp.org>
11381
11382         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
11383
11384 2007-05-31  Eric Blake  <ebb9@byu.net>
11385
11386         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
11387         cross compiling.
11388
11389 2007-05-30  Eric Blake  <ebb9@byu.net>
11390         and Bruno Haible  <bruno@clisp.org>
11391
11392         Work around mingw test failures exposed by m4-1.4.9b.
11393         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
11394         * tests/test-unistd.c: Disable uid_t and git_t tests for the
11395         moment.
11396
11397 2007-05-30  Bruno Haible  <bruno@clisp.org>
11398
11399         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
11400         assuming that they are closed. Needed on HP-UX 11.
11401
11402 2007-05-29  Bruno Haible  <bruno@clisp.org>
11403
11404         Fix a problem with #include_next.
11405         * lib/dirent_.h: Split the double-inclusion guard.
11406         * lib/fcntl_.h: Likewise.
11407         * lib/float_.h: Likewise.
11408         * lib/iconv_.h: Likewise.
11409         * lib/inttypes_.h: Likewise.
11410         * lib/locale_.h: Likewise.
11411         * lib/math_.h: Likewise.
11412         * lib/netinet_in_.h: Likewise.
11413         * lib/search_.h: Likewise.
11414         * lib/signal_.h: Likewise.
11415         * lib/stdint_.h: Likewise.
11416         * lib/stdio_.h: Likewise.
11417         * lib/stdlib_.h: Likewise.
11418         * lib/string_.h: Likewise.
11419         * lib/sys_select_.h: Likewise.
11420         * lib/sys_socket_.h: Likewise.
11421         * lib/sys_stat_.h: Likewise.
11422         * lib/sys_time_.h: Likewise.
11423         * lib/sysexits_.h: Likewise.
11424         * lib/time_.h: Likewise.
11425         * lib/unistd_.h: Likewise.
11426         * lib/wchar_.h: Likewise.
11427         * lib/wctype_.h: Likewise.
11428
11429 2007-05-29  Bruno Haible  <bruno@clisp.org>
11430
11431         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
11432         for the moment.
11433
11434 2007-05-29  Bruno Haible  <bruno@clisp.org>
11435
11436         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
11437         invocation.
11438         Reported by Eric Blake.
11439
11440 2007-05-29  Bruno Haible  <bruno@clisp.org>
11441
11442         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
11443         compiling case.
11444
11445 2007-05-29  Eric Blake  <ebb9@byu.net>
11446             Bruno Haible  <bruno@clisp.org>
11447
11448         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
11449         cross compiles.
11450
11451 2007-05-28  Eric Blake  <ebb9@byu.net>
11452
11453         * modules/closein-tests (test_closein_LDADD): Support test on
11454         cygwin with libtool.
11455
11456 2007-05-28  Bruno Haible  <bruno@clisp.org>
11457
11458         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
11459         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11460         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11461         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11462         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11463         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11464         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11465         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11466         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11467
11468 2007-05-28  Eric Blake  <ebb9@byu.net>
11469
11470         Unconditionally include <config.h> in unit tests.
11471         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
11472         * tests/test-allocsa.c, tests/test-arcfour.c,
11473         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
11474         tests/test-array_list.c, tests/test-array_oset.c,
11475         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
11476         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
11477         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
11478         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
11479         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
11480         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
11481         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
11482         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
11483         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
11484         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
11485         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
11486         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
11487         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
11488         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
11489         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
11490         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
11491         test-md5.c, test-memmem.c, test-printf-posix.c,
11492         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
11493         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
11494         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
11495         test-strcasestr.c, test-striconv.c, test-striconveh.c,
11496         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
11497         test-vasnprintf-posix2.c, test-vasnprintf.c,
11498         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
11499         test-vfprintf-posix.c, test-vprintf-posix.c,
11500         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
11501         test-xvasprintf.c: Likewise.
11502
11503 2007-05-28  Bruno Haible  <bruno@clisp.org>
11504
11505         * gnulib-tool (func_import): Remember the --with-tests command-line
11506         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
11507         Reported by Eric Blake.
11508
11509 2007-05-28  Bruno Haible  <bruno@clisp.org>
11510
11511         * modules/ftell-tests: New file.
11512         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
11513         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
11514
11515         * lib/ftell.c: New file.
11516         * modules/ftell: New file.
11517         * m4/ftell.m4: New file.
11518         * doc/functions/ftell.texi: Update.
11519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
11520         REPLACE_FTELL.
11521         * lib/stdio_.h (rpl_ftell): New declaration.
11522         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
11523         REPLACE_FTELL.
11524
11525 2007-05-28  Eric Blake  <ebb9@byu.net>
11526
11527         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
11528
11529 2007-05-28  Bruno Haible  <bruno@clisp.org>
11530
11531         * modules/fseek-tests: New file.
11532         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
11533         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
11534
11535         * lib/fseek.c: New file.
11536         * modules/fseek: New file.
11537         * m4/fseek.m4: New file.
11538         * doc/functions/fseek.texi: Update.
11539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
11540         REPLACE_FSEEK.
11541         * lib/stdio_.h (rpl_fseek): New declaration.
11542         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
11543         REPLACE_FSEEK.
11544
11545 2007-05-28  Bruno Haible  <bruno@clisp.org>
11546
11547         * lib/stdio_.h (fflush): More comments.
11548
11549 2007-05-28  Bruno Haible  <bruno@clisp.org>
11550
11551         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
11552         runtime test.
11553
11554 2007-05-28  Eric Blake  <ebb9@byu.net>
11555
11556         Improve lseek module.
11557         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
11558         * lib/unistd_.h (lseek): Scale back link warning message.
11559         * tests/test-lseek.c: Beef up test.
11560         * tests/test-lseek.sh: Exercise more facets of lseek.
11561         Reported by Bruno Haible.
11562
11563 2007-05-28  Bruno Haible  <bruno@clisp.org>
11564
11565         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
11566         to define.
11567
11568 2007-05-27  Bruno Haible  <bruno@clisp.org>
11569
11570         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
11571
11572 2007-05-27  Bruno Haible  <bruno@clisp.org>
11573
11574         * modules/openmp: New file.
11575         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
11576         Noah Misch.
11577
11578 2007-05-26  Bruno Haible  <bruno@clisp.org>
11579
11580         * modules/chdir-long (Depends-on): Add fchdir.
11581         * modules/chdir-safer (Depends-on): Likewise.
11582         * modules/fts (Depends-on): Likewise.
11583         * modules/fts-lgpl (Depends-on): Likewise.
11584         * modules/openat (Depends-on): Likewise.
11585         * modules/savewd (Depends-on): Likewise.
11586
11587 2007-05-24  Eric Blake  <ebb9@byu.net>
11588
11589         Fix lseek on mingw.
11590         * modules/lseek: New module.
11591         * m4/lseek.m4: New file.
11592         * lib/lseek.c: New file.
11593         * modules/lseek-tests: New file.
11594         * tests/test-lseek.c: New file.
11595         * tests/test-lseek.sh: New file.
11596         * MODULES.html.sh: Document lseek module.
11597         * modules/fflush (Depends-on): Add lseek, fseeko.
11598         * modules/fseeko (Depends-on): Likewise.
11599         * modules/ftello (Depends-on): Likewise.
11600         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
11601         broken.
11602         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
11603         broken.
11604         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
11605         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
11606         * lib/ftello.c (rpl_ftello): Likewise.
11607         * tests/test-fseeko.c (main): Test this.
11608         * tests/test-fseeko.sh: Likewise.
11609         * tests/test-ftello.c (main): Likewise.
11610         * tests/test-ftello.sh: Likewise.
11611         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
11612         implies replacing fseek.
11613         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
11614         HAVE_FTELLO.
11615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
11616         * modules/unistd (Makefile.am): Likewise.
11617         * lib/unistd_.h (lseek): Declare a replacement.
11618         * doc/functions/lseek.texi (lseek): Document this fix.
11619         * doc/functions/fseek.texi (fseek): Likewise.
11620         * doc/functions/ftell.texi (ftell): Likewise.
11621
11622 2007-05-24  Bruno Haible  <bruno@clisp.org>
11623
11624         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
11625         in the printed representation of a NaN.
11626         * tests/test-vasprintf-posix.c (test_function): Likewise.
11627         * tests/test-snprintf-posix.h (test_function): Likewise.
11628         * tests/test-sprintf-posix.h (test_function): Likewise.
11629         Reported by Eric Blake.
11630
11631 2007-05-23  Eric Blake  <ebb9@byu.net>
11632
11633         Fix fseeko/ftello on cygwin 1.5.24.
11634         * doc/functions/fseeko.texi (fseeko): Document the fix.
11635         * doc/functions/ftello.texi (ftello): Document the fix.
11636         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
11637         * doc/functions/stdout.text (stdout): New file.
11638         * doc/functions/stderr.text (stderr): New file.
11639         * doc/gnulib.texi (Function Substitutes): Use new files.
11640         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
11641         prior to 1.7.0.
11642         * tests/test-ftello.c (main): Likewise for ftello.
11643         * tests/test-fseeko.sh: New file.
11644         * tests/test-ftello.sh: New file.
11645         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
11646         with seekable stdin.
11647         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
11648         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
11649         (gl_REPLACE_FSEEKO): New macro.
11650         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
11651         * modules/fseeko (Files): Distribute fseeko.c.
11652         * modules/ftello (Files): Distribute ftello.c.
11653         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
11654         mode.
11655         * lib/ftello.c (rpl_ftello): New file.
11656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
11657         fseeko, ftello.
11658         (gl_STDIN_LARGE_OFFSET): New macro.
11659         * modules/stdio (Makefile.am): Perform the replacement.
11660         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
11661
11662 2007-05-23  Bruno Haible  <bruno@clisp.org>
11663
11664         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
11665         GNULIB_POSIXCHECK is defined.
11666
11667 2007-05-21  Bruno Haible  <bruno@clisp.org>
11668
11669         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
11670         Check also the output for NaN arguments. When cross-compiling, guess
11671         no on IRIX.
11672         * lib/vasnprintf.c: Update comments.
11673         * tests/test-vasnprintf-posix.c (strisnan): New function.
11674         (test_function): Use it.
11675         * tests/test-vasprintf-posix.c (strisnan): New function.
11676         (test_function): Use it.
11677         * tests/test-snprintf-posix.h (strisnan): New function.
11678         (test_function): Use it.
11679         * tests/test-sprintf-posix.h (strisnan): New function.
11680         (test_function): Use it.
11681         Reported by Eric Blake.
11682
11683 2007-05-20  Bruno Haible  <bruno@clisp.org>
11684
11685         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
11686         numbers that fails on BeOS.
11687         * doc/functions/frexpl.texi: Update.
11688
11689 2007-05-20  Jim Meyering  <jim@meyering.net>
11690
11691         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
11692         forced upon us by glibc-2.6.
11693
11694 2007-05-20  Bruno Haible  <bruno@clisp.org>
11695
11696         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
11697         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
11698         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
11699         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
11700         NEED_PRINTF_INFINITE.
11701         (is_infinitel): New function.
11702         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
11703         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
11704         gl_PREREQ_VASNPRINTF_INFINITE.
11705         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
11706         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11707         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
11708         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
11709         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
11710         gl_PREREQ_VASNPRINTF_INFINITE.
11711         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
11712         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11713         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11714         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11715         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
11716         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11717         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11718         * doc/functions/fprintf.texi: Update.
11719         * doc/functions/printf.texi: Update.
11720         * doc/functions/snprintf.texi: Update.
11721         * doc/functions/sprintf.texi: Update.
11722         * doc/functions/vfprintf.texi: Update.
11723         * doc/functions/vprintf.texi: Update.
11724         * doc/functions/vsnprintf.texi: Update.
11725         * doc/functions/vsprintf.texi: Update.
11726
11727 2007-05-20  Bruno Haible  <bruno@clisp.org>
11728
11729         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
11730         was not found in libc.
11731         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11732
11733 2007-05-20  Bruno Haible  <bruno@clisp.org>
11734
11735         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
11736         printed as "-nan" instead of "nan".
11737         * tests/test-vasprintf-posix.c (test_function): Likewise.
11738         * tests/test-snprintf-posix.h (test_function): Likewise.
11739         * tests/test-sprintf-posix.h (test_function): Likewise.
11740         Needed for HP-UX 11.
11741
11742 2007-05-20  Jim Meyering  <jim@meyering.net>
11743
11744         Fix buggy test for the fchownat-deref bug.
11745         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
11746         symlink required for the run-test.  Without it, this test would
11747         always declare that fchownat doesn't work, and client code would
11748         unnecessarily use the replacement function with fixed libc.
11749         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
11750         Reported by Greg Schafer.
11751
11752 2007-05-19  Bruno Haible  <bruno@clisp.org>
11753
11754         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
11755         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
11756         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
11757         Needed for IRIX 6.5 and Solaris 2.5.1.
11758
11759 2007-05-19  Bruno Haible  <bruno@clisp.org>
11760
11761         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
11762         (test_function): Skip tests involving -0.0 on platforms where
11763         -0.0 = 0.0.
11764         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
11765         (test_function): Skip tests involving -0.0 on platforms where
11766         -0.0 = 0.0.
11767         * tests/test-snprintf-posix.h (have_minus_zero): New function.
11768         (test_function): Skip tests involving -0.0 on platforms where
11769         -0.0 = 0.0.
11770         * tests/test-sprintf-posix.h (have_minus_zero): New function.
11771         (test_function): Skip tests involving -0.0 on platforms where
11772         -0.0 = 0.0.
11773         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
11774         tests.
11775         * tests/test-printf-posix.h (test_function): Likewise.
11776         * tests/test-printf-posix.output: Remove all -0.0 related results.
11777         Needed for IRIX 6.5.
11778
11779 2007-05-19  Bruno Haible  <bruno@clisp.org>
11780
11781         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
11782         printed as "nan0x7fffffff" instead of "nan".
11783         * tests/test-vasprintf-posix.c (test_function): Likewise.
11784         * tests/test-snprintf-posix.h (test_function): Likewise.
11785         * tests/test-sprintf-posix.h (test_function): Likewise.
11786         * tests/test-fprintf-posix.h (NaN): Remove macro.
11787         (test_function): Remove all NaN related tests.
11788         * tests/test-printf-posix.h (NaN): Remove macro.
11789         (test_function): Remove all NaN related tests.
11790         * tests/test-printf-posix.output: Remove all NaN related results.
11791         Needed for IRIX 6.5.
11792
11793 2007-05-19  Bruno Haible  <bruno@clisp.org>
11794
11795         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
11796         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11797
11798 2007-05-19  Bruno Haible  <bruno@clisp.org>
11799
11800         * lib/float_.h: New file.
11801         * m4/float_h.m4: New file.
11802         * modules/float: New file.
11803         * modules/isnanl (Dependencies): Add float.
11804         * modules/isnanl-nolibm (Dependencies): Likewise.
11805         * modules/mathl (Dependencies): Likewise.
11806         * modules/printf-frexpl (Dependencies): Likewise.
11807         * modules/signbit (Dependencies): Likewise.
11808         * modules/vasnprintf (Dependencies): Likewise.
11809         * doc/headers/float.texi: Update.
11810
11811 2007-05-19  Jim Meyering  <jim@meyering.net>
11812
11813         * lib/utimens.c (gl_futimens): Rename from futimens,
11814         now that glibc-2.6 declares futimens.
11815         * lib/utimens.h: Likewise.
11816
11817 2007-05-19  Bruno Haible  <bruno@clisp.org>
11818
11819         Avoid test failures on mingw.
11820         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
11821         * tests/test-printf-posix.sh: Likewise.
11822         * tests/test-vfprintf-posix.sh: Likewise.
11823         * tests/test-vprintf-posix.sh: Likewise.
11824
11825 2007-05-19  Bruno Haible  <bruno@clisp.org>
11826
11827         Fix *printf result for NaN, Inf, -0.0 on mingw.
11828         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
11829         * lib/vasnprintf.c: Include math.h and isnan.h.
11830         (is_infinite_or_zero): New function.
11831         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
11832         values in the %f, %F, %e, %E, %g, %G directives.
11833         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
11834         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11835         gl_PRINTF_INFINITE and test its result. Invoke
11836         gl_PREREQ_VASNPRINTF_INFINITE.
11837         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
11838         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11839         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11840         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11841         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
11842         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11843         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11844         * doc/functions/fprintf.texi: Update.
11845         * doc/functions/printf.texi: Update.
11846         * doc/functions/snprintf.texi: Update.
11847         * doc/functions/sprintf.texi: Update.
11848         * doc/functions/vfprintf.texi: Update.
11849         * doc/functions/vprintf.texi: Update.
11850         * doc/functions/vsnprintf.texi: Update.
11851         * doc/functions/vsprintf.texi: Update.
11852
11853 2007-05-19  Bruno Haible  <bruno@clisp.org>
11854
11855         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
11856         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
11857         Instead of multiplying with 10^k, set extra_zeroes to k.
11858         (scale10_round_long_double): Remove function.
11859
11860 2007-05-18  Bruno Haible  <bruno@clisp.org>
11861
11862         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
11863         introduced on 2007-05-06.
11864
11865 2007-05-18  Bruno Haible  <bruno@clisp.org>
11866
11867         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
11868         %g directives.
11869         * tests/test-vasprintf-posix.c (test_function): Likewise.
11870         * tests/test-snprintf-posix.h (test_function): Likewise.
11871         * tests/test-sprintf-posix.h (test_function): Likewise.
11872
11873 2007-05-18  Bruno Haible  <bruno@clisp.org>
11874
11875         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
11876         (strmatch): New function.
11877         (test_function): Test the %f directive on numbers of various exponents.
11878         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
11879         (strmatch): New function.
11880         (test_function): Test the %f directive on numbers of various exponents.
11881         * tests/test-snprintf-posix.h (strmatch): New function.
11882         (test_function): Test the %f directive on numbers of various exponents.
11883         * tests/test-sprintf-posix.h (strmatch): New function.
11884         (test_function): Test the %f directive on numbers of various exponents.
11885         * tests/test-snprintf-posix.c (SIZEOF): New macro.
11886         * tests/test-sprintf-posix.c (SIZEOF): New macro.
11887         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
11888         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
11889
11890 2007-05-18  Bruno Haible  <bruno@clisp.org>
11891
11892         Add support for 'long double' number output.
11893         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
11894         * lib/vasnprintf.c: Include math.h and float+.h.
11895         (mp_limb_t): New type.
11896         (GMP_LIMB_BITS): New macro.
11897         (mp_twolimb_t): New type.
11898         (GMP_TWOLIMB_BITS): New macro.
11899         (mpn_t): New type.
11900         (multiply, divide, convert_to_decimal, decode_long_double,
11901         scale10_round_long_double, scale10_round_decimal_long_double,
11902         floorlog10l): New functions.
11903         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
11904         for the %f, %F, %e, %E, %g, %G directives.
11905         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
11906         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11907         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
11908         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
11909         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
11910         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11911         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11912         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11913         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
11914         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11915         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11916         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
11917         * modules/snprintf-posix (Depends-on): Likewise.
11918         * modules/sprintf-posix (Depends-on): Likewise.
11919         * modules/vasnprintf-posix (Depends-on): Likewise.
11920         * modules/vasprintf-posix (Depends-on): Likewise.
11921         * modules/vfprintf-posix (Depends-on): Likewise.
11922         * modules/vsnprintf-posix (Depends-on): Likewise.
11923         * modules/vsprintf-posix (Depends-on): Likewise.
11924         * modules/vasnprintf (Files): Add lib/float+.h.
11925         * doc/functions/fprintf.texi: Update.
11926         * doc/functions/printf.texi: Update.
11927         * doc/functions/snprintf.texi: Update.
11928         * doc/functions/sprintf.texi: Update.
11929         * doc/functions/vfprintf.texi: Update.
11930         * doc/functions/vprintf.texi: Update.
11931         * doc/functions/vsnprintf.texi: Update.
11932         * doc/functions/vsprintf.texi: Update.
11933
11934 2007-05-18  Bruno Haible  <bruno@clisp.org>
11935
11936         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
11937
11938 2007-05-18  Bruno Haible  <bruno@clisp.org>
11939
11940         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
11941         for printing 64-bit integers. Needed for mingw.
11942
11943 2007-05-18  Bruno Haible  <bruno@clisp.org>
11944
11945         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
11946         gl_FUNC_FREXPL_WORKS.
11947         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
11948
11949 2007-05-18  Bruno Haible  <bruno@clisp.org>
11950
11951         * modules/frexpl-nolibm-tests: New file.
11952
11953         * modules/frexpl-nolibm: New file.
11954         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
11955
11956 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11957
11958         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
11959         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
11960         GCC 4.2, which otherwise issues a lot of warnings.
11961         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
11962         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
11963         Likewise.
11964         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
11965         * modules/iconv_open (iconv.h): Likewise.
11966         * modules/locale (locale.h): Likewise.
11967         * modules/netinet_in (netinet/in.h): Likewise.
11968         * modules/sys_select (sys_select.h): Likewise.
11969         * modules/sys_socket (sys/socket.h): Likewise.
11970         * modules/sys_stat (sys/stat.h): Likewise.
11971         * modules/sysexits (sysexits.h): Likewise.
11972         * modules/unistd (unistd.h): Likewise.
11973
11974 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11975
11976         * modules/closein-tests (Makefile.am): Distribute
11977         `test-closein.sh'.
11978
11979 2007-05-17  Bruno Haible  <bruno@clisp.org>
11980
11981         * tests/test-printf-posix.output: Renamed from
11982         tests/test-fprintf-posix.out.
11983         * modules/fprintf-posix-tests: Update.
11984         * modules/printf-posix-tests: Update.
11985         * modules/vfprintf-posix-tests: Update.
11986         * modules/vprintf-posix-tests: Update.
11987         * tests/test-fprintf-posix.sh: Update.
11988         * tests/test-printf-posix.sh: Update.
11989         * tests/test-vfprintf-posix.sh: Update.
11990         * tests/test-vprintf-posix.sh: Update.
11991         Reported by Ralf Wildenhues.
11992
11993 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11994
11995         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
11996         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
11997         GCC 4.2, which otherwise issues a lot of warnings.
11998         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
11999         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
12000         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
12001         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
12002         it should no longer be needed.
12003         * lib/string_.h: Likewise.
12004         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
12005         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
12006         * modules/inttypes (inttypes.h): Likewise.
12007         * modules/math (math.h): Likewise.
12008         * modules/search (search.h): Likewise.
12009         * modules/signal (signal.h): Likewise.
12010         * modules/stdint (stdint.h): Likewise.
12011         * modules/stdio (stdio.h): Likewise.
12012         * modules/stdlib (stdlib.h): Likewise.
12013         * modules/string (string.h): Likewise.
12014         * modules/sys_time (sys/time.h): Likewise.
12015         * modules/time (time.h): Likewise.
12016         * modules/wchar (wchar.h): Likewise.
12017         * modules/wctype (wtype.h): Likewise.
12018
12019 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12020
12021         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
12022
12023 2007-05-13  Bruno Haible  <bruno@clisp.org>
12024
12025         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
12026         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12027         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
12028         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
12029         (gl_PREREQ_STRTOK_R): Don't require it here.
12030
12031 2007-05-13  Bruno Haible  <bruno@clisp.org>
12032
12033         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
12034         when used in C++ mode.
12035
12036 2007-05-12  Bruno Haible  <bruno@clisp.org>
12037
12038         * lib/linebuffer.h: Tweak doc.
12039         * lib/linebuffer.c: Likewise.
12040
12041 2007-05-12  James Youngman  <jay@gnu.org>
12042
12043         * lib/linebuffer.c (readlinebuffer_delim): New function,
12044         like readlinebuffer, but use a caller-specified delimiter.
12045         (readlinebuffer): Just call readlinebuffer_delim with '\n'
12046         as the delimiter.
12047         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
12048
12049 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12050
12051         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
12052         * modules/openat (Files): Remove openat-die.c.
12053         (Depends-on): Add openat-die.
12054         * modules/openat-die: New module.
12055
12056 2007-05-06  Bruno Haible  <bruno@clisp.org>
12057
12058         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
12059         Update with info about Cygwin.
12060         * doc/functions/fprintf.texi: Update.
12061         * doc/functions/printf.texi: Update.
12062         * doc/functions/snprintf.texi: Update.
12063         * doc/functions/sprintf.texi: Update.
12064         * doc/functions/vfprintf.texi: Update.
12065         * doc/functions/vprintf.texi: Update.
12066         * doc/functions/vsnprintf.texi: Update.
12067         * doc/functions/vsprintf.texi: Update.
12068         Reported by Eric Blake.
12069
12070 2007-05-06  Bruno Haible  <bruno@clisp.org>
12071
12072         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
12073         padding ourselves for the floating-point directives.
12074         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
12075         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
12076         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12077         gl_PRINTF_FLAG_ZERO and test its result. Invoke
12078         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
12079         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12080         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
12081         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12082         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12083         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12084         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12085         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12086         * tests/test-snprintf-posix.h (test_function): Also check the width
12087         and some flags in the %f directive.
12088         * tests/test-sprintf-posix.h (test_function): Likewise.
12089         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12090         * tests/test-vasprintf-posix.c (test_function): Likewise.
12091         * doc/functions/fprintf.texi: Update.
12092         * doc/functions/printf.texi: Update.
12093         * doc/functions/snprintf.texi: Update.
12094         * doc/functions/sprintf.texi: Update.
12095         * doc/functions/vfprintf.texi: Update.
12096         * doc/functions/vprintf.texi: Update.
12097         * doc/functions/vsnprintf.texi: Update.
12098         * doc/functions/vsprintf.texi: Update.
12099
12100 2007-05-06  Bruno Haible  <bruno@clisp.org>
12101
12102         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
12103         pass the ' flag character to sprintf or snprintf.
12104         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
12105         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
12106         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12107         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
12108         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
12109         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12110         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
12111         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12112         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12113         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12114         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12115         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12116         * tests/test-snprintf-posix.h (test_function): Also check the grouping
12117         flag.
12118         * tests/test-sprintf-posix.h (test_function): Likewise.
12119         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12120         * tests/test-vasprintf-posix.c (test_function): Likewise.
12121         * doc/functions/fprintf.texi: Update.
12122         * doc/functions/printf.texi: Update.
12123         * doc/functions/snprintf.texi: Update.
12124         * doc/functions/sprintf.texi: Update.
12125         * doc/functions/vfprintf.texi: Update.
12126         * doc/functions/vprintf.texi: Update.
12127         * doc/functions/vsnprintf.texi: Update.
12128         * doc/functions/vsprintf.texi: Update.
12129
12130 2007-05-01  Bruno Haible  <bruno@clisp.org>
12131
12132         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
12133
12134 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
12135
12136         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
12137         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
12138
12139 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
12140
12141         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
12142         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
12143         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
12144
12145 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
12146
12147         * lib/argp-help.c (struct hol_entry): New member `ord'.
12148         (HOL_ENTRY_PTRCMP): Use ord for comparison
12149         (hol_sort): Initialize ord.
12150
12151 2007-05-01  Bruno Haible  <bruno@clisp.org>
12152
12153         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
12154         Reported by Eric Blake.
12155         * doc/gnulib.texi (Function Substitutes): Update.
12156
12157 2007-05-01  Bruno Haible  <bruno@clisp.org>
12158
12159         * doc/functions.texi: Remove file, now redundant through
12160         doc/functions/*.texi.
12161
12162 2007-05-01  Bruno Haible  <bruno@clisp.org>
12163
12164         * modules/argp (Depends-on): Add sleep.
12165
12166 2007-05-01  Bruno Haible  <bruno@clisp.org>
12167
12168         * modules/sleep-tests: New file.
12169         * tests/test-sleep.c: New file.
12170
12171         * modules/sleep: New file.
12172         * lib/sleep.c: New file.
12173         * m4/sleep.m4: New file.
12174         * lib/unistd_.h (sleep): New declaration.
12175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
12176         HAVE_SLEEP.
12177         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
12178         * doc/functions/sleep.texi: Document the sleep module.
12179
12180 2007-05-01  Bruno Haible  <bruno@clisp.org>
12181
12182         * lib/sigprocmask.h: Remove file.
12183         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
12184         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
12185         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
12186         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
12187         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12188         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
12189         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
12190         HAVE_SIGSET_T as a shell variable.
12191         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
12192         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
12193         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
12194         (Depends-on): Add signal. Remove verify.
12195         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
12196         (Include): Mention <signal.h> instead of sigprocmask.h.
12197         * NEWS: Mention the change.
12198         * lib/fatal-signal.c: Don't include sigprocmask.h.
12199
12200 2007-05-01  Bruno Haible  <bruno@clisp.org>
12201
12202         * modules/signal: New file.
12203         * lib/signal_.h: New file.
12204         * m4/signal_h.m4: New file.
12205
12206 2007-05-01  Bruno Haible  <bruno@clisp.org>
12207
12208         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
12209         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
12210         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
12211         HAVE_WCTYPE_CTMP_BUG into wctype.h.
12212
12213 2007-05-01  Bruno Haible  <bruno@clisp.org>
12214
12215         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
12216         configure time.
12217         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
12218         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
12219         * modules/sys_stat (Makefile.am): Substitute their values into
12220         sys/stat.h.
12221
12222 2007-05-01  Bruno Haible  <bruno@clisp.org>
12223
12224         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
12225         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
12226         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
12227
12228 2007-05-01  Bruno Haible  <bruno@clisp.org>
12229
12230         * doc/header/assert.texi: Undo last change: don't mention the gnulib
12231         'assert' module here.
12232
12233 2007-05-01  Bruno Haible  <bruno@clisp.org>
12234
12235         * doc/functions/*.texi: New files.
12236         * doc/functions/google-ranking.txt: New file.
12237         * doc/gnulib.texi (Function Substitutes): New chapter.
12238         (ctime, inet_ntoa): Remove sections.
12239         * doc/ctime.texi: Remove file.
12240         * doc/inet_ntoa.texi: Remove file.
12241         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
12242         dependencies.
12243         (%.info): New rule, specifying a --reference-limit.
12244
12245 2007-05-01  Bruno Haible  <bruno@clisp.org>
12246
12247         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
12248
12249 2007-05-01  Bruno Haible  <bruno@clisp.org>
12250
12251         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
12252         the portability of 'mkdir' to mingw systems.
12253
12254 2007-05-01  Bruno Haible  <bruno@clisp.org>
12255
12256         * doc/headers/google-ranking.txt: New file.
12257
12258 2007-04-30  Eric Blake  <ebb9@byu.net>
12259
12260         Prefer fseeko to fseek.
12261         * modules/getpass (Depends-on): Add fseeko.
12262         * lib/getpass.c (getpass): Use fseeko, not fseek.
12263
12264 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
12265
12266         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
12267         assumes the sorting is stable, while most qsort implementations
12268         are not.  Use argument addresses to ensure they never compare as
12269         equal.
12270
12271         * tests/test-argp-2.sh (usage-indent test): Fix output
12272         (func_compare): Restore diff options
12273         * tests/test-argp.c: Restore #include "progname.h"
12274
12275 2007-04-29  Bruno Haible  <bruno@clisp.org>
12276
12277         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
12278         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12279         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
12280         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12281         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
12282         (configure.ac): Define CHECK_SNPRINTF_POSIX.
12283         (TESTS, check_PROGRAMS): Add test-snprintf.
12284         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
12285         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
12286         (TESTS, check_PROGRAMS): Add test-vsnprintf.
12287         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
12288         assertions that fail on HP-UX, OSF/1, or IRIX.
12289         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
12290
12291 2007-04-29  Bruno Haible  <bruno@clisp.org>
12292
12293         * MODULES.html.sh (posix_functions): Remove 'contents'.
12294
12295 2007-04-29  Karl Berry  <karl@gnu.org>
12296
12297         * config/srclist.txt (gendocs_template_min): new entry.
12298
12299 2007-04-29  Bruno Haible  <bruno@clisp.org>
12300
12301         Work around fpurge bug on BSD systems.
12302         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
12303         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
12304         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
12305         fpurge to rpl_fpurge if the system already has this function.
12306         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
12307         the case where the system already has this function. Correct invariants
12308         on BSD systems.
12309         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
12310         BSD systems.
12311
12312 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
12313
12314         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
12315         proposed by Sven Verdoolaege.
12316
12317         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
12318         options.
12319         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
12320         (usage and help tests): Update
12321
12322 2007-04-29  Bruno Haible  <bruno@clisp.org>
12323
12324         * tests/test-fflush.c (main): Use a file of size 17, not 10.
12325         Print more information in case of failure. Disable a test on BeOS.
12326
12327 2007-04-29  Bruno Haible  <bruno@clisp.org>
12328
12329         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
12330         This helps debugging on systems on which no gdb is available.
12331
12332 2007-04-29  Bruno Haible  <bruno@clisp.org>
12333
12334         * lib/freading.h: Improve comments.
12335         * lib/fwriting.h: Likewise.
12336         * tests/test-freading.c (main): Don't check freading immediately after
12337         repositioning. Needed for glibc.
12338
12339 2007-04-29  Bruno Haible  <bruno@clisp.org>
12340
12341         * lib/freading.c (freading): Trivial simplification.
12342
12343 2007-04-28  Bruno Haible  <bruno@clisp.org>
12344
12345         * tests/test-fwriting.c (main): Also test the interaction between
12346         fflush and fwriting.
12347         * modules/fwriting-tests (Depends-on): Add fflush.
12348
12349         * tests/test-freading.c (main): Also test the interaction between
12350         fflush and freading.
12351         * modules/freading-tests (Depends-on): Add fflush.
12352
12353 2007-04-28  Bruno Haible  <bruno@clisp.org>
12354
12355         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
12356         fseeko and ftello.
12357         Suggested by Eric Blake.
12358
12359 2007-04-28  Jim Meyering  <jim@meyering.net>
12360
12361         Avoid false-negative in gl_STDINT_H's C99 conformance test.
12362         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
12363         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
12364
12365 2007-04-27  Eric Blake  <ebb9@byu.net>
12366
12367         * doc/headers/assert.texi (assert.h): Document assert module use.
12368
12369 2007-04-27  Bruno Haible  <bruno@clisp.org>
12370
12371         * doc/headers/*.texi: New files.
12372         * doc/gnulib.texi (Header File Substitutes): New chapter.
12373         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
12374         dependencies.
12375         (standards.info ,standards.html, standards.dvi): Update dependencies.
12376         (mostlyclean, clean): New targets.
12377
12378 2007-04-27  Bruno Haible  <bruno@clisp.org>
12379
12380         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
12381         * modules/sysexits (Files, Makefile.am): Update.
12382
12383         * lib/sys_socket_.h: Renamed from lib/socket_.h.
12384         * modules/sys_socket (Files, Makefile.am): Update.
12385
12386         * lib/sys_stat_.h: Renamed from lib/stat_.h.
12387         * modules/sys_stat (Files, Makefile.am): Update.
12388
12389 2007-04-27  Eric Blake  <ebb9@byu.net>
12390
12391         * lib/freading.h: Improve comments.
12392         * lib/fwriting.h: Likewise.
12393         * lib/fflush.c: Likewise.
12394
12395         Fix closein for mingw.
12396         * modules/closein-tests: Add tests for closein.
12397         * tests/test-closein.c: New file.
12398         * tests/test-closein.sh: Likewise.
12399         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
12400         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
12401
12402 2007-04-27  Bruno Haible  <bruno@clisp.org>
12403
12404         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
12405         version is < 6.
12406         * lib/math_.h [__DECC]: Likewise.
12407         * lib/stdio_.h [__DECC]: Likewise.
12408         * lib/stdlib_.h [__DECC]: Likewise.
12409         * lib/string_.h [__DECC]: Likewise.
12410         * lib/time_.h [__DECC]: Likewise.
12411         * lib/wchar_.h [__DECC]: Likewise.
12412         * lib/wctype_.h [__DECC]: Likewise.
12413
12414 2007-04-27  Bruno Haible  <bruno@clisp.org>
12415
12416         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
12417
12418 2007-04-27  Bruno Haible  <bruno@clisp.org>
12419
12420         * lib/fflush.c: Add comments.
12421         * modules/fpurge-tests (Depends-on): Add fflush.
12422         * modules/freadable-tests (Depends-on): Likewise.
12423         * modules/fwritable-tests (Depends-on): Likewise.
12424
12425 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
12426
12427         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
12428         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
12429         Report by Bruno Haible <bruno@clisp.org>.
12430
12431 2007-04-26  Eric Blake  <ebb9@byu.net>
12432
12433         Fix fflush on mingw.
12434         * modules/fflush (Depends-on): Add freading.
12435         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
12436         but unread data.
12437
12438 2007-04-26  Eric Blake  <ebb9@byu.net>
12439         and Bruno Haible  <bruno@clisp.org>
12440
12441         Implement freading and fwriting.
12442         * lib/freading.c: New file.
12443         * lib/freading.h: Likewise.
12444         * m4/freading.m4: Likewise.
12445         * modules/freading: Likewise.
12446         * modules/freading-tests: Likewise.
12447         * tests/test-freading.c: Likewise.
12448         * lib/fwriting.c: New file.
12449         * lib/fwriting.h: Likewise.
12450         * m4/fwriting.m4: Likewise.
12451         * modules/fwriting: Likewise.
12452         * modules/fwriting-tests: Likewise.
12453         * tests/test-fwriting.c: Likewise.
12454         * MODULES.html.sh (File stream based Input/Output): Mention them.
12455
12456 2007-04-26  Bruno Haible  <bruno@clisp.org>
12457
12458         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
12459         'long' when we assume it.
12460         Suggested by Eric Blake.
12461
12462 2007-04-26  Bruno Haible  <bruno@clisp.org>
12463
12464         Ensure fseeko, ftello are declared on glibc systems.
12465         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
12466         * modules/fseeko (configure.ac-early): Likewise.
12467         * modules/ftello (configure.ac-early): Likewise.
12468         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
12469         AC_FUNC_FSEEKO for this.
12470         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
12471         (gl_CHECK_FSEEKO): Remove macro.
12472
12473 2007-04-26  Bruno Haible  <bruno@clisp.org>
12474
12475         * tests/test-fflush.c (main): Also check the ftell result after
12476         fflush and fseek/fseeko.
12477         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
12478         file descriptor position cache in the stream.
12479         * lib/fseeko.c (rpl_fseeko): Likewise.
12480
12481 2007-04-26  Bruno Haible  <bruno@clisp.org>
12482
12483         * modules/fflush-tests (Depends-on): Add fseeko.
12484
12485 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
12486             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12487
12488         * lib/argz_.h: ensure error_t definition is obtained in same
12489         mechanism system argz.h would have.
12490         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
12491         argz facilities are known bad.  Err on the side of caution if
12492         cross-compiling.
12493
12494 2007-04-25  Eric Blake  <ebb9@byu.net>
12495
12496         * lib/fpurge.c (includes): Use stdlib.h for free.
12497         * tests/test-fflush.c (main): Also test fflush-fseeko.
12498
12499 2007-04-25  Bruno Haible  <bruno@clisp.org>
12500
12501         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
12502         * lib/fseeko.c: New file.
12503         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
12504         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
12505         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
12506         gl_FUNC_FSEEKO.
12507         (gl_FUNC_FSEEKO): Invoke it.
12508         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
12509         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
12510         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
12511
12512 2007-04-25  Bruno Haible  <bruno@clisp.org>
12513
12514         * modules/fflush (Depends-on): Add ftello.
12515
12516 2007-04-25  Bruno Haible  <bruno@clisp.org>
12517
12518         * modules/ftello-tests: New file.
12519         * tests/test-ftello.c: New file.
12520
12521         * modules/ftello: New file.
12522         * m4/ftello.m4: New file.
12523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
12524         HAVE_FTELLO.
12525         * lib/stdio_.h (ftello): New declaration.
12526         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
12527         HAVE_FTELLO.
12528
12529 2007-04-25  Bruno Haible  <bruno@clisp.org>
12530
12531         * modules/fseeko-tests: New file.
12532         * tests/test-fseeko.c: New file.
12533
12534         * modules/fseeko: New file.
12535         * m4/fseeko.m4: New file.
12536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
12537         HAVE_FSEEKO.
12538         * lib/stdio_.h (fseeko): New declaration.
12539         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
12540         HAVE_FSEEKO.
12541
12542 2007-04-25  Bruno Haible  <bruno@clisp.org>
12543
12544         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
12545
12546 2007-04-25  Bruno Haible  <bruno@clisp.org>
12547
12548         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
12549         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
12550         * tests/test-unistd.c: Likewise.
12551         * tests/test-fcntl.c: Likewise.
12552
12553 2007-04-23  Eric Blake  <ebb9@byu.net>
12554
12555         * lib/fflush.c: Fix missing include.
12556         Reported by Bruno Haible.
12557
12558 2007-04-23  Bruno Haible  <bruno@clisp.org>
12559
12560         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
12561         Reported by Eric Blake.
12562
12563 2007-04-23  Bruno Haible  <bruno@clisp.org>
12564
12565         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
12566
12567 2007-04-23  Bruno Haible  <bruno@clisp.org>
12568
12569         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
12570
12571 2007-04-23  Bruno Haible  <bruno@clisp.org>
12572
12573         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
12574         Needed on HP-UX 11.
12575
12576 2007-04-16  Eric Blake  <ebb9@byu.net>
12577
12578         Make fflush rely on fpurge.
12579         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
12580         open coding all variants.
12581         * modules/fflush (Depends-on): Add fpurge and unistd.
12582         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
12583         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
12584
12585         Fix --with-tests compilation on cygwin.
12586         * modules/argmatch-tests (Makefile.am): List gnulib library first
12587         in LDADD.
12588         * modules/argp-tests (Makefile.am): Likewise.
12589         * modules/array-list-tests (Makefile.am): Likewise.
12590         * modules/array-oset-tests (Makefile.am): Likewise.
12591         * modules/avltree-list-tests (Makefile.am): Likewise.
12592         * modules/avltree-oset-tests (Makefile.am): Likewise.
12593         * modules/avltreehash-list-tests (Makefile.am): Likewise.
12594         * modules/carray-list-tests (Makefile.am): Likewise.
12595         * modules/dirname-tests (Makefile.am): Likewise.
12596         * modules/frexp-tests (Makefile.am): Likewise.
12597         * modules/isnanl-tests (Makefile.am): Likewise.
12598         * modules/linked-list-tests (Makefile.am): Likewise.
12599         * modules/linkedhash-list-tests (Makefile.am): Likewise.
12600         * modules/lock-tests (Makefile.am): Likewise.
12601         * modules/rbtree-list-tests (Makefile.am): Likewise.
12602         * modules/rbtree-oset-tests (Makefile.am): Likewise.
12603         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
12604         * modules/tls-tests (Makefile.am): Likewise.
12605         * modules/tsearch-tests (Makefile.am): Likewise.
12606         * modules/xvasprintf-tests (Makefile.am): Likewise.
12607
12608         Fix fpurge for cygwin.
12609         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
12610         value.
12611         * modules/fpurge-tests (Depends-on): Clean up trash.
12612
12613 2007-04-16  Simon Josefsson  <simon@josefsson.org>
12614
12615         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
12616
12617         * m4/autobuild.m4: Re-indent.
12618
12619 2007-04-13  Bruno Haible  <bruno@clisp.org>
12620
12621         * modules/fpurge-tests: New file.
12622         * tests/test-fpurge.c: New file.
12623
12624         * modules/fpurge: New file.
12625         * lib/fpurge.h: New file.
12626         * lib/fpurge.c: New file.
12627         * m4/fpurge.m4: New file.
12628
12629 2007-04-13  Bruno Haible  <bruno@clisp.org>
12630
12631         * modules/fbufmode-tests: New file.
12632         * tests/test-fbufmode.c: New file.
12633
12634         * modules/fbufmode: New file.
12635         * lib/fbufmode.h: New file.
12636         * lib/fbufmode.c: New file.
12637         * m4/fbufmode.m4: New file.
12638
12639 2007-04-13  Bruno Haible  <bruno@clisp.org>
12640
12641         * modules/fwritable-tests: New file.
12642         * tests/test-fwritable.c: New file.
12643
12644         * modules/fwritable: New file.
12645         * lib/fwritable.h: New file.
12646         * lib/fwritable.c: New file.
12647         * m4/fwritable.m4: New file.
12648
12649 2007-04-13  Bruno Haible  <bruno@clisp.org>
12650
12651         * modules/freadable-tests: New file.
12652         * tests/test-freadable.c: New file.
12653
12654         * modules/freadable: New file.
12655         * lib/freadable.h: New file.
12656         * lib/freadable.c: New file.
12657         * m4/freadable.m4: New file.
12658
12659 2007-04-13  Bruno Haible  <bruno@clisp.org>
12660
12661         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
12662         MOSTLYCLEANFILES.
12663
12664 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
12665
12666         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
12667         gzip bootstrap.conf to avoid dragging in i18n machinery.
12668         (gnulib_tool_option): Use it.
12669
12670 2007-04-13  Bruno Haible  <bruno@clisp.org>
12671
12672         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
12673         %F directives.
12674         * tests/test-vasprintf-posix.c (test_function): Likewise.
12675         * tests/test-snprintf-posix.h (test_function): Likewise.
12676         * tests/test-sprintf-posix.h (test_function): Likewise.
12677         * tests/test-fprintf-posix.h (test_function): Likewise.
12678         * tests/test-printf-posix.h (test_function): Likewise.
12679         * tests/test-fprintf-posix.out: Likewise.
12680
12681 2007-04-13  Bruno Haible  <bruno@clisp.org>
12682
12683         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
12684         * modules/tls-tests (configure.ac): Likewise.
12685         Reported by Arto C. Nirkko <anirkko@insel.ch>.
12686
12687 2007-04-13  Bruno Haible  <bruno@clisp.org>
12688
12689         * lib/tls.c (glthread_tls_get): Fix return type.
12690         Patch by Arto C. Nirkko <anirkko@insel.ch>.
12691
12692 2007-04-12  Eric Blake  <ebb9@byu.net>
12693
12694         * modules/gettime (Depends-on): Remove gettime.
12695         Reported by Dmitry V. Levin.
12696
12697 2007-04-12  Bruno Haible  <bruno@clisp.org>
12698
12699         * modules/fflush (Include): Mention <stdio.h>.
12700         * modules/strtoimax (Include): Mention <inttypes.h>.
12701         * modules/strtoumax (Include): Likewise.
12702
12703 2007-04-12  Eric Blake  <ebb9@byu.net>
12704
12705         * .cvsignore: New file.
12706         * .gitignore: Likewise.
12707
12708 2007-04-12  Bruno Haible  <bruno@clisp.org>
12709
12710         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
12711         not before, since $(LDADD) often contains libgnu.a.
12712         * modules/striconv-tests (test_striconv_LDADD): Likewise.
12713         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
12714         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
12715         Needed on Cygwin.
12716
12717 2007-04-12  Eric Blake  <ebb9@byu.net>
12718
12719         Work around glibc's failure to flush stdin on fclose.
12720         * lib/closein.c (close_stdin): Flush stdin before closing.
12721
12722         Work around glibc's failure to reset seekable stdin on exit.
12723         * modules/closein: New module.
12724         * lib/closein.c: New file.
12725         * lib/closein.h: Likewise.
12726         * m4/closein.m4: Likewise.
12727         * MODULES.html.sh (File stream based Input/Output): Document it.
12728
12729 2007-04-12  Simon Josefsson  <simon@josefsson.org>
12730
12731         * gnulib-tool: Rename generated 'autobuild' script to
12732         'do-autobuild' in --create-megatestdir output.
12733
12734         * doc/gnulib.texi (Build robot for gnulib): Fix.
12735
12736 2007-04-12  Simon Josefsson  <simon@josefsson.org>
12737
12738         * modules/sysexits (Depends-on): Add absolute-header.
12739
12740 2007-04-12  Eric Blake  <ebb9@byu.net>
12741
12742         No need to preserve errno on success.
12743         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
12744         Reported by Bruno Haible.
12745
12746 2007-04-12  Simon Josefsson  <simon@josefsson.org>
12747
12748         * MODULES.html.sh (Support for maintaining and releasing
12749         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
12750
12751 2007-04-12  Simon Josefsson  <simon@josefsson.org>
12752
12753         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
12754
12755 2007-04-12  Simon Josefsson  <simon@josefsson.org>
12756
12757         * modules/autobuild: New module.
12758
12759         * m4/autobuild.m4: New file.
12760
12761 2007-04-11  Bruno Haible  <bruno@clisp.org>
12762
12763         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
12764         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
12765         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
12766         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
12767         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12768         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12769         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12770         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12771         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12772         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12773         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
12774         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12775         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12776         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
12777         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12778         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12779         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
12780         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12781         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12782         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
12783         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12784         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12785         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
12786         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12787         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12788         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
12789         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12790         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12791         Reported by Eric Blake.
12792
12793 2007-04-11  Bruno Haible  <bruno@clisp.org>
12794
12795         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
12796
12797 2007-04-10  Bruno Haible  <bruno@clisp.org>
12798
12799         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
12800         for NaN and Infinity. Needed on FreeBSD 6.1.
12801         * tests/test-vasnprintf-posix.c (test_function): Undo last change
12802         regarding results for "%010a" of Infinity and NaN.
12803         * tests/test-vasprintf-posix.c (test_function): Likewise.
12804         * tests/test-snprintf-posix.h (test_function): Likewise.
12805         * tests/test-sprintf-posix.h (test_function): Likewise.
12806         * tests/test-fprintf-posix.h (test_function): Likewise.
12807         * tests/test-printf-posix.h (test_function): Likewise.
12808         * tests/test-fprintf-posix.out: Likewise.
12809
12810 2007-04-10  Bruno Haible  <bruno@clisp.org>
12811
12812         * modules/locale-tests: New file.
12813         * tests/test-locale.c: New file.
12814
12815         * modules/locale: New file.
12816         * lib/locale_.h: New file.
12817         * m4/locale_h.m4: New file.
12818
12819 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
12820             Bruno Haible  <bruno@clisp.org>
12821
12822         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
12823         be determined, test for availability of the copysignf, copysign,
12824         copysignl functions.
12825         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
12826         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
12827         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
12828
12829 2007-04-09  Eric Blake  <ebb9@byu.net>
12830
12831         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
12832         * modules/stdio (Makefile.am): Support fflush.
12833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12834         * modules/fflush: New file.
12835         * lib/fflush.c: Likewise.
12836         * m4/fflush.m4: Likewise.
12837         * modules/fflush-tests: New test.
12838         * tests/test-fflush.c: Likewise.
12839         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
12840
12841 2007-04-06  Bruno Haible  <bruno@clisp.org>
12842
12843         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
12844         (VASNPRINTF): Use signbit for faster determination whether to print a
12845         minus sign.
12846         * modules/vasnprintf (Files): Remove lib/float+.h.
12847         * modules/fprintf-posix (Depends-on): Add signbit.
12848         * modules/snprintf-posix (Depends-on): Likewise.
12849         * modules/sprintf-posix (Depends-on): Likewise.
12850         * modules/vasnprintf-posix (Depends-on): Likewise.
12851         * modules/vasprintf-posix (Depends-on): Likewise.
12852         * modules/vfprintf-posix (Depends-on): Likewise.
12853         * modules/vsnprintf-posix (Depends-on): Likewise.
12854         * modules/vsprintf-posix (Depends-on): Likewise.
12855
12856 2007-04-06  Bruno Haible  <bruno@clisp.org>
12857
12858         * tests/test-frexp.c (main): Test also the sign bit of zero results.
12859         * tests/test-frexpl.c (main): Likewise.
12860         * tests/test-ldexpl.c (main): Likewise.
12861         * modules/frexp-tests (Depends-on): Add signbit.
12862         * modules/frexpl-tests (Depdends-on): Likewise.
12863         * modules/ldexpl-tests (Depdends-on): Likewise.
12864
12865 2007-04-06  Bruno Haible  <bruno@clisp.org>
12866
12867         * modules/signbit-tests: New file.
12868         * tests/test-signbit.c: New file.
12869
12870         * modules/signbit: New file.
12871         * lib/signbitf.c: New file.
12872         * lib/signbitd.c: New file.
12873         * lib/signbitl.c: New file.
12874         * m4/signbit.m4: New file.
12875         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
12876         (signbit): New macro.
12877         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
12878         REPLACE_SIGNBIT.
12879         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
12880         REPLACE_FREXPL into math.h.
12881
12882 2007-04-06  Bruno Haible  <bruno@clisp.org>
12883
12884         * modules/isnanf-nolibm-tests: New file.
12885         * tests/test-isnanf.c: New file.
12886
12887         * modules/isnanf-nolibm: New file.
12888         * lib/isnanf.h: New file.
12889         * lib/isnanf.c: New file.
12890         * lib/isnan.c: Consider the USE_FLOAT macro.
12891         * m4/isnanf.m4: New file.
12892
12893 2007-04-06  Bruno Haible  <bruno@clisp.org>
12894
12895         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
12896         (Link): New section.
12897
12898         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
12899
12900 2007-04-06  Bruno Haible  <bruno@clisp.org>
12901
12902         Assume the 'long double' type.
12903         * m4/longdouble.m4: Remove file.
12904         * config/srclist.txt: Don't mention longdouble.m4.
12905         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
12906         * lib/float+.h: Likewise.
12907         * lib/frexp.c: Likewise.
12908         * lib/printf-args.h: Likewise.
12909         * lib/printf-args.c: Likewise.
12910         * lib/printf-frexp.c: Likewise.
12911         * lib/printf-parse.c: Likewise.
12912         * lib/vasnprintf.c: Likewise.
12913         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
12914         * m4/intl.m4: Likewise.
12915         * m4/isnanl.m4: Likewise.
12916         * m4/printf.m4: Likewise.
12917         * m4/printf-frexpl.m4: Likewise.
12918         * m4/vasnprintf.m4: Likewise.
12919         * modules/allocsa (Files): Remove m4/longdouble.m4.
12920         * modules/gettext (Files): Likewise.
12921         * modules/relocatable-prog-wrapper (Files): Likewise.
12922         * modules/vasnprintf (Files): Likewise.
12923         * modules/isnanl (Files): Likewise.
12924         (Include): Simplify.
12925         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
12926         (Include): Simplify.
12927         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
12928         (Include): Simplify.
12929         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
12930         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
12931         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
12932         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
12933         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
12934         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
12935         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
12936         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
12937         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
12938         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
12939         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
12940         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
12941         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
12942         * tests/test-isnanl.c: Likewise.
12943         * tests/test-snprintf-posix.h: Likewise.
12944         * tests/test-sprintf-posix.h: Likewise.
12945         * tests/test-vasnprintf-posix.c: Likewise.
12946         * tests/test-vasnprintf-posix2.c: Likewise.
12947         * tests/test-vasprintf-posix.c: Likewise.
12948
12949 2007-04-06  Bruno Haible  <bruno@clisp.org>
12950
12951         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
12952         * lib/math_.h [__DECC]: Include the overridden include file through
12953         #include_next, outside the double-inclusion guard.
12954         * lib/stdio_.h [__DECC]: Likewise.
12955         * lib/stdlib_.h [__DECC]: Likewise.
12956         * lib/string_.h [__DECC]: Likewise.
12957         * lib/time_.h [__DECC]: Likewise.
12958         * lib/wchar_.h [__DECC]: Likewise.
12959         * lib/wctype_.h [__DECC]: Likewise.
12960         * lib/inttypes_.h [__DECC]: Likewise.
12961         Reported by Albert Chin <china@thewrittenword.com> in
12962         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
12963
12964 2007-04-04  Eric Blake  <ebb9@byu.net>
12965
12966         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
12967         1.5.x.
12968
12969 2007-04-04  Bruno Haible  <bruno@clisp.org>
12970
12971         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
12972         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
12973
12974 2007-04-04  Bruno Haible  <bruno@clisp.org>
12975
12976         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
12977         results for "%010a" of Infinity and NaN.
12978         * tests/test-vasprintf-posix.c (test_function): Likewise.
12979         * tests/test-snprintf-posix.h (test_function): Likewise.
12980         * tests/test-sprintf-posix.h (test_function): Likewise.
12981         * tests/test-fprintf-posix.h (test_function): Remove these tests.
12982         * tests/test-printf-posix.h (test_function): Likewise.
12983         * tests/test-fprintf-posix.out: Update.
12984         Needed for FreeBSD 6.1.
12985
12986 2007-04-04  Bruno Haible  <bruno@clisp.org>
12987
12988         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
12989         directly used by the gnulib modules nor by gnulib-tool.
12990
12991 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
12992
12993         * DEPENDENCIES: Give overall description of version dependency
12994         desirability.  Use more-typical names for apps.
12995         Add shell, coreutils, diffutils, grep, tar, gzip.
12996
12997 2007-04-04  Simon Josefsson  <simon@josefsson.org>
12998
12999         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
13000
13001 2007-04-04  Karl Berry  <karl@gnu.org>
13002
13003         * MODULES.html.sh (func_module): missing '.
13004
13005 2007-04-03  Bruno Haible  <bruno@clisp.org>
13006
13007         * modules/argmatch-tests (Makefile.am): New variable
13008         test_argmatch_LDADD.
13009         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
13010         * modules/array-list-tests (Makefile.am): New variable
13011         test_array_list_LDADD.
13012         * modules/array-oset-tests (Makefile.am): New variable
13013         test_array_oset_LDADD.
13014         * modules/avltree-list-tests (Makefile.am): New variable
13015         test_avltree_list_LDADD.
13016         * modules/avltree-oset-tests (Makefile.am): New variable
13017         test_avltree_oset_LDADD.
13018         * modules/avltreehash-list-tests (Makefile.am): New variable
13019         test_avltreehash_list_LDADD.
13020         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
13021         test_canonicalize_lgpl_LDADD.
13022         * modules/carray-list-tests (Makefile.am): New variable
13023         test_carray_list_LDADD.
13024         * modules/dirname-tests (Makefile.am): New variable
13025         test_dirname_LDADD.
13026         * modules/linked-list-tests (Makefile.am): New variable
13027         test_linked_list_LDADD.
13028         * modules/linkedhash-list-tests (Makefile.am): New variable
13029         test_linkedhash_list_LDADD.
13030         * modules/rbtree-list-tests (Makefile.am): New variable
13031         test_rbtree_list_LDADD.
13032         * modules/rbtree-oset-tests (Makefile.am): New variable
13033         test_rbtree_oset_LDADD.
13034         * modules/rbtreehash-list-tests (Makefile.am): New variable
13035         test_rbtreehash_list_LDADD.
13036         * modules/xvasprintf-tests (Makefile.am): New variable
13037         test_xvasprintf_LDADD.
13038         Reported by Eric Blake.
13039
13040 2007-04-03  Eric Blake  <ebb9@byu.net>
13041
13042         * DEPENDENCIES: Weaken m4 requirements.
13043
13044 2007-04-03  Bruno Haible  <bruno@clisp.org>
13045
13046         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
13047         * modules/isnanl-tests (configure.ac): Likewise.
13048
13049 2007-04-03  Ben Pfaff  <blp@gnu.org>
13050
13051         * modules/iconv_open: Add $(srcdir)/ to source directory
13052         references in Makefile fragments that call gperf, to fix VPATH
13053         builds.
13054
13055 2007-04-03  Bruno Haible  <bruno@clisp.org>
13056
13057         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
13058         * lib/ldexpl.c: Undo last change.
13059
13060 2007-04-03  Bruno Haible  <bruno@clisp.org>
13061
13062         * modules/printf-frexpl (Depends-on): Undo last change.
13063         (Files): Add m4/ldexpl.m4.
13064
13065 2007-04-03  Bruno Haible  <bruno@clisp.org>
13066
13067         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
13068         * modules/isnanl (Link): New section.
13069
13070         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
13071         * modules/frexp (Link): New section.
13072
13073         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
13074         * modules/frexpl (Link): New section.
13075
13076         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
13077         * modules/ldexpl (Link): New section.
13078
13079 2007-04-03  Bruno Haible  <bruno@clisp.org>
13080
13081         * modules/TEMPLATE-EXTENDED: New file.
13082         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
13083
13084 2007-04-03  Bruno Haible  <bruno@clisp.org>
13085
13086         * DEPENDENCIES: New file.
13087         Suggested by Simon Josefsson.
13088
13089 2007-04-03  Bruno Haible  <bruno@clisp.org>
13090
13091         * doc/gnulib.texi: Escape @.
13092
13093 2007-04-03  James Youngman  <jay@gnu.org>
13094         and Paul Eggert  <eggert@cs.ucla.edu>
13095
13096         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
13097         birthtime on all systems that have birthtime, not just those which
13098         use st_birthtimensec rather than st_birthtim.  Putting zero in
13099         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
13100         that the birth time is not available for files on an NFS mount.
13101
13102 2007-04-03  Simon Josefsson  <simon@josefsson.org>
13103
13104         * modules/memxor: Move back from crypto/, suggested by Bruno.
13105         * modules/crypto/hmac-sha1: Fix memxor dependency.
13106
13107         * modules/crypto/gc: Moved from ../.
13108
13109 2007-04-02  Eric Blake  <ebb9@byu.net>
13110
13111         * lib/ldexpl.c (includes): Avoid libm.
13112
13113         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
13114
13115 2007-04-02  Bruno Haible  <bruno@clisp.org>
13116
13117         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
13118         on IRIX.
13119
13120 2007-04-02  Bruno Haible  <bruno@clisp.org>
13121
13122         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
13123         x86 or x86_64 platforms running MacOS X.
13124         Reported by Ryan Schmidt <@ryandesign.com>.
13125
13126 2007-04-02  Bruno Haible  <bruno@clisp.org>
13127
13128         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
13129         i386.
13130
13131 2007-04-01  Simon Josefsson  <simon@josefsson.org>
13132
13133         * modules/crypto/arcfour: Moved from ../.
13134         * modules/crypto/arcfour-tests: Moved from ../.
13135         * modules/crypto/arctwo: Moved from ../.
13136         * modules/crypto/arctwo-tests: Moved from ../.
13137         * modules/crypto/des: Moved from ../.
13138         * modules/crypto/des-tests: Moved from ../.
13139         * modules/crypto/gc-arcfour: Moved from ../.
13140         * modules/crypto/gc-arcfour-tests: Moved from ../.
13141         * modules/crypto/gc-arctwo: Moved from ../.
13142         * modules/crypto/gc-arctwo-tests: Moved from ../.
13143         * modules/crypto/gc-des: Moved from ../.
13144         * modules/crypto/gc-des-tests: Moved from ../.
13145         * modules/crypto/gc-hmac-md5: Moved from ../.
13146         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
13147         * modules/crypto/gc-hmac-sha1: Moved from ../.
13148         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
13149         * modules/crypto/gc-md2: Moved from ../.
13150         * modules/crypto/gc-md2-tests: Moved from ../.
13151         * modules/crypto/gc-md4: Moved from ../.
13152         * modules/crypto/gc-md4-tests: Moved from ../.
13153         * modules/crypto/gc-md5: Moved from ../.
13154         * modules/crypto/gc-md5-tests: Moved from ../.
13155         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
13156         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
13157         * modules/crypto/gc-random: Moved from ../.
13158         * modules/crypto/gc-rijndael: Moved from ../.
13159         * modules/crypto/gc-rijndael-tests: Moved from ../.
13160         * modules/crypto/gc-sha1: Moved from ../.
13161         * modules/crypto/gc-sha1-tests: Moved from ../.
13162         * modules/crypto/gc-tests: Moved from ../.
13163         * modules/crypto/hmac-md5: Moved from ../.
13164         * modules/crypto/hmac-md5-tests: Moved from ../.
13165         * modules/crypto/hmac-sha1: Moved from ../.
13166         * modules/crypto/hmac-sha1-tests: Moved from ../.
13167         * modules/crypto/md2: Moved from ../.
13168         * modules/crypto/md2-tests: Moved from ../.
13169         * modules/crypto/md4: Moved from ../.
13170         * modules/crypto/md4-tests: Moved from ../.
13171         * modules/crypto/md5: Moved from ../.
13172         * modules/crypto/md5-tests: Moved from ../.
13173         * modules/crypto/memxor: Moved from ../.
13174         * modules/crypto/rijndael: Moved from ../.
13175         * modules/crypto/rijndael-tests: Moved from ../.
13176         * modules/crypto/sha1: Moved from ../.
13177
13178 2007-03-30  James Youngman  <jay@gnu.org>
13179
13180         * tests/test-stat-time.c (prepare_test): use chmod() rather than
13181         rename() to change the ctime of a file (because ctime is unaffected
13182         by rename on jfs2 on AIX 5.1).
13183         (main): Start by doing cleanup, in case a previous run failed leaving
13184         test files behind.
13185
13186 2007-03-31  Bruno Haible  <bruno@clisp.org>
13187
13188         Support old proprietary implementations of iconv.
13189         * modules/iconv_open: New file.
13190         * lib/iconv_.h: New file.
13191         * m4/iconv_h.m4: New file.
13192         * lib/iconv_open.c: New file.
13193         * lib/iconv_open-aix.gperf: New file.
13194         * lib/iconv_open-hpux.gperf: New file.
13195         * lib/iconv_open-irix.gperf: New file.
13196         * lib/iconv_open-osf.gperf: New file.
13197         * m4/iconv_open.m4: New file.
13198         * modules/linebreak (Depends-on): Add iconv_open.
13199         * modules/striconv (Depends-on): Likewise.
13200         * modules/striconveh (Depends-on): Likewise.
13201         * modules/unicodeio (Depends-on): Likewise.
13202         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
13203         (iconv_t)(-1).
13204         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
13205         conversion if cd is (iconv_t)(-1).
13206         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
13207         is not possible.
13208
13209 2007-03-31  Bruno Haible  <bruno@clisp.org>
13210
13211         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
13212         work on Solaris either. Protect also second use of "autodetect_jp".
13213
13214 2007-03-31  Bruno Haible  <bruno@clisp.org>
13215
13216         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
13217         the function is not present.
13218
13219 2007-03-31  Bruno Haible  <bruno@clisp.org>
13220
13221         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
13222         the function is not present.
13223
13224 2007-03-31  Bruno Haible  <bruno@clisp.org>
13225
13226         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
13227         a bug in HP-UX iconv_open().
13228
13229 2007-03-31  Bruno Haible  <bruno@clisp.org>
13230
13231         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
13232         (Mathematics <math.h>): New section, add fpieee.
13233         (Input/output <stdio.h>): Add fseterr.
13234         (Mathematics <math.h>): New section, add printf-frexp.
13235         (Container data structures): Add sublist.
13236         (Core language properties): Add fpucw, inline.
13237         (Functions for greatest-width integer types <inttypes.h>): Add
13238         imaxabs, imaxdiv, inttypes.
13239         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
13240         isnanl-nolibm, ldexp.
13241         (Mathematics <math.h>): New section, add printf-frexpl.
13242         (Support for systems lacking POSIX:2001): Add fprintf-posix,
13243         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
13244         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
13245         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
13246         (Unicode string functions): Add unistr/u*-mbtoucr.
13247         (Java): Add javacomp-script, javaexec-script.
13248         (C#): Add csharpcomp-script, csharpexec-script.
13249         (Support for building libraries and executables): Add havelib,
13250         relocatable-*.
13251         (Support for maintaining and releasing projects): Renamed from
13252         'Support for maintaining and release projects'. Add announce-gen.
13253
13254 2007-03-31  Bruno Haible  <bruno@clisp.org>
13255
13256         * README: Talk primarily about git.
13257         (git and CVS): Renamed from CVS.
13258         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
13259         gnulib is available through git.
13260         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
13261
13262 2007-03-30  Bruno Haible  <bruno@clisp.org>
13263
13264         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
13265         * lib/poll_.h: Likewise.
13266         * lib/stat_.h: Likewise.
13267         * lib/sys_time_.h: Likewise.
13268         * lib/sysexit_.h: Likewise.
13269         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
13270         * lib/stdbool_.h: Likewise.
13271         * lib/byteswap_.h: Add double-inclusion guard.
13272
13273 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
13274
13275         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
13276
13277 2007-03-30  Karl Berry  <karl@gnu.org>
13278
13279         * config/srclist-update: double space after USA in the license
13280         substitution, since that's how it's usually (?) written.
13281
13282 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
13283
13284         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
13285         reported by Bruno Haible.
13286
13287 2007-03-29  Bruno Haible  <bruno@clisp.org>
13288
13289         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
13290         a bug in AIX iconv().
13291
13292 2007-03-29  Bruno Haible  <bruno@clisp.org>
13293
13294         * modules/ldexpl-tests: New file.
13295         * tests/test-ldexpl.c: New file.
13296
13297 2007-03-29  Bruno Haible  <bruno@clisp.org>
13298
13299         * lib/ldexpl.c: Include fpucw.h.
13300         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
13301         multiplication.
13302         * modules/ldexpl (Depends-on): Add fpucw.
13303
13304 2007-03-29  Bruno Haible  <bruno@clisp.org>
13305
13306         * modules/ldexpl: New file.
13307         * m4/ldexpl.m4: New file.
13308         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
13309         set.
13310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
13311         REPLACE_LDEXPL.
13312         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
13313         REPLACE_LDEXPL.
13314         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
13315         gl_FUNC_LDEXPL_WORKS.
13316         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
13317         * modules/mathl (Files): Remove lib/ldexpl.c.
13318         (Depends-on): Add ldexpl.
13319
13320 2007-03-29  Bruno Haible  <bruno@clisp.org>
13321
13322         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
13323
13324 2007-03-29  Bruno Haible  <bruno@clisp.org>
13325
13326         * tests/test-striconveh.c (main): Don't assume that a direct conversion
13327         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
13328         and possibly also HP-UX.
13329         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
13330         work on AIX, IRIX, HP-UX, OSF/1.
13331         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
13332         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
13333         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
13334         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
13335         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
13336         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
13337
13338 2007-03-29  Bruno Haible  <bruno@clisp.org>
13339
13340         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
13341
13342 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
13343
13344         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
13345         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
13346
13347 2007-03-29  Eric Blake  <ebb9@byu.net>
13348
13349         * lib/acl-internal.h: Remove redundant include.
13350         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
13351         Cygwin when a file is locked.
13352
13353 2007-03-29  Bruno Haible  <bruno@clisp.org>
13354
13355         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
13356         file.
13357         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
13358
13359 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
13360
13361         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
13362         try to remove a parent directory if the child couldn't be removed
13363         (except for the first rmdir, which could fail because the child
13364         doesn't exist).  Problem reported by Jeff Blaine in
13365         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
13366
13367 2007-03-28  Bruno Haible  <bruno@clisp.org>
13368
13369         * lib/striconveh.c (utf8conv_carefully): New function.
13370         (mem_cd_iconveh_internal): Invoke it.
13371
13372 2007-03-28  Bruno Haible  <bruno@clisp.org>
13373
13374         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
13375         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
13376         input.
13377         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
13378         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
13379         unistr/u8-uctomb.
13380
13381 2007-03-28  Bruno Haible  <bruno@clisp.org>
13382
13383         * modules/unistr/u8-mbtoucr: New file.
13384         * lib/unistr/u8-mbtoucr.c: New file.
13385         * modules/unistr/u16-mbtoucr: New file.
13386         * lib/unistr/u16-mbtoucr.c: New file.
13387         * modules/unistr/u16-mbtoucr: New file.
13388         * lib/unistr/u16-mbtoucr.c: New file.
13389         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
13390
13391 2007-03-27  Simon Josefsson  <simon@josefsson.org>
13392             Bruno Haible  <bruno@clisp.org>
13393
13394         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
13395         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
13396         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
13397
13398         * m4/stdio_h.m4: Add stubs for vasprintf too.
13399
13400         * modules/stdio: Support vasprintf in sed command.
13401
13402         * modules/vasprintf: Depend on stdio for prototypes.  Remove
13403         vasprintf.h.  Add stdio module indicator.
13404
13405         * lib/stdio_.h: Declare asprintf and vasprintf, based on
13406         vasprintf.h.
13407
13408         * lib/vasprintf.h: File removed.
13409
13410         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
13411         * lib/vasprintf.c: Ditto.
13412         * lib/xvasprintf.c: Ditto.
13413         * tests/test-vasprintf-posix.c: Ditto.
13414         * tests/test-vasprintf.c: Ditto.
13415
13416 2007-03-27  Bruno Haible  <bruno@clisp.org>
13417
13418         Make vasnprintf multithread-safe.
13419         * lib/vasnprintf.c (decimal_point_char): New function.
13420         (VASNPRINTF): Use it.
13421         Suggested by Simon Josefsson.
13422
13423 2007-03-27  Eric Blake  <ebb9@byu.net>
13424
13425         Support sub-second birthtime on cygwin.
13426         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
13427         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
13428         (get_stat_birthtime): Also work with st_birthtim.
13429
13430 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
13431
13432         * lib/stat-time.h (USE_BIRTHTIME): Remove.
13433         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
13434         (get_stat_birthtime_ns): Do not try to use "spare" fields.
13435         (get_stat_birthtime_ns): Simplify compile-time tests.
13436         (get_stat_birthtime): Change the API to look like
13437         get_stat_mtime etc., except return a negative tv_nsec on error.
13438         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
13439         Don't check for "spare" fields.
13440         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
13441         or for struct stat.st_birthtime, as these tests aren't used.
13442         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
13443
13444 2007-03-27  Bruno Haible  <bruno@clisp.org>
13445
13446         * lib/stat-time.h: Include <sys/stat.h>.
13447
13448 2007-03-27  James Youngman  <jay@gnu.org>
13449
13450         * lib/stat-time.h (get_stat_birthtime): New function for
13451           retrieving st_birthtime as provided by UFS2 (hence *BSD).
13452         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
13453           and its variants.
13454         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
13455         * modules/stat-time-test: New file.
13456         * tests/test-stat-time.c: New test, devised by Bruno Haible.
13457
13458 2007-03-26  Bruno Haible  <bruno@clisp.org>
13459
13460         Better support of signalling NaNs.
13461         * lib/atanl.c: Include isnanl.h.
13462         (atanl): Perform test for NaN at the beginning of the function and
13463         through a call to isnanl.
13464         * lib/cosl.c: Include isnanl.h.
13465         (cosl): Perform test for NaN at the beginning of the function and
13466         through a call to isnanl.
13467         * lib/ldexpl.c: Include isnanl.h.
13468         (ldexpl): Perform test for NaN through a call to isnanl.
13469         * lib/logl.c: Include isnanl.h.
13470         (logl): Perform test for NaN at the beginning of the function and
13471         through a call to isnanl.
13472         * lib/sinl.c: Include isnanl.h.
13473         (sinl): Perform test for NaN at the beginning of the function and
13474         through a call to isnanl.
13475         * lib/sqrtl.c: Include isnanl.h.
13476         (sqrtl): Perform test for NaN at the beginning of the function and
13477         through a call to isnanl.
13478         * lib/tanl.c: Include isnanl.h.
13479         (tanl): Perform test for NaN at the beginning of the function and
13480         through a call to isnanl.
13481         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
13482         * modules/mathl (Depends-on): Add isnanl.
13483
13484 2007-03-26  Eric Blake  <ebb9@byu.net>
13485
13486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
13487         regression in logic sense of previous patch.
13488
13489 2007-03-26  Bruno Haible  <bruno@clisp.org>
13490
13491         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
13492         unportable shell command "if ! ...".
13493         Reported by Ralf Wildenhues.
13494
13495 2007-03-25  Bruno Haible  <bruno@clisp.org>
13496
13497         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
13498         <sysexits.h> file, and only add EX_CONFIG.
13499         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
13500         absolute file name and whether it is sufficient. Substitute also
13501         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
13502         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
13503         ABSOLUTE_SYSEXITS_H into sysexits.h.
13504
13505 2007-03-25  Bruno Haible  <bruno@clisp.org>
13506
13507         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
13508         hints is NULL.
13509
13510 2007-03-25  Bruno Haible  <bruno@clisp.org>
13511
13512         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
13513         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
13514
13515 2007-03-25  Bruno Haible  <bruno@clisp.org>
13516
13517         * lib/vasnprintf.c: Include langinfo.h.
13518         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
13519         multithread-safe.
13520         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
13521         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
13522         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13523         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13524         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13525         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13526         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13527         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
13528         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13529         Reported by Simon Josefsson.
13530
13531 2007-03-25  Bruno Haible  <bruno@clisp.org>
13532
13533         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
13534         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
13535         * modules/vasnprintf (Depends-on): Add stdint.
13536
13537 2007-03-25  Bruno Haible  <bruno@clisp.org>
13538
13539         * modules/fpieee: New file.
13540         * m4/fpieee.m4: New file.
13541         * modules/isnan-nolibm (Depends-on): Add fpieee.
13542         * modules/isnanl-nolibm (Depends-on): Add fpieee.
13543         * modules/isnanl (Depends-on): Add fpieee.
13544
13545 2007-03-25  Bruno Haible  <bruno@clisp.org>
13546
13547         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
13548
13549 2007-03-25  Bruno Haible  <bruno@clisp.org>
13550
13551         Avoid test failures on IRIX 6.5.
13552         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
13553         (main): Use it.
13554         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
13555         macros.
13556         (main): Use them.
13557
13558 2007-03-25  Bruno Haible  <bruno@clisp.org>
13559
13560         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
13561         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
13562         exists but doesn't work.
13563         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
13564         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
13565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
13566         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
13567
13568 2007-03-25  Bruno Haible  <bruno@clisp.org>
13569
13570         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
13571         returns inf. Needed on IRIX 6.5.
13572
13573 2007-03-25  Bruno Haible  <bruno@clisp.org>
13574
13575         * tests/test-frexpl.c: Include isnanl-nolibm.h.
13576         (main): Use isnanl instead of x != x idiom.
13577         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
13578
13579         * tests/test-frexp.c: Include isnan.h.
13580         (main): Use isnan instead of x != x idiom.
13581         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
13582
13583 2007-03-25  Bruno Haible  <bruno@clisp.org>
13584
13585         * tests/test-frexp.c (NaN): New function/macro.
13586         (main): Use it instead of 0.0 / 0.0.
13587         * tests/test-isnan.c (NaN): New function/macro.
13588         (main): Use it instead of 0.0 / 0.0.
13589         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
13590         (test_function): Use it instead of 0.0 / 0.0.
13591         * tests/test-vasprintf-posix.c (NaN): New function/macro.
13592         (test_function): Use it instead of 0.0 / 0.0.
13593         * tests/test-snprintf-posix.h (NaN): New function/macro.
13594         (test_function): Use it instead of 0.0 / 0.0.
13595         * tests/test-sprintf-posix.h (NaN): New function/macro.
13596         (test_function): Use it instead of 0.0 / 0.0.
13597         * tests/test-fprintf-posix.h (NaN): New function/macro.
13598         (test_function): Use it instead of 0.0 / 0.0.
13599         * tests/test-printf-posix.h (NaN): New function/macro.
13600         (test_function): Use it instead of 0.0 / 0.0.
13601
13602         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
13603
13604 2007-03-25  Bruno Haible  <bruno@clisp.org>
13605
13606         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
13607
13608 2007-03-25  Bruno Haible  <bruno@clisp.org>
13609
13610         * lib/regexec.c (merge_state_with_log): Make static.
13611
13612 2007-03-25  Bruno Haible  <bruno@clisp.org>
13613
13614         * lib/trigl.c (kernel_rem_pio2): Make static.
13615
13616 2007-03-25  Bruno Haible  <bruno@clisp.org>
13617
13618         * lib/sincosl.c (sincosl_table): Make static.
13619
13620 2007-03-25  Bruno Haible  <bruno@clisp.org>
13621
13622         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
13623         if the compiler does not support C99.
13624
13625 2007-03-25  Bruno Haible  <bruno@clisp.org>
13626
13627         * modules/time (Makefile.am): Ensure all rule action lines start with a
13628         tab.
13629
13630 2007-03-24  Bruno Haible  <bruno@clisp.org>
13631
13632         * modules/tsearch-tests: New file.
13633         * tests/test-tsearch.sh: New file.
13634         * tests/test-tsearch.c: New file, mostly copied from glibc.
13635
13636         * modules/search-tests: New file.
13637         * tests/test-search.c: New file.
13638
13639         * modules/search: New file.
13640         * lib/search_.h: New file, incorporating lib/tsearch.h.
13641         * m4/search_h.m4: New file.
13642         * lib/tsearch.h: Remove file.
13643         * lib/tsearch.c: Include search.h instead of tsearch.h.
13644         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
13645         HAVE_TSEARCH.
13646         * modules/tsearch (Files): Remove lib/tsearch.h.
13647         (Depends-on): Add search.
13648         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
13649         (Include): Change tsearch.h into search.h.
13650
13651 2007-03-24  Bruno Haible  <bruno@clisp.org>
13652
13653         * modules/fpucw: New file.
13654         * lib/fpucw.h: New file.
13655         * lib/frexp.c: Include fpucw.h.
13656         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
13657         (FUNC): Use them.
13658         * lib/printf-frexp.c: Include fpucw.h.
13659         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
13660         (FUNC): Use them.
13661         * lib/vasnprintf.c: Include fpucw.h.
13662         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
13663         'long double' calculations.
13664         * tests/test-frexpl.c: Include fpucw.h.
13665         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
13666         * tests/test-printf-frexpl.c: Include fpucw.h.
13667         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
13668         * modules/frexpl (Depends-on): Add fpucw.
13669         * modules/printf-frexpl (Depends-on): Likewise.
13670         * modules/fprintf-posix (Depends-on): Likewise.
13671         * modules/snprintf-posix (Depends-on): Likewise.
13672         * modules/sprintf-posix (Depends-on): Likewise.
13673         * modules/vasnprintf-posix (Depends-on): Likewise.
13674         * modules/vasprintf-posix (Depends-on): Likewise.
13675         * modules/vfprintf-posix (Depends-on): Likewise.
13676         * modules/vsnprintf-posix (Depends-on): Likewise.
13677         * modules/vsprintf-posix (Depends-on): Likewise.
13678         * modules/frexpl-tests (Depends-on): Likewise.
13679         * modules/printf-frexpl-tests (Depends-on): Likewise.
13680
13681 2007-03-24  Bruno Haible  <bruno@clisp.org>
13682
13683         * lib/float+.h: New file.
13684         * lib/isnan.c: Include float+.h.
13685         (SIZE): New macro.
13686         (FUNC): Compare only SIZE bytes of the value.
13687         * lib/vasnprintf.c: Include float+.h.
13688         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
13689         SIZEOF_LDBL or SIZEOF_DBL bytes.
13690         * modules/isnan-nolibm (Files): Add lib/float+.h.
13691         * modules/isnanl-nolibm (Files): Add lib/float+.h.
13692         * modules/isnanl (Files): Add lib/float+.h.
13693         * modules/vasnprintf (Files): Add lib/float+.h.
13694
13695 2007-03-24  Bruno Haible  <bruno@clisp.org>
13696
13697         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
13698         include isnanl-nolibm.h.
13699
13700 2007-03-24  Bruno Haible  <bruno@clisp.org>
13701
13702         * tests/test-read-file.c (main): Don't produce spurious output for
13703         expected situations. Make the test fail if it encountered unexpected
13704         results.
13705
13706 2007-03-24  Bruno Haible  <bruno@clisp.org>
13707
13708         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
13709         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
13710
13711 2007-03-24  Bruno Haible  <bruno@clisp.org>
13712
13713         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
13714
13715 2007-03-24  Bruno Haible  <bruno@clisp.org>
13716
13717         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
13718         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
13719
13720         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
13721         * modules/utf8-ucs4: Turn into a symbolic link to module
13722         unistr/u8-mbtouc.
13723
13724         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
13725         utf8-ucs4-unsafe.
13726         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
13727         unistr/u8-mbtouc-unsafe.
13728
13729         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
13730         * modules/utf16-ucs4: Turn into a symbolic link to module
13731         unistr/u16-mbtouc.
13732
13733         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
13734         utf16-ucs4-unsafe.
13735         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
13736         unistr/u16-mbtouc-unsafe.
13737
13738         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
13739         * modules/ucs4-utf8: Turn into a symbolic link to module
13740         unistr/u8-ubtomb.
13741
13742         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
13743         * modules/ucs4-utf16: Turn into a symbolic link to module
13744         unistr/u16-ubtomb.
13745
13746 2007-03-24  Bruno Haible  <bruno@clisp.org>
13747
13748         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
13749         Enable the function only if HAVE_INLINE.
13750         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
13751         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
13752         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
13753         Enable the function only if HAVE_INLINE.
13754         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
13755         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
13756         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
13757         Enable the function only if HAVE_INLINE.
13758         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
13759         Enable the function only if HAVE_INLINE.
13760         * modules/utf8-ucs4: Update.
13761         * modules/utf8-ucs4-unsafe: Update.
13762         * modules/utf16-ucs4: Update.
13763         * modules/utf16-ucs4-unsafe: Update.
13764         * modules/ucs4-utf8: Update.
13765         * modules/ucs4-utf16: Update.
13766
13767 2007-03-24  Bruno Haible  <bruno@clisp.org>
13768
13769         * lib/utf8-ucs4.h: Remove file.
13770         * lib/utf8-ucs4-unsafe.h: Remove file.
13771         * lib/utf16-ucs4.h: Remove file.
13772         * lib/utf16-ucs4-unsafe.h: Remove file.
13773         * lib/ucs4-utf8.h: Remove file.
13774         * lib/ucs4-utf16.h: Remove file.
13775         * lib/unistr.h: Include their previous contents.
13776         * m4/utf-ucs4.m4: Remove file.
13777         * m4/ucs4-utf.m4: Remove file.
13778         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
13779         (Depends-on): Add unistr/base.
13780         (configure.ac): Remove gl_UTF_UCS4.
13781         (Makefile.am): Update.
13782         (Include): Change to unistr.h.
13783         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
13784         (Depends-on): Add unistr/base.
13785         (configure.ac): Remove gl_UTF_UCS4.
13786         (Makefile.am): Update.
13787         (Include): Change to unistr.h.
13788         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
13789         (Depends-on): Add unistr/base.
13790         (configure.ac): Remove gl_UTF_UCS4.
13791         (Makefile.am): Update.
13792         (Include): Change to unistr.h.
13793         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
13794         (Depends-on): Add unistr/base.
13795         (configure.ac): Remove gl_UTF_UCS4.
13796         (Makefile.am): Update.
13797         (Include): Change to unistr.h.
13798         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
13799         (Depends-on): Add unistr/base.
13800         (configure.ac): Remove gl_UCS4_UTF.
13801         (Makefile.am): Update.
13802         (Include): Change to unistr.h.
13803         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
13804         (Depends-on): Add unistr/base.
13805         (configure.ac): Remove gl_UCS4_UTF.
13806         (Makefile.am): Update.
13807         (Include): Change to unistr.h.
13808         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
13809         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
13810         utf8-ucs4-unsafe.h.
13811         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
13812         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
13813         utf16-ucs4-unsafe.h.
13814         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
13815         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
13816         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
13817         * lib/unistr/u8-strchr.c: Likewise.
13818         * lib/unistr/u8-strrchr.c: Likewise.
13819         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
13820         * lib/unistr/u16-strchr.c: Likewise.
13821         * lib/unistr/u16-strrchr.c: Likewise.
13822         * lib/striconveh.c: Update.
13823         * lib/linebreak.c: Update.
13824
13825 2007-03-24  Bruno Haible  <bruno@clisp.org>
13826
13827         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
13828         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
13829
13830 2007-03-22  Bruno Haible  <bruno@clisp.org>
13831
13832         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
13833
13834 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
13835
13836         * MODULES.html.sh (File system functions): New module write-any-file.
13837         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
13838         * m4/write-any-file.m4: New files.
13839
13840 2007-03-23  Eric Blake  <ebb9@byu.net>
13841
13842         * gnulib-tool: Rearrange space-tab sequences, since some editors
13843         like to eat them.
13844
13845 2007-03-23  Eric Blake  <ebb9@byu.net>
13846
13847         * lib/version-etc.c (version_etc_va): Update license wording to
13848         be more concise.  Recommended by Richard Stallman.
13849
13850 2007-03-22  Bruno Haible  <bruno@clisp.org>
13851
13852         * lib/poll.c (MSG_PEEK): New fallback definition.
13853
13854 2007-03-22  Bruno Haible  <bruno@clisp.org>
13855
13856         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
13857         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
13858         (main): Update.
13859         Fixes a compilation error on BeOS.
13860
13861 2007-03-22  Bruno Haible  <bruno@clisp.org>
13862
13863         * modules/frexpl-tests: New file.
13864         * tests/test-frexpl.c: New file.
13865
13866         * modules/frexpl: New file.
13867         * m4/frexpl.m4: New file.
13868         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
13869         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
13870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
13871         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
13872         (Depends-on): Add frexpl. Remove isnanl-nolibm.
13873         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
13874
13875 2007-03-22  Bruno Haible  <bruno@clisp.org>
13876
13877         * lib/frexpl.c: Share code with lib/frexp.c.
13878         * modules/mathl (Files): Add lib/frexp.c.
13879         (Depends-on): Add isnanl-nolibm.
13880
13881 2007-03-22  Bruno Haible  <bruno@clisp.org>
13882
13883         * modules/printf-frexp (Files): Add m4/frexp.m4.
13884         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
13885         only if the found frexp function actually works.
13886
13887 2007-03-22  Bruno Haible  <bruno@clisp.org>
13888
13889         * lib/frexp.c: Remove older implementation that uses divisions.
13890
13891 2007-03-21  Bruno Haible  <bruno@clisp.org>
13892
13893         * modules/frexp-tests: New file.
13894         * tests/test-frexp.c: New file.
13895
13896         * modules/frexp: New file.
13897         * lib/frexp.c: New file.
13898         * m4/frexp.m4: New file.
13899         * lib/math_.h (frexp): New declaration.
13900         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
13901         REPLACE_FREXP.
13902         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
13903
13904 2007-03-21  Bruno Haible  <bruno@clisp.org>
13905
13906         * modules/isnanl-tests: New file.
13907         * tests/test-isnanl.c: New file.
13908
13909         * modules/isnanl: New file.
13910         * lib/isnanl.h: New file.
13911         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
13912         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
13913         gl_FUNC_ISNANL_WORKS.
13914         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
13915         New macros.
13916
13917 2007-03-21  Bruno Haible  <bruno@clisp.org>
13918
13919         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
13920         lib/isnanl.h.
13921         (Include): Update.
13922         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
13923         * lib/vasnprintf.c: Update.
13924         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
13925         tests/test-isnanl.h, remove tests/test-isnanl.c.
13926         (Makefile.am): Update.
13927         * tests/test-isnanl-nolibm.c: New file.
13928         * tests/test-isnanl.h: New file.
13929         * tests/test-isnanl.c: Remove file.
13930
13931 2007-03-21  Jim Meyering  <jim@meyering.net>
13932
13933         When trying to open ".", treat ESTALE like EACCES.
13934         * lib/savewd.c (savewd_save): Resort to forking not just upon
13935         failure with EACCES, but also when errno is ESTALE.
13936
13937 2007-03-20  Bruno Haible  <bruno@clisp.org>
13938
13939         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
13940         Needed on AIX 5.1. Reported by Matthew Woehlke.
13941
13942 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13943
13944         Suggestions by Bruno Haible:
13945         * lib/acl-internal.h: Include "gettext.h" rather than rolling
13946         our own.
13947         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
13948         * modules/acl (Depends-on): Add gettext.
13949
13950 2007-03-19  Bruno Haible  <bruno@clisp.org>
13951
13952         * modules/iconvme: Remove file.
13953         * lib/iconvme.h: Remove file.
13954         * lib/iconvme.c: Remove file.
13955         * m4/iconvme.m4: Remove file.
13956
13957 2007-03-19  Bruno Haible  <bruno@clisp.org>
13958
13959         * doc/relocatable-maint.texi: Break long shell script line.
13960         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
13961
13962 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13963
13964         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
13965         handle file_has_acl.
13966         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
13967         * lib/acl.c: Move header inclusions and related macro defns into
13968         lib/acl-internal.h.
13969         (S_ISLNK): Remove defn, since that's now done for us.
13970         (file_has_acl): Move to lib/file-has-acl.c.
13971         Call acl_trivial if available.  This is the crucial part of the fix.
13972         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
13973         shared within the library.  Rewrite a bit, partly to make it compatible
13974         with the GNU coding style.
13975         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
13976         Remove unnecessary double-quotes.
13977         Don't test for acl_to_text; the build will catch that.
13978         Replace acl_entries if it doesn't exist and it is needed.
13979         Check for -lsec and acl_trivial (as used on Solaris 10).
13980         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
13981         lib/file-has-acl.c.
13982         (Depends-on): Add sys_stat, for S_ISLNK.
13983
13984 2007-03-19  Ben Pfaff  <blp@gnu.org>
13985
13986         * doc/gnulib.texi: Fix typos.
13987         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
13988
13989 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13990
13991         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
13992         If size is zero here, buf must be zero.
13993
13994 2007-03-19  Simon Josefsson  <simon@josefsson.org>
13995
13996         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
13997         <bruno@clisp.org>.
13998
13999 2007-03-18  Bruno Haible  <bruno@clisp.org>
14000
14001         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
14002         Suggested by Eric Blake.
14003
14004 2007-03-18  Ben Pfaff  <blp@gnu.org>
14005
14006         * doc/relocatable.texi: Recommend using as prefix a directory
14007         that does not exist and will never be created.  Based on
14008         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
14009         and others.
14010
14011 2007-03-17  Bruno Haible  <bruno@clisp.org>
14012
14013         * lib/fchownat.c: Include lchown.h.
14014
14015 2007-03-17  Bruno Haible  <bruno@clisp.org>
14016
14017         Fix endless loop when the given allocated size was > INT_MAX.
14018         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
14019         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
14020         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
14021         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
14022         * lib/sprintf.c (sprintf): Likewise.
14023
14024 2007-03-17  Bruno Haible  <bruno@clisp.org>
14025
14026         * tests/test-argp-2.sh (func_compare): Output a context diff.
14027
14028 2007-03-17  Bruno Haible  <bruno@clisp.org>
14029
14030         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
14031         locale's decimal-point character.
14032
14033 2007-03-17  Bruno Haible  <bruno@clisp.org>
14034
14035         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
14036         before comparing it. Needed because on some platforms (e.g. x86) a
14037         'long double' occupies less bytes than sizeof (long double).
14038
14039 2007-03-17  Bruno Haible  <bruno@clisp.org>
14040
14041         * tests/test-crc.c (main): Make printf statements 64-bit clean.
14042         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
14043         * tests/test-getaddrinfo.c (simple): Likewise.
14044         * tests/test-read-file.c (main): Likewise.
14045
14046 2007-03-17  Bruno Haible  <bruno@clisp.org>
14047
14048         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
14049
14050 2007-03-17  Bruno Haible  <bruno@clisp.org>
14051
14052         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
14053         unused variable.
14054
14055 2007-03-17  Bruno Haible  <bruno@clisp.org>
14056
14057         * tests/test-c-strcasecmp.c: Include c-strcase.h.
14058         * tests/test-c-strncasecmp.c: Likewise.
14059
14060 2007-03-17  Bruno Haible  <bruno@clisp.org>
14061
14062         * modules/stdlib (Depends-on): Add unistd.
14063         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
14064         Needed for MacOS X 10.3.
14065
14066 2007-03-17  Bruno Haible  <bruno@clisp.org>
14067
14068         * lib/unistr/u-strdup.h: Include <stdlib.h>.
14069
14070 2007-03-17  Bruno Haible  <bruno@clisp.org>
14071
14072         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
14073
14074 2007-03-17  Bruno Haible  <bruno@clisp.org>
14075
14076         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
14077         to reflect files copied from gnulib (with or without modifications).
14078         Suggested by Jim Meyering.
14079
14080 2007-03-17  Eric Blake  <ebb9@byu.net>
14081
14082         * NEWS: Document stdlib change from 2007-02-18.
14083
14084 2007-03-17  Jim Meyering  <jim@meyering.net>
14085
14086         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
14087         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
14088         someone uses a name containing shell meta-characters.
14089         Reported by Alfred M. Szmidt.
14090
14091         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
14092
14093 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
14094
14095         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
14096         and copy gettext configuration files only if configure.ac contains
14097         a use of AM_GNU_GETTEXT_VERSION.
14098
14099 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
14100
14101         * build-aux/bootstrap (gnulib_name): New variable.
14102         (gnulib_tool_options): Use it.
14103
14104 2007-03-13  Simon Josefsson  <simon@josefsson.org>
14105
14106         * tests/test-des.c: Use new namespace.
14107
14108 2007-03-15  Bruno Haible  <bruno@clisp.org>
14109
14110         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
14111         Reported by James Youngman <jay@gnu.org>.
14112
14113 2007-03-15  Bruno Haible  <bruno@clisp.org>
14114
14115         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
14116         declared prototype. Needed with cc on OSF/1 5.1.
14117
14118 2007-03-15  Bruno Haible  <bruno@clisp.org>
14119
14120         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
14121         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
14122         (struct gl_list_implementation): Add dispose_fn argument to the
14123         'create_empty', 'create' methods.
14124         (struct gl_list_impl_base): Add field 'dispose_fn'.
14125         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
14126         argument.
14127         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
14128         dispose_fn argument.
14129         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
14130         dispose_fn on the dropped values.
14131         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
14132         dispose_fn argument.
14133         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
14134         dropped values.
14135         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
14136         (gl_tree_remove_node): Call dispose_fn on the dropped value.
14137         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
14138         (gl_tree_remove_node): Call dispose_fn on the dropped value.
14139         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
14140         argument.
14141         (gl_tree_list_free): Call dispose_fn on the dropped values.
14142         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
14143         the dropped values.
14144         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
14145         Add dispose_fn argument.
14146         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
14147         Call dispose_fn on the dropped values.
14148         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
14149         Add dispose_fn argument.
14150         (gl_sublist_create): Initialize the 'dispose_fn' field.
14151         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
14152         * tests/test-array_list.c (main): Update.
14153         * tests/test-carray_list.c (main): Update.
14154         * tests/test-avltree_list.c (main): Update.
14155         * tests/test-rbtree_list.c (main): Update.
14156         * tests/test-avltreehash_list.c (main): Update.
14157         * tests/test-rbtreehash_list.c (main): Update.
14158         * tests/test-linked_list.c (main): Update.
14159         * tests/test-linkedhash_list.c (main): Update.
14160         * tests/test-array_oset.c (main): Update.
14161
14162 2007-03-15  Bruno Haible  <bruno@clisp.org>
14163
14164         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
14165         (gl_oset_create_empty): Add dispose_fn argument.
14166         (struct gl_oset_implementation): Add dispose_fn argument to
14167         'create_empty' method.
14168         (struct gl_oset_impl_base): Add dispose_fn field.
14169         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
14170         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
14171         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
14172         values.
14173         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
14174         (gl_tree_oset_free): Call dispose_fn on the dropped values.
14175         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
14176         dropped value.
14177         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
14178         dropped value.
14179         * tests/test-array_oset.c (main): Update.
14180         * tests/test-avltree_oset.c (main): Update.
14181         * tests/test-rbtree_oset.c (main): Update.
14182         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
14183
14184 2007-03-13  Bruno Haible  <bruno@clisp.org>
14185
14186         * tests/test-stdbool.c (i): Update after last patch.
14187
14188 2007-03-12  Bruno Haible  <bruno@clisp.org>
14189
14190         * lib/quotearg.c: Include <wctype.h> early, before the definition of
14191         the iswprint macro. Needed on Solaris 2.5.1.
14192
14193 2007-03-12  Bruno Haible  <bruno@clisp.org>
14194
14195         * tests/test-printf-frexp.c (main): Declare x as volatile.
14196
14197 2007-03-12  Simon Josefsson  <simon@josefsson.org>
14198
14199         * doc/gnulib.texi (Build robot for gnulib): New section.
14200
14201 2007-03-12  Jim Meyering  <jim@meyering.net>
14202
14203         * build-aux/bootstrap: New file.
14204         * build-aux/bootstrap.conf: New file, from coreutils.
14205
14206 2007-03-11  Bruno Haible  <bruno@clisp.org>
14207
14208         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
14209
14210 2007-03-12  Simon Josefsson  <simon@josefsson.org>
14211
14212         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
14213         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
14214         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
14215
14216 2007-03-11  Bruno Haible  <bruno@clisp.org>
14217
14218         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
14219         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
14220
14221 2007-03-11  Bruno Haible  <bruno@clisp.org>
14222
14223         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
14224         formula. Needed for SunPRO C 5.0.
14225
14226 2007-03-11  Bruno Haible  <bruno@clisp.org>
14227
14228         * modules/long-options (Depends-on): Add getopt.
14229
14230 2007-03-11  Bruno Haible  <bruno@clisp.org>
14231
14232         * modules/modechange (Depends-on): Add stdbool.
14233
14234 2007-03-11  Bruno Haible  <bruno@clisp.org>
14235
14236         * modules/i-ring (Depends-on): Add stdbool.
14237
14238 2007-03-11  Bruno Haible  <bruno@clisp.org>
14239
14240         * modules/gc-des (Depends-on): Add stdbool.
14241
14242 2007-03-11  Bruno Haible  <bruno@clisp.org>
14243
14244         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
14245
14246 2007-03-11  Bruno Haible  <bruno@clisp.org>
14247
14248         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
14249
14250 2007-03-11  Bruno Haible  <bruno@clisp.org>
14251
14252         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
14253
14254 2007-03-11  Bruno Haible  <bruno@clisp.org>
14255
14256         * lib/vasnprintf.c (sprintf): Undefine.
14257
14258 2007-03-11  Bruno Haible  <bruno@clisp.org>
14259
14260         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
14261         initializers in SunPRO C and Compaq C compilers.
14262
14263 2007-03-11  Bruno Haible  <bruno@clisp.org>
14264
14265         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
14266         decrementing code ANSI C compliant.
14267
14268 2007-03-11  Bruno Haible  <bruno@clisp.org>
14269
14270         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
14271         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
14272
14273 2007-03-11  Bruno Haible  <bruno@clisp.org>
14274
14275         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
14276         <stdbool.h> substitute doesn't pass.
14277
14278 2007-03-11  Bruno Haible  <bruno@clisp.org>
14279
14280         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
14281
14282 2007-03-11  Bruno Haible  <bruno@clisp.org>
14283
14284         * gnulib-tool (func_create_megatestdir): Create also an autobuild
14285         script, for submission to autobuild.josefsson.org.
14286
14287 2007-03-10  Bruno Haible  <bruno@clisp.org>
14288
14289         * modules/canonicalize-lgpl-tests: New file.
14290         * tests/test-canonicalize-lgpl.sh: New file.
14291         * tests/test-canonicalize-lgpl.c: New file.
14292
14293         * modules/c-strcase-tests: New file.
14294         * tests/test-c-strcase.sh: New file.
14295         * tests/test-c-strcasecmp.c: New file.
14296         * tests/test-c-strncasecmp.c: New file.
14297
14298         * modules/atexit-tests: New file.
14299         * tests/test-atexit.sh: New file.
14300         * tests/test-atexit.c: New file.
14301
14302 2007-03-10  Bruno Haible  <bruno@clisp.org>
14303
14304         * tests/test-binary-io.sh: Use temporary filenames that are not so
14305         likely to clash with those of other tests (in a parallel make).
14306         * tests/test-binary-io.c: Likewise.
14307
14308 2007-03-10  Bruno Haible  <bruno@clisp.org>
14309
14310         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
14311         fallback; use #error instead.
14312         Suggested by Simon Josefsson.
14313
14314 2007-03-10  Bruno Haible  <bruno@clisp.org>
14315
14316         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
14317         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
14318         first and the last.
14319
14320 2007-03-10  Bruno Haible  <bruno@clisp.org>
14321
14322         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
14323
14324 2007-03-10  Bruno Haible  <bruno@clisp.org>
14325
14326         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
14327         "make distcheck".
14328         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
14329         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
14330         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
14331
14332 2007-03-10  Bruno Haible  <bruno@clisp.org>
14333
14334         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
14335         variable.
14336         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
14337         variable.
14338
14339 2007-03-09  Eric Blake  <ebb9@byu.net>
14340         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
14341
14342         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
14343         types are not being provided by gnulib.
14344         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
14345         types are supported.
14346
14347 2007-03-10  Bruno Haible  <bruno@clisp.org>
14348
14349         * lib/stdio_.h (__attribute__): New macro.
14350         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
14351         vsprintf): Specify __attribute__ __format__ for GCC.
14352         Suggested by Eric Blake.
14353
14354 2007-03-09  Bruno Haible  <bruno@clisp.org>
14355
14356         * modules/printf-posix-tests: New file.
14357         * tests/test-printf-posix.sh: New file.
14358         * tests/test-printf-posix.c: New file.
14359
14360         * modules/printf-posix: New file.
14361         * lib/printf.c: New file.
14362         * m4/printf-posix-rpl.m4: New file.
14363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
14364         REPLACE_PRINTF.
14365         * lib/stdio_.h (printf): New declaration.
14366         (format, __format__, ____printf____, ____scanf____, ____strftime____,
14367         ____strfmon____): New macros.
14368         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
14369         REPLACE_PRINTF.
14370
14371 2007-03-09  Bruno Haible  <bruno@clisp.org>
14372
14373         * tests/test-vasnprintf-posix2.sh: New file.
14374         * tests/test-vasnprintf-posix2.c: New file.
14375         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
14376         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
14377         (Makefile.am): Activate test-vasnprintf-posix2.sh.
14378
14379         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
14380         a locale dependent decimal point, rather than always '.'.
14381
14382 2007-03-09  Eric Blake  <ebb9@byu.net>
14383
14384         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
14385         spite of platforms like Tandem/NSK that define it to -1.
14386
14387 2007-03-08  Bruno Haible  <bruno@clisp.org>
14388
14389         * modules/vprintf-posix-tests: New file.
14390         * tests/test-vprintf-posix.sh: New file.
14391         * tests/test-vprintf-posix.c: New file.
14392         * tests/test-printf-posix.h: New file.
14393
14394         * modules/vprintf-posix: New file.
14395         * lib/vprintf.c: New file.
14396         * m4/vprintf-posix.m4: New file.
14397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
14398         REPLACE_VPRINTF.
14399         * lib/stdio_.h (vprintf): New declaration.
14400         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
14401         REPLACE_VPRINTF.
14402
14403 2007-03-08  Bruno Haible  <bruno@clisp.org>
14404
14405         * modules/fprintf-posix-tests: New file.
14406         * tests/test-fprintf-posix.sh: New file.
14407         * tests/test-fprintf-posix.c: New file.
14408
14409         * modules/fprintf-posix: New file.
14410         * lib/fprintf.c: New file.
14411         * m4/fprintf-posix.m4: New file.
14412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
14413         REPLACE_FPRINTF.
14414         * lib/stdio_.h (fprintf): New declaration.
14415         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
14416         REPLACE_FPRINTF.
14417
14418 2007-03-08  Bruno Haible  <bruno@clisp.org>
14419
14420         * modules/vfprintf-posix-tests: New file.
14421         * tests/test-vfprintf-posix.sh: New file.
14422         * tests/test-vfprintf-posix.c: New file.
14423         * tests/test-fprintf-posix.h: New file.
14424         * tests/test-fprintf-posix.out: New file.
14425
14426         * modules/vfprintf-posix: New file.
14427         * lib/vfprintf.c: New file.
14428         * m4/vfprintf-posix.m4: New file.
14429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
14430         REPLACE_VFPRINTF.
14431         * lib/stdio_.h (vfprintf): New declaration.
14432         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
14433         REPLACE_VFPRINTF.
14434
14435 2007-03-08  Bruno Haible  <bruno@clisp.org>
14436
14437         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
14438
14439 2007-03-08  Bruno Haible  <bruno@clisp.org>
14440
14441         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
14442         instead of 'expr' invocations.
14443         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14444         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14445         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14446         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14447         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14448         Suggested by Paul Eggert.
14449
14450 2007-03-08  Bruno Haible  <bruno@clisp.org>
14451
14452         * modules/fseterr-tests: New file.
14453         * tests/test-fseterr.c: New file.
14454
14455         * modules/fseterr: New file.
14456         * lib/fseterr.h: New file.
14457         * lib/fseterr.c: New file.
14458
14459 2007-03-08  Bruno Haible  <bruno@clisp.org>
14460
14461         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
14462         * lib/getopt_.h: Likewise.
14463         * lib/mbswidth.h: Likewise.
14464         * lib/setenv.h: Likewise.
14465         * lib/vasnprintf.h: Likewise.
14466         * lib/vasprintf.h: Likewise.
14467         * lib/verror.h: Likewise.
14468         * lib/xsetenv.h: Likewise.
14469         * lib/xvasprintf.h: Likewise.
14470
14471 2007-03-08  Jim Meyering  <jim@meyering.net>
14472
14473         * users.txt: Add parted.
14474
14475         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
14476
14477 2007-03-07  Bruno Haible  <bruno@clisp.org>
14478
14479         * m4/printf.m4: Make the shell script snippets copy&pastable.
14480
14481 2007-03-02  Bruno Haible  <bruno@clisp.org>
14482
14483         * lib/netinet_in_.h: New file.
14484         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
14485         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
14486         * modules/netinet_in (Files): Add lib/netinet_in_.h.
14487         (Depends-on): Add absolute-header.
14488         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
14489         into netinet/in.h.
14490
14491 2007-03-03  Bruno Haible  <bruno@clisp.org>
14492
14493         * lib/sys_select_.h: New file.
14494         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
14495         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
14496         * modules/sys_select (Files): Add lib/sys_select_.h.
14497         (Depends-on): Add absolute-header.
14498         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
14499         into sys/select.h.
14500
14501 2007-03-02  Bruno Haible  <bruno@clisp.org>
14502
14503         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
14504         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
14505         values.
14506         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
14507         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
14508         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
14509         * modules/sys_socket (Depends-on): Add absolute-header.
14510         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
14511         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
14512         (Include): Remove requirement of inclusion of <sys/types.h>.
14513
14514 2007-03-02  Bruno Haible  <bruno@clisp.org>
14515
14516         * lib/byteswap_.h (bswap_32): Fix formula.
14517
14518 2007-03-06  Bruno Haible  <bruno@clisp.org>
14519
14520         * modules/sprintf-posix-tests: New file.
14521         * tests/test-sprintf-posix.c: New file.
14522
14523         * modules/sprintf-posix: New file.
14524         * lib/sprintf.c: New file.
14525         * m4/sprintf-posix.m4: New file.
14526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
14527         REPLACE_SPRINTF.
14528         * lib/stdio_.h (sprintf): New declaration.
14529         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
14530         REPLACE_SPRINTF.
14531
14532 2007-03-06  Bruno Haible  <bruno@clisp.org>
14533
14534         * modules/vsprintf-posix-tests: New file.
14535         * tests/test-vsprintf-posix.c: New file.
14536         * tests/test-sprintf-posix.h: New file.
14537
14538         * modules/vsprintf-posix: New file.
14539         * lib/vsprintf.c: New file.
14540         * m4/vsprintf-posix.m4: New file.
14541         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
14542         REPLACE_VSPRINTF.
14543         * lib/stdio_.h (vsprintf): New declaration.
14544         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
14545         REPLACE_VSPRINTF.
14546
14547 2007-03-06  Bruno Haible  <bruno@clisp.org>
14548
14549         * modules/vsnprintf (Depend-on): Remove minmax.
14550
14551 2007-03-06  Bruno Haible  <bruno@clisp.org>
14552
14553         * modules/snprintf-posix-tests: New file.
14554         * tests/test-snprintf-posix.c: New file.
14555
14556         * modules/snprintf-posix: New file.
14557         * m4/snprintf-posix.m4: New file.
14558         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
14559         gl_FUNC_SNPRINTF.
14560         (gl_FUNC_SNPRINTF): Invoke it.
14561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
14562         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
14563         is set.
14564         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
14565
14566 2007-03-06  Bruno Haible  <bruno@clisp.org>
14567
14568         * modules/vsnprintf-posix-tests: New file.
14569         * tests/test-vsnprintf-posix.c: New file.
14570         * tests/test-snprintf-posix.h: New file.
14571
14572         * modules/vsnprintf-posix: New file.
14573         * m4/vsnprintf-posix.m4: New file.
14574         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
14575         gl_FUNC_VSNPRINTF.
14576         (gl_FUNC_VSNPRINTF): Invoke it.
14577         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
14578         * lib/stdio_.h (vsnprintf): Define as a replacement if
14579         REPLACE_VSNPRINTF is set.
14580         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
14581
14582 2007-03-06  Bruno Haible  <bruno@clisp.org>
14583
14584         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
14585         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
14586
14587 2007-03-06  Bruno Haible  <bruno@clisp.org>
14588
14589         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
14590         (asinl): Declare also if HAVE_DECL_ASINL is set.
14591         (atanl): Declare also if HAVE_DECL_ATANL is set.
14592         (ceill): Declare also if HAVE_DECL_CEILL is set.
14593         (cosl): Declare also if HAVE_DECL_COSL is set.
14594         (expl): Declare also if HAVE_DECL_EXPL is set.
14595         (floorl): Declare also if HAVE_DECL_FLOORL is set.
14596         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
14597         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
14598         (logl): Declare also if HAVE_DECL_LOGL is set.
14599         (sinl): Declare also if HAVE_DECL_SINL is set.
14600         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
14601         (tanl): Declare also if HAVE_DECL_TANL is set.
14602         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
14603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
14604         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
14605         declaration of frexpl, ldexpl.
14606         * modules/printf-frexpl (Depends-on): Add math.
14607         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
14608
14609 2007-03-05  Bruno Haible  <bruno@clisp.org>
14610
14611         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
14612         frexpl and ldexpl are declared.
14613         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
14614
14615 2007-03-05  Bruno Haible  <bruno@clisp.org>
14616
14617         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
14618         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
14619
14620 2007-03-05  Bruno Haible  <bruno@clisp.org>
14621
14622         * lib/stdio_.h: Include <stddef.h>.
14623
14624 2007-03-05  Bruno Haible  <bruno@clisp.org>
14625
14626         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
14627
14628 2007-03-05  Bruno Haible  <bruno@clisp.org>
14629
14630         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
14631         NetBSD 4, from Ralf Wildenhues.
14632
14633 2007-03-04  Bruno Haible  <bruno@clisp.org>
14634
14635         * lib/vasprintf.h: Update #if logic for the case when the functions
14636         exist but are overridden.
14637
14638 2007-03-04  Bruno Haible  <bruno@clisp.org>
14639
14640         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
14641         implementations: glibc-2.4 and MacOS X 10.3.
14642         * tests/test-vasnprintf-posix.c (test_function): Test also the case
14643         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
14644         * tests/test-vasprintf-posix.c (test_function): Likewise.
14645
14646 2007-03-04  Bruno Haible  <bruno@clisp.org>
14647
14648         * modules/vasprintf-posix-tests: New file.
14649         * tests/test-vasprintf-posix.c: New file.
14650
14651         * modules/vasprintf-posix: New file.
14652         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
14653         defined.
14654         * m4/vasprintf-posix.m4: New file.
14655         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
14656         gl_FUNC_VASPRINTF.
14657         (gl_FUNC_VASPRINTF): Invoke it.
14658         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
14659         here.
14660         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
14661
14662 2007-03-04  Bruno Haible  <bruno@clisp.org>
14663
14664         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
14665         REPLACE_GETTIMEOFDAY.
14666         * modules/sys_time (Makefile.am): Likewise.
14667         * m4/sys_time_h.m4: Likewise.
14668         * m4/gettimeofday.m4: Likewise.
14669
14670 2007-03-04  Bruno Haible  <bruno@clisp.org>
14671
14672         * modules/vasnprintf-posix-tests: New file.
14673         * tests/test-vasnprintf-posix.c: New file.
14674
14675         * modules/vasnprintf-posix: New file.
14676         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
14677         printf-frexpl.h.
14678         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
14679         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
14680         REPLACE_VASNPRINTF is defined.
14681         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
14682         gl_FUNC_VASNPRINTF.
14683         (gl_FUNC_VASNPRINTF): Invoke it.
14684         * m4/vasnprintf-posix.m4: New file.
14685         * m4/printf.m4: New file.
14686
14687 2007-03-04  Bruno Haible  <bruno@clisp.org>
14688
14689         Compile progreloc.c only if --enable-relocatable is specified.
14690         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
14691         if --enable-relocatable was specified.
14692         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
14693         lib_SOURCES.
14694
14695 2007-03-04  Jim Meyering  <jim@meyering.net>
14696
14697         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
14698         Use it consistently, rather than enumerating errno constants.
14699
14700 2007-03-04  Bruno Haible  <bruno@clisp.org>
14701
14702         * modules/xvasprintf-tests: New file.
14703         * tests/test-xvasprintf.c: New file.
14704
14705         * modules/vasprintf-tests: New file.
14706         * tests/test-vasprintf.c: New file.
14707
14708         * modules/vasnprintf-tests: New file.
14709         * tests/test-vasnprintf.c: New file.
14710
14711         * modules/vsnprintf-tests: New file.
14712         * tests/test-vsnprintf.c: New file.
14713
14714         * modules/snprintf-tests: New file.
14715         * tests/test-snprintf.c: New file.
14716
14717 2007-03-04  Bruno Haible  <bruno@clisp.org>
14718
14719         Compile relocatable.c only if --enable-relocatable is specified.
14720         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
14721         gl_RELOCATABLE_LIBRARY.
14722         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
14723         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
14724         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
14725         gl_RELOCATABLE_LIBRARY.
14726         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
14727         (Makefile.am): Remove lib_SOURCES.
14728         * modules/relocatable-lib-lgpl (configure.ac): Invoke
14729         gl_RELOCATABLE_LIBRARY.
14730         (Makefile.am): Remove lib_SOURCES.
14731         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
14732         always.
14733         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14734         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
14735
14736 2007-03-04  Bruno Haible  <bruno@clisp.org>
14737
14738         * modules/argmatch-tests: New file.
14739         * tests/test-argmatch.c: New file.
14740
14741         * tests/test-allocsa.c (main): Halve the number of loop runs.
14742
14743         * modules/alloca-opt-tests: New file.
14744         * tests/test-alloca-opt.c: New file.
14745
14746 2007-03-04  Jim Meyering  <jim@meyering.net>
14747
14748         Work around difference between Linux ACLs and Solaris 10 ZFS.
14749         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
14750         for EINVAL.
14751
14752 2007-03-03  Bruno Haible  <bruno@clisp.org>
14753
14754         * modules/relocatable-prog (Depends-on): Add back progreloc's
14755         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
14756
14757 2007-03-03  Bruno Haible  <bruno@clisp.org>
14758
14759         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
14760         * modules/relocatable-lib: New file.
14761
14762 2007-03-03  Bruno Haible  <bruno@clisp.org>
14763
14764         * modules/relocatable-prog: Renamed from modules/relocatable.
14765         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
14766
14767 2007-03-03  Bruno Haible  <bruno@clisp.org>
14768
14769         * modules/relocatable-script (Files): Add doc/relocatable.texi,
14770         m4/relocatable-lib.m4.
14771         (Depends-on): Remove 'relocatable'.
14772         (configure.ac): Add gl_RELOCATABLE_NOP.
14773
14774 2007-03-03  Bruno Haible  <bruno@clisp.org>
14775
14776         * modules/relocatable-prog-wrapper: New file.
14777         * modules/relocatable (Depends-on): Add it. Remove all other
14778         dependencies except progname.
14779         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
14780
14781         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
14782         (gl_FUNC_STRERROR): Nop.
14783         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
14784
14785         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
14786         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
14787
14788         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
14789         (gl_FUNC_READLINK): Update.
14790
14791         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
14792
14793 2007-03-03  Bruno Haible  <bruno@clisp.org>
14794
14795         * lib/xreadlink.c: Include <unistd.h> unconditionally.
14796         * modules/xreadlink (Depends-on): Add unistd.
14797         * modules/xreadlink-with-size (Depends-on): Likewise.
14798
14799 2007-03-03  Bruno Haible  <bruno@clisp.org>
14800
14801         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
14802         extracted from gt_FUNC_SETENV.
14803         (gt_FUNC_SETENV): Remove macro.
14804         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
14805         remove gt_FUNC_SETENV.
14806
14807 2007-03-03  Bruno Haible  <bruno@clisp.org>
14808
14809         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
14810         ENABLE_RELOCATABLE here.
14811         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
14812
14813 2007-03-03  Bruno Haible  <bruno@clisp.org>
14814
14815         * modules/rbtreehash-list-tests (Depends-on): Add progname.
14816         * tests/test-rbtreehash_list.c: Include progname.h.
14817         (main): Call set_program_name.
14818
14819         * modules/rbtree-oset-tests (Depends-on): Add progname.
14820         * tests/test-rbtree_oset.c: Include progname.h.
14821         (main): Call set_program_name.
14822
14823         * modules/rbtree-list-tests (Depends-on): Add progname.
14824         * tests/test-rbtree_list.c: Include progname.h.
14825         (main): Call set_program_name.
14826
14827         * modules/linked-list-tests (Depends-on): Add progname.
14828         * tests/test-linked_list.c: Include progname.h.
14829         (main): Call set_program_name.
14830
14831 2007-03-03  Bruno Haible  <bruno@clisp.org>
14832
14833         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
14834         All uses of __restrict changed to _Restrict_.
14835         * lib/glob_.h (__restrict): Remove macro.
14836
14837 2007-03-02  Bruno Haible  <bruno@clisp.org>
14838
14839         * modules/gettext (configure.ac): Require gettext infrastructure
14840         from version 0.16.1.
14841
14842 2007-03-02  Bruno Haible  <bruno@clisp.org>
14843
14844         * modules/linkedhash-list-tests (Depends-on): Add progname.
14845         * tests/test-linkedhash_list.c: Include progname.h.
14846         (main): Call set_program_name.
14847
14848         * modules/carray-list-tests (Depends-on): Add progname.
14849         * tests/test-carray_list.c: Include progname.h.
14850         (main): Call set_program_name.
14851
14852         * modules/avltreehash-list-tests (Depends-on): Add progname.
14853         * tests/test-avltreehash_list.c: Include progname.h.
14854         (main): Call set_program_name.
14855
14856         * modules/avltree-oset-tests (Depends-on): Add progname.
14857         * tests/test-avltree_oset.c: Include progname.h.
14858         (main): Call set_program_name.
14859
14860         * modules/avltree-list-tests (Depends-on): Add progname.
14861         * tests/test-avltree_list.c: Include progname.h.
14862         (main): Call set_program_name.
14863
14864         * modules/array-oset-tests (Depends-on): Add progname.
14865         * tests/test-array_oset.c: Include progname.h.
14866         (main): Call set_program_name.
14867
14868         * modules/array-list-tests (Depends-on): Add progname.
14869         * tests/test-array_list.c: Include progname.h.
14870         (main): Call set_program_name.
14871
14872         * modules/argp-tests (Depends-on): Add progname.
14873         * tests/test-argp.c: Include argp.h first. Include progname.h.
14874         (main): Call set_program_name.
14875
14876 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
14877
14878         * doc/gnulib-tool.texi (Initial import): Reword description of
14879         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
14880         limited effect even if defined after the first system include.
14881
14882 2007-03-01  Bruno Haible  <bruno@clisp.org>
14883
14884         * build-aux/config.libpath: Update to libtool-1.5.22.
14885         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14886
14887 2007-03-01  Bruno Haible  <bruno@clisp.org>
14888
14889         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
14890         foo_CFLAGS.
14891         Reported by Ralf Wildenhues.
14892
14893 2007-03-01  Bruno Haible  <bruno@clisp.org>
14894
14895         * build-aux/install-reloc: Remove object files left over by some
14896         compilers.
14897         Reported by Ralf Wildenhues.
14898
14899 2007-03-01  Bruno Haible  <bruno@clisp.org>
14900
14901         * build-aux/install-reloc: Break long lines.
14902
14903 2007-03-01  Bruno Haible  <bruno@clisp.org>
14904
14905         * doc/relocatable.texi: Document that it may not work on OpenBSD.
14906         Reported by Ralf Wildenhues.
14907
14908 2007-03-01  Bruno Haible  <bruno@clisp.org>
14909
14910         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
14911         include ordering constraints.
14912
14913 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14914
14915         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
14916         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
14917         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
14918         as another example.
14919         * lib/time_.h: Fix misspelling.
14920         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
14921         Require gl_HEADER_TIME_H_DEFAULTS.
14922         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
14923         * m4/time_r.m4 (gl_TIME_R): Likewise.
14924         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
14925
14926 2007-03-01  Bruno Haible  <bruno@clisp.org>
14927
14928         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
14929         * m4/utimens.m4 (gl_UTIMENS): Likewise.
14930
14931 2007-03-01  Jim Meyering  <jim@meyering.net>
14932
14933         * modules/xreadlink (Maintainer): Add my name.
14934         * modules/xreadlink-with-size (Depends-on): Alphabetize.
14935
14936 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
14937             Bruno Haible  <bruno@clisp.org>
14938
14939         * build-aux/install-reloc: Compile also c-ctype.c.
14940         * build-aux/relocatable.sh.in: New file.
14941         * doc/relocatable.texi: New file.
14942         * doc/relocatable-maint.texi: New file.
14943         * doc/gnulib.texi: Include relocatable-maint.texi.
14944         * lib/progreloc.c: Include unistd.h unconditionally.
14945         * lib/relocwrapper.c: Include unistd.h unconditionally.
14946         Include c-ctype.h.
14947         (add_dotbin): Use c_tolower.
14948         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
14949         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
14950         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
14951         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
14952         to m4/relocatable-lib.m4.
14953         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
14954         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
14955         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
14956         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
14957         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
14958         * modules/relocatable: New file.
14959         * modules/relocatable-lib: New file.
14960         * modules/relocatable-script: New file.
14961
14962 2007-02-28  Bruno Haible  <bruno@clisp.org>
14963
14964         Import --enable-relocatable infrastructure.
14965         * build-aux/config.libpath: New file, from GNU gettext.
14966         * build-aux/install-reloc: New file, from GNU gettext.
14967         * build-aux/reloc-ldflags: New file, from GNU gettext.
14968         * lib/relocatable.h: New file, from GNU gettext.
14969         * lib/relocatable.c: New file, from GNU gettext.
14970         * lib/relocwrapper.c: New file, from GNU gettext.
14971         * m4/relocatable.m4: New file, from GNU gettext.
14972
14973 2007-02-28  Bruno Haible  <bruno@clisp.org>
14974
14975         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
14976
14977         * modules/xreadlink: New file, from GNU gettext with modifications.
14978         * lib/xreadlink.c: New file, from GNU gettext.
14979         * lib/xreadlink.h: Add comments.
14980         (xreadlink): New declaration.
14981
14982         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
14983         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
14984         lib/xreadlink-with-size.c.
14985         (configure.ac): Remove gl_XREADLINK invocation.
14986         (Makefile.am): Augment lib_SOURCES.
14987         * m4/xreadlink.m4: Remove file.
14988         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
14989         (xreadlink_with_size): Renamed from xreadink.
14990         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
14991         * modules/canonicalize (Depends-on): Replace xreadlink with
14992         xreadlink-with-size.
14993         * lib/canonicalize.c (canonicalize_filename_mode): Update.
14994
14995 2007-02-25  Jim Meyering  <jim@meyering.net>
14996
14997         * build-aux/announce-gen: When complaining about excess arguments,
14998         list them.
14999
15000 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15001
15002         * README: Document signed integer overflow situation more
15003         accurately.
15004
15005 2007-02-25  Bruno Haible  <bruno@clisp.org>
15006
15007         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
15008         'a' or 'A' conversion.
15009
15010 2007-02-25  Bruno Haible  <bruno@clisp.org>
15011
15012         * modules/filename: Renamed from modules/pathname.
15013         (Files): Replace lib/pathname.h with lib/filename.h. Replace
15014         lib/concatpath.c with lib/concat-filename.c.
15015         (Makefile.am): Update.
15016         (Include): Replace pathname.h with filename.h.
15017         * lib/filename.h: Renamed from lib/pathname.h.
15018         (concatenated_filename): Renamed from concatenated_pathname.
15019         * lib/concat-filename.c: Renamed from lib/concatpath.c.
15020         (concatenated_filename): Renamed from concatenated_pathname.
15021         * lib/findprog.c: Include filename.h instead of pathname.h.
15022         (find_in_path): Update.
15023         * lib/javacomp.c: Include filename.h instead of pathname.h.
15024         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
15025         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
15026         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
15027         is_oldgcj_14_13_usable, is_javac_usable): Update.
15028         * lib/javaexec.c: Include filename.h instead of pathname.h.
15029         (execute_java_class): Update.
15030         * modules/findprog: Update.
15031         * modules/javacomp: Update.
15032         * modules/javaexec: Update.
15033         * MODULES.html.sh (File system functions): Add 'filename', remove
15034         'pathname'.
15035
15036 2007-02-25  Bruno Haible  <bruno@clisp.org>
15037
15038         * modules/printf-frexpl-tests: New file.
15039         * tests/test-printf-frexpl.c: New file.
15040
15041         * modules/printf-frexpl: New file.
15042         * lib/printf-frexpl.h: New file.
15043         * lib/printf-frexpl.c: New file.
15044         * m4/printf-frexpl.m4: New file.
15045
15046 2007-02-25  Bruno Haible  <bruno@clisp.org>
15047
15048         * modules/printf-frexp-tests: New file.
15049         * tests/test-printf-frexp.c: New file.
15050
15051         * modules/printf-frexp: New file.
15052         * lib/printf-frexp.h: New file.
15053         * lib/printf-frexp.c: New file.
15054         * m4/printf-frexp.m4: New file.
15055
15056 2007-02-25  Bruno Haible  <bruno@clisp.org>
15057
15058         Assume automake >= 1.10 for the tests.
15059         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
15060         * modules/arctwo-tests: Likewise.
15061         * modules/argp-tests: Likewise.
15062         * modules/avltree-list-tests: Likewise.
15063         * modules/avltree-oset-tests: Likewise.
15064         * modules/avltreehash-list-tests: Likewise.
15065         * modules/carray-list-tests: Likewise.
15066         * modules/crc-tests: Likewise.
15067         * modules/des-tests: Likewise.
15068         * modules/gc-arcfour-tests: Likewise.
15069         * modules/gc-arctwo-tests: Likewise.
15070         * modules/gc-des-tests: Likewise.
15071         * modules/gc-hmac-md5-tests: Likewise.
15072         * modules/gc-hmac-sha1-tests: Likewise.
15073         * modules/gc-md2-tests: Likewise.
15074         * modules/gc-md4-tests: Likewise.
15075         * modules/gc-md5-tests: Likewise.
15076         * modules/gc-pbkdf2-sha1-tests: Likewise.
15077         * modules/gc-rijndael-tests: Likewise.
15078         * modules/gc-sha1-tests: Likewise.
15079         * modules/gc-tests: Likewise.
15080         * modules/getaddrinfo-tests: Likewise.
15081         * modules/hmac-md5-tests: Likewise.
15082         * modules/hmac-sha1-tests: Likewise.
15083         * modules/linked-list-tests: Likewise.
15084         * modules/linkedhash-list-tests: Likewise.
15085         * modules/lock-tests: Likewise.
15086         * modules/md2-tests: Likewise.
15087         * modules/md4-tests: Likewise.
15088         * modules/md5-tests: Likewise.
15089         * modules/rbtree-list-tests: Likewise.
15090         * modules/rbtree-oset-tests: Likewise.
15091         * modules/rbtreehash-list-tests: Likewise.
15092         * modules/read-file-tests: Likewise.
15093         * modules/rijndael-tests: Likewise.
15094         * modules/stdint-tests: Likewise.
15095         * modules/tls-tests: Likewise.
15096
15097 2007-02-24  Bruno Haible  <bruno@clisp.org>
15098
15099         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
15100         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
15101         function; instead check whether isnan with a double argument links.
15102         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
15103         function; instead check whether isnan with a 'long double' argument
15104         links.
15105         Reported by Eric Blake <ebb9@byu.net>.
15106
15107 2007-02-24  Bruno Haible  <bruno@clisp.org>
15108
15109         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
15110         defined.
15111         * lib/isnanl.c: Remove all code. Just include isnan.c.
15112         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
15113
15114 2007-02-25  Jim Meyering  <jim@meyering.net>
15115
15116         Avoid conflicting types for 'unsetenv' on FreeBSD.
15117         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
15118         conflicting with FreeBSD's (5.0 and 6.1) function declaration
15119         in stdlib.h.
15120
15121 2007-02-24  Bruno Haible  <bruno@clisp.org>
15122
15123         * modules/isnanl-nolibm-tests: New file.
15124         * tests/test-isnanl.c: New file.
15125
15126         * modules/isnanl-nolibm: New file.
15127         * lib/isnanl.h: New file.
15128         * lib/isnanl.c: New file.
15129         * m4/isnanl.m4: New file.
15130
15131 2007-02-24  Bruno Haible  <bruno@clisp.org>
15132
15133         * modules/isnan-nolibm-tests: New file.
15134         * tests/test-isnan.c: New file.
15135
15136         * modules/isnan-nolibm: New file.
15137         * lib/isnan.h: New file.
15138         * lib/isnan.c: New file.
15139         * m4/isnan.m4: New file.
15140
15141 2007-02-24  Bruno Haible  <bruno@clisp.org>
15142
15143         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
15144         assume that an exponent fits in 20 bits.
15145
15146 2007-02-24  Jim Meyering  <jim@meyering.net>
15147
15148         * m4/regex.m4: Update the description of the configure-time option,
15149         --without-included-regex, to state accurately what the defaults are,
15150         and perhaps to give people an idea why using this option is risky.
15151
15152 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15153
15154         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
15155         loops on small arguments.  This attempts to avoid the problem
15156         Bruno Haible reported for AIX 4.3.2 in
15157         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
15158
15159 2007-02-23  Bruno Haible  <bruno@clisp.org>
15160
15161         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
15162         Needed for help2man.
15163
15164 2007-02-23  Karl Berry  <karl@gnu.org>
15165
15166         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
15167         exists, foo.h should be cvs-ignored, not committed.
15168
15169 2007-02-23  Eric Blake  <ebb9@byu.net>
15170
15171         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
15172         * lib/stat-time.h (includes): Likewise.
15173         * lib/utimecmp.c (includes): Likewise.
15174         * lib/utimens.h (includes): Likewise.
15175         * lib/getdate.y (includes): Also include "timespec.h" for use
15176         internal to the module.
15177         * modules/utimens (Depends-on): Revert yesterday's patch.
15178         * modules/nanosleep (Depends-on): Add missing dependency.
15179
15180 2007-02-22  Bruno Haible  <bruno@clisp.org>
15181
15182         * lib/glob.c: Don't include getlogin_r.h.
15183
15184 2007-02-22  Jim Meyering  <jim@meyering.net>
15185
15186         * modules/utimens (Depends-on): Add timespec, required for
15187         utimens.h's inclusion of timespec.h.
15188
15189 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
15190
15191         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
15192         long unreadable paths in GNU/Linux.  Problem reported by Andreas
15193         Schwab in
15194         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
15195         I'll try to think of a better way to fix the Solaris problem.
15196
15197         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
15198         like glibc; on Solaris 10, it fails with errno == EINVAL.
15199         POSIX says the behavior is unspecified if the first argument is NULL,
15200         so play it safe and never pass NULL to the system getcwd.
15201
15202 2007-02-21  Jim Meyering  <jim@meyering.net>
15203
15204         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
15205         of gettimeofday.  It would conflict with the one now always
15206         provided via sys_time_.h.  Reported by Matthew Woehlke, as
15207         an IRIX 6.5 build failure.
15208
15209 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15210
15211         Minor fixups to port to Solaris 10 with Sun C 5.8.
15212         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
15213         * modules/getcwd (Depends-on): Add dirfd.
15214         * lib/putenv.c (putenv): #undef it.
15215         (rpl_putenv): New decl.
15216         (malloc, free): Include <stdlib.h> rather than prototyping separately.
15217
15218 2007-02-20  Bruno Haible  <bruno@clisp.org>
15219
15220         * modules/stdio-tests: New file.
15221         * tests/test-stdio.c: New file.
15222
15223         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
15224         (Depends-on): Add stdio.
15225         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15226         (Include): Use <stdio.h> instead of vsnprintf.h.
15227         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
15228         HAVE_DECL_VSNPRINTF.
15229         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
15230
15231         * modules/snprintf (Files): Remove lib/snprintf.h.
15232         (Depends-on): Add stdio.
15233         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15234         (Include): Use <stdio.h> instead of snprintf.h.
15235         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
15236         HAVE_DECL_SNPRINTF.
15237         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
15238         * lib/getaddrinfo.c: Likewise.
15239
15240         * modules/stdio: New file.
15241         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
15242         * lib/snprintf.h: Remove file.
15243         * lib/vsnprintf.h: Remove file.
15244         * lib/.cppi-disable: Remove snprintf.h.
15245         * m4/stdio_h.m4: New file.
15246         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
15247
15248 2007-02-20  Jim Meyering  <jim@meyering.net>
15249
15250         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
15251         used by e.g., mingw.  From Bruno Haible.
15252
15253 2007-02-19  Bruno Haible  <bruno@clisp.org>
15254
15255         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
15256         warnings.
15257         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15258
15259 2007-02-19  Bruno Haible  <bruno@clisp.org>
15260
15261         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
15262         from mingw users.
15263
15264 2007-02-19  Bruno Haible  <bruno@clisp.org>
15265
15266         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
15267         warnings.
15268         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
15269
15270 2007-02-19  Jim Meyering  <jim@meyering.net>
15271
15272         Don't use FD after a successful "fdopendir (fd)".
15273         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
15274         Reset it by calling dirfd on the just-obtained DIR*.
15275
15276         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
15277         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
15278
15279 2007-02-18  Bruno Haible  <bruno@clisp.org>
15280
15281         * lib/readlink.c: Include <unistd.h>.
15282         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
15283         HAVE_READLINK.
15284         * modules/readlink (Depends-on): Add unistd.
15285         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15286         (Include): Add <unistd.h>.
15287
15288         * lib/getlogin_r.h: Remove file.
15289         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
15290         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
15291         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
15292         HAVE_DECL_GETLOGIN_R.
15293         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
15294         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15295         (Include): Use <unistd.h> instead of getlogin_r.h.
15296
15297         * lib/getcwd.h: Remove file.
15298         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
15299         * lib/xgetcwd.c: Likewise.
15300         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
15301         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
15302         * modules/getcwd (Files): Remove lib/getcwd.h.
15303         (Depends-on): Add unistd.
15304         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15305         (Include): Use <unistd.h> instad of getcwd.h.
15306
15307         * lib/ftruncate.c: Include <unistd.h> first.
15308         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
15309         Set HAVE_FTRUNCATE.
15310         * modules/ftruncate (Depends-on): Add unistd.
15311         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15312
15313         * lib/fchdir.c: Include <unistd.h> first.
15314         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
15315         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
15316         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
15317         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15318         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
15319
15320         * lib/dup2.c: Include <unistd.h> first.
15321         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
15322         HAVE_DUP2.
15323         * modules/dup2 (Depends-on): Add unistd.
15324         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15325
15326         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
15327         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
15328         REPLACE_CHOWN. Don't define chown as a macro here.
15329         * modules/chown (Depends-on): Add unistd.
15330         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15331
15332         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
15333         Add definition for GL_LINK_WARNING.
15334         (chown, dup2): New declarations.
15335         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
15336         link warning.
15337         (ftruncate): New declaration.
15338         (getcwd): New declaration, taken from old getcwd.h.
15339         (getlogin_r): New declaration, taken from old getlogin_r.h.
15340         (readlink): New declaration.
15341         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
15342         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
15343         (gl_PREREQ_UNISTD): Remove macro.
15344         (gl_UNISTD_MODULE_INDICATOR): New macro.
15345         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
15346         many new variables. Don't set UNISTD_H.
15347         * modules/unistd (Description): Change.
15348         (Depends-on): Add link-warning.
15349         (configure.ac): Update.
15350         (Makefile.am): Create unistd.h always. Substitute many new variables
15351         into it.
15352
15353 2007-02-18  Bruno Haible  <bruno@clisp.org>
15354
15355         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
15356         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
15357         HAVE_GETSUBOPT.
15358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
15359         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
15360         * lib/getsubopt.h: Remove file.
15361         * modules/getsubopt (Files): Remove lib/getsubopt.h.
15362         (Depends-on): Add stdlib.
15363         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15364         (Includes): Use <stdlib.h> instead of getsubopt.h.
15365         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
15366         Set HAVE_GETSUBOPT.
15367         * lib/getsubopt.c: Don't include getsubopt.h.
15368
15369 2007-02-18  Bruno Haible  <bruno@clisp.org>
15370
15371         * modules/fchdir (Depends-on): Add dup2.
15372
15373 2007-02-18  Bruno Haible  <bruno@clisp.org>
15374
15375         * lib/stdlib_.h: Handle glibc's special invocation convention
15376         specially.
15377
15378 2007-02-18  Bruno Haible  <bruno@clisp.org>
15379
15380         * modules/stdlib-tests: New file.
15381         * tests/test-stdlib.c: New file.
15382
15383         * modules/mkstemp (Files): Remove lib/mkstemp.h.
15384         (Depends-on): Add stdlib.
15385         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15386         (Includes): Use <stdlib.h> instead of mkstemp.h.
15387         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
15388         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
15389         * lib/mkstemp.c: Don't include mkstemp.h.
15390         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
15391         * lib/stdlib--.h: Don't include mkstemp.h.
15392
15393         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
15394         (Depends-on): Add stdlib.
15395         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15396         (Includes): Use <stdlib.h> instead of mkdtemp.h.
15397         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
15398         HAVE_MKDTEMP.
15399         * lib/mkdtemp.c: Don't include mkdtemp.h.
15400         * lib/clean-temp.c: Don't include mkdtemp.h.
15401
15402         * modules/exit (Files): Remove lib/exit.h.
15403         (Depends-on): Add stdlib.
15404         (Makefile.am): Remove lib_SOURCES.
15405         (Include): Use <stdlib.h> instead of exit.h.
15406         * lib/argmatch.c: Don't include exit.h.
15407         * lib/execute.c: Likewise.
15408         * lib/pagealign_alloc.c: Likewise.
15409         * lib/pipe.c: Likewise.
15410         * lib/wait-process.c: Likewise.
15411         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
15412         * lib/exitfail.c: Likewise.
15413         * lib/savewd.c: Likewise.
15414         * lib/xsetenv.c: Likewise.
15415
15416         * modules/stdlib: New file.
15417         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
15418         and extra comments about mkstemp().
15419         * lib/exit.h: Remove file.
15420         * lib/mkdtemp.h: Remove file.
15421         * lib/mkstemp.h: Remove file.
15422         * m4/stdlib_h.m4: New file.
15423         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
15424
15425 2007-02-18  Bruno Haible  <bruno@clisp.org>
15426
15427         * modules/math-tests: New file.
15428         * tests/test-math.c: New file.
15429
15430         * modules/math: New file.
15431         * modules/mathl (Files): Remove lib/mathl.h.
15432         (Depends-on): Add math.
15433         (Makefile.am): Don't mention mathl.h.
15434         (Include): Use <math.h> instead of mathl.h.
15435         * lib/math_.h: New file.
15436         * lib/mathl.h: Remove file.
15437         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
15438         mathl.h.
15439         * lib/asinl.c: Likewise.
15440         * lib/atanl.c: Likewise.
15441         * lib/ceill.c: Likewise.
15442         * lib/cosl.c: Likewise.
15443         * lib/expl.c: Likewise.
15444         * lib/floorl.c: Likewise.
15445         * lib/frexpl.c: Likewise.
15446         * lib/ldexpl.c: Likewise.
15447         * lib/logl.c: Likewise.
15448         * lib/sincosl.c: Likewise.
15449         * lib/sinl.c: Likewise.
15450         * lib/sqrtl.c: Likewise.
15451         * lib/tanl.c: Likewise.
15452         * lib/trigl.c: Likewise.
15453         * m4/math_h.m4: New file.
15454         * MODULES.html.sh (Mathematics): Add math.
15455
15456 2007-02-17  Bruno Haible  <bruno@clisp.org>
15457
15458         * modules/wctype-tests: New file.
15459         * tests/test-wctype.c: New file.
15460
15461         * modules/wchar-tests: New file.
15462         * tests/test-wchar.c: New file.
15463
15464         * modules/unistd-tests: New file.
15465         * tests/test-unistd.c: New file.
15466
15467         * modules/time-tests: New file.
15468         * tests/test-time.c: New file.
15469
15470         * modules/sysexits-tests: New file.
15471         * tests/test-sysexits.c: New file.
15472
15473         * modules/sys_time-tests: New file.
15474         * tests/test-sys_time.c: New file.
15475
15476         * modules/sys_stat-tests: New file.
15477         * tests/test-sys_stat.c: New file.
15478
15479         * modules/sys_socket-tests: New file.
15480         * tests/test-sys_socket.c: New file.
15481
15482         * modules/sys_select-tests: New file.
15483         * tests/test-sys_select.c: New file.
15484
15485         * modules/string-tests: New file.
15486         * tests/test-string.c: New file.
15487
15488         * modules/stdbool-tests: New file.
15489         * tests/test-stdbool.c: New file.
15490
15491         * modules/netinet_in-tests: New file.
15492         * tests/test-netinet_in.c: New file.
15493
15494         * modules/inttypes-tests: New file.
15495         * tests/test-inttypes.c: New file.
15496
15497         * modules/fcntl-tests: New file.
15498         * tests/test-fcntl.c: New file.
15499
15500         * modules/byteswap-tests: New file.
15501         * tests/test-byteswap.c: New file.
15502
15503         * modules/arpa_inet-tests: New file.
15504         * tests/test-arpa_inet.c: New file.
15505
15506 2007-02-17  Bruno Haible  <bruno@clisp.org>
15507
15508         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
15509         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
15510         if the corresponding module is not enabled. Emit link warnings if
15511         the function is used nevertheless.
15512         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
15513         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
15514         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
15515         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
15516         * modules/inttypes (Depends-on): Add link-warning.
15517         (Makefile.am): Copy the contents of build-aux/link-warning.h into
15518         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
15519         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
15520         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
15521         * modules/imaxdiv (configure.ac): Likewise.
15522         * modules/strtoimax (configure.ac): Likewise.
15523         * modules/strtoumax (configure.ac): Likewise.
15524
15525 2007-02-17  Bruno Haible  <bruno@clisp.org>
15526
15527         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
15528         gl_STRING_MODULE_INDICATOR_DEFAULTS.
15529         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
15530         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
15531
15532 2007-02-17  Bruno Haible  <bruno@clisp.org>
15533
15534         * modules/link-warning: New file.
15535         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
15536         * lib/string_.h (GL_LINK_WARNING): Remove definition.
15537         * modules/string (Depends-on): Add link-warning.
15538         (Makefile.am): Copy the contents of build-aux/link-warning.h into
15539         string.h.
15540         * MODULES.html.sh (Support for building libraries and executables): Add
15541         link-warning.
15542
15543 2007-02-17  Bruno Haible  <bruno@clisp.org>
15544
15545         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
15546         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
15547         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
15548         long lines.
15549
15550 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
15551             Bruno Haible  <bruno@clisp.org>
15552
15553         * modules/tmpfile: New file.
15554         * lib/tmpfile.c: New file.
15555         * m4/tmpfile.m4: New file.
15556         * MODULES.html.sh (func_all_modules): New section "Input/output".
15557
15558 2007-02-15  Bruno Haible  <bruno@clisp.org>
15559
15560         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
15561         (supports_delete_on_close): New function.
15562         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
15563
15564 2007-02-14  Bruno Haible  <bruno@clisp.org>
15565
15566         * modules/mbspcasecmp-tests: New file.
15567         * tests/test-mbspcasecmp.sh: New file.
15568         * tests/test-mbspcasecmp.c: New file.
15569
15570         New module mbspcasecmp.
15571         * modules/mbspcasecmp: New file.
15572         * lib/mbspcasecmp.c: New file.
15573         * lib/string_.h (strncasecmp): Change warning message.
15574         (mbspcasecmp): New declaration.
15575         * m4/mbspcasecmp.m4: New file.
15576         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15577         GNULIB_MBSPCASECMP.
15578         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
15579         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
15580
15581 2007-02-14  Bruno Haible  <bruno@clisp.org>
15582
15583         * modules/mbsncasecmp-tests: New file.
15584         * tests/test-mbsncasecmp.sh: New file.
15585         * tests/test-mbsncasecmp.c: New file.
15586
15587         New module mbsncasecmp.
15588         * modules/mbsncasecmp: New file.
15589         * lib/mbsncasecmp.c: New file.
15590         * lib/string_.h (mbsncasecmp): New declaration.
15591         * m4/mbsncasecmp.m4: New file.
15592         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15593         GNULIB_MBSNCASECMP.
15594         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
15595         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
15596
15597 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
15598
15599         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
15600         Verify that it doesn't overlap with our flags.
15601         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
15602         do not have the desired effect in multibyte locales; instead, use
15603         mbscasecmp.
15604         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
15605         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
15606         we don't require GNU fnmatch ourselves (if our users require it, they
15607         should do so explicitly).
15608
15609         Fix regex code so it doesn't rely on strcasecmp.
15610         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
15611         Otherwise, include gnulib's langinfo.h.
15612         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
15613         undesirable behavior in non-C locales.  Instead, rely on localecharset.
15614         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
15615         * modules/regex (FILES): Remove m4/codeset.m4.
15616         (Depends-on): Add localcharset.  Remove strcase.
15617
15618 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15619
15620         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
15621         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
15622
15623 2007-02-13  Bruno Haible  <bruno@clisp.org>
15624
15625         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
15626         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15627
15628 2007-02-12  Bruno Haible  <bruno@clisp.org>
15629
15630         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
15631         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
15632         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
15633         time warning rather than a link error.
15634
15635 2007-02-12  Bruno Haible  <bruno@clisp.org>
15636
15637         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
15638         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15639         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15640
15641 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15642
15643         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
15644         args, not 2.
15645
15646 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15647
15648         New module 'time', so that apps can include <time.h> as per
15649         POSIX and GNU instead of separate include files like time_r.h
15650         and timegm.h.  This implementation tries out a simpler approach
15651         for replacing decls in standard include files (as compared to
15652         the string module), somewhat as an experiment.
15653
15654         * config/srclist.txt: Comment out mktime.c for now.
15655         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
15656         since it doesn't apply any more.  Use generic wording instead.
15657         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
15658         'time'.
15659         * lib/time_.h, m4/time_h.m4, modules/time: New files.
15660         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
15661         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
15662         Don't include <sys/types.h>; no longer needed since we assume C89.
15663         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
15664         * lib/strftime.c: Likewise.
15665         * lib/time_r.c: Likewise.
15666         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
15667         * lib/nanosleep.c: Include <time.h> first, to check interface.
15668         * lib/strptime.c: Likewise.
15669         * lib/time_r.c: Likewise.
15670         * lib/timegm.c: Likewise.
15671         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
15672         needed.
15673         * lib/timegm.c: Don't include timegm.h; no longer needed.
15674         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
15675         time.h now handles any problems in that area.
15676         (struct timespec, nanosleep): Remove; time.h now arranges for these.
15677         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
15678         that time.h defines struct timespec.
15679         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
15680         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
15681         handles that.
15682         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
15683         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
15684         needed.  Set REPLACE_LOCALTIME.
15685         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
15686         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
15687         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
15688         nanosleep; time_h.m4 now does that.  Don't require
15689         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
15690         module handles this now.
15691         * modules/getdate (Depends-on): Remove timespec.  Add time.
15692         * modules/nanosleep (Depends-on): Likewise.
15693         * modules/stat-time (Depends-on): Likewise.
15694         * modules/nanosleep (Include): Include time.h, not timespec.h.
15695         * modules/strptime (Files): Remove lib/strptime.h.
15696         (Depends-on): Add extensions, time.
15697         (Include): Include time.h, not strptime.h.
15698         * modules/time_r (Files): Remove lib/time_r.h.
15699         (Depends-on): Add time.
15700         (Include): Include time.h, not time_r.h.
15701         * modules/timegm: Likewise.
15702         * modules/timespec (Description): Now does timespec-related decls
15703         of our own, instead of struct timespec itself.
15704         (Depends-on): Add time; remove extensions.
15705         (Maintainer): Add self.
15706         * modules/utimecmp (Depends-on): Add time; remove timespec.
15707         * modules/utimens (Depends-on): Likewise.
15708         * modules/xnanosleep (Depends-on): Likewise.
15709
15710 2007-02-11  Bruno Haible  <bruno@clisp.org>
15711
15712         * lib/c-strstr.c: Include allocsa.h.
15713         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
15714         * lib/c-strcasestr.c: Include allocsa.h.
15715         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
15716         * lib/strcasestr.c: Include allocsa.h.
15717         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
15718         * lib/mbsstr.c: Include allocsa.h.
15719         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
15720         allocsa/freesa instead of malloc/free.
15721         * lib/mbscasestr.c: Include allocsa.h.
15722         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
15723         allocsa/freesa instead of malloc/free.
15724         * modules/c-strstr (Depends-on): Add allocsa.
15725         * modules/c-strcasestr (Depends-on): Likewise.
15726         * modules/strcasestr (Depends-on): Likewise.
15727         * modules/mbsstr (Depends-on): Likewise.
15728         * modules/mbscasestr (Depends-on): Likewise.
15729
15730 2007-02-11  Bruno Haible  <bruno@clisp.org>
15731
15732         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
15733
15734         * modules/mbsspn-tests: New file.
15735         * tests/test-mbsspn.sh: New file.
15736         * tests/test-mbsspn.c: New file.
15737
15738 2007-02-11  Bruno Haible  <bruno@clisp.org>
15739
15740         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
15741
15742         * modules/mbspbrk-tests: New file.
15743         * tests/test-mbspbrk.sh: New file.
15744         * tests/test-mbspbrk.c: New file.
15745
15746 2007-02-11  Bruno Haible  <bruno@clisp.org>
15747
15748         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
15749         unneeded cast.
15750
15751         * modules/mbscspn-tests: New file.
15752         * tests/test-mbscspn.sh: New file.
15753         * tests/test-mbscspn.c: New file.
15754
15755 2007-02-11  Bruno Haible  <bruno@clisp.org>
15756
15757         * modules/mbscasecmp-tests: New file.
15758         * tests/test-mbscasecmp.sh: New file.
15759         * tests/test-mbscasecmp.c: New file.
15760
15761 2007-02-11  Bruno Haible  <bruno@clisp.org>
15762
15763         Ensure O(n) worst-case complexity of mbscasestr.
15764         * lib/mbscasestr.c: Include stdbool.h.
15765         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
15766         functions.
15767         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
15768         the bookkeeping indicates that it's worth it.
15769         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
15770
15771         * modules/mbscasestr-tests: New file.
15772         * tests/test-mbscasestr1.c: New file.
15773         * tests/test-mbscasestr2.sh: New file.
15774         * tests/test-mbscasestr2.c: New file.
15775         * tests/test-mbscasestr3.sh: New file.
15776         * tests/test-mbscasestr3.c: New file.
15777         * tests/test-mbscasestr4.sh: New file.
15778         * tests/test-mbscasestr4.c: New file.
15779         * m4/locale-tr.m4: New file.
15780
15781 2007-02-11  Bruno Haible  <bruno@clisp.org>
15782
15783         Ensure O(n) worst-case complexity of mbsstr.
15784         * lib/mbsstr.c: Include stdbool.h.
15785         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
15786         functions.
15787         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
15788         bookkeeping indicates that it's worth it.
15789         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
15790
15791         * modules/mbsstr-tests: New file.
15792         * tests/test-mbsstr1.c: New file.
15793         * tests/test-mbsstr2.sh: New file.
15794         * tests/test-mbsstr2.c: New file.
15795         * tests/test-mbsstr3.sh: New file.
15796         * tests/test-mbsstr3.c: New file.
15797         * m4/locale-fr.m4: New file.
15798
15799 2007-02-11  Bruno Haible  <bruno@clisp.org>
15800
15801         * lib/mbsrchr.c (mbsrchr): Fix bug.
15802
15803         * modules/mbsrchr-tests: New file.
15804         * tests/test-mbsrchr.sh: New file.
15805         * tests/test-mbsrchr.c: New file.
15806
15807 2007-02-11  Bruno Haible  <bruno@clisp.org>
15808
15809         * lib/mbschr.c (mbschr): Fix bug.
15810
15811         * modules/mbschr-tests: New file.
15812         * tests/test-mbschr.sh: New file.
15813         * tests/test-mbschr.c: New file.
15814         * m4/locale-zh.m4: New file.
15815
15816 2007-02-11  Bruno Haible  <bruno@clisp.org>
15817
15818         Support for copying multibyte string iterators.
15819         * lib/mbiter.h: Include <string.h>.
15820         (mbiter_multi_copy): New function.
15821         (mbi_copy): New macro.
15822         * lib/mbuiter.h: Include <string.h>.
15823         (mbuiter_multi_copy): New function.
15824         (mbui_copy): New macro.
15825
15826 2007-02-11  Bruno Haible  <bruno@clisp.org>
15827
15828         New module mbslen.
15829         * modules/mbslen: New file.
15830         * lib/mbslen.c: New file.
15831         * lib/string_.h (mbslen): New declaration.
15832         * m4/mbslen.m4: New file.
15833         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15834         GNULIB_MBSLEN.
15835         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
15836         * MODULES.html.sh (Internationalization functions): Add mbslen.
15837
15838 2007-02-11  Bruno Haible  <bruno@clisp.org>
15839
15840         Ensure O(n) worst-case complexity of strcasestr substitute.
15841         * lib/strcasestr.c: Include stdbool.h.
15842         (knuth_morris_pratt): New function.
15843         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
15844         bookkeeping indicates that it's worth it.
15845         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
15846
15847         * modules/strcasestr-tests: New file.
15848         * tests/test-strcasestr.c: New file.
15849
15850 2007-02-11  Bruno Haible  <bruno@clisp.org>
15851
15852         Ensure O(n) worst-case complexity of c_strcasestr.
15853         * lib/c-strcasestr.c: Include stdbool.h, string.h.
15854         (knuth_morris_pratt): New function.
15855         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
15856         the bookkeeping indicates that it's worth it.
15857         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
15858
15859         * modules/c-strcasestr-tests: New file.
15860         * tests/test-c-strcasestr.c: New file.
15861
15862 2007-02-11  Bruno Haible  <bruno@clisp.org>
15863
15864         Ensure O(n) worst-case complexity of c_strstr.
15865         * lib/c-strstr.c: Include stdbool.h, string.h.
15866         (knuth_morris_pratt): New function.
15867         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
15868         bookkeeping indicates that it's worth it.
15869         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
15870
15871         * lib/c-strstr.c: Complete rewrite for maintainability.
15872
15873         * modules/c-strstr-tests: New file.
15874         * tests/test-c-strstr.c: New file.
15875
15876 2007-02-11  Bruno Haible  <bruno@clisp.org>
15877
15878         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
15879         5.2.1 and earlier, whereby \055 was treated just like the range
15880         delimiter '-'.
15881         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
15882
15883 2007-02-08  Bruno Haible  <bruno@clisp.org>
15884
15885         * modules/regex (Depends-on): Add stdbool.
15886         Reported by Dalibor Topic <robilad@kaffe.org>.
15887
15888 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
15889
15890         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
15891         Prefer returning from main to exiting from it.
15892         Remove unnecessary parens after sizeof.
15893
15894 2007-02-05  Bruno Haible  <bruno@clisp.org>
15895
15896         New module mbssep.
15897         * modules/mbssep: New file.
15898         * lib/mbssep.c: New file.
15899         * lib/string_.h (strsep): Add a conditional link warning.
15900         (mbssep): New declaration.
15901         * m4/mbssep.m4: New file.
15902         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15903         GNULIB_MBSSEP.
15904         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
15905         * MODULES.html.sh (Internationalization functions): Add mbssep.
15906
15907 2007-02-05  Bruno Haible  <bruno@clisp.org>
15908
15909         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
15910         Optimize search in case of 1 delimiter.
15911
15912 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
15913
15914         * lib/acl.h: Include sys/types.h before sys/acl.h.
15915
15916 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
15917
15918         Merge upstream fix for glibc bugzilla #3957:
15919
15920         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
15921
15922         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
15923         bit for RE_HAT_LISTS_NOT_NEWLINE.
15924         (build_charclass_op): Remove bogus comment.
15925
15926 2007-02-05  Simon Josefsson  <simon@josefsson.org>
15927
15928         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
15929
15930 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15931
15932         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
15933         * lib/memmem.c [!defined _LIBC]: Include config.h.
15934
15935 2007-02-04  Bruno Haible  <bruno@clisp.org>
15936
15937         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
15938         warning message.
15939
15940 2007-02-04  Bruno Haible  <bruno@clisp.org>
15941
15942         New module mbstok_r.
15943         * modules/mbstok_r: New file.
15944         * lib/mbstok_r.c: New file.
15945         * lib/string_.h (strtok_r): Change argument names to match the
15946         comments. Add a conditional link warning.
15947         (mbstok_r): New declaration.
15948         * m4/mbstok_r.m4: New file.
15949         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15950         GNULIB_MBSTOK_R.
15951         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
15952         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
15953
15954 2007-02-04  Bruno Haible  <bruno@clisp.org>
15955
15956         New module mbsspn.
15957         * modules/mbsspn: New file.
15958         * lib/mbsspn.c: New file.
15959         * lib/string_.h (strspn): Add a conditional link warning.
15960         (mbsspn): New declaration.
15961         * m4/mbsspn.m4: New file.
15962         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15963         GNULIB_MBSSPN.
15964         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
15965         * MODULES.html.sh (Internationalization functions): Add mbsspn.
15966
15967 2007-02-04  Bruno Haible  <bruno@clisp.org>
15968
15969         New module mbspbrk.
15970         * modules/mbspbrk: New file.
15971         * lib/mbspbrk.c: New file.
15972         * lib/string_.h (strpbrk): Add a conditional link warning.
15973         (mbspbrk): New declaration.
15974         * m4/mbspbrk.m4: New file.
15975         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15976         GNULIB_MBSPBRK.
15977         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
15978         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
15979
15980 2007-02-04  Bruno Haible  <bruno@clisp.org>
15981
15982         New module mbscspn.
15983         * modules/mbscspn: New file.
15984         * lib/mbscspn.c: New file.
15985         * lib/string_.h (strcspn): Add a conditional link warning.
15986         (mbscspn): New declaration.
15987         * m4/mbscspn.m4: New file.
15988         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15989         GNULIB_MBSCSPN.
15990         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
15991         * MODULES.html.sh (Internationalization functions): Add mbscspn.
15992
15993 2007-02-04  Bruno Haible  <bruno@clisp.org>
15994
15995         New module mbscasestr, reduced goal of strcasestr.
15996         * modules/mbscasestr: New file.
15997         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
15998         (mbscasestr): Renamed from strcasestr.
15999         * lib/strcasestr.c: Don't include mbuiter.h.
16000         (strcasestr): Remove support for multibyte locales.
16001         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
16002         Change the conditional link warning.
16003         (mbscasestr): New declaration.
16004         * m4/mbscasestr.m4: New file.
16005         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
16006         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
16007         REPLACE_STRCASESTR.
16008         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
16009         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16010         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
16011         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
16012         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
16013         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
16014         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
16015         (Depends-on): Remove mbuiter.
16016         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
16017
16018 2007-02-04  Bruno Haible  <bruno@clisp.org>
16019
16020         Simplify handling of strncasecmp.
16021         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
16022         the conditional link warning.
16023         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16024         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
16025         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
16026         * modules/strcase (configure.ac): Don't invoke
16027         gl_STRING_MODULE_INDICATOR.
16028         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
16029
16030 2007-02-04  Bruno Haible  <bruno@clisp.org>
16031
16032         New module mbscasecmp, reduced goal of strcasecmp.
16033         * modules/mbscasecmp: New file.
16034         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
16035         (mbscasecmp): Renamed from strcasecmp.
16036         * lib/strcasecmp.c: Don't include mbuiter.h.
16037         (strcasecmp): Remove support for multibyte locales.
16038         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
16039         Change the conditional link warning.
16040         (mbscasecmp): New declaration.
16041         * m4/mbscasecmp.m4: New file.
16042         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
16043         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
16044         REPLACE_STRCASECMP.
16045         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
16046         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16047         GNULIB_MBSCASECMP.
16048         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
16049         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
16050         * modules/strcase (Files): Remove m4/mbrtowc.m4.
16051         (Depends-on): Remove mbuiter.
16052         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
16053
16054 2007-02-04  Bruno Haible  <bruno@clisp.org>
16055
16056         New module mbsstr. Remove module strstr.
16057         * modules/mbsstr: New file.
16058         * modules/strstr: Remove file.
16059         * lib/mbsstr.c: Renamed from lib/strstr.c.
16060         (mbsstr): Renamed from strstr.
16061         * lib/string_.h (strstr): Remove declaration. Change the conditional
16062         link warning.
16063         (mbsstr): New declaration.
16064         * m4/mbsstr.m4: New file.
16065         * m4/strstr.m4: Remove file.
16066         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16067         REPLACE_STRSTR.
16068         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
16069         Don't initialize GNULIB_STRSTR.
16070         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
16071         substitute GNULIB_STRSTR and REPLACE_STRSTR.
16072         * MODULES.html.sh (Internationalization functions): Add mbsstr.
16073         (Support for systems lacking ANSI C 89): Remove strstr.
16074
16075 2007-02-04  Bruno Haible  <bruno@clisp.org>
16076
16077         New module mbsrchr.
16078         * modules/mbsrchr: New file.
16079         * lib/mbsrchr.c: New file.
16080         * lib/string_.h (strrchr): Add a conditional link warning.
16081         (mbsrchr): New declaration.
16082         * m4/mbsrchr.m4: New file.
16083         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16084         GNULIB_MBSRCHR.
16085         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
16086         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
16087
16088 2007-02-04  Bruno Haible  <bruno@clisp.org>
16089
16090         New module mbschr.
16091         * modules/mbschr: New file.
16092         * lib/mbschr.c: New file.
16093         * lib/string_.h (strchr): Add a conditional link warning.
16094         (mbschr): New declaration.
16095         * m4/mbschr.m4: New file.
16096         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16097         GNULIB_MBSCHR.
16098         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
16099         * MODULES.html.sh (Internationalization functions): Add mbschr.
16100
16101 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16102
16103         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
16104
16105         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
16106
16107 2007-02-04  Bruno Haible  <bruno@clisp.org>
16108
16109         New module description section 'configure.ac-early'.
16110         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
16111         (func_get_autoconf_early_snippet): New function.
16112         (func_import, func_create_testdir): Use it. Remove special cases for
16113         modules 'extensions' and 'lock'.
16114         * modules/extensions (configure.ac-early): Require
16115         gl_USE_SYSTEM_EXTENSIONS.
16116         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
16117
16118 2007-02-04  Bruno Haible  <bruno@clisp.org>
16119
16120         Make use of gcj-4.3's -fsource and -ftarget option.
16121         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
16122         and if so try the options -fsource and -ftarget.
16123         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
16124         source_version, ftarget_option, target_version arguments.
16125         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
16126         (is_envjavac_oldgcj_14_14_usable): Renamed from
16127         is_envjavac_gcj_14_14_usable.
16128         (is_envjavac_oldgcj_14_13_usable): Renamed from
16129         is_envjavac_gcj_14_13_usable.
16130         (is_gcj_present): Update.
16131         (is_gcj_43, is_gcj43_usable): New functions.
16132         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
16133         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
16134         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
16135         try the options -fsource and -ftarget.
16136
16137 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
16138
16139         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
16140         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
16141         larger value.
16142
16143 2007-02-03  Jim Meyering  <jim@meyering.net>
16144
16145         Give tools a better chance to allocate space for very large buffers.
16146         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
16147
16148         Make pwd and readlink work also when run with an unreadable parent dir
16149         on systems with openat support.
16150         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
16151         provided getcwd function, even when we have openat support.
16152         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
16153
16154 2007-02-02  Bruno Haible  <bruno@clisp.org>
16155
16156         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
16157         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
16158         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
16159         portability problems if one of these functions is only used on specific
16160         platforms.
16161         Reported by Paul Eggert.
16162
16163 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16164
16165         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
16166         is causing more trouble than it's curing.
16167         * lib/regex_internal.h (__mempcpy): Remove.
16168         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
16169         (and make the code a tad smaller to boot).
16170         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
16171
16172 2007-02-02  Jim Meyering  <jim@meyering.net>
16173
16174         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
16175         section, not in the Makefile.am: one.
16176
16177 2007-02-02  Eric Blake  <ebb9@byu.net>
16178
16179         * lib/strchrnul.c: Always include config.h first.
16180
16181         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
16182         gnulib strstr is not necessary here.
16183
16184 2007-02-02  Simon Josefsson  <simon@josefsson.org>
16185
16186         * m4/socklen.m4: Fix typo.
16187
16188 2007-02-02  Eric Blake  <ebb9@byu.net>
16189
16190         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
16191         * modules/netinet_in (Makefile.am): Likewise.
16192
16193 2007-02-01  Bruno Haible  <bruno@clisp.org>
16194
16195         * lib/string_.h (GL_LINK_WARNING): New macro.
16196         (strcasecmp, strstr, strcasestr): If provided by the system,
16197         conditionally define as a macro that leads to a warning instead of to
16198         an error.
16199         (strncasecmp): Conditionally define as a macro that leads to a warning.
16200
16201 2007-02-01  Karl Berry  <karl@gnu.org>
16202
16203         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
16204
16205 2007-02-01  Bruno Haible  <bruno@clisp.org>
16206
16207         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
16208         renamings.
16209
16210 2007-02-01  Eric Blake  <ebb9@byu.net>
16211
16212         * modules/regex (Depends-on): Revert dependence on mempcpy.
16213         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
16214         module's definition of mempcpy.
16215         Reported by Paul Eggert.
16216
16217 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
16218
16219         * lib/string_.h: If the gnulib module XYZ is not present, undefine
16220         the symbol XYZ before redefining it.  This fixes a problem with
16221         programs that don't use XYZ, when compiled on systems that define
16222         XYZ to something else.
16223
16224 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
16225
16226         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
16227         occurs when "mkdir -m foo" creates a setgid directory that is (1)
16228         writeable to group or other and (2) is intended to have a special
16229         mode bit that is set or cleared.  In such a case, the directory
16230         should be neither group- nor other-writeable until the special
16231         mode bits are right.
16232
16233 2007-01-31  Eric Blake  <ebb9@byu.net>
16234
16235         * modules/mountlist (Depends-on): Add strstr.
16236
16237         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
16238         bug.
16239         * modules/string (Makefile.am): Remove redundant replacement.
16240         * modules/regex (Depends-on): Add mempcpy.
16241
16242 2007-01-31  Bruno Haible  <bruno@clisp.org>
16243
16244         New module description field 'Link'.
16245         * gnulib-tool (func_usage): Document --extract-link-directive.
16246         (sed_extract_prog): Recognize 'Link' directive.
16247         (func_get_link_directive): New function.
16248         (func_import): Show summary of link directives.
16249         Handle --extract-link-directive option.
16250         * modules/acl (Link): New section.
16251         * modules/clock-time (Link): New section.
16252         * modules/euidaccess (Link): New section.
16253         * modules/gettext (Link): New section.
16254         * modules/iconv (Link): New section.
16255         * modules/lock (Link): New section.
16256         * modules/nanosleep (Link): New section.
16257         * modules/readline (Link): New section.
16258
16259 2007-01-27  Bruno Haible  <bruno@clisp.org>
16260
16261         Enforce the use of gnulib modules for unportable <string.h> functions.
16262         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
16263         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
16264         (gl_HEADER_STRING_H_BODY): Require it.
16265         * lib/string_.h: If the gnulib module XYZ is not present, redefine
16266         the symbol XYZ to one that gives a link error.
16267         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
16268         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
16269         * modules/mempcpy (configure.ac): Likewise.
16270         * modules/memrchr (configure.ac): Likewise.
16271         * modules/stpcpy (configure.ac): Likewise.
16272         * modules/stpncpy (configure.ac): Likewise.
16273         * modules/strcase (configure.ac): Likewise.
16274         * modules/strcasestr (configure.ac): Likewise.
16275         * modules/strchrnul (configure.ac): Likewise.
16276         * modules/strdup (configure.ac): Likewise.
16277         * modules/strndup (configure.ac): Likewise.
16278         * modules/strnlen (configure.ac): Likewise.
16279         * modules/strpbrk (configure.ac): Likewise.
16280         * modules/strsep (configure.ac): Likewise.
16281         * modules/strstr (configure.ac): Likewise.
16282         * modules/strtok_r (configure.ac): Likewise.
16283
16284 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
16285
16286         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
16287
16288 2007-01-30  Jim Meyering  <jim@meyering.net>
16289
16290         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
16291
16292 2007-01-29  Bruno Haible  <bruno@clisp.org>
16293
16294         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
16295         * lib/execute.c: Likewise.
16296         * lib/pipe.c: Likewise.
16297         * lib/printf-args.h: Likewise.
16298         * lib/printf-args.c: Likewise.
16299         * lib/printf-parse.c: Likewise.
16300         * lib/vasnprintf.c: Likewise.
16301
16302 2007-01-29  Eric Blake  <ebb9@byu.net>
16303
16304         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
16305         declaration.
16306
16307 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16308
16309         * lib/strptime.h (strptime): Use 'restrict' for args where
16310         POSIX requires this.
16311         * lib/strptime.c (strptime): Likewise.
16312         Change license notice from LGPL to GPL, since gnulib-tool will
16313         change this as needed.
16314         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
16315         defined.
16316         Include "strptime.h" first, to check interface.
16317         Do not #undef _LIBC and _NL_CURRENT.
16318         Do not include <stdlib.h>; no longer needed.
16319         Include "time_r.h" and declare ptime_locale_status
16320         only if _LIBC is not defined.
16321         (__P): Remove unused macro.
16322         (match_string): Bring back glibc version, but use it only if _LIBC
16323         is defined.
16324         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
16325         Remove unnecessary assertion and abort() call.
16326         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
16327         * m4/strptime.m4: Fix serial number comment.
16328         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
16329         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
16330         (Depends-on): Add time_r.
16331
16332 2007-01-29  Bruno Haible  <bruno@clisp.org>
16333
16334         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16335         strptime.
16336         * modules/strptime (Depends-on): Add stdbool.
16337         * lib/strptime.h: Include <time.h> always. Add comments.
16338
16339 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
16340
16341         * modules/strptime: New file.
16342         * lib/strptime.h: New file.
16343         * lib/strptime.c: New file.
16344         * m4/strptime.m4: New file.
16345
16346 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16347
16348         * MODULES.html.sh: New module mpsort.
16349         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
16350
16351         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
16352         a circularity problem with HP-UX ia64 reported by Bob Proulx in
16353         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
16354         All uses changed.
16355         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
16356         All uses changed.
16357         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
16358         to _Restrict_.
16359         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
16360         the parameter matches the prototype.
16361
16362 2007-01-28  Jim Meyering  <jim@meyering.net>
16363
16364         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
16365         sys/time.h here, reverting that part of the previous patch:
16366         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
16367
16368 2007-01-28  Bruno Haible  <bruno@clisp.org>
16369
16370         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
16371         value of $(SYS_TIME_H).
16372         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
16373         remove it conditionally, too. [added by Jim Meyering]
16374         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
16375         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
16376         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
16377         GETTIMEOFDAY_REPLACEMENT to 1.
16378
16379 2007-01-28  Bruno Haible  <bruno@clisp.org>
16380
16381         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
16382         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
16383         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
16384         Set UNISTD_H instead of UNISTD_H2.
16385         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
16386
16387 2007-01-28  Bruno Haible  <bruno@clisp.org>
16388
16389         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
16390         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
16391
16392 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16393
16394         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
16395         (func_create_testdir): Ensure C locale for `grep' and `tr'
16396         character ranges.
16397         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
16398         ACLOCAL_AMFLAGS parsing state machine.
16399
16400 2007-01-27  Bruno Haible  <bruno@clisp.org>
16401
16402         * modules/unistr/base: Update.
16403
16404 2007-01-27  Bruno Haible  <bruno@clisp.org>
16405
16406         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
16407         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
16408         * modules/unistr/u32-mbtouc-unsafe: Renamed from
16409         modules/unistr/u32-mbtouc.
16410         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
16411         * lib/unistr.h: Update.
16412         * lib/linebreak.c: Update.
16413         * modules/unistr/u32-mbtouc: Renamed from
16414         modules/unistr/u32-mbtouc-safe.
16415         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
16416         * lib/unistr.h: Update.
16417         * lib/unistr/u32-to-u8.c: Update.
16418         * lib/unistr/u32-to-u16.c: Update.
16419
16420 2007-01-27  Bruno Haible  <bruno@clisp.org>
16421
16422         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
16423         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
16424         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
16425         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
16426         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
16427         * modules/unistr/u16-mbtouc-unsafe: Renamed from
16428         modules/unistr/u16-mbtouc.
16429         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
16430         * lib/unistr.h: Update.
16431         * lib/linebreak.c: Update.
16432         * modules/linebreak: Update.
16433         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
16434         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
16435         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
16436         * modules/unistr/u16-mbtouc: Renamed from
16437         modules/unistr/u16-mbtouc-safe.
16438         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
16439         * lib/unistr.h: Update.
16440         * lib/unistr/u16-to-u8.c: Update.
16441         * modules/unistr/u16-to-u8: Update.
16442         * lib/unistr/u16-to-u32.c: Update.
16443         * modules/unistr/u16-to-u32: Update.
16444
16445 2007-01-27  Bruno Haible  <bruno@clisp.org>
16446
16447         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
16448         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
16449         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
16450         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
16451         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
16452         * modules/unistr/u8-mbtouc-unsafe: Renamed from
16453         modules/unistr/u8-mbtouc.
16454         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
16455         * lib/unistr.h: Update.
16456         * lib/striconveh.c: Update.
16457         * modules/striconveh: Update.
16458         * lib/linebreak.c: Update.
16459         * modules/linebreak: Update.
16460         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
16461         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
16462         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
16463         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
16464         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
16465         * lib/unistr.h: Update.
16466         * lib/striconveh.c: Update.
16467         * modules/striconveh: Update.
16468         * lib/unistr/u8-to-u16.c: Update.
16469         * modules/unistr/u8-to-u16: Update.
16470         * lib/unistr/u8-to-u32.c: Update.
16471         * modules/unistr/u8-to-u32: Update.
16472
16473 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16474
16475         Sync from Libtool.
16476         * lib/argz.c: Do not include strings.h nor memory.h, include
16477         string.h unconditionally.  Patch by Simon Josefsson.
16478
16479 2007-01-27  Bruno Haible  <bruno@clisp.org>
16480
16481         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
16482         from gl_HEADER_STRING_H_BODY.
16483         (gl_HEADER_STRING_H_BODY): Require it.
16484         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
16485         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
16486         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
16487         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
16488         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16489         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
16490         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16491         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
16492         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
16493         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
16494         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
16495         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
16496         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
16497         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16498         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
16499
16500 2007-01-27  Bruno Haible  <bruno@clisp.org>
16501
16502         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
16503         check_PROGRAMS into noinst_PROGRAMS.
16504         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
16505         check_PROGRAMS in this case.
16506         (func_import): Set for_test to false.
16507         (func_create_testdir): Set for_test to true.
16508
16509 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16510             Bruno Haible  <bruno@clisp.org>
16511
16512         * modules/strcasestr (Files): Remove lib/strcasestr.h.
16513         (Depends-on): Add string.
16514         (Includes): Use <string.h> instead of strcasestr.h.
16515         * modules/string (Makefile.am): Also substitute the value of
16516         REPLACE_STRCASESTR.
16517         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
16518         assume strcasestr is declared in <string.h> not <strings.h>. Also
16519         set REPLACE_STRCASESTR.
16520         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
16521         REPLACE_STRCASESTR.
16522         * lib/strcasestr.h: Remove file.
16523         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
16524         * lib/string_.h (strcasestr): New declaration.
16525
16526 2007-01-27  Bruno Haible  <bruno@clisp.org>
16527
16528         * lib/string_.h: Use 'extern'.
16529
16530 2007-01-27  Jim Meyering  <jim@meyering.net>
16531
16532         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
16533         of set-but-not-used local, "q".
16534
16535         * lib/mempcpy.c: Include <config.h> before <string.h>.
16536         This fixes a compilation error on HP-UX, due to the system's
16537         "restrict"-using mempcpy prototype.
16538
16539 2007-01-26  Bruno Haible  <bruno@clisp.org>
16540
16541         Small optimization.
16542         * lib/javacomp.c: Include c-strstr.h.
16543          (is_envjavac_gcj): Use c_strstr instead of strstr.
16544         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
16545
16546 2007-01-26  Bruno Haible  <bruno@clisp.org>
16547
16548         * MODULES.html.sh (Unicode string functions): Add the new modules.
16549
16550         * modules/uniconv/u32-strconv-to-locale: New file.
16551         * lib/uniconv/u32-strconv-to-locale.c: New file.
16552
16553         * modules/uniconv/u16-strconv-to-locale: New file.
16554         * lib/uniconv/u16-strconv-to-locale.c: New file.
16555
16556         * modules/uniconv/u8-strconv-to-locale: New file.
16557         * lib/uniconv/u8-strconv-to-locale.c: New file.
16558
16559         * modules/uniconv/u32-strconv-from-locale: New file.
16560         * lib/uniconv/u32-strconv-from-locale.c: New file.
16561
16562         * modules/uniconv/u16-strconv-from-locale: New file.
16563         * lib/uniconv/u16-strconv-from-locale.c: New file.
16564
16565         * modules/uniconv/u8-strconv-from-locale: New file.
16566         * lib/uniconv/u8-strconv-from-locale.c: New file.
16567
16568         * modules/uniconv/u32-strconv-to-enc: New file.
16569         * lib/uniconv/u32-strconv-to-enc.c: New file.
16570         * modules/uniconv/u32-strconv-to-enc-tests: New file.
16571         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
16572
16573         * modules/uniconv/u16-strconv-to-enc: New file.
16574         * lib/uniconv/u16-strconv-to-enc.c: New file.
16575         * lib/uniconv/u-strconv-to-enc.h: New file.
16576         * modules/uniconv/u16-strconv-to-enc-tests: New file.
16577         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
16578
16579         * modules/uniconv/u8-strconv-to-enc: New file.
16580         * lib/uniconv/u8-strconv-to-enc.c: New file.
16581         * modules/uniconv/u8-strconv-to-enc-tests: New file.
16582         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
16583
16584         * modules/uniconv/u32-strconv-from-enc: New file.
16585         * lib/uniconv/u32-strconv-from-enc.c: New file.
16586         * modules/uniconv/u32-strconv-from-enc-tests: New file.
16587         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
16588
16589         * modules/uniconv/u16-strconv-from-enc: New file.
16590         * lib/uniconv/u16-strconv-from-enc.c: New file.
16591         * modules/uniconv/u16-strconv-from-enc-tests: New file.
16592         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
16593
16594         * modules/uniconv/u8-strconv-from-enc: New file.
16595         * lib/uniconv/u8-strconv-from-enc.c: New file.
16596         * lib/uniconv/u-strconv-from-enc.h: New file.
16597         * modules/uniconv/u8-strconv-from-enc-tests: New file.
16598         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
16599
16600         * modules/uniconv/u32-conv-from-enc: New file.
16601         * lib/uniconv/u32-conv-from-enc.c: New file.
16602         * modules/uniconv/u32-conv-from-enc-tests: New file.
16603         * tests/uniconv/test-u32-conv-from-enc.c: New file.
16604
16605         * modules/uniconv/u16-conv-from-enc: New file.
16606         * lib/uniconv/u16-conv-from-enc.c: New file.
16607         * lib/uniconv/u-conv-from-enc.h: New file.
16608         * modules/uniconv/u16-conv-from-enc-tests: New file.
16609         * tests/uniconv/test-u16-conv-from-enc.c: New file.
16610
16611         * modules/uniconv/u8-conv-from-enc: New file.
16612         * lib/uniconv/u8-conv-from-enc.c: New file.
16613         * modules/uniconv/u8-conv-from-enc-tests: New file.
16614         * tests/uniconv/test-u8-conv-from-enc.c: New file.
16615
16616         * modules/uniconv/base: New file.
16617         * lib/uniconv.h: New file.
16618
16619 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
16620
16621         * doc/gnulib-tool.texi (Initial import): Update to match current
16622         behavior with strdup module.
16623         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
16624         * lib/memmem.h: Remove; all uses removed.  This is now done
16625         by <string.h>.
16626         * lib/mempcpy.h: Likewise.
16627         * lib/memrchr.h: Likewise.
16628         * lib/stpcpy.h: Likewise.
16629         * lib/stpncpy.h: Likewise.
16630         * lib/strcase.h: Likewise.
16631         * lib/strchrnul.h: Likewise.
16632         * lib/strdup.h: Likewise.
16633         * lib/strndup.h: Likewise.
16634         * lib/strnlen.h: Likewise.
16635         * lib/strpbrk.h: Likewise.
16636         * lib/strsep.h: Likewise.
16637         * lib/strstr.h: Likewise.
16638         * lib/strtok_r.h: Likewise.
16639         * lib/string_.h: New file.
16640         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
16641         Rely on <string.h> instead.
16642         * lib/canon-host.c: Likewise.
16643         * lib/chdir-long.c: Likewise.
16644         * lib/concatpath.c: Likewise.
16645         * lib/exclude.c: Likewise.
16646         * lib/fchdir.c: Likewise.
16647         * lib/getaddrinfo.c: Likewise.
16648         * lib/getcwd.c: Likewise.
16649         * lib/getsubopt.c: Likewise.
16650         * lib/glob.c: Likewise.
16651         * lib/hard-locale.c: Likewise.
16652         * lib/iconvme.c: Likewise.
16653         * lib/javacomp.c: Likewise.
16654         * lib/mempcpy.c: Likewise.
16655         * lib/memrchr.c: Likewise.
16656         * lib/regex_internal.h: Likewise.
16657         * lib/stpncpy.c: Likewise.
16658         * lib/strcasecmp.c: Likewise.
16659         * lib/strchrnul.c: Likewise.
16660         * lib/strdup.c: Likewise.
16661         * lib/striconv.c: Likewise.
16662         * lib/striconveh.c: Likewise.
16663         * lib/striconveha.c: Likewise.
16664         * lib/strncasecmp.c: Likewise.
16665         * lib/strndup.c: Likewise.
16666         * lib/strnlen.c: Likewise.
16667         * lib/strsep.c: Likewise.
16668         * lib/strstr.c: Likewise.
16669         * lib/strtok_r.c: Likewise.
16670         * lib/userspec.c: Likewise.
16671         * lib/w32spawn.h: Likewise.
16672         * lib/xstrndup.c: Likewise.
16673         * lib/mountlist.c (strstr): Remove decl.
16674         * m4/string_h.m4: New file.
16675         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
16676         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
16677         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
16678         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
16679         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
16680         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
16681         Set REPLACE_STRCASECMP if necessary.
16682         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
16683         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
16684         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
16685         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
16686         HAVE_DECL_STRDUP if necessary.
16687         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
16688         since gl_FUNC_STRNDUP does that now.
16689         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
16690         Check for decl here...
16691         (gl_PREREQ_STRNLEN): ... not here.
16692         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
16693         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
16694         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
16695         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
16696         necessary.
16697         * modules/string: New file.
16698         * modules/memmem (Files): Remove special-purpose include file.
16699         (Depends-on): Add string.
16700         (Include): Include <string.h>, not the removed file.
16701         * modules/mempcpy: Likewise.
16702         * modules/memrchr: Likewise.
16703         * modules/stpcpy: Likewise.
16704         * modules/stpncpy: Likewise.
16705         * modules/strcase: Likewise.
16706         * modules/strchrnul: Likewise.
16707         * modules/strdup: Likewise.
16708         * modules/strndup: Likewise.
16709         * modules/strnlen: Likewise.
16710         * modules/strpbrk: Likewise.
16711         * modules/strsep: Likewise.
16712         * modules/strstr: Likewise.
16713         * modules/strtok_r: Likewise.
16714         * tests/test-dirname.c: Don't include "strdup.h", since
16715         <string.h> now suffices.
16716         * tests/test-memmem.c: Don't include "memmem.h", since
16717         <string.h> now suffices.
16718
16719 2007-01-25  Bruno Haible  <bruno@clisp.org>
16720
16721         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
16722         *resultp is 0.
16723
16724         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
16725         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
16726         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
16727         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
16728
16729         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
16730         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
16731         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
16732         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
16733         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
16734         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
16735
16736 2007-01-24  Bruno Haible  <bruno@clisp.org>
16737
16738         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
16739         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
16740         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
16741         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
16742         gl_FUNC_FTS_CORE.
16743         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
16744         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
16745         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
16746         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
16747         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
16748         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
16749         gl_FUNC_FCHOWNAT.
16750         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
16751         gl_FUNC_STRFTIME.
16752         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
16753         Reported by Ralf Wildenhues.
16754
16755 2007-01-24  Bruno Haible  <bruno@clisp.org>
16756
16757         Drop AC_REQUIRE calls that are redundant with the module dependencies.
16758         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
16759         gl_GETADDRINFO.
16760         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
16761         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
16762         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
16763
16764 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
16765
16766         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
16767         Don't use 'exit'; just return from 'main'.
16768         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
16769
16770         * lib/fnmatch_.h: Readjust white space and comments to match
16771         glibc, to avoid spurious diffs.
16772
16773 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16774
16775         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
16776         2004-12-01 change by Jakub Jelinek, since this code won't compile
16777         if !LIBC.  Problem reported by Bob Proulx.
16778
16779 2007-01-23  Bruno Haible  <bruno@clisp.org>
16780
16781         * lib/striconveh.c: Include c-strcaseeq.h.
16782         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
16783         * modules/striconveh (Depends-on): Add c-strcaseeq.
16784
16785 2007-01-23  Bruno Haible  <bruno@clisp.org>
16786
16787         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
16788
16789         * modules/c-strcaseeq: New file.
16790         * lib/c-strcaseeq.h: New file.
16791
16792         * modules/streq: New file.
16793         * lib/streq.h: New file.
16794
16795 2007-01-23  Bruno Haible  <bruno@clisp.org>
16796
16797         * modules/striconveha-tests: New file.
16798         * tests/test-striconveha.c: New file.
16799
16800         * lib/striconveha.h: Include <stdbool.h>.
16801         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
16802         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
16803         (mem_iconveha_notranslit): Renamed from mem_iconveha.
16804         (mem_iconveha): New function.
16805         (str_iconveha_notranslit): Renamed from str_iconveha.
16806         (str_iconveha): New function.
16807         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
16808         c-strcase.
16809
16810 2007-01-23  Bruno Haible  <bruno@clisp.org>
16811
16812         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
16813         encodings without forgiving before trying any encoding with handler.
16814         (str_iconveha): Try all encodings without forgiving before trying any
16815         encoding with handler.
16816
16817 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16818
16819         Import the following changes from libc.
16820
16821         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
16822
16823         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
16824
16825         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
16826
16827         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
16828         normal_bracket label.
16829
16830         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
16831
16832         [BZ #361]
16833         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
16834         to normal_bracket after fetching the next character.
16835
16836 2007-01-22  Bruno Haible  <bruno@clisp.org>
16837
16838         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
16839         argument.
16840         * lib/striconveh.c (iconv_carefully_1): New function.
16841         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
16842         argument.
16843         (str_cd_iconveh): Update.
16844         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
16845         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
16846         * tests/test-striconveh.c (MAGIC): New macro.
16847         (new_offsets): New function.
16848         (main): Test call with and without offsets.
16849
16850 2007-01-22  Bruno Haible  <bruno@clisp.org>
16851
16852         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
16853         * modules/sys_select (Makefile.am): Likewise.
16854         * modules/sys_socket (Makefile.am): Likewise.
16855         * modules/sys_time (Makefile.am): Likewise.
16856
16857 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
16858
16859         * modules/gettimeofday (License): Change from GPL to LGPL, since
16860         gettimeofday is a library function.
16861
16862 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16863
16864         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
16865
16866 2007-01-21  Bruno Haible  <bruno@clisp.org>
16867
16868         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
16869
16870 2007-01-21  Bruno Haible  <bruno@clisp.org>
16871
16872         * modules/striconveha: New file.
16873         * lib/striconveha.h: New file.
16874         * lib/striconveha.c: New file.
16875         * MODULES.html.sh (Internationalization functions): Add striconveha.
16876         * lib/striconv.c (str_iconv): Optimize the case of an empty input
16877         string.
16878         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
16879
16880 2007-01-21  Bruno Haible  <bruno@clisp.org>
16881
16882         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
16883         * lib/striconveh.c (str_iconveh): Likewise.
16884
16885 2007-01-21  Bruno Haible  <bruno@clisp.org>
16886
16887         * lib/striconveh.h (mem_iconveh): New declaration.
16888         * lib/striconveh.c (mem_iconveh): New function.
16889         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
16890
16891 2007-01-21  Bruno Haible  <bruno@clisp.org>
16892
16893         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
16894
16895         * lib/striconveh.h (mem_cd_iconveh): Change specification.
16896         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
16897         original result buffer.
16898         (str_cd_iconveh): Update.
16899         * tests/test-striconveh.c (main): Update.
16900
16901         * lib/striconv.h (mem_cd_iconv): Change specification.
16902         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
16903         result buffer.
16904         (str_cd_iconv): Update.
16905         * tests/test-striconv.c (main): Update.
16906
16907 2007-01-21  Bruno Haible  <bruno@clisp.org>
16908
16909         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
16910
16911 2007-01-20  Jim Meyering  <jim@meyering.net>
16912
16913         * lib/userspec.c (parse_with_separator): If a user or group string
16914         starts with "+", skip the corresponding name-to-ID look-up, since
16915         such a look-up must fail: user and group names may not include "+".
16916
16917 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16918
16919         * lib/poll.c: Include sys/time.h and time.h unconditionally,
16920         since we now assume the sys_time module.
16921         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
16922         check for sys/time.h; no longer needed.
16923         * modules/poll (Depends-on): Depend on sys_time.
16924
16925 2007-01-18  Bruno Haible  <bruno@clisp.org>
16926
16927         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
16928         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
16929
16930         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
16931         gettimeofday.
16932
16933         * tests/test-gettimeofday.c: Include <time.h>.
16934         (dummy): Remove variable.
16935
16936         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
16937         gl_HEADER_SYS_TIME_H.
16938         (gl_HEADER_SYS_TIME_H): New macro.
16939
16940         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
16941         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
16942         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
16943         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
16944         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
16945         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
16946         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
16947         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
16948         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
16949         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
16950         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
16951
16952         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
16953         last change; it caused a compilation error when cross-compiling to
16954         Cygwin.
16955
16956 2007-01-18  Jim Meyering  <jim@meyering.net>
16957
16958         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
16959         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
16960         than the race-prone "test -d sys || mkdir sys".
16961         (configure.ac): Use AC_PROG_MKDIR_P.
16962         * modules/sys_select: Likewise.
16963         * modules/sys_socket: Likewise.
16964         * modules/sys_time: Likewise.
16965
16966 2007-01-18  Eric Blake  <ebb9@byu.net>
16967
16968         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
16969         replace gettimeofday.
16970         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
16971         name, to avoid infinite recursion.
16972
16973 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
16974
16975         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
16976         module sys_time.
16977         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
16978         assume timespec.h defines struct timeval.
16979         * lib/settime.c: Likewise.
16980         * lib/utimens.c: Likewise.
16981         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
16982         since we now assume the gettimeofday module.
16983         * lib/tempname.c (__gen_tempname): Likewise.
16984         * lib/gettimeofday.h: Remove.
16985         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
16986         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
16987         Include <time.h>, for 'time()'.
16988         (localtime_buffer_addr): Also use this workaround if
16989         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
16990         to simplify the uses.  All uses changed.
16991         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
16992         that #undef is inside {}, and 'const' follows type name consistently.
16993         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
16994         (gettimeofday): Do not use the maximum possible value for
16995         tv->tv_usec, since that might break usages other than ls.c.
16996         Instead, we'll leave ls.c alone.  This undoes today's patch
16997         by Bruno.  Add a compile-time warning for 1s-clock resolution;
16998         we've never observed the problem but might as well keep the
16999         canary.
17000         * lib/nanosleep.c: Include timespec.h first, for interface check.
17001         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
17002         now assume the sys_time module.
17003         * lib/tempname.c: Likewise.
17004         * lib/timespec.h: Likewise.
17005         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
17006         needed.
17007         * lib/strftime.c: Likewise.
17008         * lib/timespec.h: Likewise.
17009         * lib/posixtm.c: Include posixtm.h first, for interface check.
17010         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
17011         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
17012         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
17013         * lib/sys_time_.h: New file.
17014         * lib/timespec.h (struct timespec): Use long int, not long.
17015         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
17016         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
17017         Remove obsolescent call to AC_HEADER_TIME.
17018         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17019         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17020         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
17021         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
17022         Likewise.
17023         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
17024         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
17025         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
17026         into the sys_time module.  Check for gettimeofday just once.
17027         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
17028         for gettimeofday signature to just check the signature.  Merely
17029         compile it, since linking doesn't test signature.  Improve test for
17030         whether gettimeofday.o is actually needed.
17031         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
17032         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
17033         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
17034         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17035         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
17036         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
17037         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
17038         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
17039         than worrying about sys/time.h.
17040         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17041         Don't bother worrying about TIME_WITH_SYS_TIME.
17042         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17043         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
17044         * m4/sys_time_h.m4: New file.
17045         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
17046         Don't include sys/time.h.  Return from main rather than exiting.
17047         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
17048         all uses changed.
17049         * modules/gethrxtime (Depends-on): Add sys_time.
17050         * modules/gettime (Depends-on): Likewise.
17051         * modules/gettimeofday (Depends-on): Likewise.
17052         * modules/nanosleep (Depends-on): Likewise.
17053         * modules/settime (Depends-on): Likewise.
17054         * modules/tempname (Depends-on): Likewise.
17055         * modules/utimens (Depends-on): Likewise.
17056         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
17057         (Include:) Change back to <sys/time.h>.
17058         (Maintainer:) Add self.
17059         * modules/sys_time: New file.
17060         * modules/tempname (Depends-on): Add gettimeofday.
17061         * tests/test-gettimeofday.c: Include <sys/time.h>
17062         rather than gettimeofday.h.
17063
17064 2007-01-17  Bruno Haible  <bruno@clisp.org>
17065
17066         * gnulib-tool (func_get_license): Revert last patch. Instead, let
17067         the license default to GPL.
17068         (func_create_testdir): Don't complain if a module is LGPL and its
17069         tests module depends on GPLed modules.
17070
17071 2007-01-17  Bruno Haible  <bruno@clisp.org>
17072
17073         * lib/gettimeofday.c (gettimeofday): Add code for the case
17074         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
17075         maximum possible value for tv->tv_usec, rather than the minimum one.
17076
17077 2005-10-08  Martin Lambers  <marlam@marlam.de>
17078 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17079 2007-01-16  Bruno Haible  <bruno@clisp.org>
17080
17081         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
17082         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
17083         gl_FUNC_GETTIMEOFDAY.
17084         (Include): Add gettimeofday.h.
17085         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
17086         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
17087         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
17088         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
17089         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
17090         * lib/gettimeofday.h: New file.
17091         * lib/gettimeofday.c: Include <sys/timeb.h>.
17092         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
17093         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17094         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
17095         fall back on time().
17096
17097         * tests/test-gettimeofday.c: New file.
17098         * modules/gettimeofday-tests: New file.
17099
17100 2007-01-16  Eric Blake  <ebb9@byu.net>
17101
17102         * modules/fnmatch (Depends-on): Depend on wchar.
17103         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
17104         * m4/fnmatch.m4: Likewise.
17105         * modules/mbchar (Makefile.am): Assume <wchar.h>.
17106         * m4/mbchar.m4: Likewise.
17107         * modules/mbswidth (Depends-on): Depend on wchar.
17108         * lib/mbswidth.c: Assume <wchar.h>.
17109         * m4/mbswidth.m4: Likewise.
17110         * modules/quotearg (Depends-on): Depend on wchar.
17111         * lib/quotearg.c: Assume <wchar.h>.
17112         * m4/quotearg.m4: Likewise.
17113         * modules/regex (Depends-on): Depend on wchar.
17114         * lib/regex_internal.h: Assume <wchar.h>.
17115         * m4/regex.m4: Likewise.
17116         * modules/stdint (Depends-on): Depend on wchar.
17117         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
17118         * m4/stdint.m4: Likewise.
17119         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
17120         * modules/strftime (Depends-on): Depend on wchar.
17121         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
17122         * modules/strtol (Depends-on): Depend on wchar.
17123         * lib/strtol.c: Assume <wchar.h>.
17124         * modules/wcwidth (Depends-on): Depend on wchar.
17125         * lib/wcwidth.h: Assume <wchar.h>.
17126         * m4/wcwidth.m4: Likewise.
17127
17128 2007-01-16  Bruno Haible  <bruno@clisp.org>
17129
17130         * modules/csharpexec-script: New, created from...
17131         * modules/csharpexec: ... this.
17132
17133 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
17134
17135         * modules/javaexec-script: New, created from...
17136         * modules/javaexec: ... this.
17137
17138 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17139
17140         * modules/poll (Dependencies): Add sys_select.
17141
17142 2007-01-15  Jim Meyering  <jim@meyering.net>
17143
17144         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
17145         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
17146         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
17147         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
17148
17149 2007-01-15  Bruno Haible  <bruno@clisp.org>
17150
17151         * modules/striconveh: New file.
17152         * lib/striconveh.h: New file.
17153         * lib/striconveh.c: New file.
17154         * MODULES.html.sh (Internationalization functions): Add striconveh.
17155
17156         * modules/striconveh-tests: New file.
17157         * tests/test-striconveh.c: New file.
17158
17159 2007-01-15  Bruno Haible  <bruno@clisp.org>
17160
17161         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
17162         not from GNU libiconv or GNU libc.
17163
17164 2007-01-15  Bruno Haible  <bruno@clisp.org>
17165
17166         * doc/gnulib-intro.texi (Copyright): Explain the different license
17167         terms for module descriptions, autoconf macros, tests, documentation.
17168
17169 2007-01-14  Bruno Haible  <bruno@clisp.org>
17170
17171         * modules/striconv-tests: New file.
17172         * tests/test-striconv.c: New file.
17173
17174 2007-01-14  Bruno Haible  <bruno@clisp.org>
17175
17176         * modules/iconv-tests: New file.
17177         * tests/test-iconv.c: New file.
17178
17179 2007-01-14  Bruno Haible  <bruno@clisp.org>
17180
17181         * gnulib-tool (func_get_license): For test modules, use the license of
17182         the main module.
17183
17184 2007-01-14  Bruno Haible  <bruno@clisp.org>
17185
17186         * modules/iconv (Include): Clarify that <iconv.h> can only be included
17187         if iconv is found to exist.
17188
17189 2007-01-14  Bruno Haible  <bruno@clisp.org>
17190
17191         * modules/c-ctype-tests: New file.
17192         * tests/test-c-ctype.c: New file.
17193
17194 2007-01-14  Bruno Haible  <bruno@clisp.org>
17195
17196         * modules/binary-io-tests: New file.
17197         * tests/test-binary-io.sh: New file.
17198         * tests/test-binary-io.c: New file.
17199
17200 2007-01-14  Bruno Haible  <bruno@clisp.org>
17201
17202         * modules/array-oset-tests: New file.
17203         * tests/test-array_oset.c: New file.
17204
17205 2007-01-14  Bruno Haible  <bruno@clisp.org>
17206
17207         * modules/array-list-tests: New file.
17208         * tests/test-array_list.c: New file.
17209
17210 2007-01-14  Bruno Haible  <bruno@clisp.org>
17211
17212         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
17213         and make.
17214         Reported by Simon Josefsson in
17215         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
17216
17217 2007-01-14  Bruno Haible  <bruno@clisp.org>
17218
17219         * modules/allocsa-tests: New file.
17220         * tests/test-allocsa.c: New file.
17221
17222 2007-01-14  Bruno Haible  <bruno@clisp.org>
17223
17224         * modules/fchdir (Depends-on): Add absolute-header.
17225         * modules/unistd (Depends-on): Likewise.
17226
17227 2006-12-30  Bruno Haible  <bruno@clisp.org>
17228
17229         * modules/fchdir: New file.
17230         * modules/unistd (Files): Add lib/unistd_.h.
17231         (Makefile.am): Generate unistd.h from unistd_.h.
17232         * lib/fchdir.c: New file.
17233         * lib/dirent_.h: New file.
17234         * lib/unistd_.h: New file.
17235         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
17236         * m4/fchdir.m4: New file.
17237         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
17238         (gl_HEADER_UNISTD): Invoke it.
17239         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
17240         function.
17241         * lib/backupfile.c (opendir, closedir): Undefine.
17242         * lib/chown.c (open, close): Undefine.
17243         * lib/clean-temp.c (open, close): Undefine.
17244         * lib/copy-file.c (open, close): Undefine.
17245         * lib/execute.c (open, close): Undefine.
17246         * lib/fsusage.c (open, close): Undefine.
17247         * lib/gc-gnulib.c (open, close): Undefine.
17248         * lib/getcwd.c (opendir, closedir): Undefine.
17249         * lib/glob.c (opendir, closedir): Undefine.
17250         * lib/javacomp.c (open, close): Undefine.
17251         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
17252         * lib/openat-proc.c (open, close): Undefine.
17253         * lib/pagealign_alloc.c (open, close): Undefine.
17254         * lib/pipe.c (open, close): Undefine.
17255         * lib/progreloc.c (open, close): Undefine.
17256         * lib/savedir.c (opendir, closedir): Undefine.
17257         * lib/utime.c (open, close): Undefine.
17258         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
17259
17260 2007-01-10  Bruno Haible  <bruno@clisp.org>
17261
17262         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
17263
17264 2007-01-12  Eric Blake  <ebb9@byu.net>
17265
17266         Provide a robust <wchar.h>.  Further simplifications are now
17267         possible in other modules, but not included here.
17268         * modules/wchar: New module.
17269         * m4/wchar.m4: New file.
17270         * lib/wchar_.h: Likewise.
17271         * modules/mbchar (Depends-on): Depend on wchar, as the first use
17272         of the new module.
17273         * MODULES.html.sh (Extended multibyte and wide character utilities):
17274         New section.
17275
17276 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
17277
17278         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
17279         to a reasonable default for memory allocation.
17280         (xreadlink): Don't allocate a huge buffer, to work around a buggy
17281         file system that reports garbage st_size values for symlinks.
17282         Problem reported by Liyang Hu.
17283
17284 2007-01-11  Simon Josefsson  <simon@josefsson.org>
17285
17286         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
17287         Emacs .#* auto-save files).
17288
17289 2007-01-11  Bruno Haible  <bruno@clisp.org>
17290
17291         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
17292         directory.
17293
17294 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17295
17296         Use @...@ consistently in lib/wctype_.h.
17297         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
17298         on it being set to 1 or 0.
17299         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
17300         go back to AC_SUBSTing it.
17301         * modules/wctype (Makefile.am): Undo previous change.
17302
17303 2007-01-10  Eric Blake  <ebb9@byu.net>
17304
17305         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
17306         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
17307         * modules/wctype (Makefile.am): Likewise.
17308         Reported by Chris McGuire.
17309
17310 2007-01-10  Jim Meyering  <jim@meyering.net>
17311
17312         fts.c: a small readability/maintainability improvement
17313         * lib/fts.c (fts_read): Make this code slightly more readable and
17314         maintainable by hoisting the "sp->fts_cur = p" assignments to
17315         immediately follow the statements that set P.  Derived from
17316         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
17317
17318 2007-01-10  Eric Blake  <ebb9@byu.net>
17319
17320         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
17321         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
17322         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17323         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17324         Reported by Chris McGuire.
17325
17326 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17327
17328         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
17329         in sed script.
17330
17331 2007-01-09  Bruno Haible  <bruno@clisp.org>
17332
17333         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
17334         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
17335         variables.
17336         (func_module): Use them.
17337
17338 2007-01-09  Bruno Haible  <bruno@clisp.org>
17339
17340         * modules/unistr/base: New file.
17341         * lib/unistr.h: New file.
17342
17343         * modules/unistr/u8-to-u16: New file.
17344         * lib/unistr/u8-to-u16.c: New file.
17345
17346         * modules/unistr/u8-to-u32: New file.
17347         * lib/unistr/u8-to-u32.c: New file.
17348
17349         * modules/unistr/u16-to-u8: New file.
17350         * lib/unistr/u16-to-u8.c: New file.
17351
17352         * modules/unistr/u16-to-u32: New file.
17353         * lib/unistr/u16-to-u32.c: New file.
17354
17355         * modules/unistr/u32-to-u8: New file.
17356         * lib/unistr/u32-to-u8.c: New file.
17357
17358         * modules/unistr/u32-to-u16: New file.
17359         * lib/unistr/u32-to-u16.c: New file.
17360
17361         * modules/unistr/u8-check: New file.
17362         * modules/unistr/u16-check: New file.
17363         * modules/unistr/u32-check: New file.
17364         * lib/unistr/u8-check.c: New file.
17365         * lib/unistr/u16-check.c: New file.
17366         * lib/unistr/u32-check.c: New file.
17367
17368         * modules/unistr/u8-chr: New file.
17369         * modules/unistr/u16-chr: New file.
17370         * modules/unistr/u32-chr: New file.
17371         * lib/unistr/u8-chr.c: New file.
17372         * lib/unistr/u16-chr.c: New file.
17373         * lib/unistr/u32-chr.c: New file.
17374
17375         * modules/unistr/u8-cmp: New file.
17376         * modules/unistr/u16-cmp: New file.
17377         * modules/unistr/u32-cmp: New file.
17378         * lib/unistr/u8-cmp.c: New file.
17379         * lib/unistr/u16-cmp.c: New file.
17380         * lib/unistr/u32-cmp.c: New file.
17381
17382         * modules/unistr/u8-cpy: New file.
17383         * modules/unistr/u16-cpy: New file.
17384         * modules/unistr/u32-cpy: New file.
17385         * lib/unistr/u8-cpy.c: New file.
17386         * lib/unistr/u16-cpy.c: New file.
17387         * lib/unistr/u32-cpy.c: New file.
17388         * lib/unistr/u-cpy.h: New file.
17389
17390         * modules/unistr/u8-cpy-alloc: New file.
17391         * modules/unistr/u16-cpy-alloc: New file.
17392         * modules/unistr/u32-cpy-alloc: New file.
17393         * lib/unistr/u8-cpy-alloc.c: New file.
17394         * lib/unistr/u16-cpy-alloc.c: New file.
17395         * lib/unistr/u32-cpy-alloc.c: New file.
17396         * lib/unistr/u-cpy-alloc.h: New file.
17397
17398         * modules/unistr/u8-endswith: New file.
17399         * modules/unistr/u16-endswith: New file.
17400         * modules/unistr/u32-endswith: New file.
17401         * lib/unistr/u8-endswith.c: New file.
17402         * lib/unistr/u16-endswith.c: New file.
17403         * lib/unistr/u32-endswith.c: New file.
17404         * lib/unistr/u-endswith.h: New file.
17405
17406         * modules/unistr/u8-mblen: New file.
17407         * modules/unistr/u16-mblen: New file.
17408         * modules/unistr/u32-mblen: New file.
17409         * lib/unistr/u8-mblen.c: New file.
17410         * lib/unistr/u16-mblen.c: New file.
17411         * lib/unistr/u32-mblen.c: New file.
17412
17413         * modules/unistr/u8-mbtouc: New file.
17414         * modules/unistr/u16-mbtouc: New file.
17415         * modules/unistr/u32-mbtouc: New file.
17416         * lib/unistr/u8-mbtouc.c: New file.
17417         * lib/unistr/u16-mbtouc.c: New file.
17418         * lib/unistr/u32-mbtouc.c: New file.
17419
17420         * modules/unistr/u8-mbtouc-safe: New file.
17421         * modules/unistr/u16-mbtouc-safe: New file.
17422         * modules/unistr/u32-mbtouc-safe: New file.
17423         * lib/unistr/u8-mbtouc-safe.c: New file.
17424         * lib/unistr/u16-mbtouc-safe.c: New file.
17425         * lib/unistr/u32-mbtouc-safe.c: New file.
17426
17427         * modules/unistr/u8-move: New file.
17428         * modules/unistr/u16-move: New file.
17429         * modules/unistr/u32-move: New file.
17430         * lib/unistr/u8-move.c: New file.
17431         * lib/unistr/u16-move.c: New file.
17432         * lib/unistr/u32-move.c: New file.
17433         * lib/unistr/u-move.h: New file.
17434
17435         * modules/unistr/u8-next: New file.
17436         * modules/unistr/u16-next: New file.
17437         * modules/unistr/u32-next: New file.
17438         * lib/unistr/u8-next.c: New file.
17439         * lib/unistr/u16-next.c: New file.
17440         * lib/unistr/u32-next.c: New file.
17441
17442         * modules/unistr/u8-prev: New file.
17443         * modules/unistr/u16-prev: New file.
17444         * modules/unistr/u32-prev: New file.
17445         * lib/unistr/u8-prev.c: New file.
17446         * lib/unistr/u16-prev.c: New file.
17447         * lib/unistr/u32-prev.c: New file.
17448
17449         * modules/unistr/u8-set: New file.
17450         * modules/unistr/u16-set: New file.
17451         * modules/unistr/u32-set: New file.
17452         * lib/unistr/u8-set.c: New file.
17453         * lib/unistr/u16-set.c: New file.
17454         * lib/unistr/u32-set.c: New file.
17455         * lib/unistr/u-set.h: New file.
17456
17457         * modules/unistr/u8-startswith: New file.
17458         * modules/unistr/u16-startswith: New file.
17459         * modules/unistr/u32-startswith: New file.
17460         * lib/unistr/u8-startswith.c: New file.
17461         * lib/unistr/u16-startswith.c: New file.
17462         * lib/unistr/u32-startswith.c: New file.
17463         * lib/unistr/u-startswith.h: New file.
17464
17465         * modules/unistr/u8-stpcpy: New file.
17466         * modules/unistr/u16-stpcpy: New file.
17467         * modules/unistr/u32-stpcpy: New file.
17468         * lib/unistr/u8-stpcpy.c: New file.
17469         * lib/unistr/u16-stpcpy.c: New file.
17470         * lib/unistr/u32-stpcpy.c: New file.
17471         * lib/unistr/u-stpcpy.h: New file.
17472
17473         * modules/unistr/u8-stpncpy: New file.
17474         * modules/unistr/u16-stpncpy: New file.
17475         * modules/unistr/u32-stpncpy: New file.
17476         * lib/unistr/u8-stpncpy.c: New file.
17477         * lib/unistr/u16-stpncpy.c: New file.
17478         * lib/unistr/u32-stpncpy.c: New file.
17479         * lib/unistr/u-stpncpy.h: New file.
17480
17481         * modules/unistr/u8-strcat: New file.
17482         * modules/unistr/u16-strcat: New file.
17483         * modules/unistr/u32-strcat: New file.
17484         * lib/unistr/u8-strcat.c: New file.
17485         * lib/unistr/u16-strcat.c: New file.
17486         * lib/unistr/u32-strcat.c: New file.
17487         * lib/unistr/u-strcat.h: New file.
17488
17489         * modules/unistr/u8-strchr: New file.
17490         * modules/unistr/u16-strchr: New file.
17491         * modules/unistr/u32-strchr: New file.
17492         * lib/unistr/u8-strchr.c: New file.
17493         * lib/unistr/u16-strchr.c: New file.
17494         * lib/unistr/u32-strchr.c: New file.
17495
17496         * modules/unistr/u8-strcmp: New file.
17497         * modules/unistr/u16-strcmp: New file.
17498         * modules/unistr/u32-strcmp: New file.
17499         * lib/unistr/u8-strcmp.c: New file.
17500         * lib/unistr/u16-strcmp.c: New file.
17501         * lib/unistr/u32-strcmp.c: New file.
17502
17503         * modules/unistr/u8-strcpy: New file.
17504         * modules/unistr/u16-strcpy: New file.
17505         * modules/unistr/u32-strcpy: New file.
17506         * lib/unistr/u8-strcpy.c: New file.
17507         * lib/unistr/u16-strcpy.c: New file.
17508         * lib/unistr/u32-strcpy.c: New file.
17509         * lib/unistr/u-strcpy.h: New file.
17510
17511         * modules/unistr/u8-strcspn: New file.
17512         * modules/unistr/u16-strcspn: New file.
17513         * modules/unistr/u32-strcspn: New file.
17514         * lib/unistr/u8-strcspn.c: New file.
17515         * lib/unistr/u16-strcspn.c: New file.
17516         * lib/unistr/u32-strcspn.c: New file.
17517         * lib/unistr/u-strcspn.h: New file.
17518
17519         * modules/unistr/u8-strdup: New file.
17520         * modules/unistr/u16-strdup: New file.
17521         * modules/unistr/u32-strdup: New file.
17522         * lib/unistr/u8-strdup.c: New file.
17523         * lib/unistr/u16-strdup.c: New file.
17524         * lib/unistr/u32-strdup.c: New file.
17525         * lib/unistr/u-strdup.h: New file.
17526
17527         * modules/unistr/u8-strlen: New file.
17528         * modules/unistr/u16-strlen: New file.
17529         * modules/unistr/u32-strlen: New file.
17530         * lib/unistr/u8-strlen.c: New file.
17531         * lib/unistr/u16-strlen.c: New file.
17532         * lib/unistr/u32-strlen.c: New file.
17533         * lib/unistr/u-strlen.h: New file.
17534
17535         * modules/unistr/u8-strmblen: New file.
17536         * modules/unistr/u16-strmblen: New file.
17537         * modules/unistr/u32-strmblen: New file.
17538         * lib/unistr/u8-strmblen.c: New file.
17539         * lib/unistr/u16-strmblen.c: New file.
17540         * lib/unistr/u32-strmblen.c: New file.
17541
17542         * modules/unistr/u8-strmbtouc: New file.
17543         * modules/unistr/u16-strmbtouc: New file.
17544         * modules/unistr/u32-strmbtouc: New file.
17545         * lib/unistr/u8-strmbtouc.c: New file.
17546         * lib/unistr/u16-strmbtouc.c: New file.
17547         * lib/unistr/u32-strmbtouc.c: New file.
17548
17549         * modules/unistr/u8-strncat: New file.
17550         * modules/unistr/u16-strncat: New file.
17551         * modules/unistr/u32-strncat: New file.
17552         * lib/unistr/u8-strncat.c: New file.
17553         * lib/unistr/u16-strncat.c: New file.
17554         * lib/unistr/u32-strncat.c: New file.
17555         * lib/unistr/u-strncat.h: New file.
17556
17557         * modules/unistr/u8-strncmp: New file.
17558         * modules/unistr/u16-strncmp: New file.
17559         * modules/unistr/u32-strncmp: New file.
17560         * lib/unistr/u8-strncmp.c: New file.
17561         * lib/unistr/u16-strncmp.c: New file.
17562         * lib/unistr/u32-strncmp.c: New file.
17563
17564         * modules/unistr/u8-strncpy: New file.
17565         * modules/unistr/u16-strncpy: New file.
17566         * modules/unistr/u32-strncpy: New file.
17567         * lib/unistr/u8-strncpy.c: New file.
17568         * lib/unistr/u16-strncpy.c: New file.
17569         * lib/unistr/u32-strncpy.c: New file.
17570         * lib/unistr/u-strncpy.h: New file.
17571
17572         * modules/unistr/u8-strnlen: New file.
17573         * modules/unistr/u16-strnlen: New file.
17574         * modules/unistr/u32-strnlen: New file.
17575         * lib/unistr/u8-strnlen.c: New file.
17576         * lib/unistr/u16-strnlen.c: New file.
17577         * lib/unistr/u32-strnlen.c: New file.
17578         * lib/unistr/u-strnlen.h: New file.
17579
17580         * modules/unistr/u8-strpbrk: New file.
17581         * modules/unistr/u16-strpbrk: New file.
17582         * modules/unistr/u32-strpbrk: New file.
17583         * lib/unistr/u8-strpbrk.c: New file.
17584         * lib/unistr/u16-strpbrk.c: New file.
17585         * lib/unistr/u32-strpbrk.c: New file.
17586         * lib/unistr/u-strpbrk.h: New file.
17587
17588         * modules/unistr/u8-strrchr: New file.
17589         * modules/unistr/u16-strrchr: New file.
17590         * modules/unistr/u32-strrchr: New file.
17591         * lib/unistr/u8-strrchr.c: New file.
17592         * lib/unistr/u16-strrchr.c: New file.
17593         * lib/unistr/u32-strrchr.c: New file.
17594
17595         * modules/unistr/u8-strspn: New file.
17596         * modules/unistr/u16-strspn: New file.
17597         * modules/unistr/u32-strspn: New file.
17598         * lib/unistr/u8-strspn.c: New file.
17599         * lib/unistr/u16-strspn.c: New file.
17600         * lib/unistr/u32-strspn.c: New file.
17601         * lib/unistr/u-strspn.h: New file.
17602
17603         * modules/unistr/u8-strstr: New file.
17604         * modules/unistr/u16-strstr: New file.
17605         * modules/unistr/u32-strstr: New file.
17606         * lib/unistr/u8-strstr.c: New file.
17607         * lib/unistr/u16-strstr.c: New file.
17608         * lib/unistr/u32-strstr.c: New file.
17609         * lib/unistr/u-strstr.h: New file.
17610
17611         * modules/unistr/u8-strtok: New file.
17612         * modules/unistr/u16-strtok: New file.
17613         * modules/unistr/u32-strtok: New file.
17614         * lib/unistr/u8-strtok.c: New file.
17615         * lib/unistr/u16-strtok.c: New file.
17616         * lib/unistr/u32-strtok.c: New file.
17617         * lib/unistr/u-strtok.h: New file.
17618
17619         * modules/unistr/u8-uctomb: New file.
17620         * modules/unistr/u16-uctomb: New file.
17621         * modules/unistr/u32-uctomb: New file.
17622         * lib/unistr/u8-uctomb.c: New file.
17623         * lib/unistr/u16-uctomb.c: New file.
17624         * lib/unistr/u32-uctomb.c: New file.
17625
17626         * MODULES.html.sh (Unicode string functions): Add the new modules.
17627
17628 2007-01-08  Bruno Haible  <bruno@clisp.org>
17629
17630         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
17631         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
17632         subdirectories.
17633
17634 2007-01-08  Karl Berry  <karl@gnu.org>
17635
17636         * doc/error.texi: mention that main() fns must set program_name
17637         when progname is used.
17638
17639 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
17640
17641         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
17642         WCTYPE_H is empty, for the benefit of builds from non-distclean
17643         directories.  Problem reported by Eric Blake in
17644         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
17645
17646 2007-01-08  Bruno Haible  <bruno@clisp.org>
17647
17648         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
17649         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
17650         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
17651         PROVIDE_CANONICALIZE_FILENAME_MODE.
17652         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
17653
17654 2007-01-08  Bruno Haible  <bruno@clisp.org>
17655
17656         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
17657         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
17658         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
17659         * lib/fts.c: Likewise.
17660         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
17661
17662 2006-12-25  Bruno Haible  <bruno@clisp.org>
17663
17664         * modules/utf8-ucs4-safe: New file.
17665         * lib/utf8-ucs4-safe.h: New file.
17666         * lib/unistr/utf8-ucs4-safe.c: New file.
17667
17668         * modules/utf16-ucs4-safe: New file.
17669         * lib/utf16-ucs4-safe.h: New file.
17670         * lib/unistr/utf16-ucs4-safe.c: New file.
17671
17672         * MODULES.html.sh (Unicode string functions): Add the new modules.
17673
17674 2007-01-08  Bruno Haible  <bruno@clisp.org>
17675
17676         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
17677         (Depends-on): Add unitypes.
17678         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
17679         (u8_mbtouc_aux): Move out to separate file.
17680         (u8_mbtouc): Use ucs4_t, uint8_t types.
17681         * lib/unistr/utf8-ucs4.c: New file.
17682
17683         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
17684         (Depends-on): Add unitypes.
17685         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
17686         (u16_mbtouc_aux): Move out to separate file.
17687         (u16_mbtouc): Use ucs4_t, uint16_t types.
17688         * lib/unistr/utf16-ucs4.c: New file.
17689
17690         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
17691         (Depends-on): Add unitypes.
17692         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
17693         (u8_uctomb_aux): Move out to separate file.
17694         (u8_uctomb): Use ucs4_t, uint8_t types.
17695         * lib/unistr/ucs4-utf8.c: New file.
17696
17697         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
17698         (Depends-on): Add unitypes.
17699         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
17700         (u16_uctomb_aux): Move out to separate file.
17701         (u16_uctomb): Use ucs4_t, uint16_t types.
17702         * lib/unistr/ucs4-utf16.c: New file.
17703
17704 2006-12-25  Bruno Haible  <bruno@clisp.org>
17705
17706         * modules/unitypes: New file.
17707         * lib/unitypes.h: New file.
17708         * MODULES.html.sh (func_all_modules): New section "Unicode string
17709         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
17710         this section. Add unitypes.
17711
17712 2007-01-08  Bruno Haible  <bruno@clisp.org>
17713
17714         Avoid variable names that conflict with those from libtool.
17715         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
17716         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
17717         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
17718         library_names_spec to acl_library_names_spec, hardcode_* to
17719         acl_hardcode_*.
17720         Reported by Ralf Wildenhues.
17721
17722 2007-01-08  Bruno Haible  <bruno@clisp.org>
17723
17724         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
17725         definition.
17726         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
17727         definition.
17728         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
17729         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
17730         definition.
17731         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
17732         definition.
17733         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
17734         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
17735         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
17736         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
17737         definition.
17738         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
17739         definition.
17740         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
17741         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
17742         GC_USE_<algorithm>.
17743         * lib/gc-libgcrypt.c: Likewise.
17744         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
17745         * modules/gc-arctwo (configure.ac): Likewise.
17746         * modules/gc-des (configure.ac): Likewise.
17747         * modules/gc-hmac-md5 (configure.ac): Likewise.
17748         * modules/gc-hmac-sha1 (configure.ac): Likewise.
17749         * modules/gc-md2 (configure.ac): Likewise.
17750         * modules/gc-md4 (configure.ac): Likewise.
17751         * modules/gc-md5 (configure.ac): Likewise.
17752         * modules/gc-random (configure.ac): Likewise.
17753         * modules/gc-rijndael (configure.ac): Likewise.
17754         * modules/gc-sha1 (configure.ac): Likewise.
17755
17756 2007-01-08  Bruno Haible  <bruno@clisp.org>
17757
17758         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
17759         macro definition.
17760         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
17761         definition.
17762         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
17763         definition.
17764         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
17765         * modules/fcntl-safer (configure.ac): Likewise.
17766         * modules/fopen-safer (configure.ac): Likewise.
17767         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
17768         GNULIB_FWRITEERROR macro definition.
17769
17770 2007-01-08  Bruno Haible  <bruno@clisp.org>
17771
17772         * m4/gnulib-common.m4: New file.
17773         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
17774         (func_get_filelist): Add m4/gnulib-common.m4.
17775
17776 2007-01-08  Bruno Haible  <bruno@clisp.org>
17777
17778         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
17779         command.
17780
17781 2007-01-08  Jim Meyering  <jim@meyering.net>
17782
17783         Use a more robust test for a "can't happen" condition.
17784         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
17785         narrowed the st_size value.  Presuming the "can't happen" condition
17786         is true, that narrowing could conceivably convert an invalid st_size
17787         value into a valid one.  Instead, use a change based on Matthew
17788         Woehlke's original patch.
17789
17790         Slight readability improvement: use an assert-like macro
17791         in place of literal "abort ()" uses.
17792         * lib/fts.c (fts_assert): Define.
17793         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
17794         Use this macro instead of a bare 'abort'.
17795
17796 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
17797
17798         Don't worry about using IRIX 5.3's wctype.h broken definitions;
17799         simply work around them.
17800         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
17801         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
17802         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
17803         declaring.
17804         Don't bother to define as macros, since the standard doesn't require it.
17805         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
17806         longer worry about IRIX 5.3.
17807         (HAVE_WCTYPE_CTMP_BUG): Remove.
17808
17809 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
17810
17811         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
17812         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
17813         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
17814         Problems reported by Georg Schwarz for IRIX 5.3.
17815
17816         * gnulib-tool (autoconf_minversion): Take the maximum version number
17817         found, not the minimum.  Problem reported by James Youngman.
17818
17819 2007-01-03  Karl Berry  <karl@gnu.org>
17820
17821         * doc/error.texi: new file, explaining interaction with progname.
17822         * doc/gnulib.texi: include it.  Update copyright.
17823
17824 2007-01-03  Simon Josefsson  <simon@josefsson.org>
17825
17826         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
17827         AC_CANONICAL_HOST, to improve autobuild outputs.
17828
17829 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
17830             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17831
17832         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
17833         sockets, server sockets, and other file descriptors.  Count errors
17834         to compute the return value.  Reorder the code a bit to be easier
17835         to follow.  Don't set event bits that were not requested (except
17836         POLLERR and POLLHUP).
17837
17838 2007-01-01  Bruno Haible  <bruno@clisp.org>
17839
17840         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
17841
17842 2007-01-03  Jim Meyering  <jim@meyering.net>
17843
17844         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
17845
17846 2007-01-02  Bruno Haible  <bruno@clisp.org>
17847
17848         * modules/settime (Include): Require timespec.h.
17849         * modules/nanosleep (Include): Likewise.
17850
17851 2007-01-01  Bruno Haible  <bruno@clisp.org>
17852
17853         * gnulib-tool (func_emit_copyright_notice): Bump year.
17854         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
17855
17856 2007-01-01  Bruno Haible  <bruno@clisp.org>
17857
17858         Improve support for OpenBSD.
17859         * build-aux/config.rpath (libname_spec): Export.
17860         (library_names_spec): New variable. Export.
17861         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
17862         library_names_spec from the config.rpath output. Locate shared library
17863         through the name pattern in library_names_spec.
17864
17865 2007-01-01  Eric Blake  <ebb9@byu.net>
17866
17867         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
17868
17869 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
17870
17871         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
17872         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
17873         assume the C locale, and avoid an "eval" that could cause trouble.
17874         Problem with SORT reported by Bob Proulx.
17875
17876         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
17877         Define.  Trivial patch from Henning Nielsen Lund, originally
17878         sent to bug-grep@gnu.org today.
17879
17880 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17881
17882         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
17883         struct stat.  Problem reported by Henning Nielsen Lund.
17884         * lib/acl.c: Include acl.h first, to check interface.  Don't
17885         bother to include sys/types.h and sys/stat.h again.
17886
17887 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17888
17889         Import the following change from libc; problem reported by
17890         Sven Verdoolaege.
17891
17892         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
17893
17894         [BZ #1373]
17895         * lib/argp.h: Remove __NTH for __argp_usage inline function.
17896
17897 2006-12-28  Jim Meyering  <jim@meyering.net>
17898
17899         * build-aux/announce-gen: Do not assume that the package
17900         builds any of tar.gz, tar.bz2, and .xdelta files.
17901         Suggestion from Simon Josefsson.
17902
17903 2006-12-28  Simon Josefsson  <simon@josefsson.org>
17904
17905         * modules/announce-gen: New file.
17906
17907 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17908
17909         * lib/mbchar.h: Just include <wctype.h>; the wctype module
17910         handles its gotchas now.
17911         * lib/mbswidth.c: Likewise.
17912         * lib/wcwidth.h: Likewise.
17913         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
17914         and iswcntrl; the wctype module does this stuff now.
17915         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17916         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17917         * modules/mbchar (Depends-on): Add wctype.
17918         * modules/mbswidth (Depends-on): Likewise.
17919         * modules/wcwidth (Depends-on): Likewise.
17920
17921 2006-12-27  Eric Blake  <ebb9@byu.net>
17922
17923         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
17924         module uses more than what <wctype.h> is required to provide.
17925
17926 2006-12-26  Eric Blake  <ebb9@byu.net>
17927
17928         * gnulib-tool (sed_extract_prog): Avoid space-tab.
17929
17930 2006-12-26  Eric Blake  <ebb9@byu.net>
17931
17932         * modules/absolute-header: New module.
17933         * modules/fcntl (Depends-on): Depend on it.
17934         * modules/inttypes (Depends-on): Likewise.
17935         * modules/stdint (Depends-on): Likewise.
17936         * modules/sys_stat (Depends-on): Likewise.
17937         * modules/wctype (Depends-on): Likewise.
17938         * MODULES.html.sh (Support for building libraries and
17939         executables): Document it.
17940
17941 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17942
17943         * gnulib-tool (SED): Remove, undoing previous change.
17944         The problem was that it broke coreutils on Solaris, because
17945         "sed --posix" leaked into a makefile.
17946         (sed): New alias, if 'alias' and GNU sed.
17947
17948 2006-12-24  Jim Meyering  <jim@meyering.net>
17949
17950         Work around an fchownat bug in glibc-2.4:
17951         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
17952         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
17953         in spite of the -P option.
17954         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
17955         New macros.
17956         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
17957         * modules/openat (Files): Add lib/fchownat.c.
17958         * lib/openat.c (fchownat): Don't define here.  Move to...
17959         * lib/fchownat.c: ...this new file.
17960
17961 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17962
17963         Fix bug reported by Bruno Haible in
17964         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
17965         where quotearg.c didn't compile on Mac OS X 10.2 because it
17966         lacks <wchar.h> and wint_t.
17967         * lib/wctype_.h (__wctype_wint_t): New type.
17968         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
17969         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
17970         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
17971         Arg is now of type __wctype_wint_t, not wint_t.
17972         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
17973         substitute HAVE_WINT_T.
17974         * modules/wctype (Files): Add m4/wint_t.m4.
17975         (wctype.h): Substitute HAVE_WINT_T.
17976
17977 2006-12-23  Bruno Haible  <bruno@clisp.org>
17978
17979         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
17980
17981 2006-12-23  Bruno Haible  <bruno@clisp.org>
17982
17983         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
17984         S_ISLNK.
17985         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
17986         mingw.
17987
17988 2006-12-22  Bruno Haible  <bruno@clisp.org>
17989
17990         * lib/copy-file.c: Include acl.h.
17991         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
17992         Close the file descriptors only after being done with copy_acl.
17993         * modules/copy-file (Depends-on): Add acl.
17994
17995 2006-12-22  Bruno Haible  <bruno@clisp.org>
17996
17997         * gnulib-tool (SED): New variable.
17998         Use $SED instead of sed everywhere.
17999
18000 2006-12-22  Bruno Haible  <bruno@clisp.org>
18001
18002         * modules/no-c++: New file.
18003         * m4/no-c++.m4: New file.
18004         * MODULES.html.sh (Support for building libraries and executables):
18005         Add no-c++.
18006
18007 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18008
18009         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
18010         Include <limits.h>, and use its INT_MAX to rewrite the
18011         j loop so that it does not overflow 'int'.  Problem reported by
18012         Ralf Wildenhues in
18013         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
18014         Play it safe by shifting left by 1 rather than multiplying by 2,
18015         as GCC is less likely to optimize this away when the value
18016         is signed (when it assumes overflow leads to undefined behavior).
18017         Also, don't assume time_t uses two's complement.
18018
18019 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18020
18021         * MODULES.html.sh: New module wctype.
18022         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
18023         * lib/fnmatch.c: Don't bother to include <wchar.h> before
18024         <wctype.h>, since the new wctype module should fix this.
18025         * lib/quotearg.c: Include <wctype.h> unconditionally, since
18026         the wctype module should arrange for it.
18027         * lib/regex_internal.h: Likewise.
18028         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
18029         since the wctype module should handle this now.
18030         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
18031         * modules/fnmatch (Depends-on): Add wctype.
18032         * modules/quotearg (Depends-on): Likewise.
18033         * modules/regex (Depends-on): Likewise.
18034
18035 2006-12-19  Bruno Haible  <bruno@clisp.org>
18036
18037         * lib/strdup.h [C++]: Wrap definitions in extern "C".
18038         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
18039
18040 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18041
18042         * modules/savewd (Depends-on): Fix dependency on fcntl.
18043
18044 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18045
18046         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
18047         conforms to C99, rather than relying on the user's environment
18048         setting of STDINT_H.
18049
18050 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18051         and Eric Blake  <ebb9@byu.net>
18052
18053         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
18054         This is more consistent with the other defines here.
18055         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
18056         Port to z/OS.  Problem reported by Paul Gilmartin.
18057         Change local vars to use gl_ prefix rather than ac_.
18058         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
18059         with other defines.
18060         * modules/double-slash-root: New module.
18061         * modules/dirname (Files): Remove m4/double-slash-root.m4.
18062         (Depends-on): Add double-slash-root.
18063         * MODULES.html.sh (File system functions): Mention new module.
18064
18065 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
18066
18067         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
18068         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
18069         This is for the benefit of gzip, which doesn't do i18n.
18070
18071 2006-12-12  Jim Meyering  <jim@meyering.net>
18072
18073         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
18074         Reported by Andreas Schwab <schwab@suse.de>.
18075
18076 2006-12-12  Bruno Haible  <bruno@clisp.org>
18077
18078         Merge these changes.
18079         2006-09-05  Bruno Haible  <bruno@clisp.org>
18080         * lib/iconvme.c (iconv_string): No need to save and restore errno when
18081         iconv_alloc succeeded.
18082         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
18083         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
18084         test for " && dest " at the end - dest is always != NULL there. Call
18085         iconv with 4xNULL arguments initially, to reset the state. Call iconv
18086         with 2xNULL arguments, also to flush the state storage. Handle the
18087         IRIX iconv behaviour. Realloc the final result, to throw away unused
18088         memory.
18089
18090 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
18091
18092         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
18093         and fchmodat unconditionally, since glibc 2.4 has them.
18094         Problem reported by Arkadiusz Miskiewicz.
18095
18096 2006-12-10  Bruno Haible  <bruno@clisp.org>
18097
18098         * gnulib-tool (func_import): Show the include files only for those
18099         modules that are copied and specified.
18100         Reported by Karl Berry.
18101
18102 2006-12-08  Jim Meyering  <jim@meyering.net>
18103
18104         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
18105         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
18106
18107         * build-aux/announce-gen: Add two new options, both optional:
18108         --bootstrap-tools=TOOL_LIST
18109               a comma-separated list of tools, e.g.,
18110               autoconf,automake,bison,gnulib
18111         --gnulib-snapshot-date=DATE
18112               if gnulib is in the bootstrap tool list,
18113               then report this as the snapshot date.
18114               If not specified, use the current date/time.
18115               If you specify a date here, be sure it's UTC.
18116
18117 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18118
18119         * tests/test-argp-2.sh: Fix test to match actual output.
18120         (func_compare): Fix sed script to be portable.
18121
18122 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
18123
18124         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
18125         workaround for this case.  It is not autoconfigured now; offhand
18126         it's hard to see how to autoconfigure it.
18127
18128 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
18129
18130         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
18131         a directory that is about to be chowned.  Such a directory's
18132         initial file permissions should permit the owner only and this
18133         should not be changed until after the chown, since the group and
18134         other bits would be incorrect if they granted permission before
18135         the chown.
18136
18137         Fix porting problem for iswctype reported by Georg Schwarz in:
18138         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
18139         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
18140         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
18141         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
18142         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18143
18144 2006-12-03  Jim Meyering  <jim@meyering.net>
18145
18146         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
18147         p->fts_statp may not yet be defined.
18148         (fts_read): Instead, set it in the caller, once p->fts_statp is
18149         sure to be defined, and corresponds to a top-level directory.
18150         This bug made du -x fail.  Here's the coreutils test case:
18151         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
18152         Reported by Mike Frysinger.
18153
18154 2006-12-01  Jim Meyering  <jim@meyering.net>
18155
18156         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
18157         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
18158         Reported by Simon Josefsson.
18159
18160 2006-11-30  Jim Meyering  <jim@meyering.net>
18161
18162         * m4/warning.m4: Use the all-permissive copyright notice
18163         recommended by RMS (rather than LGPL).
18164         * m4/vararrays.m4: Likewise.
18165         * m4/flexmember.m4: Likewise.
18166
18167 2006-11-29  Bruno Haible  <bruno@clisp.org>
18168
18169         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18170         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
18171         using +=.
18172         Reported by Simon Josefsson <simon@josefsson.org>.
18173
18174 2006-11-28  James Youngman <jay@gnu.org>
18175
18176         * README: Advise users that they might find the bug-gnulib@gnu.org
18177         and autotools-announce@gnu.org mailing lists useful.
18178
18179 2006-11-28  Bruno Haible  <bruno@clisp.org>
18180
18181         * m4/ptrdiff_max.m4: Remove file.
18182
18183 2006-11-21  Bruno Haible  <bruno@clisp.org>
18184
18185         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
18186         _AC_COMPUTE_INT.
18187         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18188         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
18189         _AC_COMPUTE_INT.
18190         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18191         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
18192         _AC_COMPUTE_INT.
18193         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18194
18195 2006-11-28  Jim Meyering  <jim@meyering.net>
18196
18197         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
18198         warning from "gcc -Wshadow" about shadowing the builtin.
18199
18200 2006-11-27  Bruno Haible  <bruno@clisp.org>
18201
18202         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
18203         _AC_COMPUTE_INT.
18204         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18205
18206 2006-11-27  Bruno Haible  <bruno@clisp.org>
18207             Paul Eggert  <eggert@cs.ucla.edu>
18208
18209         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
18210
18211 2006-11-26  Bruno Haible  <bruno@clisp.org>
18212
18213         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18214         noinst_LTLIBRARIES.
18215
18216 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
18217             Bruno Haible  <bruno@clisp.org>
18218
18219         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
18220         if compiling with "gcc -ansi".
18221
18222 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
18223
18224         Fix some incompatibilities with gcc -ansi -pedantic.
18225         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
18226         if compiling pedantically with GCC, unless it's C99 or later.
18227         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
18228         it mishandles gcc -ansi -pedantic as well.
18229         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
18230         if gcc -pedantic.
18231         * lib/regexec.c (check_node_accept_bytes): Don't use auto
18232         initializers for struct if -pedantic, unless it's C99 or later.
18233
18234 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
18235
18236         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
18237         Don't close an fd more than once. Identical atimes indicate
18238         success, not failure.
18239
18240 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
18241
18242         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
18243
18244 2006-11-23  Jim Meyering  <jim@meyering.net>
18245
18246         * build-aux/announce-gen: New file.  From coreutils.
18247
18248 2006-11-22  Jim Meyering  <jim@meyering.net>
18249
18250         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
18251         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
18252         (fts_read): Use a temporary to narrow the overused st_size member
18253         before using it in a switch statement.  Reported by Matthew Woehlke.
18254
18255         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
18256         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18257
18258 2006-11-20  Bruno Haible  <bruno@clisp.org>
18259
18260         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
18261         changequote instead of pairs of brackets.
18262         Reported by Andreas Schwab <schwab@suse.de>.
18263
18264 2006-11-21  Jim Meyering  <jim@meyering.net>
18265
18266         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
18267         so as to remain compatible with older compilers.
18268         Patch from Michael Deutschmann.
18269
18270 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
18271
18272         * MODULES.html.sh (File system functions): Add openat.
18273
18274         * lib/openat.h (rpl_fstatat): New macro, if
18275         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
18276         (fstatat): Define to rpl_fstatat under the same conditions,
18277         unless COMPILING_FSTATAT.
18278         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
18279         seems to have the bug.
18280         * lib/fstatat.c: New file.
18281         * modules/openat (Files): Add it.
18282
18283 2006-11-20  Bruno Haible  <bruno@clisp.org>
18284
18285         * Makefile: New file.
18286
18287 2006-11-20  Jim Meyering  <jim@meyering.net>
18288
18289         The beginnings of syntax-related checks for gnulib.
18290         * lib/Makefile: New file.
18291         * lib/t-idcache: New script.  Ensure that the two halves of
18292         idcache.c stay in sync.
18293
18294         * lib/idcache.c: Adjust comments in user- and group- portions to
18295         be more accurate, and to be consistent with one another.
18296
18297 2006-11-20  Jim Meyering  <jim@meyering.net>
18298
18299         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
18300         continue using the flexible array member (thus, this module performs
18301         half as many malloc calls), with the addition that...
18302         (getgroup, getuser): Consistently record a non-match via an empty
18303         "name" string, and map an empty string match to a NULL return value.
18304         * modules/idcache (Depends-on): Re-add flexmember.
18305
18306         * lib/idcache.c (getuser): Remove all uses of the register keyword.
18307         (getuidbyname, getgroup, getgidbyname): Likewise.
18308
18309         Use cleaner syntax: NULL rather than 0.
18310         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
18311
18312 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
18313
18314         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
18315         It mishandled the case where the group was missing.
18316         Problem reported by Greg Schafer.
18317         * modules/idcache: Likewise.
18318
18319 2006-11-18  Jim Meyering  <jim@meyering.net>
18320
18321         * check-module (%exempt_header): Add exception for some
18322         conditionally-included headers.
18323
18324         * modules/i-ring (Depends-on): Add verify.
18325         (License): Change to LGPL.
18326
18327 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
18328
18329         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
18330         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
18331         and inttostr.h.  Use snprintf rather than uinttostr, so that
18332         LGPLed code doesn't depend on GPLed.
18333
18334 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18335
18336         * modules/inline (License): Change from GPL to LGPL.
18337
18338 2006-11-17  Jim Meyering  <jim@meyering.net>
18339
18340         * modules/d-type (License): Switch to LGPL.
18341
18342 2006-11-15  Bruno Haible  <bruno@clisp.org>
18343
18344         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
18345
18346 2006-11-15  Eric Blake  <ebb9@byu.net>
18347
18348         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
18349         the module dependency.
18350
18351 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18352             Bruno Haible  <bruno@clisp.org>
18353
18354         * gnulib-tool (func_create_testdir): Add license consistency check.
18355
18356 2006-11-15  Eric Blake  <ebb9@byu.net>
18357
18358         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
18359         random "(cached)" in configure output.
18360
18361 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18362
18363         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
18364         test for conforming inttypes.h is both announced and cached.
18365
18366         * MODULES.html.sh (seen_modules, seen_files): New variables.
18367         (func_module): Rewrite to use a few less gnulib-tool and sed
18368         invocations.  Avoid a couple of quadratic algorithms for ...
18369         (missed_modules, missed_files): ... these, with ...
18370         (func_append, func_tmpdir): ... these new functions, from
18371         gnulib-tool.  Analogously, install traps for cleanup.
18372
18373         * tests/test-gc.c (main): Remove unused variables.
18374         * tests/test-read-file.c: Include stdlib.h, for 'free'.
18375
18376 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
18377
18378         * modules/inttostr (License): Change to LGPL.
18379
18380 2006-11-14  Eric Blake  <ebb9@byu.net>
18381
18382         * modules/tempname (License): Change to LGPL.
18383
18384 2006-11-14  Eric Blake  <ebb9@byu.net>
18385
18386         * doc/functions.texi (Function Portability): *printf functions on
18387         Cygwin now understand all POSIX size specifiers.
18388
18389 2006-11-14  Bruno Haible  <bruno@clisp.org>
18390
18391         * modules/c-ctype (License): Change to LGPL.
18392
18393 2006-11-12  Bruno Haible  <bruno@clisp.org>
18394
18395         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18396         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
18397         for GNOME libraries, for which the include files are installed in
18398         subdirectories of $prefix/include.
18399
18400 2006-11-12  Bruno Haible  <bruno@clisp.org>
18401
18402         * m4/lib-link.m4: Require at least autoconf-2.54.
18403         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
18404         name to underscores for the --with option.
18405
18406 2006-11-13  Bruno Haible  <bruno@clisp.org>
18407
18408         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
18409         the tests directory.
18410         Reported by Ralf Wildenhues.
18411
18412 2006-11-13  Bruno Haible  <bruno@clisp.org>
18413
18414         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
18415         (func_emit_initmacro_end): Undo the override here.
18416         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
18417         Works around the famous automake error in coreutils.
18418
18419 2006-11-13  Eric Blake  <ebb9@byu.net>
18420
18421         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
18422         element, not its node.
18423
18424 2006-11-12  Bruno Haible  <bruno@clisp.org>
18425
18426         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
18427         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
18428
18429 2006-11-12  Bruno Haible  <bruno@clisp.org>
18430
18431         * gnulib-tool: New option --local-symlink.
18432         (func_usage): Document it.
18433         (lsymbolic): New variable.
18434         (func_import, func_create_testdir): If --symlink was not specified,
18435         test whether --local-symlink was specified and the file comes from
18436         the local_gnulib_dir.
18437
18438 2006-11-12  Bruno Haible  <bruno@clisp.org>
18439
18440         * gnulib-tool (func_ln): New function.
18441         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
18442
18443 2006-11-12  Bruno Haible  <bruno@clisp.org>
18444
18445         Finish support for source files in subdirectories.
18446         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
18447         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
18448         AUTOMAKE_OPTIONS.
18449         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
18450
18451 2006-11-12  Bruno Haible  <bruno@clisp.org>
18452
18453         * gnulib-tool (func_get_automake_snippet): Synthesize also an
18454         EXTRA_lib_SOURCES augmentation.
18455         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
18456
18457 2006-11-12  Jim Meyering  <jim@meyering.net>
18458
18459         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
18460         file descriptors.  This also averts a failure on systems with
18461         native openat support when a traversed directory lacks "x" access.
18462         * lib/fts_.h: Include "i-ring.h"
18463         (struct FTS) [fts_fd_ring]: New member.
18464         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
18465         (FCHDIR): Add parentheses.
18466         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
18467         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
18468         When descending, rather than simply closing the previous
18469         fts_cwd_fd value, push that file descriptor onto the ring.
18470         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
18471         (fts_open): Initialize the new fd_ring member.
18472         (fts_close): Clear the ring.
18473         (fts_safe_changedir): When possible, use our new fd_ring to skip
18474         the diropen and fstat and dev/ino comparison that would normally
18475         accompany a virtual `chdir ("..")'.
18476
18477         * modules/fts (Depends-on): Add i-ring.
18478         * modules/i-ring: New module.
18479         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
18480         * m4/i-ring.m4: New file.
18481
18482 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18483
18484         * gnulib-tool (func_create_testdir): Fix replacement of
18485         `build-aux' in configure.ac.  Run autotools in gltests
18486         subdirectory.
18487         (func_create_testdir, func_create_megatestdir, test): There is
18488         no need for '--force' in most autotool invocations in a new
18489         tree.  Actually fail the whole test if any of the tools, or the
18490         configure or make stages fail.
18491
18492         Sync from Automake.
18493         * build-aux/gnupload: Revert last change.  Add pointer to upload
18494         instructions of the GNU Maintenance Instructions.
18495         Suggestion by Karl Berry.
18496
18497 2006-11-10  Jim Meyering  <jim@meyering.net>
18498
18499         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
18500
18501 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
18502
18503         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
18504         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
18505         (bind_textdomain_codeset) [! ENABLE_NLS]:
18506         Evaluate all the arguments.  That way, callers get compatible behavior
18507         if the arguments have side effects.  Also, it avoids some GCC
18508         diagnostics in some cases; Joel E. Denny reported problems when Bison
18509         was configured with --enable-gcc-warnigs.
18510
18511 2006-11-10  Jim Meyering  <jim@meyering.net>
18512
18513         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
18514         relevant options in CFLAGS (like -O, -fno-inline) are taken into
18515         account.
18516
18517 2006-11-10  Jim Meyering  <jim@meyering.net>
18518
18519         * modules/inline: New file/module.
18520         * modules/xalloc (Files): Remove m4/inline.m4.
18521         (Depends-on): Add inline, instead.
18522         * modules/oset: Likewise.
18523         * modules/list: Likewise.
18524
18525 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
18526
18527         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
18528         Problem reported by Matthew Woehlke.
18529
18530 2006-11-09  Bruno Haible  <bruno@clisp.org>
18531
18532         * lib/tempname.c (gen_tempname): Remove variant that invokes
18533         __gen_tempname.
18534         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
18535         __gen_tempname.
18536
18537 2006-11-08  Bruno Haible  <bruno@clisp.org>
18538
18539         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
18540         to 'yes' instead of 'cross-compiling'.
18541
18542 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
18543
18544         * lib/quotearg.h (quotearg_free): New decl.
18545         * lib/quotearg.c (quotearg_free): New function.
18546         (slot0, nslots, slotvec0, slotvec):
18547         Now file-scope so that quotearg_free can get at them.
18548
18549 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18550
18551         Sync from Automake.
18552         * build-aux/gnupload: Add missing 'gnu' to example URL.
18553         Report by Karl Berry.
18554
18555 2006-11-08  Bruno Haible  <bruno@clisp.org>
18556
18557         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
18558         Suggested by Paul Eggert.
18559
18560 2006-11-08  Jim Meyering  <jim@meyering.net>
18561
18562         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
18563         It's already included if !_LIBC.
18564         (fts_safe_changedir): Add a comment.
18565
18566 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18567
18568         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
18569         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
18570         Matthew Woehlke.
18571
18572         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
18573         definitions up, to avoid colliding with change below.
18574         (static_inline) [HAVE_INLINE]: New macro.
18575         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
18576         Provide extern decls when !HAVE_INLINE.  Do not define unless
18577         static_inline is defined, either by us or by xmalloc.c.  Use
18578         static_inline rather than static inline.
18579         (XCALLOC): Optimize sizeof(T) = 1 case.
18580         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
18581
18582 2006-11-07  Bruno Haible  <bruno@clisp.org>
18583
18584         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
18585         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
18586         AC_C_INLINE.
18587         * modules/xalloc (Files): Add m4/inline.m4.
18588
18589 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18590
18591         * README: Fix typo.
18592         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
18593         (Miscellanous Notes): ...from this.
18594
18595 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18596
18597         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
18598         Mention that offsetof should be used instead of sizeof.
18599         From Bruno Haible.
18600
18601 2006-11-07  Bruno Haible  <bruno@clisp.org>
18602
18603         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
18604
18605 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
18606
18607         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
18608         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
18609         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
18610         (gl_tree_add_before, gl_tree_add_after):
18611         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
18612         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
18613         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
18614         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
18615         (gl_linked_add_after, gl_linked_add_at): Likewise.
18616         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
18617         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
18618         (gl_tree_add_before, gl_tree_add_after): Likewise.
18619         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
18620         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
18621         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
18622
18623 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18624
18625         * lib/gl_oset.h: Use C comment style, not C++ comment style.
18626
18627 2006-11-06  Bruno Haible  <bruno@clisp.org>
18628
18629         * m4/inline.m4: New file.
18630         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
18631         * modules/list (Files): Add m4/inline.m4.
18632         * modules/oset (Files): Likewise.
18633
18634 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
18635
18636         * lib/idcache.c: Include <stddef.h>, for offsetof.
18637         (struct userid.name): Change from char * to a flexible array member.
18638         All uses changed.
18639         * modules/idcache (Depends-on): Add flexmember.
18640
18641         * MODULES.html.sh (Core language properties): New module flexmember.
18642         * modules/flexmember, m4/flexmember.m4: New files.
18643
18644         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
18645         inline functions that are identical with the old xnmalloc_inline,
18646         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
18647         that we can avoid some unnecessary integer multiplications and
18648         divisions in the common case where the element size is known at
18649         compile time.
18650         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
18651         needed.
18652         (xnboundedmalloc): Remove.
18653         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
18654         arguments, for consistency with rest of this header.
18655         (xcharalloc): Rewrite using XNMALLOC.
18656         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
18657         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
18658         versions have been moved to lib/xalloc.h and renamed to be the
18659         non-*_inline versions.
18660         (xmalloc, xrealloc): Implement without reference to the xnmalloc
18661         and xnrealloc functions, since those functions are now inline and
18662         now call us.
18663         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
18664         renaming described above.
18665         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
18666         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
18667         captures the dependency in AC_C_INLINE.
18668
18669         New module canonicalize-lgpl, proposed by Charles Wilson in
18670         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
18671         with a few small changes afterwards.
18672         * MODULES.html.sh (File system functions): New module
18673         canonicalize-lgpl.
18674         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
18675         and canonicalize_file_name.
18676         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
18677         * modules/canonicalize-lgpl: New files.
18678
18679 2006-11-05  Bruno Haible  <bruno@clisp.org>
18680
18681         * gnulib-tool (func_import, func_create_testdir): Create directories
18682         also for files in subdirectories of lib/.
18683
18684 2006-11-05  Bruno Haible  <bruno@clisp.org>
18685
18686         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
18687         ANSI C compliant.
18688
18689 2006-11-03  Bruno Haible  <bruno@clisp.org>
18690
18691         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
18692         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
18693         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
18694         (xnboundedmalloc): New inline function.
18695         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
18696         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
18697         xmalloc.
18698         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
18699         xmalloc.
18700         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
18701         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
18702         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
18703         xmalloc.
18704         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
18705         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
18706         xmalloc.
18707         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
18708         gl_tree_add_after): Use XMALLOC instead of xmalloc.
18709         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
18710         xmalloc.
18711         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
18712         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
18713         gl_tree_add_after): Use XMALLOC instead of xmalloc.
18714         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
18715         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
18716         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
18717         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
18718
18719 2006-11-03  Bruno Haible  <bruno@clisp.org>
18720
18721         * lib/c-ctype.h [C++]: Define functions without name mangling.
18722         * lib/fwriteerror.h [C++]: Likewise.
18723         * lib/gcd.h [C++]: Likewise.
18724         * lib/linebreak.h [C++]: Likewise.
18725
18726 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
18727
18728         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
18729         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
18730         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
18731         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
18732         Check for functions and headers just once.
18733         Check for declaration of canonicalize_file_name.
18734         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
18735
18736 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
18737
18738         * gnulib-tool (func_import): Fix typo in actioncmd.
18739
18740 2006-11-02  Bruno Haible  <bruno@clisp.org>
18741
18742         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
18743         newline sequence in the Makefile.am snippet as a space, like "make"
18744         does.
18745         Reported by Roger Persson <perrog@gmail.com>.
18746
18747 2006-11-01  Bruno Haible  <bruno@clisp.org>
18748
18749         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
18750         already declared in <string.h>.
18751         * lib/strcase.h (strncasecmp): Don't declare it if yes.
18752
18753 2006-11-01  Bruno Haible  <bruno@clisp.org>
18754
18755         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
18756         * lib/strcase.h: Include <string.h>.
18757         (strcasecmp): Define to rpl_strcasecmp here.
18758
18759 2006-11-01  Bruno Haible  <bruno@clisp.org>
18760
18761         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
18762
18763 2006-11-01  Eric Blake  <ebb9@byu.net>
18764
18765         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
18766
18767         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
18768
18769 2006-10-29  Bruno Haible  <bruno@clisp.org>
18770
18771         Make it compile in C++ mode.
18772         * lib/full-write.c (full_rw): Add a cast.
18773
18774 2006-11-01  Bruno Haible  <bruno@clisp.org>
18775
18776         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
18777         be POSIX compliant.
18778         Reported by Roger Persson <perrog@gmail.com>.
18779
18780 2006-11-01  Eric Blake  <ebb9@byu.net>
18781
18782         * lib/getopt_.h: Fix comments.
18783
18784 2006-10-31  Eric Blake  <ebb9@byu.net>
18785
18786         * modules/tmpdir (Depends-on): Add sys_stat.
18787         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
18788         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
18789         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
18790         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
18791         tempname.
18792
18793 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
18794
18795         Avoid some C++ diagnostics reported by Bruno Haible.
18796         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
18797         xmalloc.
18798         (quotearg_alloc): Use xcharalloc rather than xmalloc.
18799         (struct slotvec): Move to top level.
18800         (quotearg_n_options): Rewrite to avoid xmalloc.
18801         * lib/xalloc.h (xcharalloc): New function.
18802         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
18803         [defined __cplusplus]: Add function template that provides result
18804         type propagation.  This part of the change is from Bruno Haible.
18805
18806 2006-10-29  Bruno Haible  <bruno@clisp.org>
18807
18808         Make it compile in C++ mode.
18809         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
18810         * lib/strnlen1.c (strnlen1): Cast memchr result.
18811         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
18812         * lib/clean-temp.c (string_equals, string_hash): Add casts.
18813         (create_temp_dir): Rename local variable 'template'.
18814         (compile_csharp_using_sscli): Add cast.
18815         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
18816         * lib/findprog.c (find_in_path): Likewise.
18817         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
18818         * lib/wait-process.c (register_slave_subprocess): Likewise.
18819
18820 2006-10-22  Bruno Haible  <bruno@clisp.org>
18821
18822         * modules/tsearch: New file.
18823         * lib/tsearch.h: New file.
18824         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
18825         * m4/tsearch.m4: New file.
18826         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
18827
18828 2006-10-29  Eric Blake  <ebb9@byu.net>
18829
18830         * lib/arcfour.c: Assume config.h.
18831         * lib/arctwo.c: Likewise.
18832         * lib/base64.c: Likewise.
18833         * lib/check-version.c: Likewise.
18834         * lib/crc.c: Likewise.
18835         * lib/des.c: Likewise.
18836         * lib/gc-gnulib.c: Likewise.
18837         * lib/gc-libgcrypt.c: Likewise.
18838         * lib/gc-pbkdf2-sha1.c: Likewise.
18839         * lib/getaddrinfo.c: Likewise.
18840         * lib/getdelim.c: Likewise.
18841         * lib/getline.c: Likewise.
18842         * lib/hmac-md5.c: Likewise.
18843         * lib/hmac-sha1.c: Likewise.
18844         * lib/iconvme.c: Likewise.
18845         * lib/md2.c: Likewise.
18846         * lib/md4.c: Likewise.
18847         * lib/memxor.c: Likewise.
18848         * lib/read-file.c: Likewise.
18849         * lib/readline.c: Likewise.
18850         * lib/rijndael-alg-fst.c: Likewise.
18851         * lib/rijndael-api-fst.c: Likewise.
18852         * lib/xgetdomainname.c: Likewise.
18853
18854 2006-10-28  Eric Blake  <ebb9@byu.net>
18855
18856         * lib/xstrndup.c: Assume config.h.
18857
18858 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
18859
18860         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
18861         stat-macros.h is now for our own macros, whereas stat_h is for
18862         macros in the <sys/stat.h> name space.
18863         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
18864         (STAT_MACROS_H): Remove.
18865         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
18866         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
18867         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
18868         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
18869         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
18870         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
18871         Move these macros to ...
18872         * lib/stat_.h: here.  Don't include stat-macros.h.
18873         * lib/canonicalize.c: Don't include stat-macros.h.
18874         * lib/chown.c: Likewise.
18875         * lib/euidaccess.c: Likewise.
18876         * lib/file-type.c: Likewise.
18877         * lib/filemode.c: Likewise.
18878         * lib/glob.c: Likewise.
18879         * lib/isapipe.c: Likewise.
18880         * lib/lchown.c: Likewise.
18881         * lib/lstat.c: Likewise.
18882         * lib/mkdir-p.c: Likewise.
18883         * lib/rmdir.c: Likewise.
18884         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
18885         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
18886         unless mkdir isn't declared, to speed up 'configure'.
18887         Always create sys/stat.h, since it's unlikely any real sys/stat.h
18888         would define all the S_* symbols.
18889         * modules/canonicalize (Depends-on):
18890         Depend on sys_stat, not stat-macros.
18891         * modules/chown: Likewise.
18892         * modules/euidaccess: Likewise.
18893         * modules/filemode: Likewise.
18894         * modules/file-type: Likewise.
18895         * modules/glob: Likewise.
18896         * modules/isapipe: Likewise.
18897         * modules/lchown: Likewise.
18898         * modules/lstat: Likewise.
18899         * modules/mkancesdirs: Likewise.
18900         * modules/rmdir: Likewise.
18901         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
18902         * modules/modechange: Likewise.
18903         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
18904         (configure.ac): Remove gl_STAT_MACROS.
18905         * modules/sys_stat (Depends-on): Remove stat-macros.
18906
18907 2006-10-27  Bruno Haible  <bruno@clisp.org>
18908
18909         * m4/signed.m4: Remove file.
18910         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
18911         invocation.
18912         * modules/vasnprintf (Files): Remove m4/signed.m4.
18913
18914 2006-10-27  Bruno Haible  <bruno@clisp.org>
18915
18916         Update to GNU gettext 0.16.
18917         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
18918         m4/inttypes-h.m4, m4/signed.m4.
18919         * m4/gettext.m4: Update to GNU gettext 0.16.
18920         * m4/intl.m4: New file, from GNU gettext.
18921         * m4/intldir.m4: New file, from GNU gettext.
18922         * config/srclist.txt: Update
18923
18924 2006-10-27  Eric Blake  <ebb9@byu.net>
18925
18926         * MODULES.html.sh: Document tempname.
18927         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
18928         dependencies.
18929         (Files): Move lib/tempname.c...
18930         * modules/tempname: ...to this new module.
18931         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
18932         (gl_PREREQ_TEMPNAME): Move...
18933         * m4/tempname.m4: ...to this new file.
18934         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
18935         * modules/sys_stat (Depends-on): Add stat-macros.
18936         * lib/stat_.h (includes): Pick up stat macros.
18937         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
18938         if stat macros are broken.
18939         * lib/tempname.c (includes): No need to include "stat-macros.h".
18940         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
18941         (direxists, __path_search) [!_LIBC]: Don't compile these in
18942         gnulib; the tmpdir module covers that.
18943         * lib/tempname.h: New file.
18944
18945 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18946
18947         * COPYING: Explain how gnulib-tool converts licence headers.
18948         Almost all wording by Eric Blake.
18949
18950 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
18951
18952         * lib/mbchar.h (is_basic_table): Make read-only.
18953         * lib/mbchar.c (is_basic_table): Likewise.
18954         Reported by John Darrington.
18955
18956 2006-10-25  Bruno Haible  <bruno@clisp.org>
18957
18958         * lib/progname.h (set_program_name): Undefine before defining.
18959
18960 2006-10-25  Bruno Haible  <bruno@clisp.org>
18961
18962         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
18963         false for non-gcc C++ compilers.
18964         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
18965
18966 2006-10-24  Bruno Haible  <bruno@clisp.org>
18967
18968         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
18969         iconv implementations like Irix iconv.
18970
18971 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
18972
18973         * modules/vararrays: New file.
18974         * m4/vararrays.m4: New file, taken from diffutils.
18975         * MODULES.html.sh: New module vararrays.
18976
18977 2006-10-24  Karl Berry  <karl@gnu.org>
18978
18979         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
18980         Don't call GNU Unix.
18981
18982 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18983
18984         * users.txt: Add Libtool.
18985
18986         Sync from Libtool:
18987
18988         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
18989
18990         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
18991         to gnulib's policy of including config.h unconditionally.
18992
18993 2006-10-24  Bruno Haible  <bruno@clisp.org>
18994
18995         * modules/wcwidth (Files): Add m4/wint_t.m4.
18996         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
18997         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
18998
18999 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19000
19001         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
19002         to pacify GCC with some -W flags enabled.  Problem reported by
19003         Bruno Haible.
19004
19005 2006-10-24  Jim Meyering  <jim@meyering.net>
19006
19007         * MODULES.html.sh: Remove uinttostr.  It's not a module.
19008         Reported by Karl Berry.
19009
19010 2006-10-23  Bruno Haible  <bruno@clisp.org>
19011
19012         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
19013
19014 2006-10-24  Bruno Haible  <bruno@clisp.org>
19015
19016         * lib/gl_list.h: Use C comment style, not C++ comment style.
19017
19018 2006-10-23  Eric Blake  <ebb9@byu.net>
19019
19020         * lib/getaddrinfo.c (includes): Add missing include.
19021
19022 2006-10-23  Bruno Haible  <bruno@clisp.org>
19023             Paul Eggert  <eggert@cs.ucla.edu>
19024
19025         Ability to rename obstack_free.
19026         * lib/obstack.h (__obstack_free): New macro. Declare instead of
19027         obstack_free.
19028         (obstack_free): Invoke the __obstack_free macro.
19029         * lib/obstack.c (obstack_free): Use __obstack_free macro.
19030
19031 2006-10-23  Bruno Haible  <bruno@clisp.org>
19032             Paul Eggert  <eggert@cs.ucla.edu>
19033
19034         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
19035         __argc, __argv from the declaration. (They are defined as macros on
19036         mingw.)
19037
19038 2006-10-22  Bruno Haible  <bruno@clisp.org>
19039
19040         * doc/gnulib-intro.texi: New file.
19041         * doc/gnulib.texi: Include it.
19042
19043 2006-10-21  Bruno Haible  <bruno@clisp.org>
19044
19045         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
19046         "Introduction", "Miscellanous Notes", "Particular Modules".
19047
19048 2006-10-21  Bruno Haible  <bruno@clisp.org>
19049
19050         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19051         Change mostlyclean-local rule to avoid sh syntax error from bash
19052         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
19053
19054 2006-10-23  Jim Meyering  <jim@meyering.net>
19055
19056         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
19057         in place of snprintf.
19058
19059         * modules/inttostr (Files): Add lib/uinttostr.c.
19060         * lib/uinttostr.c (inttostr): New file/function.
19061         * lib/inttostr.h (uinttostr): Declare.
19062         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
19063         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
19064         Add uinttostr.
19065         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
19066
19067 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
19068
19069         * lib/canonicalize.c (ELOOP): Define if not already defined.
19070         Problem reported by Bruno Haible in
19071         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
19072
19073 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
19074
19075         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
19076         Problem reported by Perry Smith and Ville Laurikari.
19077
19078         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
19079         uses.
19080
19081 2006-10-19  Bruno Haible  <bruno@clisp.org>
19082
19083         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
19084         for mingw.
19085
19086 2006-10-19  Bruno Haible  <bruno@clisp.org>
19087
19088         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
19089         Needed for mingw.
19090
19091 2006-10-19  Bruno Haible  <bruno@clisp.org>
19092
19093         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
19094
19095 2006-10-19  Bruno Haible  <bruno@clisp.org>
19096
19097         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
19098         it.
19099
19100 2006-10-19  Bruno Haible  <bruno@clisp.org>
19101
19102         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
19103         invocation.
19104
19105 2006-10-19  Bruno Haible  <bruno@clisp.org>
19106
19107         * gnulib-tool (func_create_testdir): Don't include ftruncate and
19108         mountlist by default.
19109
19110 2006-10-16  Bruno Haible  <bruno@clisp.org>
19111
19112         * lib/c-strstr.c: Include c-strstr.h.
19113
19114 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19115
19116         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
19117         in a slash.
19118
19119 2006-10-18  Bruno Haible  <bruno@clisp.org>
19120
19121         * lib/lock.h [C++]: Wrap definitions in extern "C".
19122
19123 2006-10-18  Bruno Haible  <bruno@clisp.org>
19124
19125         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
19126         gl_LIBOBJS list.
19127
19128 2006-10-18  Bruno Haible  <bruno@clisp.org>
19129
19130         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
19131
19132 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
19133
19134         * lib/xstrtol.h: Include gettext.h.
19135         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
19136         Problem reported by Eric Blake.
19137         * modules/xstrtol (Depends-on): Add gettext-h.
19138
19139 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
19140
19141         * lib/strftime.c (advance): New macro.
19142         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
19143         incomplete type, so you can't add 0 to it.  Problem and patch
19144         reported by Eelco Dolstra for dietlibc.
19145
19146 2006-10-18  Jim Meyering  <jim@meyering.net>
19147
19148         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
19149         type for a local, and rename it: s/up/user_proc/.
19150
19151 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
19152
19153         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
19154         READ_UTMP_USER_PROCESS.
19155         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
19156
19157 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
19158
19159         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
19160         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
19161
19162 2006-10-17  Eric Blake  <ebb9@byu.net>
19163
19164         * lib/sigprocmask.c (sigprocmask): Fix typo.
19165
19166         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
19167
19168         * modules/clean-temp (Makefile.am): Don't add to make output...
19169         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
19170         config.h.
19171
19172 2006-10-17  Bruno Haible  <bruno@clisp.org>
19173
19174         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
19175         differently if DEFAULT_TEXT_DOMAIN is set.
19176
19177 2006-10-16  Bruno Haible  <bruno@clisp.org>
19178
19179         * lib/clean-temp.c: Include fwriteerror.h.
19180
19181 2006-10-16  Bruno Haible  <bruno@clisp.org>
19182
19183         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
19184
19185 2006-10-16  Bruno Haible  <bruno@clisp.org>
19186
19187         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
19188         * lib/sigprocmask.h: Include <sys/types.h>.
19189         (sigset_t): Use the system's definition if present.
19190
19191 2006-10-17  Eric Blake  <ebb9@byu.net>
19192
19193         * lib/xvasprintf.c (includes): Assume config.h.
19194         * lib/xasprintf.c (includes): Likewise.
19195
19196 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19197
19198         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
19199         at least as wide as intmax_t.
19200
19201 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
19202
19203         (Imported from Automake.)
19204         * build-aux/gnupload: Update to version 1.1 of directive file.
19205
19206 2006-10-16  Eric Blake  <ebb9@byu.net>
19207
19208         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
19209         match Automake 1.10a.
19210
19211 2006-10-14  Bruno Haible  <bruno@clisp.org>
19212
19213         * modules/sigprocmask: New file.
19214         * lib/sigprocmask.h: New file.
19215         * lib/sigprocmask.c: New file.
19216         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
19217         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
19218         request sigprocmask.o.
19219         (gl_PREREQ_SIGPROCMASK): New macro.
19220         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
19221         (Depends-on): Add sigprocmask.
19222         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
19223         gt_SIGNALBLOCKING. Test for 'raise' only once.
19224         * lib/fatal-signal.c: Include sigprocmask.h.
19225         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
19226         unblock_fatal_signals): Define always.
19227         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19228         sigprocmask.
19229
19230 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
19231
19232         Sync from Automake.
19233         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
19234         which incorrectly sets the mode of an existing destination
19235         directory.  In some cases the unpatched install-sh could do the
19236         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
19237         system.  We hope this is rare in practice, but it's clearly worth
19238         fixing.  Problem reported by Alex Unleashed in
19239         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
19240         Also, don't bother to check for -m bugs unless we're using -m;
19241         suggested by Stepan Kasal.
19242
19243 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19244
19245         Sync from Automake.
19246         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
19247         `-c' flag, so they appear at the same position as in %FASTDEP%
19248         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
19249         which ignores unknown options only after the first non-option.
19250         Bug report against M4 by Nelson H. F. Beebe.
19251
19252 2006-10-13  Jim Meyering  <jim@meyering.net>
19253
19254         Fix a bug in yesterday's change.
19255         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
19256         p->fts_statp->st_dev would be used uninitialized.
19257         Ensures that we always call fts_stat on the very first entry.
19258         Miklos Szeredi reported that find -xdev stopped working.
19259
19260 2006-10-12  Bruno Haible  <bruno@clisp.org>
19261
19262         * gnulib-tool (func_get_automake_snippet): Append an automatically
19263         computed EXTRA_DIST augmentation.
19264         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
19265         * modules/alloca-opt (Makefile.am): Likewise.
19266         * modules/allocsa (Makefile.am): Likewise.
19267         * modules/arcfour (Makefile.am): Likewise.
19268         * modules/arctwo (Makefile.am): Likewise.
19269         * modules/argmatch (Makefile.am): Likewise.
19270         * modules/argz (Makefile.am): Likewise.
19271         * modules/atexit (Makefile.am): Likewise.
19272         * modules/backupfile (Makefile.am): Likewise.
19273         * modules/byteswap (Makefile.am): Likewise.
19274         * modules/c-strtod (Makefile.am): Likewise.
19275         * modules/c-strtold (Makefile.am): Likewise.
19276         * modules/calloc (Makefile.am): Likewise.
19277         * modules/canon-host (Makefile.am): Likewise.
19278         * modules/canonicalize (Makefile.am): Likewise.
19279         * modules/chdir-long (Makefile.am): Likewise.
19280         * modules/chdir-safer (Makefile.am): Likewise.
19281         * modules/check-version (Makefile.am): Likewise.
19282         * modules/chown (Makefile.am): Likewise.
19283         * modules/cloexec (Makefile.am): Likewise.
19284         * modules/close-stream (Makefile.am): Likewise.
19285         * modules/closeout (Makefile.am): Likewise.
19286         * modules/crc (Makefile.am): Likewise.
19287         * modules/csharpexec (Makefile.am): Likewise.
19288         * modules/cycle-check (Makefile.am): Likewise.
19289         * modules/des (Makefile.am): Likewise.
19290         * modules/dev-ino (Makefile.am): Likewise.
19291         * modules/dirfd (Makefile.am): Likewise.
19292         * modules/dirname (Makefile.am): Likewise.
19293         * modules/dup2 (Makefile.am): Likewise.
19294         * modules/eealloc (Makefile.am): Likewise.
19295         * modules/error (Makefile.am): Likewise.
19296         * modules/euidaccess (Makefile.am): Likewise.
19297         * modules/exclude (Makefile.am): Likewise.
19298         * modules/exitfail (Makefile.am): Likewise.
19299         * modules/fcntl-safer (Makefile.am): Likewise.
19300         * modules/fcntl (Makefile.am): Likewise.
19301         * modules/file-type (Makefile.am): Likewise.
19302         * modules/fileblocks (Makefile.am): Likewise.
19303         * modules/filemode (Makefile.am): Likewise.
19304         * modules/filenamecat (Makefile.am): Likewise.
19305         * modules/fnmatch (Makefile.am): Likewise.
19306         * modules/fopen-safer (Makefile.am): Likewise.
19307         * modules/fpending (Makefile.am): Likewise.
19308         * modules/fprintftime (Makefile.am): Likewise.
19309         * modules/free (Makefile.am): Likewise.
19310         * modules/fsusage (Makefile.am): Likewise.
19311         * modules/ftruncate (Makefile.am): Likewise.
19312         * modules/fts (Makefile.am): Likewise.
19313         * modules/gc-arcfour (Makefile.am): Likewise.
19314         * modules/gc-des (Makefile.am): Likewise.
19315         * modules/gc-hmac-md5 (Makefile.am): Likewise.
19316         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
19317         * modules/gc-md4 (Makefile.am): Likewise.
19318         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
19319         * modules/gc-sha1 (Makefile.am): Likewise.
19320         * modules/gc (Makefile.am): Likewise.
19321         * modules/getaddrinfo (Makefile.am): Likewise.
19322         * modules/getcwd (Makefile.am): Likewise.
19323         * modules/getdelim (Makefile.am): Likewise.
19324         * modules/getdomainname (Makefile.am): Likewise.
19325         * modules/getgroups (Makefile.am): Likewise.
19326         * modules/gethostname (Makefile.am): Likewise.
19327         * modules/gethrxtime (Makefile.am): Likewise.
19328         * modules/getline (Makefile.am): Likewise.
19329         * modules/getloadavg (Makefile.am): Likewise.
19330         * modules/getlogin_r (Makefile.am): Likewise.
19331         * modules/getndelim2 (Makefile.am): Likewise.
19332         * modules/getopt (Makefile.am): Likewise.
19333         * modules/getpagesize (Makefile.am): Likewise.
19334         * modules/getpass-gnu (Makefile.am): Likewise.
19335         * modules/getpass (Makefile.am): Likewise.
19336         * modules/getsubopt (Makefile.am): Likewise.
19337         * modules/gettime (Makefile.am): Likewise.
19338         * modules/gettimeofday (Makefile.am): Likewise.
19339         * modules/getugroups (Makefile.am): Likewise.
19340         * modules/getusershell (Makefile.am): Likewise.
19341         * modules/glob (Makefile.am): Likewise.
19342         * modules/group-member (Makefile.am): Likewise.
19343         * modules/hard-locale (Makefile.am): Likewise.
19344         * modules/hash (Makefile.am): Likewise.
19345         * modules/hmac-md5 (Makefile.am): Likewise.
19346         * modules/hmac-sha1 (Makefile.am): Likewise.
19347         * modules/human (Makefile.am): Likewise.
19348         * modules/idcache (Makefile.am): Likewise.
19349         * modules/imaxabs (Makefile.am): Likewise.
19350         * modules/imaxdiv (Makefile.am): Likewise.
19351         * modules/inet_ntop (Makefile.am): Likewise.
19352         * modules/inet_pton (Makefile.am): Likewise.
19353         * modules/intprops (Makefile.am): Likewise.
19354         * modules/inttostr (Makefile.am): Likewise.
19355         * modules/inttypes (Makefile.am): Likewise.
19356         * modules/isapipe (Makefile.am): Likewise.
19357         * modules/javaversion (Makefile.am): Likewise.
19358         * modules/lchmod (Makefile.am): Likewise.
19359         * modules/lchown (Makefile.am): Likewise.
19360         * modules/localcharset (Makefile.am): Likewise.
19361         * modules/long-options (Makefile.am): Likewise.
19362         * modules/lstat (Makefile.am): Likewise.
19363         * modules/malloc (Makefile.am): Likewise.
19364         * modules/mathl (Makefile.am): Likewise.
19365         * modules/mbchar (Makefile.am): Likewise.
19366         * modules/md2 (Makefile.am): Likewise.
19367         * modules/md4 (Makefile.am): Likewise.
19368         * modules/md5 (Makefile.am): Likewise.
19369         * modules/memcasecmp (Makefile.am): Likewise.
19370         * modules/memchr (Makefile.am): Likewise.
19371         * modules/memcmp (Makefile.am): Likewise.
19372         * modules/memcoll (Makefile.am): Likewise.
19373         * modules/memcpy (Makefile.am): Likewise.
19374         * modules/memmem (Makefile.am): Likewise.
19375         * modules/memmove (Makefile.am): Likewise.
19376         * modules/mempcpy (Makefile.am): Likewise.
19377         * modules/memrchr (Makefile.am): Likewise.
19378         * modules/memset (Makefile.am): Likewise.
19379         * modules/memxor (Makefile.am): Likewise.
19380         * modules/mkancesdirs (Makefile.am): Likewise.
19381         * modules/mkdir-p (Makefile.am): Likewise.
19382         * modules/mkdir (Makefile.am): Likewise.
19383         * modules/mkdtemp (Makefile.am): Likewise.
19384         * modules/mkstemp (Makefile.am): Likewise.
19385         * modules/mktime (Makefile.am): Likewise.
19386         * modules/modechange (Makefile.am): Likewise.
19387         * modules/mountlist (Makefile.am): Likewise.
19388         * modules/nanosleep (Makefile.am): Likewise.
19389         * modules/obstack (Makefile.am): Likewise.
19390         * modules/openat (Makefile.am): Likewise.
19391         * modules/pagealign_alloc (Makefile.am): Likewise.
19392         * modules/pathmax (Makefile.am): Likewise.
19393         * modules/physmem (Makefile.am): Likewise.
19394         * modules/poll (Makefile.am): Likewise.
19395         * modules/posixtm (Makefile.am): Likewise.
19396         * modules/posixver (Makefile.am): Likewise.
19397         * modules/putenv (Makefile.am): Likewise.
19398         * modules/quote (Makefile.am): Likewise.
19399         * modules/quotearg (Makefile.am): Likewise.
19400         * modules/raise (Makefile.am): Likewise.
19401         * modules/read-file (Makefile.am): Likewise.
19402         * modules/readline (Makefile.am): Likewise.
19403         * modules/readlink (Makefile.am): Likewise.
19404         * modules/readtokens (Makefile.am): Likewise.
19405         * modules/readutmp (Makefile.am): Likewise.
19406         * modules/realloc (Makefile.am): Likewise.
19407         * modules/regex (Makefile.am): Likewise.
19408         * modules/rename-dest-slash (Makefile.am): Likewise.
19409         * modules/rename (Makefile.am): Likewise.
19410         * modules/rijndael (Makefile.am): Likewise.
19411         * modules/rmdir (Makefile.am): Likewise.
19412         * modules/rpmatch (Makefile.am): Likewise.
19413         * modules/safe-read (Makefile.am): Likewise.
19414         * modules/safe-write (Makefile.am): Likewise.
19415         * modules/same-inode (Makefile.am): Likewise.
19416         * modules/same (Makefile.am): Likewise.
19417         * modules/save-cwd (Makefile.am): Likewise.
19418         * modules/savedir (Makefile.am): Likewise.
19419         * modules/setenv (Makefile.am): Likewise.
19420         * modules/settime (Makefile.am): Likewise.
19421         * modules/sha1 (Makefile.am): Likewise.
19422         * modules/sig2str (Makefile.am): Likewise.
19423         * modules/snprintf (Makefile.am): Likewise.
19424         * modules/stat-macros (Makefile.am): Likewise.
19425         * modules/stat-time (Makefile.am): Likewise.
19426         * modules/stdbool (Makefile.am): Likewise.
19427         * modules/stdint (Makefile.am): Likewise.
19428         * modules/stdlib-safer (Makefile.am): Likewise.
19429         * modules/stpcpy (Makefile.am): Likewise.
19430         * modules/stpncpy (Makefile.am): Likewise.
19431         * modules/strcase (Makefile.am): Likewise.
19432         * modules/strcasestr (Makefile.am): Likewise.
19433         * modules/strchrnul (Makefile.am): Likewise.
19434         * modules/strcspn (Makefile.am): Likewise.
19435         * modules/strdup (Makefile.am): Likewise.
19436         * modules/strerror (Makefile.am): Likewise.
19437         * modules/strftime (Makefile.am): Likewise.
19438         * modules/strndup (Makefile.am): Likewise.
19439         * modules/strnlen (Makefile.am): Likewise.
19440         * modules/strpbrk (Makefile.am): Likewise.
19441         * modules/strsep (Makefile.am): Likewise.
19442         * modules/strstr (Makefile.am): Likewise.
19443         * modules/strtod (Makefile.am): Likewise.
19444         * modules/strtoimax (Makefile.am): Likewise.
19445         * modules/strtok_r (Makefile.am): Likewise.
19446         * modules/strtol (Makefile.am): Likewise.
19447         * modules/strtoll (Makefile.am): Likewise.
19448         * modules/strtoul (Makefile.am): Likewise.
19449         * modules/strtoull (Makefile.am): Likewise.
19450         * modules/strtoumax (Makefile.am): Likewise.
19451         * modules/strverscmp (Makefile.am): Likewise.
19452         * modules/sys_socket (Makefile.am): Likewise.
19453         * modules/sys_stat (Makefile.am): Likewise.
19454         * modules/sysexits (Makefile.am): Likewise.
19455         * modules/time_r (Makefile.am): Likewise.
19456         * modules/timegm (Makefile.am): Likewise.
19457         * modules/timespec (Makefile.am): Likewise.
19458         * modules/tmpfile-safer (Makefile.am): Likewise.
19459         * modules/trim (Makefile.am): Likewise.
19460         * modules/unistd-safer (Makefile.am): Likewise.
19461         * modules/unlinkdir (Makefile.am): Likewise.
19462         * modules/unlocked-io (Makefile.am): Likewise.
19463         * modules/userspec (Makefile.am): Likewise.
19464         * modules/utime (Makefile.am): Likewise.
19465         * modules/utimecmp (Makefile.am): Likewise.
19466         * modules/utimens (Makefile.am): Likewise.
19467         * modules/vasnprintf (Makefile.am): Likewise.
19468         * modules/vasprintf (Makefile.am): Likewise.
19469         * modules/vsnprintf (Makefile.am): Likewise.
19470         * modules/xalloc (Makefile.am): Likewise.
19471         * modules/xgetcwd (Makefile.am): Likewise.
19472         * modules/xnanosleep (Makefile.am): Likewise.
19473         * modules/xreadlink (Makefile.am): Likewise.
19474         * modules/xstrtod (Makefile.am): Likewise.
19475         * modules/xstrtol (Makefile.am): Likewise.
19476         * modules/xstrtold (Makefile.am): Likewise.
19477         * modules/yesno (Makefile.am): Likewise.
19478         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
19479
19480 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
19481
19482         * modules/error (Makefile.am): Distribute files through
19483         EXTRA_DIST, not lib_SOURCES.
19484
19485 2006-10-12  Eric Blake  <ebb9@byu.net>
19486
19487         * modules/error (Makefile.am): Distribute files in /lib.
19488         * modules/obstack (Makefile.am): Likewise.
19489
19490 2006-10-12  Bruno Haible  <bruno@clisp.org>
19491
19492         * modules/acl (Makefile.am): Distribute all files in lib/ through
19493         EXTRA_DIST.
19494         * modules/arcfour (Makefile.am): Likewise.
19495         * modules/arctwo (Makefile.am): Likewise.
19496         * modules/argmatch (Makefile.am): Likewise.
19497         * modules/argz (Makefile.am): Likewise.
19498         * modules/atexit (Makefile.am): Likewise.
19499         * modules/backupfile (Makefile.am): Likewise.
19500         * modules/c-strtod (Makefile.am): Likewise.
19501         * modules/c-strtold (Makefile.am): Likewise.
19502         * modules/calloc (Makefile.am): Likewise.
19503         * modules/canon-host (Makefile.am): Likewise.
19504         * modules/canonicalize (Makefile.am): Likewise.
19505         * modules/chdir-long (Makefile.am): Likewise.
19506         * modules/chdir-safer (Makefile.am): Likewise.
19507         * modules/check-version (Makefile.am): Likewise.
19508         * modules/chown (Makefile.am): Likewise.
19509         * modules/cloexec (Makefile.am): Likewise.
19510         * modules/close-stream (Makefile.am): Likewise.
19511         * modules/closeout (Makefile.am): Likewise.
19512         * modules/crc (Makefile.am): Likewise.
19513         * modules/cycle-check (Makefile.am): Likewise.
19514         * modules/des (Makefile.am): Likewise.
19515         * modules/dirfd (Makefile.am): Likewise.
19516         * modules/dirname (Makefile.am): Likewise.
19517         * modules/dup2 (Makefile.am): Likewise.
19518         * modules/euidaccess (Makefile.am): Likewise.
19519         * modules/exclude (Makefile.am): Likewise.
19520         * modules/exitfail (Makefile.am): Likewise.
19521         * modules/fcntl-safer (Makefile.am): Likewise.
19522         * modules/file-type (Makefile.am): Likewise.
19523         * modules/fileblocks (Makefile.am): Likewise.
19524         * modules/filemode (Makefile.am): Likewise.
19525         * modules/filenamecat (Makefile.am): Likewise.
19526         * modules/fnmatch (Makefile.am): Likewise.
19527         * modules/fopen-safer (Makefile.am): Likewise.
19528         * modules/fpending (Makefile.am): Likewise.
19529         * modules/fprintftime (Makefile.am): Likewise.
19530         * modules/free (Makefile.am): Likewise.
19531         * modules/fsusage (Makefile.am): Likewise.
19532         * modules/ftruncate (Makefile.am): Likewise.
19533         * modules/fts (Makefile.am): Likewise.
19534         * modules/gc (Makefile.am): Likewise.
19535         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
19536         * modules/getaddrinfo (Makefile.am): Likewise.
19537         * modules/getcwd (Makefile.am): Likewise.
19538         * modules/getdelim (Makefile.am): Likewise.
19539         * modules/getdomainname (Makefile.am): Likewise.
19540         * modules/getgroups (Makefile.am): Likewise.
19541         * modules/gethostname (Makefile.am): Likewise.
19542         * modules/gethrxtime (Makefile.am): Likewise.
19543         * modules/getline (Makefile.am): Likewise.
19544         * modules/getloadavg (Makefile.am): Likewise.
19545         * modules/getlogin_r (Makefile.am): Likewise.
19546         * modules/getopt (Makefile.am): Likewise.
19547         * modules/getpass (Makefile.am): Likewise.
19548         * modules/getpass-gnu (Makefile.am): Likewise.
19549         * modules/getsubopt (Makefile.am): Likewise.
19550         * modules/gettime (Makefile.am): Likewise.
19551         * modules/gettimeofday (Makefile.am): Likewise.
19552         * modules/getugroups (Makefile.am): Likewise.
19553         * modules/getusershell (Makefile.am): Likewise.
19554         * modules/glob (Makefile.am): Likewise.
19555         * modules/group-member (Makefile.am): Likewise.
19556         * modules/hard-locale (Makefile.am): Likewise.
19557         * modules/hash (Makefile.am): Likewise.
19558         * modules/hmac-md5 (Makefile.am): Likewise.
19559         * modules/hmac-sha1 (Makefile.am): Likewise.
19560         * modules/human (Makefile.am): Likewise.
19561         * modules/idcache (Makefile.am): Likewise.
19562         * modules/imaxabs (Makefile.am): Likewise.
19563         * modules/imaxdiv (Makefile.am): Likewise.
19564         * modules/inet_ntop (Makefile.am): Likewise.
19565         * modules/inet_pton (Makefile.am): Likewise.
19566         * modules/inttostr (Makefile.am): Likewise.
19567         * modules/isapipe (Makefile.am): Likewise.
19568         * modules/lchown (Makefile.am): Likewise.
19569         * modules/long-options (Makefile.am): Likewise.
19570         * modules/lstat (Makefile.am): Likewise.
19571         * modules/malloc (Makefile.am): Likewise.
19572         * modules/mathl (Makefile.am): Likewise.
19573         * modules/mbchar (Makefile.am): Likewise.
19574         * modules/md2 (Makefile.am): Likewise.
19575         * modules/md4 (Makefile.am): Likewise.
19576         * modules/md5 (Makefile.am): Likewise.
19577         * modules/memcasecmp (Makefile.am): Likewise.
19578         * modules/memchr (Makefile.am): Likewise.
19579         * modules/memcmp (Makefile.am): Likewise.
19580         * modules/memcoll (Makefile.am): Likewise.
19581         * modules/memcpy (Makefile.am): Likewise.
19582         * modules/memmem (Makefile.am): Likewise.
19583         * modules/memmove (Makefile.am): Likewise.
19584         * modules/mempcpy (Makefile.am): Likewise.
19585         * modules/memrchr (Makefile.am): Likewise.
19586         * modules/memset (Makefile.am): Likewise.
19587         * modules/memxor (Makefile.am): Likewise.
19588         * modules/mkancesdirs (Makefile.am): Likewise.
19589         * modules/mkdir (Makefile.am): Likewise.
19590         * modules/mkdir-p (Makefile.am): Likewise.
19591         * modules/mkdtemp (Makefile.am): Likewise.
19592         * modules/mkstemp (Makefile.am): Likewise.
19593         * modules/mktime (Makefile.am): Likewise.
19594         * modules/modechange (Makefile.am): Likewise.
19595         * modules/mountlist (Makefile.am): Likewise.
19596         * modules/nanosleep (Makefile.am): Likewise.
19597         * modules/openat (Makefile.am): Likewise.
19598         * modules/pagealign_alloc (Makefile.am): Likewise.
19599         * modules/physmem (Makefile.am): Likewise.
19600         * modules/poll (Makefile.am): Likewise.
19601         * modules/posixtm (Makefile.am): Likewise.
19602         * modules/posixver (Makefile.am): Likewise.
19603         * modules/putenv (Makefile.am): Likewise.
19604         * modules/quote (Makefile.am): Likewise.
19605         * modules/quotearg (Makefile.am): Likewise.
19606         * modules/raise (Makefile.am): Likewise.
19607         * modules/read-file (Makefile.am): Likewise.
19608         * modules/readline (Makefile.am): Likewise.
19609         * modules/readlink (Makefile.am): Likewise.
19610         * modules/readtokens (Makefile.am): Likewise.
19611         * modules/readutmp (Makefile.am): Likewise.
19612         * modules/realloc (Makefile.am): Likewise.
19613         * modules/regex (Makefile.am): Likewise.
19614         * modules/rename (Makefile.am): Likewise.
19615         * modules/rename-dest-slash (Makefile.am): Likewise.
19616         * modules/rijndael (Makefile.am): Likewise.
19617         * modules/rmdir (Makefile.am): Likewise.
19618         * modules/rpmatch (Makefile.am): Likewise.
19619         * modules/safe-read (Makefile.am): Likewise.
19620         * modules/safe-write (Makefile.am): Likewise.
19621         * modules/same (Makefile.am): Likewise.
19622         * modules/save-cwd (Makefile.am): Likewise.
19623         * modules/savedir (Makefile.am): Likewise.
19624         * modules/setenv (Makefile.am): Likewise.
19625         * modules/settime (Makefile.am): Likewise.
19626         * modules/sha1 (Makefile.am): Likewise.
19627         * modules/sig2str (Makefile.am): Likewise.
19628         * modules/snprintf (Makefile.am): Likewise.
19629         * modules/stdlib-safer (Makefile.am): Likewise.
19630         * modules/stpcpy (Makefile.am): Likewise.
19631         * modules/stpncpy (Makefile.am): Likewise.
19632         * modules/strcase (Makefile.am): Likewise.
19633         * modules/strcasestr (Makefile.am): Likewise.
19634         * modules/strchrnul (Makefile.am): Likewise.
19635         * modules/strcspn (Makefile.am): Likewise.
19636         * modules/strdup (Makefile.am): Likewise.
19637         * modules/strerror (Makefile.am): Likewise.
19638         * modules/strftime (Makefile.am): Likewise.
19639         * modules/strndup (Makefile.am): Likewise.
19640         * modules/strnlen (Makefile.am): Likewise.
19641         * modules/strpbrk (Makefile.am): Likewise.
19642         * modules/strsep (Makefile.am): Likewise.
19643         * modules/strstr (Makefile.am): Likewise.
19644         * modules/strtod (Makefile.am): Likewise.
19645         * modules/strtoimax (Makefile.am): Likewise.
19646         * modules/strtok_r (Makefile.am): Likewise.
19647         * modules/strtol (Makefile.am): Likewise.
19648         * modules/strtoll (Makefile.am): Likewise.
19649         * modules/strtoul (Makefile.am): Likewise.
19650         * modules/strtoull (Makefile.am): Likewise.
19651         * modules/strtoumax (Makefile.am): Likewise.
19652         * modules/strverscmp (Makefile.am): Likewise.
19653         * modules/time_r (Makefile.am): Likewise.
19654         * modules/timegm (Makefile.am): Likewise.
19655         * modules/tmpfile-safer (Makefile.am): Likewise.
19656         * modules/unistd-safer (Makefile.am): Likewise.
19657         * modules/unlinkdir (Makefile.am): Likewise.
19658         * modules/userspec (Makefile.am): Likewise.
19659         * modules/utime (Makefile.am): Likewise.
19660         * modules/utimecmp (Makefile.am): Likewise.
19661         * modules/utimens (Makefile.am): Likewise.
19662         * modules/vasnprintf (Makefile.am): Likewise.
19663         * modules/vasprintf (Makefile.am): Likewise.
19664         * modules/vsnprintf (Makefile.am): Likewise.
19665         * modules/xalloc (Makefile.am): Likewise.
19666         * modules/xgetcwd (Makefile.am): Likewise.
19667         * modules/xnanosleep (Makefile.am): Likewise.
19668         * modules/xreadlink (Makefile.am): Likewise.
19669         * modules/xstrtod (Makefile.am): Likewise.
19670         * modules/xstrtol (Makefile.am): Likewise.
19671         * modules/xstrtold (Makefile.am): Likewise.
19672         * modules/yesno (Makefile.am): Likewise.
19673
19674 2006-10-12  Jim Meyering  <jim@meyering.net>
19675
19676         * m4/getloadavg.m4: Revert the change below.
19677
19678         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
19679         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
19680         fail with a symlink, which is what coreutils' ./bootstrap now
19681         creates by default.
19682
19683 2006-10-12  Bruno Haible  <bruno@clisp.org>
19684
19685         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
19686         mingw.
19687         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
19688         MSVC and mingw explicitly.
19689
19690 2006-10-11  Simon Josefsson  <jas@extundo.com>
19691             Bruno Haible  <bruno@clisp.org>
19692
19693         Add support for multiple gnulib-tool invocations in the scope of a
19694         single configure.ac file.
19695         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
19696         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
19697         with the same contents as the _LIBADD variable.
19698         (func_emit_initmacro_start, func_emit_initmacro_end,
19699         func_emit_initmacro_done): New functions.
19700         (func_import, func_create_testdir): Invoke them. Allow the identifiers
19701         gl_LIBOBJS and gl_LTLIBOBJS.
19702
19703 2006-10-11  Bruno Haible  <bruno@clisp.org>
19704
19705         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
19706         (func_create_testdir): Don't create po/Makefile.am, don't invoke
19707         autoreconf. Instead, invoke autopoint explicitly but move back the
19708         *.m4 files from gnulib.
19709
19710 2006-10-11  Bruno Haible  <bruno@clisp.org>
19711
19712         * gnulib-tool (func_usage): Make module names after --create-testdir
19713         optional.
19714         (func_create_testdir): If no module was specified, use nearly all
19715         modules.
19716
19717 2006-10-12  Jim Meyering  <jim@meyering.net>
19718
19719         Big performance improvement for fts-based tools that use FTS_NOSTAT.
19720         Avoid spurious inode-mismatch problems on non-POSIX file systems.
19721         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
19722         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
19723         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
19724         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
19725         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
19726         (fts_set_stat_required): New function.
19727         (fts_open): Defer the calls to fts_stat, if possible or requested.
19728         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
19729         into fts_stat itself.
19730         (fts_read): Perform any required (deferred) fts_stat call.
19731         (fts_build): Likewise, for the directory we're about to open and read.
19732         In the readdir loop, carefully decide whether each entry will require
19733         an eventual call to fts_stat, using dirent.d_type info if available.
19734         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
19735         a command line argument into this function.  Update all callers.
19736         Map a return value of FTS_DOT to FTS_D for a command line argument.
19737         * modules/fts (Depends-on): Add d-type.  Alphabetize.
19738         Thanks to Miklos Szeredi for his tenacity and for the initial
19739         bug report about "find" failing on a FUSE-based file system.
19740
19741         * lib/fts.c (fts_open): Use consistent indentation.
19742
19743 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
19744
19745         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
19746         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
19747         reported by Jim Meyering.  All uses of cache variables renamed
19748         to match Autoconf's.
19749         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
19750         the other one.
19751
19752         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
19753         Fix misspelling in diagnostic.
19754
19755 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19756
19757         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
19758         defined.  Problem reported by Matthew Woehlke.
19759
19760         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
19761         Add support for Tandem NonStop R series.
19762         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
19763         Use new macro.
19764
19765         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
19766         (has_trailing_slash): Omit size arg; all callers changed.
19767         Omit 'inline', since it doesn't help performance and we'd
19768         need to configure it.
19769         Don't count //, ///, etc. as having a trailing slash.
19770         As a side effect, this removes a C99ism reported by Matthew Woehlke.
19771         (rpl_rename_dest_slash): On failure, use rename's errno rather
19772         than (in some cases) an incorrect or junk errno.
19773         Simplify code by removing need to compute length; this does
19774         cause it to make two passes instead of one over the file name,
19775         but it's worth it.
19776
19777         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
19778         change, since Autoconf's version may no longer be appropriate now
19779         that we are using CVS Autoconf's version.  Add support for Tandem.
19780
19781 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19782             Bruno Haible  <bruno@clisp.org>
19783
19784         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
19785         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
19786         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
19787         gl_AC_TYPE_LONG_LONG.
19788
19789         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
19790         instead of HAVE_LONG_LONG.
19791         * lib/printf-args.c (printf_fetchargs): Likewise.
19792         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19793         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19794         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
19795         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
19796         gl_AC_TYPE_LONG_LONG.
19797
19798 2006-10-11  Bruno Haible  <bruno@clisp.org>
19799
19800         * m4/longlong.m4: Add comments.
19801         * m4/ulonglong.m4: Likewise.
19802
19803 2006-10-10  Bruno Haible  <bruno@clisp.org>
19804
19805         Make it possible to #define stpcpy, strdup to aliases.
19806         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
19807         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
19808
19809 2006-10-10  Bruno Haible  <bruno@clisp.org>
19810
19811         Make it possible to #define gcd to an alias.
19812         * lib/gcd.c: Include config.h.
19813
19814 2006-10-10  Bruno Haible  <bruno@clisp.org>
19815
19816         Make it possible to #define c_isascii to an alias.
19817         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
19818         defined. Undefine the macros before defining them, to avoid gcc
19819         warnings.
19820         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
19821         define NO_C_CTYPE_MACROS early.
19822
19823 2006-10-10  Bruno Haible  <bruno@clisp.org>
19824
19825         Make it possible to #define set_program_name to an alias.
19826         * lib/progname.c: Don't undefine set_program_name; instead, undefine
19827         ENABLE_RELOCATABLE early.
19828
19829 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19830
19831         Port to Tandem NSK OSS, which has 64-bit signed int but at most
19832         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
19833         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
19834         More generally, don't assume that 64-bit signed int is available
19835         if unsigned int is, and vice versa.
19836         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
19837         unsigned symbols, not on their signed counterparts.
19838         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
19839         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
19840         (UINT64_C, UINTMAX_C):
19841         Likewise.
19842         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
19843         unsigned counterparts.
19844         (Have_long_long, Unsigned): New macros.
19845         (Int): Renamed from INT.
19846         (strtoimax): Use the new macros.
19847         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
19848         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
19849         * modules/inttypes (inttypes.h): Substitute
19850         HAVE_UNSIGNED_LONG_LONG_INT.
19851         * modules/stdint (stdint.h): Likewise.
19852         (Files): Add m4/ulonglong.m4.
19853
19854 2006-10-10  Bruno Haible  <bruno@clisp.org>
19855
19856         Fix a gcc -Wshadow warning.
19857         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
19858         to 'bucket'.
19859         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
19860         gl_linked_indexof_from_to): Likewise.
19861         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
19862         Likewise.
19863         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
19864         Likewise.
19865         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
19866         Reported by Eric Blake.
19867
19868 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
19869
19870         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
19871         for NetBSD.  Problem reported by Bruno Haible.
19872
19873 2006-10-09  Jim Meyering  <jim@meyering.net>
19874
19875         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
19876         Patch from Bruno Haible.
19877
19878 2006-10-09  Jim Meyering  <jim@meyering.net>
19879
19880         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
19881         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
19882         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
19883
19884 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19885
19886         Don't include <config.h> twice; this doesn't work in some cases,
19887         e.g., when config.h has "#define intmax_t long long int" and
19888         we include <config.h>, <inttypes.h>, <config.h> in that order.
19889         Problem reported by Matthew Woehlke in:
19890         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
19891         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
19892         * lib/fts-cycle.c: Don't include config.h.
19893         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
19894         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
19895         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
19896         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
19897         inttypes.h.
19898         * lib/xstrtoumax.c: Likewise.
19899         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
19900         __strtol and the like, so that this module is more like its siblings.
19901         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
19902         Remove; no longer needed now that we assume gnulib inttypes.h.
19903
19904 2006-10-08  Bruno Haible  <bruno@clisp.org>
19905
19906         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
19907         option.
19908
19909 2006-10-07  Jim Meyering  <jim@meyering.net>
19910
19911         * modules/inttypes (inttypes.h): Revert what seems to have been
19912         an inadvertent part of today's change: use "|", not "/" in the
19913         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
19914
19915 2006-10-07  Bruno Haible  <bruno@clisp.org>
19916
19917         * modules/sublist: New file.
19918
19919 2006-10-07  Bruno Haible  <bruno@clisp.org>
19920
19921         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
19922         * modules/argz (argz.h): Likewise.
19923         * modules/arpa_inet (arpa/inet.h): Likewise.
19924         * modules/byteswap (byteswap.h): Likewise.
19925         * modules/configmake (configmake.h): Likewise.
19926         * modules/fcntl (fcntl.h): Likewise.
19927         * modules/fnmatch (fnmatch.h): Likewise.
19928         * modules/getopt (getopt.h): Likewise.
19929         * modules/glob (glob.h): Likewise.
19930         * modules/inttypes (inttypes.h): Likewise.
19931         * modules/netinet_in (netinet/in.h): Likewise.
19932         * modules/poll (poll.h): Likewise.
19933         * modules/stdbool (stdbool.h): Likewise.
19934         * modules/stdint (stdint.h): Likewise.
19935         * modules/sys_select (sys/select.h): Likewise.
19936         * modules/sys_socket (sys/socket.h): Likewise.
19937         * modules/sys_stat (sys/stat.h): Likewise.
19938         * modules/sysexits (sysexits.h): Likewise.
19939         * modules/unistd (unistd.h): Likewise.
19940         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19941         Add a "DO NOT EDIT" comment to the generated file.
19942         (func_import): Likewise for gnulib-comp.m4.
19943
19944 2006-10-07  Bruno Haible  <bruno@clisp.org>
19945
19946         * lib/gl_sublist.h: New file.
19947         * lib/gl_sublist.c: New file.
19948
19949 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
19950
19951         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
19952         name (relative to the original working directory) and the file
19953         name component (relative to the temporary working directory).  All
19954         callers changed.
19955         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
19956         * lib/mkdir-p.c (make_dir_parents): Likewise.
19957         * lib/mkdir-p.h (make_dir_parents): Likewise.
19958
19959 2006-10-06  Eric Blake  <ebb9@byu.net>
19960
19961         Define several macros for use by the clean-temp module.
19962         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
19963         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
19964         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
19965
19966         * lib/clean-temp.h (close_stream_temp): New declaration.
19967         * lib/clean-temp.c (includes): Pull in headers according to what
19968         other modules are in use.
19969         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
19970
19971 2006-10-06  Bruno Haible  <bruno@clisp.org>
19972
19973         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
19974         instead of fopen, fwriteerror.
19975
19976 2006-10-06  Bruno Haible  <bruno@clisp.org>
19977
19978         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
19979         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
19980         int.
19981         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
19982         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
19983         Return an error indicator.
19984         Suggested by Eric Blake.
19985
19986 2006-10-06  Bruno Haible  <bruno@clisp.org>
19987
19988         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
19989         Reported by Eric Blake.
19990
19991 2006-10-06  Bruno Haible  <bruno@clisp.org>
19992
19993         * modules/closeout (Description): Mention stderr too.
19994
19995 2006-10-06  Bruno Haible  <bruno@clisp.org>
19996         and Paul Eggert  <eggert@cs.ucla.edu>
19997
19998         * lib/closeout.c (close_stdout): Also close stderr.
19999         * lib/closeout.h: Update comment.
20000
20001 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20002
20003         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
20004         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
20005         * lib/dirchownmod.c: Include lchown.h.
20006         * lib/lchown.c: Don't include files that lchown.h now includes.
20007         Don't declare chown, since lchown.h now does that.
20008         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
20009         (lchown): Define to rpl_chown if lchown is declared but
20010         does not exist.  Declare using a prototype if lchown is not
20011         declared.  Add a copyright notice.
20012         * lib/mkstemp.h: Include <unistd.h>.
20013         * lib/openat.c: Include lchown.h.
20014
20015         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
20016         we now test for that separately.
20017         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
20018         rather than O_NOFOLLOW, when testing whether it's possible to
20019         avoid a race condition reliably.
20020         * lib/savewd.c (savewd_chdir): Likewise.
20021
20022         Remove macros that are no longer needed now that stdint.h is
20023         reliable.
20024         * lib/fsusage.c (UINTMAX_MAX): Remove.
20025         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
20026         * lib/utimecmp.c (SIZE_MAX): Remove.
20027
20028         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
20029
20030         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
20031         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
20032         O_NOATIME works.
20033
20034 2006-10-05  Bruno Haible  <bruno@clisp.org>
20035
20036         * lib/gl_list.h (gl_sortedlist_search_from_to,
20037         gl_sortedlist_indexof_from_to): New declarations.
20038         (gl_list_implementation): New fields sortedlist_search_from_to,
20039         sortedlist_indexof_from_to.
20040         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
20041         inline functions.
20042         * lib/gl_list.c (gl_sortedlist_search_from_to,
20043         gl_sortedlist_indexof_from_to): New functions.
20044         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
20045         function.
20046         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
20047         (gl_array_sortedlist_search_from_to): New function.
20048         (gl_array_list_implementation): Update.
20049         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
20050         function.
20051         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
20052         (gl_carray_sortedlist_search_from_to): New function.
20053         (gl_carray_list_implementation): Update.
20054         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
20055         gl_linked_sortedlist_indexof_from_to): New functions.
20056         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20057         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20058         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
20059         gl_tree_sortedlist_indexof_from_to): New functions.
20060         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20061         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20062         Update.
20063         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20064         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
20065         Update.
20066
20067 2006-10-05  Bruno Haible  <bruno@clisp.org>
20068
20069         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
20070         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
20071         (struct gl_list_implementation): Add fields search_from_to,
20072         indexof_from_to. Remove fields search, indexof.
20073         (gl_list_search): Use the search_from_to method.
20074         (gl_list_search_from, gl_list_search_from_to): New functions.
20075         (gl_list_indexof): Use the indexof_from_to method.
20076         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
20077         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
20078         (gl_list_search_from, gl_list_search_from_to): New functions.
20079         (gl_list_indexof): Use the indexof_from_to method.
20080         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
20081         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
20082         gl_array_indexof. Add start_index, end_index arguments.
20083         (gl_array_search_from_to): Renamed from gl_array_search. Add
20084         start_index, end_index arguments.
20085         (gl_array_remove, gl_array_list_implementation): Update.
20086         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
20087         gl_carray_indexof. Add start_index, end_index arguments.
20088         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
20089         start_index, end_index arguments.
20090         (gl_carray_remove, gl_carray_list_implementation): Update.
20091         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
20092         gl_linked_search. Add start_index, end_index arguments.
20093         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
20094         start_index, end_index arguments.
20095         (gl_linked_remove): Update.
20096         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20097         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20098         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
20099         field to 'size_t'.
20100         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
20101         gl_tree_search. Add start_index, end_index arguments.
20102         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
20103         start_index, end_index arguments.
20104         (gl_tree_remove): Update.
20105         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20106         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20107         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
20108         function.
20109         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
20110         gl_tree_search. Add start_index, end_index arguments.
20111         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
20112         start_index, end_index arguments.
20113         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20114         Update.
20115         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
20116
20117 2006-10-05  Bruno Haible  <bruno@clisp.org>
20118
20119         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
20120
20121         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
20122         fwriteerror_temp): New declarations.
20123         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
20124         (descriptors): New variable.
20125         (cleanup): First, close the descriptors.
20126         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
20127         fclose_temp, fwriteerror_temp): New functions.
20128
20129 2006-10-04  Jim Meyering  <jim@meyering.net>
20130
20131         * lib/fts.c (fts_open): Tiny comment change.
20132
20133 2006-10-04  Bruno Haible  <bruno@clisp.org>
20134
20135         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
20136         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
20137         gl_LOCK_BODY.
20138         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
20139         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
20140         gl_LOCK_EARLY_BODY.
20141         (gl_LOCK): Require gl_LOCK_BODY.
20142
20143 2006-10-04  Bruno Haible  <bruno@clisp.org>
20144
20145         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
20146         (gl_oset_search_atleast): New declaration.
20147         (struct gl_oset_implementation): Add field 'search_atleast'.
20148         (gl_oset_search_atleast): New inline function.
20149         * lib/gl_oset.c (gl_oset_search_atleast): New function.
20150         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
20151         (gl_array_oset_implementation): Update.
20152         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
20153         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
20154         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
20155
20156 2006-10-04  Bruno Haible  <bruno@clisp.org>
20157
20158         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
20159
20160 2006-10-03  Bruno Haible  <bruno@clisp.org>
20161
20162         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
20163         from gl_avltreehash_list_implementation.
20164
20165 2006-10-03  Bruno Haible  <bruno@clisp.org>
20166
20167         * lib/gl_oset.c (gl_oset_add): Fix return type.
20168
20169 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
20170
20171         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
20172
20173 2006-10-02  Eric Blake  <ebb9@byu.net>
20174
20175         * modules/strnlen (Depends-on): Add extensions.
20176
20177 2006-10-02  Eric Blake  <ebb9@byu.net>
20178
20179         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
20180         definition in 2.60+.
20181
20182 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
20183
20184         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
20185         checks.
20186
20187 2006-10-02  Bruno Haible  <bruno@clisp.org>
20188
20189         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
20190         to the AUTOMAKE_OPTIONS.
20191         Reported by Jim Meyering.
20192
20193 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
20194
20195         Work around bug in Solaris 10 /proc file system:
20196         /proc/self/fd/NNN/.. isn't the parent directory of
20197         the directory whose file descriptor is NNN.  This needs to
20198         be worked around at run time, not compile time, since a
20199         program might be built on Solaris 8, where things work, and
20200         run on Solaris 10.
20201         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
20202         to use the following interface instead:
20203         (OPENAT_BUFFER_SIZE): New macro.
20204         (openat_proc_name): New function.
20205         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
20206         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
20207         Likewise.
20208         * lib/openat-proc.c: New file.
20209         * modules/openat (Files): Add lib/openat-proc.c.
20210         (Depends-on): Add same-inode, stdbool.
20211         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
20212
20213 2006-09-29  Bruno Haible  <bruno@clisp.org>
20214
20215         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
20216         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
20217         argument. Set stdout_closed before testing for ferror, not after.
20218         (fwriteerror, fwriteerror_no_ebadf): New functions.
20219
20220 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20221
20222         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
20223
20224 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
20225
20226         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
20227         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
20228
20229 2006-09-28  Jim Meyering  <jim@meyering.net>
20230
20231         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
20232         Include <unistd.h>.
20233
20234 2006-09-28  Bruno Haible  <bruno@clisp.org>
20235
20236         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
20237         * modules/linkedhash-list (Depends-on): Likewise.
20238         * modules/rbtreehash-list (Depends-on): Likewise.
20239
20240 2006-09-28  Bruno Haible  <bruno@clisp.org>
20241
20242         * lib/strndup.h: Simplify the redefinition of strndup.
20243         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
20244         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
20245
20246 2006-09-28  Bruno Haible  <bruno@clisp.org>
20247
20248         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
20249         * lib/gl_linkedhash_list.c: Likewise.
20250         * lib/gl_rbtreehash_list.c: Likewise.
20251
20252 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
20253
20254         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
20255         getaddrinfo.
20256
20257         * lib/__fpending.h: Don't include <stdio_ext.h> unless
20258         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
20259         it causes <stdio_ext.h> to cause a compile-time error.
20260         Problem reported by Nelson H. F. Beebe.
20261         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
20262         of HAVE_DECL___PENDING.
20263
20264         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
20265         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
20266         declaration.
20267
20268 2006-09-27  Jim Meyering  <jim@meyering.net>
20269
20270         This file could end up with a definition for a function
20271         named __strndup, rather than rpl_strndup on a system with
20272         incomplete weak_alias support.
20273         * lib/strndup.c (strndup): Rename from __strndup.
20274         Remove #defines that used to map __strndup to strndup.
20275         Don't use K&R prototypes.
20276         Remove LIBC-related code, since this file is not sync'd with glibc.
20277         * lib/strndup.h: Revamp, accordingly.
20278         * m4/strndup.m4: Modernize.
20279
20280 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
20281
20282         * modules/savewd (Depends-on): Add 'raise'.
20283         * lib/savewd.c: Include <signal.h>, for 'raise'.
20284
20285 2006-09-26  Jim Meyering  <jim@meyering.net>
20286
20287         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
20288         when we detect Darwin 8.7.0's acl_get_file bug.
20289         Rearrange to perform the new (below) run-test while $LIBS
20290         contains any acl-related library.  Set USE_ACL at the end.
20291         (gl_ACL_GET_FILE): New function.
20292
20293 2006-09-26  Eric Blake  <ebb9@byu.net>
20294
20295         * lib/verror.c: Include <config.h> unconditionally.
20296
20297 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
20298
20299         * modules/clock-time (Maintainer): Add self.
20300         * modules/getlogin_r (Depends-on): Add extensions.
20301
20302 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20303
20304         * modules/clock-time: New module.
20305         * modules/nanosleep (Depends-on): Add clock-time.
20306         * modules/gethrxtime (Depends-on): Likewise.
20307         * modules/gettime (Depends-on): Likewise.
20308         * modules/settime (Depends-on): Likewise.
20309
20310         * modules/fts-lgpl: Depend on openat.
20311         * modules/mkancesdirs: Depend on savewd.
20312         * modules/mkdir-p: Likewise.
20313
20314 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20315
20316         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
20317
20318         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
20319         `gl_have_arbitrary_file_name_length_limit' to
20320         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
20321         actually works between configure runs.
20322
20323 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20324             Bruno Haible  <bruno@clisp.org>
20325
20326         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
20327
20328 2006-09-25  Jim Meyering  <jim@meyering.net>
20329
20330         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
20331         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
20332
20333 2006-09-25  Eric Blake  <ebb9@byu.net>
20334
20335         * gnulib-tool (func_import, func_create_testdir): Fix typos in
20336         exec's in 2006-09-18 patch when shuffling fds.
20337
20338 2006-09-25  Bruno Haible  <bruno@clisp.org>
20339
20340         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
20341         Reported by Jim Meyering.
20342
20343 2006-09-24  Jim Meyering  <jim@meyering.net>
20344
20345         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
20346         compare a pointer against a literal "0".  That caused failures with
20347         at least HP-UX's hpcc.
20348
20349 2006-09-22  Simon Josefsson  <jas@extundo.com>
20350
20351         * modules/gc-sha1:
20352         * modules/gc-md4:
20353         * modules/gc-hmac-sha1:
20354         * modules/gc-hmac-md5:
20355         * modules/gc-des:
20356         * modules/gc-arcfour: Distribute more files.
20357
20358 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20359
20360         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
20361         (gl_linked_iterator_from_to): Initialize struct completely.
20362         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
20363         (gl_tree_iterator_from_to): Likewise
20364         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
20365         * lib/gl_array_list.c [lint] (gl_array_iterator)
20366         (gl_array_iterator_from_to): Likewise.
20367         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
20368         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
20369         (gl_carray_iterator_from_to): Likewise.
20370
20371         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
20372         * lib/md4.c (md4_process_block): Remove unused variable.
20373         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
20374         parentheses for clarity.
20375
20376 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20377
20378         * modules/bison-i18n (Depends-on): Add gettext.
20379
20380 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20381
20382         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
20383         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
20384         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
20385         also add missing comma that caused broken test.
20386         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
20387         stdlib.h, for `abort'.
20388         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
20389         variables.
20390         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
20391         include unistd.h if present, for `rmdir'.
20392         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
20393         variables.
20394         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
20395         in the process include standard headers for prototypes.
20396         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
20397         gets declared on GNU/Linux.
20398         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
20399         unistd.h, for `rmdir'.
20400         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
20401
20402         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
20403         always true.
20404         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
20405
20406         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
20407
20408 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20409
20410         * gnulib-tool (func_version): Create output all at once.  This
20411         may help avoid triggering unnecessary SIGPIPEs, and at any
20412         rate it doesn't hurt.
20413
20414 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20415             Bruno Haible  <bruno@clisp.org>
20416
20417         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
20418         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20419         * m4/signed.m4 (bh_C_SIGNED): Likewise.
20420
20421         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
20422         (gl_FUNC_VASPRINTF): Invoke it.
20423
20424 2006-09-22  Bruno Haible  <bruno@clisp.org>
20425
20426         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
20427         getloadavg.c as first argument.
20428
20429 2006-09-22  Bruno Haible  <bruno@clisp.org>
20430
20431         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
20432         at the beginning of the gl_INIT macro.
20433         * modules/getloadavg (configure.ac): Pass $gl_source_base to
20434         gl_GETLOADAVG.
20435
20436 2006-09-22  Bruno Haible  <bruno@clisp.org>
20437
20438         * gnulib-tool (func_create_megatestdir): Don't include the config-h
20439         module.
20440         Suggested by Ralf Wildenhues.
20441
20442 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20443
20444         Import this patch from libc:
20445
20446         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
20447
20448         * lib/regex_internal.c (re_string_reconstruct): Handle
20449         offset < pstr->valid_raw_len && pstr->offsets_needed case.
20450         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
20451         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
20452         re_string_context_at.
20453
20454         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
20455         now requires it.
20456         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
20457         gl_REGEX now does it for us.
20458         (gl_REGEX): Add test taken from
20459         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
20460
20461         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
20462         Check that large offsets work.  Modernize Autoconf usages.
20463         Prefer "yes" to mean a good thing rather than a bad.
20464         Don't put "#define mkstemp" in config.h, as this might interfere
20465         with standard system headers that "#define mkstemp mkstemp64".
20466
20467         * modules/mkstemp (Depends-on): Add extensions, so that
20468         mkstemp is visible on some platforms.
20469         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
20470         (Include): Change to "mkstemp.h" from <stdlib.h>.
20471         (Files): Add mkstemp.h.
20472
20473         * lib/mkstemp.h: New file, since some standard headers
20474         #define mkstemp.
20475         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
20476         Include "mkstemp.h".
20477         Make the _LIBC code resemble glibc original more,
20478         e.g., use K&R style.
20479         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
20480         (mkstemp): Remove, since mkstemp.h does this for us.
20481         * lib/stdlib--.h: Include mkstemp.h.
20482
20483         Import this patch from libc:
20484
20485         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
20486
20487         * lib/tempname.c (__gen_tempname): Change attempts_min
20488         into a macro.  Use preprocessor to decide how to initialize
20489         attempts [Coverity CID 67].
20490
20491 2006-09-20  Bruno Haible  <bruno@clisp.org>
20492
20493         * lib/mkdtemp.c: Import from libc.
20494         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
20495                 * sysdeps/posix/tempname.c (__gen_tempname): Change
20496                 attempts_min into a macro.  Use preprocessor to decide how to
20497                 initialize attempts [Coverity CID 67].
20498         2001-11-27  Paul Eggert  <eggert@twinsun.com>
20499                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
20500                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
20501
20502 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20503
20504         * gnulib-tool (func_exit): New function, to allow to pass the
20505         exit status portably through the trap.  Use everywhere.
20506         (--help, --version): Signal a write error.
20507         (trap): catch SIGPIPE, for write errors.
20508         Exit at the end of the trap, with the correct exit status.
20509
20510 2006-09-19  Karl Berry  <karl@gnu.org>
20511
20512         * doc/gnulib.texi: note about the license texinfo files.
20513
20514 2006-09-19  Eric Blake  <ebb9@byu.net>
20515
20516         * gnulib-tool: Avoid space-tab.
20517
20518 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
20519
20520         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
20521         that prevented coreutils 6.1 from building.  Problem reported
20522         by Petter Reinholdtsen.
20523
20524 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
20525
20526         * gnulib-tool (avoidlist): Fix typo that broke options like
20527         --avoid=lock that are used by coreutils bootstrap.
20528
20529 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
20530
20531         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
20532         more systematically.
20533
20534 2006-09-18  Jim Meyering  <jim@meyering.net>
20535
20536         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
20537
20538 2006-09-18  Bruno Haible  <bruno@clisp.org>
20539
20540         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
20541
20542 2006-09-18  Bruno Haible  <bruno@clisp.org>
20543
20544         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
20545         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
20546         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
20547         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
20548         * m4/gettext.m4: Require autoconf >= 2.52.
20549         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
20550         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
20551         of gl_cv_header_inttypes_h.
20552
20553 2006-09-18  Bruno Haible  <bruno@clisp.org>
20554
20555         * lib/javaversion.c: Include configmake.h.
20556
20557 2006-09-18  Bruno Haible  <bruno@clisp.org>
20558
20559         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
20560         avoid that the while loops be executed in a subshell.
20561
20562 2006-09-18  Bruno Haible  <bruno@clisp.org>
20563
20564         * MODULES.html.sh (func_module): Break long lines.
20565         Suggested by Bruce Korb <bkorb@gnu.org>.
20566
20567 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20568
20569         Speed up by a factor of 1.12.
20570         * gnulib-tool (nl): New variable.
20571         (func_import): Rewrite include directive extraction to only read each
20572         directive once.
20573
20574 2006-09-17  Bruno Haible  <bruno@clisp.org>
20575
20576         * modules/javaversion (Makefile.am): Remove DEFS setting.
20577         (Depends-on): Add configmake, for PKGDATADIR definition.
20578
20579 2006-09-17  Bruno Haible  <bruno@clisp.org>
20580
20581         * gnulib-tool (func_create_testdir): Rewrite all files at once.
20582
20583 2006-09-17  Bruno Haible  <bruno@clisp.org>
20584
20585         * gnulib-tool (func_append): New function, stolen from libtool.m4.
20586         (func_modules_transitive_closure, func_modules_add_dummy,
20587         func_modules_to_filelist, func_import, func_create_testdir,
20588         func_create_megatestdir, ...): Use it wherever possible.
20589         Suggested by Ralf Wildenhues.
20590
20591 2006-09-16  Karl Berry  <karl@gnu.org>
20592
20593         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
20594         to avoid sectioning errors.
20595         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
20596         [ifinfo]: blank line after @center-ed titles.
20597         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
20598         Spell FSF address consistently with others.
20599         (These changes approved by rms.)
20600
20601 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20602
20603         Speed up by a factor of 1.61.
20604         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
20605         already checked module names again.
20606
20607 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20608
20609         Speed up by a factor of 1.13.
20610         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
20611         for new_files, and the input to func_add_or_update.
20612
20613 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20614
20615         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
20616         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
20617
20618 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
20619
20620         * modules/mkancesdirs (Depends-on): Add fcntl.
20621         * modules/savewd: New file.
20622         * MODULES.html.sh (File system functions): Add savewd.
20623
20624         * modules/configmake (Makefile.am): Add support for the
20625         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
20626
20627 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
20628
20629         * m4/savewd.m4: New file.
20630
20631 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
20632
20633         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
20634         (dirchownmod): New arg FD.  All callers changed.
20635         Use FD rather than opening the directory ourself, as opening is
20636         now the caller's responsibility.
20637         * lib/dirchownmod.h: Likewise.
20638         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
20639         hosts that require <sys/types.h> before <sys/stat.h>.  Include
20640         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
20641         (test_dir): Remove.
20642         (mkancesdirs): Return length of prefix of FILE that has already
20643         been made, or -2 if there is a child doing the work.  Redo
20644         algorithm so that it is O(N) rather than O(N**2).  Optimize away
20645         ".", and treat ".." specially since it might stray back into
20646         already-created areas.  Use a subprocess if necessary.  New arg
20647         WD; all users changed.  MAKE_DIR function should now return 1
20648         if it creates a directory that is not readable.  Return -2 if
20649         a child process is spun off.
20650         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
20651         Adjust signature to match code.
20652         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
20653         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
20654         all users changed.
20655         * lib/savewd.c, lib/savewd.h: New files.
20656
20657 2006-09-15  Jim Meyering  <jim@meyering.net>
20658
20659         * modules/rename-dest-slash: New module.
20660         * MODULES.html.sh (posix_compat): Add it here.
20661
20662         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
20663
20664 2006-09-15  Jim Meyering  <jim@meyering.net>
20665
20666         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
20667         file.
20668
20669         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
20670
20671 2006-09-15  Jim Meyering  <jim@meyering.net>
20672
20673         * lib/rename-dest-slash.c (has_trailing_slash): Use
20674         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
20675         (rpl_rename_dest_slash): Perform the cheaper trailing slash
20676         test before testing whether SRC is a directory.
20677         Suggestions from Bruno Haible.
20678
20679         Avoid a warning about an unused variable.
20680         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
20681         into the #ifdef block where it's used.
20682
20683         * lib/rename-dest-slash.c: New file.
20684
20685 2006-09-14  Bruno Haible  <bruno@clisp.org>
20686
20687         * lib/allocsa.c: Include <config.h> unconditionally.
20688         * lib/asnprintf.c: Likewise.
20689         * lib/asprintf.c: Likewise.
20690         * lib/c-strcasecmp.c: Likewise.
20691         * lib/c-strcasestr.c: Likewise.
20692         * lib/c-strncasecmp.c: Likewise.
20693         * lib/c-strstr.c: Likewise.
20694         * lib/classpath.c: Likewise.
20695         * lib/clean-temp.c: Likewise.
20696         * lib/concatpath.c: Likewise.
20697         * lib/copy-file.c: Likewise.
20698         * lib/csharpcomp.c: Likewise.
20699         * lib/csharpexec.c: Likewise.
20700         * lib/execute.c: Likewise.
20701         * lib/fatal-signal.c: Likewise.
20702         * lib/findprog.c: Likewise.
20703         * lib/fwriteerror.c: Likewise.
20704         * lib/gl_array_list.c: Likewise.
20705         * lib/gl_array_oset.c: Likewise.
20706         * lib/gl_avltree_list.c: Likewise.
20707         * lib/gl_avltree_oset.c: Likewise.
20708         * lib/gl_avltreehash_list.c: Likewise.
20709         * lib/gl_carray_list.c: Likewise.
20710         * lib/gl_linked_list.c: Likewise.
20711         * lib/gl_linkedhash_list.c: Likewise.
20712         * lib/gl_list.c: Likewise.
20713         * lib/gl_oset.c: Likewise.
20714         * lib/gl_rbtree_list.c: Likewise.
20715         * lib/gl_rbtree_oset.c: Likewise.
20716         * lib/gl_rbtreehash_list.c: Likewise.
20717         * lib/imaxabs.c: Likewise.
20718         * lib/imaxdiv.c: Likewise.
20719         * lib/javacomp.c: Likewise.
20720         * lib/javaexec.c: Likewise.
20721         * lib/javaversion.c: Likewise.
20722         * lib/linebreak.c: Likewise.
20723         * lib/localcharset.c: Likewise.
20724         * lib/lock.c: Likewise.
20725         * lib/mbchar.c: Likewise.
20726         * lib/mbswidth.c: Likewise.
20727         * lib/mkdtemp.c: Likewise.
20728         * lib/pipe.c: Likewise.
20729         * lib/printf-args.c: Likewise.
20730         * lib/printf-parse.c: Likewise.
20731         * lib/progname.c: Likewise.
20732         * lib/progreloc.c: Likewise.
20733         * lib/readlink.c: Likewise.
20734         * lib/sh-quote.c: Likewise.
20735         * lib/stpcpy.c: Likewise.
20736         * lib/stpncpy.c: Likewise.
20737         * lib/strcasecmp.c: Likewise.
20738         * lib/strcasestr.c: Likewise.
20739         * lib/strcspn.c: Likewise.
20740         * lib/striconv.c: Likewise.
20741         * lib/strncasecmp.c: Likewise.
20742         * lib/strnlen1.c: Likewise.
20743         * lib/strstr.c: Likewise.
20744         * lib/strtok_r.c: Likewise.
20745         * lib/tls.c: Likewise.
20746         * lib/tmpdir.c: Likewise.
20747         * lib/unicodeio.c: Likewise.
20748         * lib/unsetenv.c: Likewise.
20749         * lib/vasnprintf.c: Likewise.
20750         * lib/vasprintf.c: Likewise.
20751         * lib/wait-process.c: Likewise.
20752         * lib/xallocsa.c: Likewise.
20753         * lib/xsetenv.c: Likewise.
20754         * lib/xstriconv.c: Likewise.
20755
20756 2006-09-13  Simon Josefsson  <jas@extundo.com>
20757
20758         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
20759         that internally, suggested by Ralf Wildenhues
20760         <Ralf.Wildenhues@gmx.de>.
20761
20762 2006-09-13  Simon Josefsson  <jas@extundo.com>
20763
20764         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
20765         @LIBOBJS@.
20766         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20767
20768 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20769
20770         * lib/_fpending.c: Include <config.h> unconditionally, since we no
20771         longer worry about uses that don't define HAVE_CONFIG_H.
20772         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
20773         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
20774         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
20775         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
20776         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
20777         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
20778         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
20779         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
20780         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
20781         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
20782         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
20783         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
20784         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
20785         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
20786         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
20787         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
20788         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
20789         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
20790         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
20791         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
20792         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
20793         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
20794         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
20795         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
20796         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
20797         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
20798         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
20799         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
20800         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
20801         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
20802         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
20803         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
20804         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
20805         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
20806         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
20807         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
20808         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
20809         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
20810         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
20811         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
20812         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
20813         Likewise.
20814
20815 2006-09-13  Eric Blake  <ebb9@byu.net>
20816
20817         * lib/getopt.c: Fix typo in last commit.
20818
20819 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
20820
20821         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
20822         dgettext.
20823
20824 2006-09-12  Jim Meyering  <jim@meyering.net>
20825
20826         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
20827         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
20828         Reported by Nelson H. F. Beebe.
20829
20830 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
20831
20832         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
20833         program_invocation_name and program_invocation_short_name are
20834         initialized.
20835         * lib/argp-namefrob.h: Move declarations of program_invocation_name
20836         and program_invocation_short_name to argp.h, so they are visible
20837         to user programs.
20838         * lib/argp.h: Likewise
20839
20840 2006-09-10  Bruno Haible  <bruno@clisp.org>
20841
20842         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
20843         m4/inttypes_h.m4, m4/uintmax_t.m4.
20844
20845 2006-09-10  Bruno Haible  <bruno@clisp.org>
20846
20847         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
20848         gl_AC_TYPE_UINTMAX_T.
20849
20850 2006-09-10  Bruno Haible  <bruno@clisp.org>
20851
20852         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
20853
20854 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
20855
20856         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
20857         convention.  Text proposed by Bruno Haible.
20858         (struct argp_option): Document the use of N_() wrappers.
20859
20860         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
20861         '\v', and translate the two parts separately, instead of feeding
20862         the whole string to gettext.  This allows to exclude
20863         '\v' from the strings visible to the translator by writing doc
20864         strings as N_("..") "\v" N_("..").
20865
20866 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
20867
20868         * config/srclist.txt: Undo latest change; the bug was fixed.
20869
20870 2006-09-09  Bruno Haible  <bruno@clisp.org>
20871
20872         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
20873         assignments if building a library without libtool.
20874         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
20875         in func_emit_lib_Makefile_am.
20876         (func_import): When building a static library libfoo.a, arrange to
20877         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
20878         (func_create_testdir): Likewise.
20879         * modules/gc (configure.ac, Makefile.am): If building statically,
20880         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
20881         * modules/iconvme (configure.ac, Makefile.am): Likewise.
20882         * modules/striconv (configure.ac, Makefile.am): Likewise.
20883         Based on a suggestion by Ralf Wildenhues.
20884
20885 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
20886
20887         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
20888         Check for unistd.h too, since Autoconf doesn't assume POSIX.
20889         Also:
20890
20891         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
20892         Add year_2050_test to catch glibc bug 2821
20893         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
20894
20895         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20896         Prefer #ifdef to #if.
20897
20898         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
20899         Return from 'main' instead of calling 'exit'.
20900
20901 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
20902
20903         * lib/mktime.c (guess_time_tm): Fix bug where mktime
20904         returned the maximum time_t value rather than (time_t) -1.
20905         Problem originally reported by William Bardwell
20906         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
20907
20908         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
20909         Moved to here ...
20910         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
20911         ... from here.
20912
20913 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
20914
20915         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
20916         2821 is fixed.
20917
20918 2006-09-08  Jim Meyering  <jim@meyering.net>
20919
20920         Don't make generated files read-only.  That would bother too many
20921         people.  However, do retain the ability to work when targets are
20922         read-only: remove the destination and temporary files before writing
20923         them (when generated via sed or echo), or by using the -f option for
20924         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
20925         * modules/alloca-opt, modules/argz, modules/arpa_inet:
20926         * modules/byteswap, modules/configmake, modules/fcntl:
20927         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
20928         * modules/localcharset, modules/netinet_in, modules/poll:
20929         * modules/stdbool, modules/stdint, modules/sys_select:
20930         * modules/sys_socket, modules/sys_stat, modules/sysexits:
20931
20932 2006-09-08  Jim Meyering  <jim@meyering.net>
20933
20934         Avoid new build failure on FreeBSD 6.0.
20935         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
20936         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
20937         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
20938
20939 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20940
20941         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
20942
20943 2006-09-07  Jim Meyering  <jim@meyering.net>
20944
20945         Fix global typo in last change: use chmod u-w, not chmod u-x.
20946         Spotted by Paul Eggert and Bruce Korb.
20947         * modules/alloca-opt, modules/argz, modules/arpa_inet:
20948         * modules/byteswap, modules/configmake, modules/fcntl:
20949         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
20950         * modules/localcharset, modules/netinet_in, modules/poll:
20951         * modules/stdbool, modules/stdint, modules/sys_select:
20952         * modules/sys_socket, modules/sys_stat, modules/sysexits:
20953
20954 2006-09-06  Jim Meyering  <jim@meyering.net>
20955
20956         Make generated files be read-only.
20957         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
20958         Ensure that each generated file is now read-only.
20959         * modules/argz: Likewise.
20960         * modules/arpa_inet: Likewise.
20961         * modules/byteswap: Likewise.
20962         * modules/configmake: Likewise.
20963         * modules/fcntl: Likewise.
20964         * modules/fnmatch: Likewise.
20965         * modules/getopt: Likewise.
20966         * modules/glob: Likewise.
20967         * modules/inttypes: Likewise.
20968         * modules/netinet_in: Likewise.
20969         * modules/poll: Likewise.
20970         * modules/stdbool: Likewise.
20971         * modules/stdint: Likewise.
20972         * modules/sys_select: Likewise.
20973         * modules/sys_socket: Likewise.
20974         * modules/sys_stat: Likewise.
20975         * modules/sysexits: Likewise.
20976         * modules/localcharset: Same as above, but continue using temporary
20977         file named "t-$@" (why different?) rather than the "$@-t" used
20978         everywhere else.
20979
20980         * modules/sysexits (Makefile.am): Replace literal occurrences
20981         of "sysexit.h" more readable, and more consistent, "$@".
20982
20983 2006-09-06  Bruno Haible  <bruno@clisp.org>
20984
20985         * modules/striconv: New file.
20986         * modules/xstriconv: New file.
20987         * MODULES.html.sh (Internationalization functions): Add striconv,
20988         xstriconv.
20989
20990 2006-09-06  Bruno Haible  <bruno@clisp.org>
20991
20992         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
20993         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
20994         not using libtool correctly.
20995
20996 2006-09-06  Bruno Haible  <bruno@clisp.org>
20997
20998         * lib/striconv.h: New file.
20999         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
21000         iconvstring.c.
21001         * lib/xstriconv.h: New file.
21002         * lib/xstriconv.c: New file.
21003
21004 2006-09-06  Bruno Haible  <bruno@clisp.org>
21005
21006         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21007         lib_..._LDFLAGS.
21008
21009 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21010
21011         * lib/argz_.h: Sync from Libtool.
21012
21013         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
21014                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21015
21016         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
21017
21018 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
21019
21020         * modules/trim: New file.
21021
21022 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
21023
21024         * lib/trim.h: New file.
21025         * lib/trim.c: New file.
21026
21027 2006-09-05  Bruno Haible  <bruno@clisp.org>
21028
21029         * MODULES.html.sh (String handling): Add trim.
21030
21031 2006-09-04  Karl Berry  <karl@gnu.org>
21032
21033         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
21034         until next release.
21035
21036 2006-09-03  Bruno Haible  <bruno@clisp.org>
21037
21038         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
21039         correctly.
21040
21041 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21042
21043         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
21044         not gl_GETLOADAVG.  Omit unneeded semicolons.
21045         Problems reported by Ralf Wildenhues in
21046         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
21047         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
21048         at the end, which is the usual gnulib style.
21049
21050         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
21051         of doing all the work ourselves.
21052         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
21053         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
21054
21055 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21056
21057         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
21058         Problem reported by Ralf Wildenhues in
21059         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
21060
21061         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
21062         HAVE_STRUCT_STATFS_F_FSTYPENAME.
21063
21064 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21065
21066         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
21067         yesterday's patch by changing test -n to test -z.
21068
21069 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21070
21071         * modules/getloadavg (Files): Add m4/getloadavg.m4.
21072         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
21073         the former is now obsolescent.
21074
21075         * modules/chdir-long (Depends-on): Add fcntl.
21076
21077 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21078
21079         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
21080         obsolescent, and programs should use gnulib instead.
21081         * m4/getloadavg.m4: New file, with contents taken from Autoconf
21082         but with prefixes changed.
21083
21084 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21085
21086         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
21087         or stdbool.h, because they might not exist while configuring.
21088
21089         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
21090         Don't include unistd.h or limits.h; not needed, since chdir-long.h
21091         does that for us.
21092         (O_DIRECTORY): Remove.
21093
21094 2006-08-31  Eric Blake  <ebb9@byu.net>
21095
21096         * gnulib-tool: Don't let emacs change spaces to TAB.
21097
21098 2006-08-31  Bruno Haible  <bruno@clisp.org>
21099
21100         * gnulib-tool: When calling func_import more than once, do it in a
21101         subshell.
21102         Reported by Eric Blake <ebb9@byu.net>.
21103
21104 2006-08-31  Bruno Haible  <bruno@clisp.org>
21105
21106         * gnulib-tool (nl): Remove variable.
21107         (sed_transform_lib_file): Use more robust test for config-h module.
21108         (func_import): Fix typo in 2006-08-25 patch.
21109
21110 2006-08-31  Bruno Haible  <bruno@clisp.org>
21111
21112         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
21113         specified, augment Makefile.am variables instead of assigning them.
21114
21115 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21116
21117         Work around a bug in both the Linux and SunOS 64-bit kernels:
21118         nanosleep mishandles sleeps for longer than 2**31 seconds.
21119         Problem reported by Frank v Waveren in
21120         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
21121         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
21122         Check for nanosleep bug.
21123         (LIB_NANOSLEEP): Append clock_gettime library if needed.
21124
21125 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21126
21127         Work around a bug in both the Linux and SunOS 64-bit kernels:
21128         nanosleep mishandles sleeps for longer than 2**31 seconds.
21129         Problem reported by Frank v Waveren in
21130         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
21131         * lib/nanosleep.c (BILLION): New constant.
21132         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
21133         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
21134         implementation.
21135
21136 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21137
21138         * modules/nanosleep (Depends-on): Add gettime.
21139
21140 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21141         and Simon Josefsson  <jas@extundo.com>
21142         and Oskar Liljeblad  <oskar@osk.mine.nu>
21143
21144         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
21145         * gnulib-tool (func_import): New license type 'unmodifiable license
21146         text'.
21147         * modules/fdl: Use it.  Longer description.
21148         * module/gpl, module/lgpl: New files.
21149
21150 2006-08-30  Jim Meyering  <jim@meyering.net>
21151
21152         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
21153         shadowing the parameter.
21154
21155 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21156
21157         Sync from Libtool:
21158
21159         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21160
21161         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
21162         sharing with gnulib.  Report by Eric Blake.
21163
21164 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21165
21166         * modules/isapipe: New file.
21167         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
21168
21169 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21170
21171         * modules/configmake (Makefile.am): Add a comment, and omit
21172         the CONFIGMAKE_ prefix from generated macro names.  Suggested
21173         by Bruno Haible.
21174
21175 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21176
21177         * m4/isapipe.m4: New file.
21178
21179 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21180
21181         * lib/isapipe.c, lib/isapipe.h: New files.
21182
21183 2006-08-29  Jim Meyering  <jim@meyering.net>
21184
21185         * modules/configmake (Makefile.am): Make configmake.h depend on
21186         Makefile.  Otherwise, a stale configmake.h could hang around.
21187
21188 2006-08-29  Eric Blake  <ebb9@byu.net>
21189
21190         * lib/error.c (error_at_line, print_errno_message): Match libc, after
21191         resolution of upstream bug 3044.
21192
21193 2006-08-29  Bruno Haible  <bruno@clisp.org>
21194
21195         * modules/localcharset (Depends-on): Add configmake.
21196         (Makefile.am): Remove setting of LIBDIR through DEFS.
21197
21198 2006-08-29  Bruno Haible  <bruno@clisp.org>
21199
21200         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
21201         defined.
21202
21203 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21204
21205         * modules/fcntl: New file.
21206         * modules/chdir-safer (Depends-on): Add fcntl.
21207         * modules/fts: Likewise.
21208         * modules/mkdir-p: Likewise.
21209
21210         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
21211         This undoes the most recent change, since we're now addressing the
21212         problem in a different way.
21213
21214         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
21215         into output, since the output might be called Makefile.am even
21216         if $makefile_name is something different.
21217         (func_import): Use $makefile_am rather than
21218         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
21219         empty.
21220
21221         * modules/inttypes (Files): Add m4/inttypes-h.m4.
21222
21223 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21224
21225         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
21226         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
21227         recent change to stdint.m4, since we're now addressing the problem in a
21228         different way.
21229
21230 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21231
21232         * m4/fcntl_h.m4: New file.
21233
21234 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21235
21236         * lib/fcntl_.h: New file.
21237         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
21238         the fcntl module.
21239         * lib/dirchownmod.c: Likewise.
21240         * lib/fts.c: Likewise.
21241
21242         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
21243         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
21244         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
21245         just before including <inttypes.h>, to avoid circular inclusion.
21246
21247 2006-08-28  Jim Meyering  <jim@meyering.net>
21248
21249         * doc/visibility.texi: Actually read and correct the grammar of the
21250         sentence affected by yesterday's change.
21251
21252 2006-08-28  Eric Blake  <ebb9@byu.net>
21253
21254         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
21255         needs wrapper.
21256
21257 2006-08-28  Eric Blake  <ebb9@byu.net>
21258
21259         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
21260
21261 2006-08-28  Eric Blake  <ebb9@byu.net>
21262
21263         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
21264
21265 2006-08-28  Bruno Haible  <bruno@clisp.org>
21266
21267         * modules/c-strstr: New file, from GNU gettext.
21268         * MODULES.html.sh (String handling): Add c-strstr.
21269
21270 2006-08-28  Bruno Haible  <bruno@clisp.org>
21271
21272         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
21273         macros.
21274         Reported by Eric Blake.
21275
21276 2006-08-28  Bruno Haible  <bruno@clisp.org>
21277
21278         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
21279         (VASNPRINTF): Return a string of length > INT_MAX without failing.
21280         * lib/vasprintf.c: Include errno.h, limits.h.
21281         (EOVERFLOW): New fallback definition.
21282         (vasprintf): Test here whether the string length is > INT_MAX.
21283         * lib/vsnprintf.c: Include errno.h, limits.h.
21284         (EOVERFLOW): New fallback definition.
21285         (vsnprintf): Fix bug when generated string was too long for the buffer.
21286         Test here whether the string length is > INT_MAX.
21287
21288 2006-08-28  Bruno Haible  <bruno@clisp.org>
21289
21290         * lib/inttypes_.h (SCNX*): Remove definitions.
21291         Reported by Eric Blake.
21292
21293 2006-08-28  Bruno Haible  <bruno@clisp.org>
21294
21295         * lib/c-strstr.h: New file, from GNU gettext.
21296         * lib/c-strstr.c: New file, from GNU gettext.
21297
21298 2006-08-28  Bruno Haible  <bruno@clisp.org>
21299
21300         * gnulib-tool: Reorder some statements.
21301
21302 2006-08-28  Bruno Haible  <bruno@clisp.org>
21303
21304         * gnulib-tool: New option --makefile-name.
21305         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
21306         $makefile_name.
21307         (func_import): Write $makefile_name to the cache file, and read it from
21308         there unless explicitly specified. Use $makefile_name as file name
21309         instead of Makefile.am. Adjust the recommendations accordingly.
21310
21311 2006-08-28  Bruno Haible  <bruno@clisp.org>
21312
21313         * gnulib-tool (func_verify_module): Check against misapplying patch.
21314
21315 2006-08-28  Bruno Haible  <bruno@clisp.org>
21316
21317         * gnulib-tool (func_relativize, func_relconcat): New functions.
21318         Give an error if --local-dir is given with --update.
21319         Remove trailing slashes from $local_gnulib_dir.
21320         (func_import): Store the relativized $local_gnulib_dir in
21321         gnulib-cache.m4, and read it from there if not specified explicitly.
21322
21323 2006-08-28  Bruno Haible  <bruno@clisp.org>
21324
21325         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
21326         is the current directory. Respect also $local_gnulib_dir.
21327
21328 2006-08-28  Bruno Haible  <bruno@clisp.org>
21329             Simon Josefsson  <jas@extundo.com>
21330
21331         BeOS portability.
21332         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
21333
21334 2006-08-27  Jim Meyering  <jim@meyering.net>
21335
21336         * doc/visibility.texi: Remove duplicate word: "pointer".
21337
21338 2006-08-26  Bruno Haible  <bruno@clisp.org>
21339
21340         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
21341         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
21342         (Makefile.am): Create inttypes.h from inttypes_.h.
21343         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
21344
21345         * modules/imaxabs: New file.
21346
21347         * modules/imaxdiv: New file.
21348
21349 2006-08-26  Bruno Haible  <bruno@clisp.org>
21350
21351         * m4/inttypes.m4: New file.
21352         * m4/_inttypes_h.m4: Remove file.
21353         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
21354         PRI_MACROS_BROKEN.
21355         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
21356
21357         * m4/imaxabs.m4: New file.
21358
21359         * m4/imaxdiv.m4: New file.
21360
21361 2006-08-26  Bruno Haible  <bruno@clisp.org>
21362
21363         * lib/inttypes_.h: New file.
21364         * lib/inttypes.h: Remove file.
21365         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
21366
21367         * lib/imaxabs.c: New file.
21368
21369         * lib/imaxdiv.c: New file.
21370
21371 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
21372
21373         New config-h module, so that "make" output needn't be cluttered
21374         by -DHAVE_CONFIG_H.
21375         * MODULES.html.sh (Support for building libraries and executables):
21376         Add config-h.
21377         * modules/config-h: New file.
21378         * gnulib-tool (nl, sed_transform_lib_file): New vars.
21379         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
21380         the config-h module is used.
21381
21382         New configmake module, so that "make" output needn't be cluttered
21383         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
21384         * MODULES.html.sh (Support for building libraries and executables):
21385         Add configmake.
21386         * modules/configmake: New file.
21387
21388 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
21389
21390         * m4/config-h.m4: New file.
21391
21392 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21393
21394         * config/srclist.txt: Add elisp-comp.
21395
21396 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21397
21398         * MODULES.html.sh (Support for building libraries and executables):
21399         Add elisp-comp.
21400         * build-aux/elisp-comp: New file.
21401         * modules/elisp-comp: New file.
21402
21403 2006-08-24  Bruno Haible  <bruno@clisp.org>
21404
21405         * gnulib-tool (func_create_testdir): Use non-default values of
21406         sourcebase and m4base.
21407
21408 2006-08-24  Bruno Haible  <bruno@clisp.org>
21409
21410         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
21411         HTML structure.
21412
21413 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21414
21415         * modules/openat (Depends-on): Add lchown.
21416
21417 2006-08-23  Bruno Haible  <bruno@clisp.org>
21418
21419         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
21420         of gl_LOCK_EARLY instead of gl_LOCK.
21421
21422 2006-08-23  Bruno Haible  <bruno@clisp.org>
21423
21424         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
21425         on OSF/1 to no.
21426         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
21427
21428 2006-08-23  Bruno Haible  <bruno@clisp.org>
21429
21430         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
21431         as unusable.
21432
21433         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
21434         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
21435         (gl_LOCK): New macro.
21436
21437 2006-08-22  Simon Josefsson  <jas@extundo.com>
21438
21439         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
21440         to md5 module.
21441
21442 2006-08-22  Simon Josefsson  <jas@extundo.com>
21443
21444         * MODULES.html.sh: Add "Support for maintaining and release
21445         projects".
21446
21447         * build-aux/gnupload: New file, from coreutils.
21448
21449 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21450
21451         Avoid the need for AC_LIBSOURCES in m4 macros.
21452         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
21453         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
21454         * modules/check-version (EXTRA_DIST): Add check-version.h.
21455         * modules/crc (EXTRA_DIST): Add crc.h.
21456         * modules/des (EXTRA_DIST): Add des.h.
21457         * modules/gc (EXTRA_DIST): Add gc.h.
21458         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
21459         * modules/getline (EXTRA_DIST): Add getline.h.
21460         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
21461         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
21462         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
21463         * modules/md2 (EXTRA_DIST): Add md2.h.
21464         * modules/md4 (EXTRA_DIST): Add md4.h.
21465         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
21466         * modules/read-file (EXTRA_DIST): Add read-file.h.
21467         * modules/readline (EXTRA_DIST): Add readline.h.
21468         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
21469         rijndael-api-fst.h.
21470
21471 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21472
21473         * m4/rijndael.m4 (gl_ARCFOUR):
21474         * m4/arctwo.m4 (gl_ARCTWO):
21475         * m4/check-version.m4 (gl_CHECK_VERSION):
21476         * m4/crc.m4 (gl_CRC):
21477         * m4/des.m4 (gl_DES):
21478         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
21479         * m4/gc.m4 (gl_GC):
21480         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
21481         * m4/getline.m4 (gl_FUNC_GETLINE):
21482         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
21483         * m4/hmac-md5.m4 (gl_HMAC_MD5):
21484         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
21485         * m4/md2.m4 (gl_MD2):
21486         * m4/md4.m4 (gl_MD4):
21487         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
21488         * m4/read-file.m4 (gl_FUNC_READ_FILE):
21489         * m4/readline.m4 (gl_FUNC_READLINE):
21490         * m4/rijndael.m4 (gl_RIJNDAEL):
21491         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
21492         to get the necessary .h files and whatnot.
21493
21494 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21495
21496         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
21497         gnulib rather than the other way around.
21498         * config/srclistvars.sh (COREUTILS): Remove.
21499
21500 2006-08-22  Jim Meyering  <jim@meyering.net>
21501
21502         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
21503
21504         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
21505
21506 2006-08-22  Eric Blake  <ebb9@byu.net>
21507
21508         * modules/regexprops-generic: New file.
21509         * MODULES.html.sh (Support for building documentation): List it.
21510
21511 2006-08-22  Eric Blake  <ebb9@byu.net>
21512
21513         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
21514         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21515         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
21516         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21517
21518 2006-08-22  Bruno Haible  <bruno@clisp.org>
21519
21520         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
21521         and lib_LTLIBRARIES like the other lib_* variables.
21522
21523 2006-08-22  Bruno Haible  <bruno@clisp.org>
21524
21525         * build-aux/x-to-1.in: New file, from GNU gettext.
21526
21527 2006-08-22  Bruno Haible  <bruno@clisp.org>
21528
21529         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
21530         <utmpx.h> exists.
21531
21532 2006-08-22  Bruno Haible  <bruno@clisp.org>
21533
21534         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
21535         <utmpx.h> exists.
21536
21537 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
21538
21539         BeOS portability.
21540         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
21541         exist.
21542         Problem reported by Bruno Haible.
21543
21544 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
21545
21546         Avoid the need for AC_LIBSOURCES in m4 macros.
21547         * modules/acl (EXTRA_DIST): Add acl.h.
21548         * modules/argmatch (Files): Add m4/argmatch.m4.
21549         (configure.ac): Add gl_ARGMATCH.
21550         (EXTRA_DIST): Renamed from lib_SOURCES, for
21551         consistency with the other modules.  Remove argmatch.c.
21552         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
21553         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
21554         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
21555         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
21556         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
21557         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
21558         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
21559         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
21560         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
21561         * modules/closeout (EXTRA_DIST): Add closeout.h.
21562         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
21563         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
21564         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
21565         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
21566         dirname.h; remove basename.c and stripslash.c.
21567         * modules/exclude (EXTRA_DIST): Add exclude.h.
21568         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
21569         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
21570         * modules/file-type (EXTRA_DIST): Add file-type.h.
21571         * modules/filemode (EXTRA_DIST): Add filemode.h.
21572         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
21573         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
21574         * modules/fpending (EXTRA_DIST): Add __fpending.h.
21575         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
21576         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
21577         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
21578         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
21579         * modules/getdate (EXTRA_DIST): Add getdate.c.
21580         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
21581         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
21582         * modules/getpass (EXTRA_DIST): Add getpass.h.
21583         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
21584         * modules/group-member (EXTRA_DIST): Add group-member.h.
21585         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
21586         * modules/hash (EXTRA_DIST): Add hash.h.
21587         * modules/human (EXTRA_DIST): Add human.h.
21588         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
21589         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
21590         * modules/lchown (EXTRA_DIST): Add lchown.h.
21591         * modules/long-options (EXTRA_DIST): Add long-options.h.
21592         * modules/lstat (EXTRA_DIST): Add lstat.h.
21593         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
21594         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
21595         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
21596         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
21597         * modules/memxor (EXTRA_DIST): Add memxor.h.
21598         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
21599         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
21600         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
21601         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
21602         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
21603         * modules/physmem (EXTRA_DIST): Add physmem.h.
21604         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
21605         * modules/posixver (EXTRA_DIST): Add posixver.h.
21606         * modules/quote (EXTRA_DIST): Add quote.h.
21607         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
21608         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
21609         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
21610         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
21611         regex_internal.h regexec.c.
21612         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
21613         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
21614         * modules/same (EXTRA_DIST): Add same.h.
21615         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
21616         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
21617         * modules/savedir (EXTRA_DIST): Add savedir.h.
21618         * modules/sha1 (EXTRA_DIST): Add sha1.h.
21619         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
21620         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
21621         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
21622         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
21623         * modules/strdup (EXTRA_DIST): Add strdup.h.
21624         * modules/strftime (EXTRA_DIST): Add strftime.h.
21625         * modules/strndup (EXTRA_DIST): Add strndup.h.
21626         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
21627         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
21628         * modules/time_r (EXTRA_DIST): Add time_r.h.
21629         * modules/timespec (EXTRA_DIST): Add timespec.h.
21630         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
21631         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
21632         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
21633         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
21634         * modules/userspec (EXTRA_DIST): Add userspec.h.
21635         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
21636         * modules/utimens (EXTRA_DIST): Add utimens.h.
21637         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
21638         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
21639         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
21640         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
21641         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
21642         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
21643         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
21644         * modules/yesno (EXTRA_DIST): Add yesno.h.
21645
21646 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
21647
21648         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
21649
21650         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
21651         * m4/dev-ino.m4, same-inode.m4: Remove.
21652
21653         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
21654         * m4/acl.m4 (AC_FUNC_ACL):
21655         * m4/backupfile.m4 (gl_BACKUPFILE):
21656         * m4/c-strtod.m4 (gl_C99_STRTOLD):
21657         * m4/canon-host.m4 (gl_CANON_HOST):
21658         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
21659         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
21660         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
21661         * m4/cloexec.m4 (gl_CLOEXEC):
21662         * m4/close-stream.m4 (gl_CLOSE_STREAM):
21663         * m4/closeout.m4 (gl_CLOSEOUT):
21664         * m4/dirfd.m4 (gl_FUNC_DIRFD):
21665         * m4/dirname.m4 (gl_DIRNAME):
21666         * m4/exclude.m4 (gl_EXCLUDE):
21667         * m4/exitfail.m4 (gl_EXITFAIL):
21668         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
21669         * m4/file-type.m4 (gl_FILE_TYPE):
21670         * m4/filemode.m4 (gl_FILEMODE):
21671         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
21672         * m4/fpending.m4 (gl_FUNC_FPENDING):
21673         * m4/fprintftime.m4 (gl_FPRINTFTIME):
21674         * m4/fts.m4 (gl_FUNC_FTS):
21675         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
21676         * m4/getdate.m4 (gl_GETDATE):
21677         * m4/gethrxtime.m4 (gl_GETHRXTIME):
21678         * m4/getpagesize.m4 (gl_GETPAGESIZE):
21679         * m4/getpass.m4 (gl_FUNC_GETPASS):
21680         * m4/gettime.m4 (gl_GETTIME):
21681         * m4/getugroups.m4 (gl_GETUGROUPS):
21682         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
21683         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
21684         * m4/hard-locale.m4 (gl_HARD_LOCALE):
21685         * m4/hash.m4 (gl_HASH):
21686         * m4/idcache.m4 (gl_IDCACHE):
21687         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
21688         * m4/lchown.m4 (gl_FUNC_LCHOWN):
21689         * m4/long-options.m4 (gl_LONG_OPTIONS):
21690         * m4/lstat.m4 (gl_FUNC_LSTAT):
21691         * m4/md5.m4 (gl_MD5):
21692         * m4/memcasecmp.m4 (gl_MEMCASECMP):
21693         * m4/memcoll.m4 (gl_MEMCOLL):
21694         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
21695         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
21696         * m4/memxor.m4 (gl_MEMXOR):
21697         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
21698         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
21699         * m4/modechange.m4 (gl_MODECHANGE):
21700         * m4/mountlist.m4 (gl_MOUNTLIST):
21701         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
21702         * m4/openat.m4 (gl_FUNC_OPENAT):
21703         * m4/pathmax.m4 (gl_PATHMAX):
21704         * m4/physmem.m4 (gl_PHYSMEM):
21705         * m4/posixtm.m4 (gl_POSIXTM):
21706         * m4/posixver.m4 (gl_POSIXVER):
21707         * m4/quote.m4 (gl_QUOTE):
21708         * m4/quotearg.m4 (gl_QUOTEARG):
21709         * m4/readtokens.m4 (gl_READTOKENS):
21710         * m4/readutmp.m4 (gl_READUTMP):
21711         * m4/regex.m4 (gl_REGEX):
21712         * m4/safe-read.m4 (gl_SAFE_READ):
21713         * m4/safe-write.m4 (gl_SAFE_WRITE):
21714         * m4/same.m4 (gl_SAME):
21715         * m4/save-cwd.m4 (gl_SAVE_CWD):
21716         * m4/savedir.m4 (gl_SAVEDIR):
21717         * m4/settime.m4 (gl_SETTIME):
21718         * m4/sha1.m4 (gl_SHA1):
21719         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
21720         * m4/stat-macros.m4 (gl_STAT_MACROS):
21721         * m4/stat-time.m4 (gl_STAT_TIME):
21722         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
21723         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
21724         * m4/strdup.m4 (gl_FUNC_STRDUP):
21725         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
21726         * m4/strndup.m4 (gl_FUNC_STRNDUP):
21727         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
21728         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
21729         * m4/time_r.m4 (gl_TIME_R):
21730         * m4/timespec.m4 (gl_TIMESPEC):
21731         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
21732         * m4/unlinkdir.m4 (gl_UNLINKDIR):
21733         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
21734         * m4/userspec.m4 (gl_USERSPEC):
21735         * m4/utimecmp.m4 (gl_UTIMECMP):
21736         * m4/utimens.m4 (gl_UTIMENS):
21737         * m4/xalloc.m4 (gl_XALLOC):
21738         * m4/xgetcwd.m4 (gl_XGETCWD):
21739         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
21740         * m4/xreadlink.m4 (gl_XREADLINK):
21741         * m4/xstrtod.m4 (gl_XSTRTOD):
21742         * m4/yesno.m4 (gl_YESNO):
21743         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
21744         to get the necessary .h files and whatnot.
21745
21746 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
21747             Bruno Haible  <bruno@clisp.org>
21748
21749         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
21750         /bin/sh understanding of '!' conditional negation.
21751
21752 2006-08-21  Jim Meyering  <jim@meyering.net>
21753
21754         * modules/openat (Depends-on): Really alphabetize.
21755
21756         * modules/acl (Depends-on): Add error and quote.
21757
21758         * check-module (find_included_lib_files): Add at-func.c to the
21759         ok-to-include-more-than-once white list.
21760
21761         * modules/openat (Depends-on): Add lstat.  Alphabetize.
21762
21763 2006-08-21  Bruno Haible  <bruno@clisp.org>
21764
21765         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21766         Emit a pkgdata_DATA variable only if some snippets add contents to it.
21767         Reported by Martin Lambers <marlam@marlam.de>.
21768
21769 2006-08-21  Bruno Haible  <bruno@clisp.org>
21770
21771         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
21772         specify an installation location, don't emit a noinst_LIBRARIES or
21773         noinst_LTLIBRARIES assignment.
21774
21775 2006-08-21  Bruno Haible  <bruno@clisp.org>
21776
21777         BeOS portability.
21778         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
21779         BeOS has mbrtowc() but no <wctype.h>.
21780
21781 2006-08-21  Bruno Haible  <bruno@clisp.org>
21782
21783         BeOS portability.
21784         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
21785         exist.
21786
21787 2006-08-21  Bruno Haible  <bruno@clisp.org>
21788
21789         BeOS portability.
21790         * lib/mbchar.h: Include <wctype.h> only if it exists.
21791
21792 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21793
21794         Remove files that are no longer needed by their respective modules.
21795         * m4/obstack.m4: Remove.
21796         * m4/strerror_r.m4: Remove.
21797         * m4/uint32_t.m4: Remove.
21798         * m4/uintptr_t.m4: Remove.
21799         * m4/ullong_max.m4: Remove.
21800         * m4/xstrtoimax.m4: Remove.
21801         * m4/xstrtoumax.m4: Remove.
21802
21803         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
21804         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
21805         dependencies now capture this.
21806
21807         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
21808         Do not use AC_LIBSOURCES, since gnulib modules now do this.
21809         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
21810         * m4/human.m4 (gl_HUMAN): Likewise.
21811         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
21812         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
21813
21814         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
21815
21816         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
21817         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
21818         stdint.
21819         * m4/human.m4 (gl_HUMAN): Likewise.
21820         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
21821         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
21822         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
21823         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
21824         * m4/xstrtol (gl_XSTRTOL): Likewise.
21825
21826         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
21827         AC_TYPE_LONG_LONG_INT.
21828         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
21829         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
21830         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
21831         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
21832
21833         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
21834         on stdbool.
21835
21836         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
21837         (gl_PREREQ_XSTRTOUL): Remove.
21838
21839         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
21840
21841         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
21842         mode.
21843
21844 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21845
21846         Add and change modules to make it easier for coreutils to use
21847         gnulib-tool.
21848         * modules/backupfile (Files): Remove m4/d-ino.m4.
21849         (Depends-on): Add d-ino.
21850         * modules/cycle-check (Depends-on): Add stdint.
21851         (lib_SOURCES): Add cycle-check.h.
21852         * modules/d-ino: New module.
21853         * modules/d-type: New module.
21854         * modules/error (Files): Remove m4/strerror_r.m4.
21855         * modules/filemode (Files): Add m4/st_dm_mode.m4.
21856         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
21857         m4/inttypes_h.m4, m4/uintmax_t.m4.
21858         (Depends-on): Add stdint.
21859         (lib_SOURCES): Add fsusage.h.
21860         * modules/getcwd (Files): Remove d-ino.m4.
21861         (Depends-on): Add d-ino.
21862         * modules/getndelim2 (Depends-on): Add stdint.
21863         * modules/glob (Files): Remove m4/d-type.m4.
21864         (Depends-on): Add d-type.
21865         * modules/host-os: New module.
21866         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
21867         m4/inttypes_h.m4, m4/uintmax_t.m4.
21868         * Depends-on: Add stdint.
21869         (lib_SOURCES): Add human.h.
21870         * modules/inttostr (Files): Remove m4/intmax_t.m4,
21871         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
21872         m4/uintmax_t.m4, m4/ulonglong.m4.
21873         (Depends-on): Add stdint.
21874         (EXTRA_DIST): Add inttostr.h.
21875         * modules/lchmod: New module.
21876         * modules/link-follow: New module.
21877         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
21878         (Depends-on): Add lchmod.
21879         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
21880         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
21881         (Depends-on): Add stdint.
21882         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
21883         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
21884         (Depends-on): Add stdint.
21885         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
21886         * modules/perl: New module.
21887         * modules/regex (Depends-on): Add stdint.
21888         * modules/rmdir-errno: New module.
21889         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
21890         m4/intmax_t.m4.
21891         (Depends-on): Add stdint.
21892         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
21893         m4/uintmax_t.m4.
21894         (Depends-on): Add stdint.
21895         * modules/unlink-busy: New module.
21896         * modules/utimecmp (Depends-on): Add stdint.
21897         * modules/uptime: New module.
21898         * modules/winsz-ioctl: New module.
21899         * modules/winsz-termios: New module.
21900         * modules/xnanosleep (Depends-on): Add nanosleep.
21901         * modules/ullong_max: Remove.
21902         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
21903         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
21904         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
21905         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
21906         (Depends-on): Add inttypes.
21907         (lib_SOURCES): Add xstrtol.h.
21908         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
21909         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
21910         * MODULES.html.sh: Move 'assert' into the assert section.
21911         Move 'dummy' into the linking section.
21912         Remove ullong_max.
21913         Add section for compatibility checks for POSIX:2001 functions,
21914         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
21915         winsz-ioctl, and winsz-termios into it.
21916         Add lchmod.
21917         Add top-level Misc section and put host-os, perl, and uptime
21918         into it.
21919
21920 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21921
21922         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
21923         now assume the stdint module.  Do not include inttypes.h.
21924         * lib/fsusage.h: Likewise.
21925         * lib/getndelim2.c: Likewise.
21926         * lib/human.h: Likewise.
21927         * lib/inttostr.h: Likewise.
21928         * lib/obstack.c: Likewise.
21929         * lib/regex_internal.h: Likewise.
21930         * lib/tempname.c: Likewise.
21931         * lib/utimecmp.c: Likewise.
21932         * lib/xstrtol.h: Likewise.
21933
21934         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
21935
21936         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
21937         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
21938         * lib/xtime.h: Likewise.
21939
21940 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21941
21942         * modules/openat (Files): Add lib/fchmodat.c.
21943         Fixes problem reported by Jay Youngman.
21944
21945 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21946
21947         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
21948         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
21949
21950 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
21951             Bruno Haible  <bruno@clisp.org>
21952
21953         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
21954         and is a script that invokes bison. Tighten the code. Add comments.
21955
21956 2006-08-18  Jim Meyering  <jim@meyering.net>
21957
21958         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
21959         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
21960         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
21961         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
21962
21963 2006-08-18  Bruno Haible  <bruno@clisp.org>
21964
21965         * modules/bison-i18n: New file.
21966         * MODULES.html.sh (Internationalization functions): Add it.
21967
21968 2006-08-18  Bruno Haible  <bruno@clisp.org>
21969
21970         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
21971         sys/statvfs.h. When getmntinfo was found, check its declaration and
21972         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
21973
21974 2006-08-18  Bruno Haible  <bruno@clisp.org>
21975
21976         * m4/bison-i18n.m4: New file, from bison.
21977
21978 2006-08-18  Bruno Haible  <bruno@clisp.org>
21979
21980         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
21981         (ME_DUMMY): Treat "kernfs" as a dummy.
21982         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
21983
21984 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
21985
21986         Update from coreutils.
21987
21988         2006-08-15  Jim Meyering  <jim@meyering.net>
21989
21990         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
21991
21992         2006-01-17  Jim Meyering  <jim@meyering.net>
21993
21994         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
21995
21996         2006-01-11  Jim Meyering  <jim@meyering.net>
21997
21998         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
21999         Check for the lchmod function.
22000
22001 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22002
22003         Update from coreutils.
22004
22005         * lib/__fpending.h: Add copyright notice.
22006         * lib/fprintftime.h: Likewise.
22007         * lib/savedir.c: Use (C) in copyright notice.
22008         * lib/savedir.h: Likewise.
22009
22010         2006-08-15  Jim Meyering  <jim@meyering.net>
22011
22012         * lib/at-func.c: New file, with the logic of all emulated at-functions.
22013         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
22014         in support of the EXPECTED_ERRNO macro.
22015         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
22016         definitions.  Instead, define the appropriate symbols and include
22017         "at-func.c".
22018         * lib/mkdirat.c (mkdirat): Likewise.
22019         * lib/fchmodat.c (fchmodat): Likewise.
22020         (ENOSYS): Remove definition.
22021         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
22022         it.  Don't include "unistd--.h" -- it wasn't ever used.
22023
22024         2006-01-17  Jim Meyering  <jim@meyering.net>
22025
22026         Rewrite fts.c not to change the current working directory,
22027         by using openat, fstatat, fdopendir, etc..
22028
22029         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
22030         (HAVE_OPENAT_SUPPORT): Define.
22031         [_LIBC] (fchdir): Don't undef or define; no longer used.
22032         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
22033         Now, this `function' always succeeds, and consumes its file descriptor
22034         parameter -- so callers must not close such FDs.  Update callers.
22035         (diropen_fd, opendirat, cwd_advance_fd): New functions.
22036         (diropen): Add parameter, SP.  Adjust all callers.
22037         Implement using diropen_fd, rather than open.
22038         (fts_open): Initialize new member, fts_cwd_fd.
22039         Remove fts_rft-setting code.
22040         (fts_close): Close fts_cwd_fd, if necessary.
22041         (__opendir2): Define in terms of opendir or opendirat,
22042         depending on whether the FST_NOCHDIR flag is set.
22043         (fts_build): Since fts_safe_changedir consumes its FD, and since
22044         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
22045         and close the dup'd file descriptor upon failure.
22046         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
22047         (fts_safe_changedir): Tweak semantics to reflect that this function
22048         now calls cwd_advance_fd and hence consumes its FD argument.
22049         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
22050         [struct FTS] (fts_rft): Remove now-unused member.
22051         [struct FTS] (fts_cycle.state): Improve comment.
22052
22053         * lib/openat.c (openat_needs_fchdir): New function.
22054         * lib/openat.h (openat_needs_fchdir): Declare it.
22055
22056 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
22057
22058         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
22059         Problem and fix reported by Pádraig Brady in
22060         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
22061
22062 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22063
22064         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
22065
22066 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22067
22068         * lib/memcoll.c (memcoll): Optimize for the common case where the
22069         arguments are bytewise equal.
22070
22071 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22072
22073         * doc/regexprops-generic.texi: Add a copyright notice.
22074
22075 2006-08-15  Bruno Haible  <bruno@clisp.org>
22076
22077         * modules/tmpdir (License): Change to LGPL.
22078
22079 2006-08-15  Bruno Haible  <bruno@clisp.org>
22080
22081         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
22082         module.
22083
22084 2006-08-14  Simon Josefsson  <jas@extundo.com>
22085
22086         * config/srclist.txt: Add gnupload.
22087
22088 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22089
22090         Change copyright notice from LGPL 2 to GPL 2, since that's the
22091         standard form used in the gnulib repository.
22092         * tests/test-lock.c: Likewise.
22093         * tests/test-stdint.c: Likewise.
22094         * tests/test-tls.c: Likewise.
22095
22096         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
22097         prelude-manager.  User shorter URLs for GNU projects, without '?'.
22098         Add copyright notice.
22099
22100         * check-module: Add copyright notice.  Output a copyright
22101         notice if "--version" is specified.
22102         * modules/COPYING: New file.
22103         * tests/test-getaddrinfo.c: Add copyright notice.
22104         * tests/test-verify.c: Likewise.
22105
22106 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22107
22108         Change copyright notice from LGPL 2 to GPL 2, since that's the
22109         standard form used in the gnulib repository.
22110         * lib/lock.c: LGPL -> GPL.
22111         * lib/lock.h: Likewise.
22112         * lib/strnlen1.c: Likewise.
22113         * lib/strnlen1.h: Likewise.
22114         * lib/tls.c: Likewise.
22115         * lib/tls.h: Likewise.
22116         * lib/tmpdir.c: Likewise.
22117
22118         * lib/TODO: Remove; this belongs only in coreutils.
22119
22120 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22121
22122         Add copyright notices to long-enough files that lack them, since
22123         otherwise the files aren't clearly free.  Use the same notice that
22124         getdate.texi already uses.
22125         * doc/alloca-opt.texi: Add copyright notice.
22126         * doc/alloca.texi: Likewise.
22127         * doc/ctime.texi: Likewise.
22128         * doc/functions.texi: Likewise.
22129         * doc/gcd.texi: Likewise.
22130         * doc/gnulib-tool.texi: Likewise.
22131         * doc/inet_ntoa.texi: Likewise.
22132         * doc/visibility.texi: Likewise.
22133
22134         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
22135         * doc/quote.texi: Add copyright notice.
22136
22137         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
22138         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
22139         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
22140         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
22141         is now obsolete, and give a pointer to the Sun list.
22142         Add copyright notice.
22143
22144 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22145
22146         * config/srclistvars.sh: Add copyright notice.
22147
22148 2006-08-14  Eric Blake  <ebb9@byu.net>
22149
22150         Import the following change from libc:
22151
22152         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
22153
22154         Upstream bug 2997.
22155         * lib/misc/error.c: Add space between program name and message if file
22156         name is missing.
22157
22158 2006-08-12  Karl Berry  <karl@gnu.org>
22159
22160         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
22161         remove, these originate in gnulib now.
22162
22163 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22164
22165         * doc/Makefile (standards.info standards.html standards.dvi):
22166         Also depend on make-stds.texi.
22167
22168 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
22169
22170         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
22171         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
22172
22173         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
22174         in wchar_t.  Problem reported by Eric Blake.
22175
22176         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
22177         LEN is smaller than SIZE.  Suggested by Bruno Haible.
22178         Also, help the compiler to keep LEN in a register.
22179
22180 2006-08-11  Eric Blake  <ebb9@byu.net>
22181
22182         * users.txt: Sort.  Add tar.
22183
22184 2006-08-11  Bruno Haible  <bruno@clisp.org>
22185
22186         * users.txt: New file.
22187
22188 2006-08-11  Bruno Haible  <bruno@clisp.org>
22189
22190         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
22191         before <wchar.h>. Needed for OSF/1 and BSD/OS.
22192
22193 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22194
22195         * modules/snprintf (Depends-on): Remove minmax.
22196         (Maintainer): Add self and Bruno.
22197
22198 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22199
22200         * lib/.cppi-disable: Add snprintf.h, socket_.h.
22201         * lib/snprintf.c: Include <errno.h> and <limits.h>.
22202         (EOVERFLOW): Define if the system does not.
22203         Do not include "minmax.h"; it wasn't used.
22204         (snprintf): Don't assume size_t promotes to an unsigned type.
22205         Fix bug when generated string was too long for the buffer: the
22206         buffer's contents are supposed to be the initial prefix of the
22207         output.  Don't assume vasnprintf returns EOVERFLOW if the size
22208         exceeds INT_MAX; do the check ourselves.
22209
22210         Import the following changes from libc:
22211
22212         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
22213
22214         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
22215         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
22216         set wc to the byte which couldn't be converted.
22217         (re_string_reconstruct): Don't clear valid_raw_len before calling
22218         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
22219         tip_context using re_string_context_at.
22220
22221         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
22222
22223         * lib/posix/regex.h: g++ still cannot handled [restrict].
22224
22225         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
22226
22227         * lib/posix/regex.h: Remove special handling for VMS.
22228
22229 2006-08-10  Jim Meyering  <jim@meyering.net>
22230
22231         * modules/same-inode: New module.
22232         * modules/dev-ino: New module.
22233         * modules/cycle-check: Depend on these modules, rather than simply
22234         including their .h files.
22235         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
22236         required via m4/cycle-check.m4.
22237         * modules/same: Depend on new same-inode module, rather than
22238         including same-inode.h.
22239         * modules/chdir-safer: New file.
22240
22241         * modules/chown (Depends-on): Add stat-macros.
22242
22243 2006-08-10  Jim Meyering  <jim@meyering.net>
22244
22245         * m4/cycle-check.m4: New file.
22246         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
22247         * m4/dev-ino.m4, m4/same-inode.m4: New files.
22248
22249 2006-08-10  Eric Blake  <ebb9@byu.net>
22250
22251         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
22252         in from original proposal.
22253
22254 2006-08-10  Eric Blake  <ebb9@byu.net>
22255         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22256
22257         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
22258         namespace.
22259
22260 2006-08-10  Bruno Haible  <bruno@clisp.org>
22261
22262         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
22263         as well.
22264
22265 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22266
22267         Sync from coreutils.
22268
22269         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
22270
22271         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
22272         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
22273
22274 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22275
22276         * modules/restrict: Remove; no longer needed now that we assume
22277         Autoconf 2.59 or later.
22278         * MODULES.html.sh: Remove 'restrict'.
22279         * modules/argp (Depends-on): Remove 'restrict'.
22280         * modules/base64 (Depends-on): Likewise.
22281         * modules/gc (Depends-on): Likewise.
22282         * modules/getaddrinfo (Depends-on): Likewise.
22283         * modules/glob (Depends-on): Likewise.
22284         * modules/inet_ntop (Depends-on): Likewise.
22285         * modules/inet_pton (Depends-on): Likewise.
22286         * modules/memxor (Depends-on): Likewise.
22287         * modules/regex (Depends-on): Likewise.
22288         * modules/strtok_r (Depends-on): Likewise.
22289         * modules/time_r (Depends-on): Likewise.
22290
22291 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22292
22293         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
22294         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
22295         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
22296         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
22297         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22298         * m4/memxor.m4 (gl_MEMXOR): Likewise.
22299         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
22300         gl_C_RESTRICT replaced by AC_C_RESTRICT.
22301
22302         Merge from coreutils.
22303         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
22304         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
22305         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
22306         * m4/time_r.m4 (gl_TIME_R): Likewise.
22307
22308 2006-08-09  Karl Berry  <karl@gnu.org>
22309
22310         * config/srclist.txt: no more gettext-tools, per Bruno.
22311
22312 2006-08-08  Eric Blake  <ebb9@byu.net>
22313
22314         * modules/verror: New module.
22315         * MODULES.html.sh: Document it.
22316
22317 2006-08-08  Eric Blake  <ebb9@byu.net>
22318
22319         * lib/verror.h, lib/verror.c: New files.
22320
22321 2006-08-08  Eric Blake  <ebb9@byu.net>
22322
22323         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
22324         verror_at_line output complies with GNU Coding Standards even when
22325         file is NULL.
22326
22327 2006-08-07  Bruno Haible  <bruno@clisp.org>
22328
22329         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
22330         versions of AIX.
22331         Reported by Ralf Wildenhues.
22332
22333 2006-08-07  Bruno Haible  <bruno@clisp.org>
22334
22335         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
22336         in an AC_DEFUN. Needed so that the autoconf snippets can use
22337         AC_REQUIRE.
22338
22339 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22340
22341         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22342         Initialize pkgdata_DATA.
22343         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
22344         overriding it.
22345
22346 2006-08-06  Eric Blake  <ebb9@byu.net>
22347
22348         * lib/error.h: Fold in some upstream changes from glibc.
22349         * lib/error.c: Likewise.
22350
22351 2006-08-04  Bruno Haible  <bruno@clisp.org>
22352
22353         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22354         Make the mostlyclean-local rule depend on mostlyclean-generic.
22355         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
22356
22357 2006-07-31  Bruno Haible  <bruno@clisp.org>
22358
22359         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
22360         <stdlib.h>, <string.h>.
22361
22362 2006-07-30  Bruno Haible  <bruno@clisp.org>
22363
22364         * modules/readlink (License): Change to LGPL.
22365
22366 2006-07-30  Bruno Haible  <bruno@clisp.org>
22367
22368         * modules/javaversion (Makefile.am): Distribute javaversion.java and
22369         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
22370         set PKGDATADIR to point to it.
22371
22372 2006-07-30  Bruno Haible  <bruno@clisp.org>
22373
22374         * modules/csharpexec (configure.ac): Comment out macro invocation.
22375         * modules/javaexec (configure.ac): Likewise.
22376         * modules/javacomp-script (configure.ac): Likewise.
22377
22378         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
22379
22380 2006-07-30  Bruno Haible  <bruno@clisp.org>
22381
22382         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
22383         linked-list.
22384
22385 2006-07-30  Bruno Haible  <bruno@clisp.org>
22386
22387         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
22388
22389 2006-07-30  Bruno Haible  <bruno@clisp.org>
22390
22391         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22392         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
22393         get removed.
22394
22395 2006-07-29  Bruno Haible  <bruno@clisp.org>
22396
22397         Make it possible for gnulib-tool to work with locally modified or
22398         augmented gnulib repositories.
22399         * gnulib-tool (func_usage): Document --local-dir option.
22400         (local_gnulib_dir): New variable.
22401         Handle --local-dir option.
22402         (func_lookup_file): New function.
22403         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
22404         (func_get_description, func_get_filelist, func_get_description,
22405         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
22406         func_get_automake_snippet, func_get_include_directive,
22407         func_get_license, func_get_maintainer): Use func_lookup_file.
22408         (func_import, func_create_testdir): Use func_lookup_file.
22409
22410 2006-07-29  Bruno Haible  <bruno@clisp.org>
22411
22412         * modules/setenv (Depends-on): Add unistd.
22413
22414 2006-07-29  Bruno Haible  <bruno@clisp.org>
22415
22416         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
22417
22418 2006-07-29  Bruno Haible  <bruno@clisp.org>
22419
22420         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
22421
22422 2006-07-29  Bruno Haible  <bruno@clisp.org>
22423
22424         * gnulib-tool (import, update): If there is no Makefile.am, look at
22425         aclocal.m4, instead of bailing out.
22426
22427 2006-07-29  Bruno Haible  <bruno@clisp.org>
22428
22429         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
22430         Categorize the options by when they are useful.
22431
22432 2006-07-29  Bruno Haible  <bruno@clisp.org>
22433
22434         * gnulib-tool (func_usage): Document option --no-libtool.
22435         Handle option --no-libtool.
22436         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
22437         for changed semantics of $libtool variable.
22438         (func_import): Likewise. If libtool is not used, show this through
22439         an option --no-libtool.
22440         (func_create_testdir): Update.
22441
22442 2006-07-29  Bruno Haible  <bruno@clisp.org>
22443
22444         * gnulib-tool (func_import): Extend error message about missing
22445         --doc-base.
22446
22447 2006-07-29  Bruno Haible  <bruno@clisp.org>
22448
22449         * gnulib-tool (func_import): Don't create the $docbase directory if
22450         there is no file to store there.
22451
22452 2006-07-29  Bruno Haible  <bruno@clisp.org>
22453
22454         * gnulib-tool (autoconf_minversion): If a --dir option is given and
22455         relevant, look for configure.ac there, not in the current directory.
22456         Also use a simple search for AC_PREREQ, not "autoconf --trace".
22457
22458 2006-07-29  Bruno Haible  <bruno@clisp.org>
22459
22460         * gnulib-tool (SORT): New variable.
22461         (func_usage): Undocument --assume-autoconf option.
22462         Remove --assume-autoconf option handling.
22463         (autoconf_minversion): Determine from the contents of configure.ac.
22464         (func_import): Remove autoconf_minversion handling.
22465         Suggested by Eric Blake.
22466
22467 2006-07-29  Bruno Haible  <bruno@clisp.org>
22468
22469         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
22470
22471 2006-07-29  Bruno Haible  <bruno@clisp.org>
22472
22473         * config/srclist.txt (*setenv.[ch]): Remove rules.
22474
22475 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22476
22477         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
22478
22479 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22480
22481         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
22482         arpa/inet.h.
22483
22484 2006-07-28  Simon Josefsson  <jas@extundo.com>
22485
22486         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
22487         * modules/inet_pton (Depends-on): Likewise.
22488
22489 2006-07-28  Simon Josefsson  <jas@extundo.com>
22490
22491         * m4/netinet_in_h.m4: New file.
22492
22493 2006-07-28  Simon Josefsson  <jas@extundo.com>
22494
22495         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
22496         #include's.
22497
22498 2006-07-28  Simon Josefsson  <jas@extundo.com>
22499
22500         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
22501         #include's.
22502
22503 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
22504
22505         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
22506         setgid on directories only if they set these bits.
22507         * lib/modechange.h: Remove obsolete comment about masks.
22508
22509 2006-07-28  Eric Blake  <ebb9@byu.net>
22510
22511         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
22512         macro expansion.
22513
22514 2006-07-28  Bruno Haible  <bruno@clisp.org>
22515
22516         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
22517
22518 2006-07-28  Bruno Haible  <bruno@clisp.org>
22519
22520         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
22521
22522 2006-07-28  Bruno Haible  <bruno@clisp.org>
22523
22524         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
22525         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
22526         Define fallbacks.
22527         Avoids link error on FreeBSD 4.x.
22528         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22529
22530         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
22531         encoding.
22532         * lib/mbswidth.c (iswcntrl): Likewise.
22533
22534 2006-07-27  Bruno Haible  <bruno@clisp.org>
22535
22536         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
22537         test.
22538
22539 2006-07-27  Bruno Haible  <bruno@clisp.org>
22540
22541         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
22542         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
22543         defined.
22544
22545 2006-07-26  Eric Blake  <ebb9@byu.net>
22546
22547         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
22548
22549 2006-07-26  Eric Blake  <ebb9@byu.net>
22550
22551         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
22552         like mingw that lack mkstemp.
22553         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
22554         avoid compilation warning on mingw.
22555
22556 2006-07-26  Bruno Haible  <bruno@clisp.org>
22557
22558         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
22559         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
22560         INT_FAST*_MIN, INTPTR_MIN.
22561
22562 2006-07-25  Bruno Haible  <bruno@clisp.org>
22563
22564         * modules/version-etc (Depends-on): Add stdarg.
22565
22566 2006-07-25  Bruno Haible  <bruno@clisp.org>
22567
22568         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
22569         complex commands.
22570
22571 2006-07-25  Bruno Haible  <bruno@clisp.org>
22572
22573         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
22574         defined in <stdarg.h> or config.h.
22575
22576 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
22577
22578         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
22579         (gl_STDIO_SAFER): Remove.
22580
22581 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
22582
22583         * MODULES.html.sh (File stream based Input/Output):
22584         Add fopen-safer, tmpfile-safer; remove stdio-safer.
22585         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
22586         * modules/fopen-safer, modules/tmpfile-safer: New files.
22587         * modules/stdio-safer: Remove.
22588
22589 2006-07-24  Bruno Haible  <bruno@clisp.org>
22590
22591         * modules/tmpdir: New file.
22592         * MODULES.html.sh (File system functions): Add it.
22593
22594 2006-07-24  Bruno Haible  <bruno@clisp.org>
22595
22596         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
22597         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
22598
22599 2006-07-24  Bruno Haible  <bruno@clisp.org>
22600
22601         * modules/clean-temp: New file.
22602
22603 2006-07-24  Bruno Haible  <bruno@clisp.org>
22604
22605         * m4/tmpdir.m4: New file, from GNU gettext.
22606
22607 2006-07-24  Bruno Haible  <bruno@clisp.org>
22608
22609         * lib/tmpdir.h: New file, from GNU gettext.
22610         * lib/tmpdir.c: New file, from GNU gettext.
22611
22612 2006-07-24  Bruno Haible  <bruno@clisp.org>
22613
22614         * lib/clean-temp.h: New file, from GNU gettext.
22615         * lib/clean-temp.c: New file, from GNU gettext.
22616
22617 2006-07-23  Eric Blake  <ebb9@byu.net>
22618
22619         * modules/stdio-safer (Files): Add tmpfile-safer.c.
22620         (Depends-on): Add binary-io.
22621
22622 2006-07-23  Eric Blake  <ebb9@byu.net>
22623
22624         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
22625
22626 2006-07-23  Eric Blake  <ebb9@byu.net>
22627
22628         * lib/tmpfile-safer.c: New file.
22629         * lib/stdio-safer.h (fopen_safer): Add prototype.
22630         * lib/stdio--.h (tmpfile): Make safer.
22631
22632 2006-07-23  Bruno Haible  <bruno@clisp.org>
22633
22634         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
22635         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
22636         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
22637         gl_linked_remove_at): Use it.
22638
22639 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22640         and Simon Josefsson <jas@extundo.com>
22641
22642         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
22643
22644         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
22645
22646 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
22647
22648         * modules/close-stream: New file.
22649         * modules/closeout (Description): Make it clear that it exits
22650         with a diagnostic on error.
22651         (Depends-on): Add close-stream.  Remove fpending, stdbool.
22652         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
22653
22654 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
22655
22656         * m4/close-stream.m4: New file.
22657
22658 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
22659
22660         * lib/close-stream.c, lib/close-stream.h: New files.
22661
22662 2006-07-22  Bruno Haible  <bruno@clisp.org>
22663
22664         Merge from GNU gettext 0.15.
22665
22666         2006-05-01  Bruno Haible  <bruno@clisp.org>
22667
22668                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
22669
22670         2006-07-22  Bruno Haible  <bruno@clisp.org>
22671
22672                 * modules/javaversion: New file.
22673                 * MODULES.html.sh (Java): Add javaversion.
22674
22675         2006-03-12  Bruno Haible  <bruno@clisp.org>
22676
22677                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
22678
22679         2005-12-04  Bruno Haible  <bruno@clisp.org>
22680
22681                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
22682                 (untested).
22683
22684         2006-06-21  Bruno Haible  <bruno@clisp.org>
22685
22686                 Avoid warnings from recent versions of mcs.
22687                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
22688                 -o, -L, -r any more. Use options documented since mcs-1.0
22689                 instead. Similarly for -g.
22690
22691         2005-12-04  Bruno Haible  <bruno@clisp.org>
22692
22693                 * build-aux/csharpcomp.sh.in: Suffix for resources is
22694                 .resources, not .resource.
22695
22696         2005-07-09  Bruno Haible  <bruno@clisp.org>
22697
22698                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
22699                 add a .dll suffix.
22700                 Reported by Mark Junker <mjscod@gmx.de>.
22701
22702         2006-07-22  Bruno Haible  <bruno@clisp.org>
22703
22704                 * modules/gettext: Upgrade to gettext-0.15.
22705                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
22706                 m4/visibility.m4.
22707                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
22708
22709 2006-07-22  Bruno Haible  <bruno@clisp.org>
22710
22711         Merge from GNU gettext 0.15.
22712
22713         2006-03-25  Bruno Haible  <bruno@clisp.org>
22714
22715                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
22716
22717         2006-07-21  Bruno Haible  <bruno@clisp.org>
22718
22719                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
22720                 "1.1".
22721
22722         2006-05-09  Bruno Haible  <bruno@clisp.org>
22723
22724                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
22725                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
22726                 for the conftestver execution.
22727
22728         2006-05-01  Bruno Haible  <bruno@clisp.org>
22729
22730                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
22731                 optional target-version argument. Verify that the compiler
22732                 groks source of the specified source-version, or add -source
22733                 option as necessary. Verify that the compiler produces
22734                 bytecode in the specified target-version, or add -target and
22735                 -source options as necessary. Make the result of the test
22736                 available as variable CONF_JAVAC. Also log error output in
22737                 config.log.
22738
22739         2006-03-11  Bruno Haible  <bruno@clisp.org>
22740
22741                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
22742
22743         2006-05-09  Bruno Haible  <bruno@clisp.org>
22744
22745                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
22746                 CLASSPATH_SEPARATOR to a semicolon.
22747
22748         2006-03-12  Bruno Haible  <bruno@clisp.org>
22749
22750                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
22751                 available as variable CONF_JAVA, for subsequent autoconf
22752                 tests. Also log error output in config.log.
22753
22754         2006-07-19  Bruno Haible  <bruno@clisp.org>
22755
22756                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
22757                 that getline works on glibc2 systems. Needed to avoid trouble
22758                 in relocatable.c.
22759                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
22760
22761         2005-12-04  Bruno Haible  <bruno@clisp.org>
22762
22763                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
22764                 launcher (untested).
22765
22766         2005-12-04  Bruno Haible  <bruno@clisp.org>
22767
22768                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
22769
22770         2006-07-22  Bruno Haible  <bruno@clisp.org>
22771
22772                 * gettext.m4: Update from GNU gettext-0.15.
22773                 * nls.m4: Likewise.
22774                 * po.m4: Likewise.
22775                 * inttypes-pri.m4: Likewise.
22776                 * inttypes-h.m4: Renamed from inttypes.m4.
22777                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
22778
22779 2006-07-22  Bruno Haible  <bruno@clisp.org>
22780
22781         Merge from GNU gettext 0.15.
22782
22783         2005-07-05  Bruno Haible  <bruno@clisp.org>
22784
22785                 * printf-args.c (printf_fetchargs): Work around broken
22786                 definition of wint_t on mingw.
22787
22788         2005-02-12  Bruno Haible  <bruno@clisp.org>
22789
22790                 * xallocsa.h: Add extern "C" for C++.
22791
22792         2006-05-17  Bruno Haible  <bruno@clisp.org>
22793
22794                 Cygwin portability.
22795                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
22796
22797         2006-04-30  Bruno Haible  <bruno@clisp.org>
22798
22799                 * progreloc.c: Include <mach-o/dyld.h> if available.
22800                 (find_executable): Use _NSGetExecutablePath when possible.
22801
22802         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
22803
22804                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
22805                 function.
22806
22807         2005-12-29  Bruno Haible  <bruno@clisp.org>
22808
22809                 * progreloc.c (set_program_name_and_installdir): Fix
22810                 compilation error.
22811
22812         2005-12-04  Bruno Haible  <bruno@clisp.org>
22813
22814                 Cygwin portability.
22815                 * progreloc.c: Include <windows.h> also on Cygwin.
22816                 (find_executable): Add support for Cygwin.
22817                 (set_program_name_and_installdir): Handle also platforms with
22818                 nonempty EXEEXT.
22819
22820         2006-07-11  Bruno Haible  <bruno@clisp.org>
22821
22822                 * javacomp.c: Fix a comment.
22823                 Reported by Jim Meyering.
22824
22825         2006-04-30  Bruno Haible  <bruno@clisp.org>
22826
22827                 * javacomp.h (compile_java_class): Add source_version,
22828                 target_version arguments.
22829                 * javacomp.c: Rewritten to choose only a compiler that
22830                 respects the specified source_version and target_version.
22831
22832         2006-06-27  Bruno Haible  <bruno@clisp.org>
22833
22834                 Assume correct S_ISDIR macro.
22835                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
22836
22837         2006-07-22  Bruno Haible  <bruno@clisp.org>
22838
22839                 * javaversion.h: New file, from GNU gettext.
22840                 * javaversion.c: New file, from GNU gettext.
22841                 * javaversion.java: New file, from GNU gettext.
22842                 * javaversion.class: New file, from GNU gettext.
22843
22844         2006-05-17  Bruno Haible  <bruno@clisp.org>
22845
22846                 Cygwin portability.
22847                 * javaexec.c (execute_java_class): Test for jview program
22848                 also on Cygwin.
22849
22850         2006-04-09  Bruno Haible  <bruno@clisp.org>
22851
22852                 * fatal-signal.c: Don't include string.h.
22853                 (at_fatal_signal): Use a copying loop instead of memcpy.
22854
22855         2005-12-04  Bruno Haible  <bruno@clisp.org>
22856
22857                 * csharpexec.c: Add support for 'clix' launcher (untested).
22858                 (execute_csharp_using_sscli): New function.
22859                 (execute_csharp_program): Call it.
22860
22861         2006-06-21  Bruno Haible  <bruno@clisp.org>
22862
22863                 Avoid warnings from recent versions of mcs.
22864                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
22865                 -o, -L, -r any more. Use options documented since mcs-1.0
22866                 instead. Similarly for -g.
22867
22868         2005-07-09  Bruno Haible  <bruno@clisp.org>
22869
22870                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
22871                 add a .dll suffix.
22872                 Reported by Mark Junker <mjscod@gmx.de>.
22873
22874         2006-06-17  Bruno Haible  <bruno@clisp.org>
22875
22876                 * config.charset: Update for NetBSD 3.0.
22877
22878         2006-05-17  Bruno Haible  <bruno@clisp.org>
22879
22880                 Cygwin portability.
22881                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
22882
22883         2006-05-16  Bruno Haible  <bruno@clisp.org>
22884
22885                 * localcharset.c [CYGWIN]: Include <windows.h>.
22886                 (get_charset_aliases): For Cygwin, return the same CPxxx
22887                 aliases list as under WIN32.
22888                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
22889                 the environment variables. Fall back to GetACP().
22890
22891         2006-04-05  Bruno Haible  <bruno@clisp.org>
22892
22893                 * config.charset: Update Juan Manuel Guerrero's address.
22894
22895         2005-02-12  Bruno Haible  <bruno@clisp.org>
22896
22897                 * allocsa.h: Add extern "C" for C++.
22898
22899         2005-02-10  Bruno Haible  <bruno@clisp.org>
22900
22901                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
22902                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
22903
22904         2006-07-22  Bruno Haible  <bruno@clisp.org>
22905
22906                 * gettext.h: Update to GNU gettext-0.15.
22907
22908 2006-07-22  Bruno Haible  <bruno@clisp.org>
22909
22910         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
22911         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
22912         lib-prefix.m4, longdouble.m4, ssize_t.m4.
22913
22914 2006-07-21  Eric Blake  <ebb9@byu.net>
22915
22916         * modules/stdlib-safer: New file.
22917         * MODULES.html.sh (File stream based Input/Output): Add
22918         stdlib-safer.
22919
22920 2006-07-21  Eric Blake  <ebb9@byu.net>
22921
22922         * lib/stdlib-safer.h: New file from coreutils, required by
22923         stdlib--.h.
22924
22925 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
22926
22927         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
22928
22929 2006-07-20  Bruno Haible  <bruno@clisp.org>
22930
22931         * gnulib-tool: Recognize new option --assume-autoconf.
22932         (autoconf_minversion): New variable.
22933         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
22934
22935 2006-07-20  Bruno Haible  <bruno@clisp.org>
22936
22937         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
22938
22939 2006-07-19  Derek R. Price  <derek@ximbiot.com>
22940
22941         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
22942         Reindent and repaginate.
22943
22944 2006-07-19  Derek Price  <derek@ximbiot.com>
22945
22946         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
22947         Correct grammar.
22948
22949 2006-07-17  Bruno Haible  <bruno@clisp.org>
22950
22951         * modules/list: New file.
22952         * modules/array-list: New file.
22953         * modules/carray-list, modules/carray-list-tests: New files.
22954         * modules/linked-list, modules/linked-list-tests: New files.
22955         * modules/avltree-list, modules/avltree-list-tests: New files.
22956         * modules/rbtree-list, modules/rbtree-list-tests: New files.
22957         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
22958         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
22959         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
22960         * modules/oset: New file.
22961         * modules/array-oset: New file.
22962         * modules/avltree-oset, modules/avltree-oset-tests: New files.
22963         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
22964         * tests/test-carray_list.c: New file.
22965         * tests/test-linked_list.c: New file.
22966         * tests/test-avltree_list.c: New file.
22967         * tests/test-rbtree_list.c: New file.
22968         * tests/test-linkedhash_list.c: New file.
22969         * tests/test-avltreehash_list.c: New file.
22970         * tests/test-rbtreehash_list.c: New file.
22971         * tests/test-avltree_oset.c: New file.
22972         * tests/test-rbtree_oset.c: New file.
22973         * MODULES.html.sh (Container data structures): New section.
22974
22975 2006-07-17  Bruno Haible  <bruno@clisp.org>
22976
22977         * m4/gl_list.m4: New file.
22978
22979 2006-07-17  Bruno Haible  <bruno@clisp.org>
22980
22981         * lib/gl_list.h: New file.
22982         * lib/gl_list.c: New file.
22983         * lib/gl_array_list.h: New file.
22984         * lib/gl_array_list.c: New file.
22985         * lib/gl_carray_list.h: New file.
22986         * lib/gl_carray_list.c: New file.
22987         * lib/gl_linked_list.h: New file.
22988         * lib/gl_linked_list.c: New file.
22989         * lib/gl_anylinked_list1.h: New file.
22990         * lib/gl_anylinked_list2.h: New file.
22991         * lib/gl_avltree_list.h: New file.
22992         * lib/gl_avltree_list.c: New file.
22993         * lib/gl_anyavltree_list1.h: New file.
22994         * lib/gl_anyavltree_list2.h: New file.
22995         * lib/gl_rbtree_list.h: New file.
22996         * lib/gl_rbtree_list.c: New file.
22997         * lib/gl_anyrbtree_list1.h: New file.
22998         * lib/gl_anyrbtree_list2.h: New file.
22999         * lib/gl_anytree_list1.h: New file.
23000         * lib/gl_anytree_list2.h: New file.
23001         * lib/gl_linkedhash_list.h: New file.
23002         * lib/gl_linkedhash_list.c: New file.
23003         * lib/gl_anyhash_list1.h: New file.
23004         * lib/gl_anyhash_list2.h: New file.
23005         * lib/gl_avltreehash_list.h: New file.
23006         * lib/gl_avltreehash_list.c: New file.
23007         * lib/gl_rbtreehash_list.h: New file.
23008         * lib/gl_rbtreehash_list.c: New file.
23009         * lib/gl_anytreehash_list1.h: New file.
23010         * lib/gl_anytreehash_list2.h: New file.
23011
23012         * lib/gl_oset.h: New file.
23013         * lib/gl_oset.c: New file.
23014         * lib/gl_array_oset.h: New file.
23015         * lib/gl_array_oset.c: New file.
23016         * lib/gl_avltree_oset.h: New file.
23017         * lib/gl_avltree_oset.c: New file.
23018         * lib/gl_rbtree_oset.h: New file.
23019         * lib/gl_rbtree_oset.c: New file.
23020         * lib/gl_anytree_oset.h: New file.
23021
23022 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23023
23024         * m4/mkancesdirs.m4: New file.
23025         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
23026         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
23027         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
23028         it.
23029
23030 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23031
23032         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
23033         * lib/mkancesdirs.h: New files.
23034         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
23035         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
23036         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
23037         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
23038         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
23039         callers changed.  Revamp internals significantly, by not
23040         attempting to create directories that are temporarily more
23041         permissive than the final results.  Do not attempt to use
23042         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
23043         This removes some race conditions, fixes some bugs, and simplifies
23044         things.  Use new dirchownmod function to do owner and mode changes.
23045         * lib/mkdir-p.h: Likewise.
23046         * lib/modechange.c (octal_to_mode): New function.
23047         (struct mode_change): New member mentioned.
23048         (make_node_op_equals): New arg mentioned.  All callers changed.
23049         (mode_compile): Keep track of which mode bits the user has explicitly
23050         mentioned.
23051         (mode_adjust): New arg DIR, so that we implement the X op correctly.
23052         New arg PMODE_BITS, to keep track of which mode bits the user
23053         mentioned; it treats S_ISUID and S_ISGID speciall.
23054         All callers changed.
23055         * lib/modechange.h: Likewise.
23056
23057 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23058
23059         * MODULES.html.sh: Add mkancestors.
23060         * modules/mkancesdirs: New module.
23061         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
23062         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
23063         The chdir-safer and afs files are now orphans; I'll remove them
23064         unless someone speaks up.
23065         Add lib/dirchownmod.c, lib/dirchownmod.h.
23066         (Depends-on): Remove alloca, chown, save-cwd, dirname.
23067         Add lchown, mkancesdirs.
23068         (Maintainer): Add self.
23069
23070 2006-07-15  Karl Berry  <karl@gnu.org>
23071
23072         * gnulib-tool: help message wording/arrangement.
23073
23074 2006-07-14  Simon Josefsson  <jas@extundo.com>
23075
23076         * doc/gnulib.texi (Libtool and Windows): New section.
23077
23078 2006-07-12  Simon Josefsson  <jas@extundo.com>
23079
23080         * modules/gendocs (License): Fix license, approved by Karl.
23081
23082 2006-07-12  Eric Blake  <ebb9@byu.net>
23083
23084         * MODULES.html.sh: Add gendocs.
23085
23086 2006-07-11  Eric Blake  <ebb9@byu.net>
23087
23088         * modules/fdl: New module, to install doc/fdl.texi.
23089         * MODULES.html.sh: Add new section for documentation modules.
23090         * gnulib-tool: Avoid space-tab.
23091         (--doc-base): New option, to manage files from doc.
23092
23093 2006-07-11  Eric Blake  <ebb9@byu.net>
23094
23095         * m4/absolute-header.m4: Fix comments to match recent change.
23096
23097 2006-07-11  Eric Blake  <ebb9@byu.net>
23098
23099         * gnulib-tool: List --doc-base before --tests-base.
23100
23101 2006-07-11  Derek R. Price  <derek@ximbiot.com>
23102
23103         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
23104
23105 2006-07-11  Bruno Haible  <bruno@clisp.org>
23106
23107         * README: Mention where to put documentation.
23108
23109 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23110
23111         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
23112
23113 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23114
23115         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
23116         to stdint.m4.
23117
23118 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23119
23120         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
23121         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
23122         "no/such/file/stdint.h" when there is no such file, so that
23123         the resulting C code can be parsed by dodgy compilers.
23124         Problems reported by Bob Proulx.
23125
23126 2006-07-10  Derek R. Price  <derek@ximbiot.com>
23127
23128         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
23129         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
23130         macros into the GNU _D_EXACT_NAMLEN.
23131         * lib/savedir.c:  Likewise.
23132         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
23133
23134 2006-07-10  Derek R. Price  <derek@ximbiot.com>
23135         and Paul Eggert  <eggert@cs.ucla.edu>
23136
23137         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
23138         * m4/savedir.m4:
23139         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
23140         macros into the GNU _D_EXACT_NAMLEN.
23141
23142 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23143
23144         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
23145         around the absolute name, to work around a problem with the HP-UX
23146         11.23 native C compiler, reported by Bob Proulx.
23147
23148 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23149
23150         * doc/maintain.texi, make-stds.texi: Sync from
23151         <http://savannah.gnu.org/projects/gnustandards>.
23152
23153 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23154
23155         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
23156
23157 2006-07-09  Jim Meyering  <jim@meyering.net>
23158
23159         * m4/glob.m4: Remove a doubled word in a comment.
23160
23161 2006-07-09  Jim Meyering  <jim@meyering.net>
23162
23163         * lib/argp-pv.c: Remove a doubled word in a comment.
23164         * lib/check-version.c (check_version): Likewise.
23165         * lib/javacomp.c (compile_java_class): Likewise.
23166
23167 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23168
23169         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
23170         for the benefit of people using Autoconf 2.60.  If you want to
23171         support older Autoconf versions you can copy m4/onceonly_2_57.m4
23172         (or m4/onceonly.m4, if pre-2.57) manually.
23173
23174 2006-07-08  Jim Meyering  <jim@meyering.net>
23175
23176         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
23177         comment.
23178         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
23179         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
23180         comment.
23181
23182 2006-07-08  Jim Meyering  <jim@meyering.net>
23183
23184         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
23185
23186 2006-07-07  Simon Josefsson  <jas@extundo.com>
23187
23188         * tests/test-crc.c: Change expected crc value, the test vector
23189         were probably computed using the old broken crc.c?
23190
23191 2006-07-06  Simon Josefsson  <jas@extundo.com>
23192
23193         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
23194         now the canonical place for the M4 file).
23195
23196         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
23197         from the sys_socket dependency now.
23198
23199         * modules/inet_pton (Files): Ditto.
23200
23201         * modules/inet_ntop (Files): Ditto.
23202
23203 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
23204
23205         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
23206         not gl_PREREQ_GETUSERSHELL.
23207
23208 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23209
23210         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
23211         with only one argument, for Autoconf 2.60.
23212         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
23213         expand to nothing, so add a shell command to avoid syntax error.
23214         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
23215
23216 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23217
23218         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
23219
23220 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23221
23222         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
23223         no longer needed.  Check for isblank decl.
23224         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
23225         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
23226         of existence.
23227
23228 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23229
23230         * lib/getloadavg.c: Use __VMS, not VMS.
23231         * lib/getopt.c: Likewise.
23232         * lib/getpagesize.h: Likewise.
23233         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
23234         and probably does not work.
23235
23236 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23237
23238         * lib/.cppi-disable: Add wcwidth.
23239         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
23240         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
23241         (ISGRAPH): Remove.  All uses changed to isgraph.
23242         (FOLD) [!defined _LIBC]: Remove special case.
23243         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
23244         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
23245         HAVE_ISBLANK.
23246         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
23247         case.
23248
23249 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
23250
23251         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
23252         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
23253         brackets.  Other minor changes to suppress some compiler
23254         warnings.
23255
23256 2006-07-06  Derek R. Price  <derek@ximbiot.com>
23257         and Paul Eggert  <eggert@cs.ucla.edu>
23258
23259         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
23260         of invoking obsolescent AC_HEADER_DIRENT macro.
23261         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23262         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
23263         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23264         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23265         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
23266         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
23267         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
23268         * m4/readdir.m4: Remove; no longer needed.
23269
23270 2006-07-06  Derek R. Price  <derek@ximbiot.com>
23271         and Paul Eggert  <eggert@cs.ucla.edu>
23272
23273         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
23274         Don't worry about this obsolete case any more.
23275         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
23276         directories.
23277         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
23278         worry about this obsolete case any more.
23279         * lib/fts.c: Likewise.
23280         * lib/getcwd.c: Likewise.
23281         * lib/glob.h: Likewise.
23282         * lib/savedir.c: Likewise.
23283
23284 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
23285
23286         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
23287         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
23288         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
23289         needed.
23290         All uses removed.
23291         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
23292         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
23293         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
23294         needed.
23295         * m4/getdate.m4 (gl_GETDATE): Likewise.
23296         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
23297         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
23298         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23299         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
23300         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
23301         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
23302         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
23303         needed.
23304
23305 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
23306
23307         * lib/memcasecmp.c: Include <limits.h>.
23308         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
23309         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
23310         Don't assume isdigit succeeds only on '0' through '9'.
23311
23312 2006-07-05  Eric Blake  <ebb9@byu.net>
23313
23314         * modules/getaddrinfo (Depends-on): Add snprintf.
23315
23316 2006-07-05  Eric Blake  <ebb9@byu.net>
23317
23318         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
23319         to avoid 'header present but could not be compiled' on cygwin.
23320
23321 2006-07-05  Eric Blake  <ebb9@byu.net>
23322
23323         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
23324         missing from netdb.h.
23325         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
23326
23327 2006-07-05  Derek R. Price  <derek@ximbiot.com>
23328
23329         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
23330         no longer needed.
23331         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
23332         * m4/getdate.m4 (gl_GETDATE): Likewise.
23333         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
23334         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
23335         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23336         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
23337         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
23338
23339 2006-07-05  Derek R. Price  <derek@ximbiot.com>
23340
23341         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
23342         All uses of is_space replaced by isspace.
23343         * lib/exit.h: Don't talk about STDC_HEADERS.
23344         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
23345         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
23346         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
23347         replaced by isprint etc.
23348         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
23349         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
23350         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
23351         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
23352         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
23353         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
23354
23355 2006-07-05  Bruno Haible  <bruno@clisp.org>
23356
23357         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
23358         the function exists, before testing against AIX.
23359         Reported by Martin Lambers <marlam@marlam.de>.
23360
23361 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
23362
23363         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
23364         From Mark D. Baushke.
23365
23366 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
23367
23368         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
23369         to the absolute name, not just one, to bypass Sun C 5.8's
23370         "warning: #include of /usr/include/... may be non-portable".
23371
23372 2006-07-04  Eric Blake  <ebb9@byu.net>
23373
23374         * modules/dirname-tests: New test module.
23375         * tests/test-dirname.c: New file, replacing dirname.c
23376         TEST_DIRNAME section that was recently deleted.
23377
23378 2006-07-04  Bruno Haible  <bruno@clisp.org>
23379
23380         Assume ANSI C header files and <ctype.h> functions.
23381         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
23382         (mbsnwidth): Use isprint, iscntrl instead.
23383
23384 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23385
23386         Merge from coreutils.
23387         * MODULES.html.sh: Add xstrtold.
23388         * modules/xstrtold: New file.
23389         * modules/cycle-check (Files): Add lib/same-inode.h.
23390         * modules/dirname (Files): Add m4/double-slash-root.m4.
23391         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
23392         * modules/mkdir-p (Files): Add lib/same-inode.h.
23393         * modules/same (Files): Add lib/same-inode.h.
23394
23395 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23396
23397         * m4/absolute-header.m4: Renamed from full-header-path.m4.
23398         This is to keep the terminology clean; POSIX talks about
23399         "absolute pathnames", not "full pathnames", but the GNU
23400         Coding Standards say to use "path" for something else;
23401         so use "absolute" to keep both sides happy.
23402         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
23403         Set gl_absolute_header, not gl_full_header_path.
23404         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
23405         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
23406         All uses changed.
23407
23408         Merge from coreutils.
23409
23410         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
23411
23412         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
23413         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
23414         want to require the building of c-strtod.o.
23415         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
23416         needs -lm directly.
23417         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
23418
23419         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
23420
23421         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
23422         --as-needed option if available.  Problem reported by Albert Chin in
23423         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
23424         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
23425         cc merely issues a bunch of annoying warnings for --as-needed
23426         (this problem was reported by Bob Proulx).  Also, try linking with
23427         -lm to detect a bug in binutils 2.16 (this problem was reported
23428         by Ralf Wildenhues).
23429
23430         2006-06-18  Jim Meyering  <jim@meyering.net>
23431
23432         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
23433         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
23434         macro.
23435         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
23436         also check for glibc-2.4's abort-inducing bug.
23437
23438         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
23439         Low-probability clean-up should be to use rmdir to get rid of
23440         the just-created directory, not unlink.
23441
23442         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
23443         configure fail, and request a bug report to inform us about it.
23444         Add a comment that, barring reports to the contrary, in 2007 we'll
23445         assume ftruncate is universally available.
23446
23447         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
23448
23449         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
23450
23451         2006-03-12  Jim Meyering  <jim@meyering.net>
23452
23453         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
23454         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
23455         * m4/same.m4 (gl_SAME): Likewise.
23456         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
23457
23458         2006-03-11  Eric Blake  <ebb9@byu.net>
23459
23460         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
23461         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
23462         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
23463         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
23464
23465 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23466
23467         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
23468         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
23469         reported by Mark D. Baushke, one in
23470         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
23471
23472         Merge from coreutils.
23473
23474         * lib/.cppi-disable: Add stdint_.h.
23475         * lib/.cvsignore: Add stdint.h.
23476
23477         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
23478
23479         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
23480         both double and long double versions.
23481         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
23482         * lib/xstrtold.c: New file.
23483         * lib/xstrtod.h (xstrtold): New decl.
23484
23485         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
23486
23487         * lib/filemode.c (setst): Remove.
23488         (strmode): Rewrite to avoid setst.  This makes the code shorter,
23489         (arguably) clearer, and the generated code is a bit smaller on my
23490         Debian GNU/Linux stable x86 host.
23491
23492         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
23493
23494         * lib/filemode.c: Include "filemode.h" first, to test the interface.
23495         Assume that filemode.h includes sys/types.h and sys/stat.h.
23496         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
23497         (ftypelet): Reorder to put common cases first, for efficiency.
23498         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
23499         to do 'M'.
23500         (strmode): Renamed from mode_string, and now stores 12 bytes instead
23501         of 10, for compatibility with FreeBSD.  All callers changed.
23502         (filemodestring): Now stores 12 bytes instead of 10, and sets file
23503         types that can't be deduced solely from st_mode.  First arg is now a
23504         const pointer.
23505         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
23506         (strmode): Renamed from mode_string.
23507         (filemodestring): New decl.
23508         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
23509         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
23510         needed.
23511         (S_ISPORT, S_ISWHT): New macros, if not already defined.
23512
23513         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
23514
23515         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
23516         fsusage.h now does that.  Include fsusage.h first, to test interface.
23517         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
23518         at most one method (the old code could have generated decls that
23519         didn't conform to C89, not that this was ever exercised).
23520         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
23521
23522         2006-03-19  Jim Meyering  <jim@meyering.net>
23523
23524         Work even in a chroot where d_ino values for entries in "/"
23525         don't match the stat.st_ino values for the same names.
23526         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
23527         number, iterate through all entries again, using lstat instead.
23528         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
23529         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
23530
23531         * lib/getcwd.c (__getcwd): Clarify a comment.
23532         Use memcpy in place of a call to strcpy.
23533
23534         2006-03-12  Jim Meyering  <jim@meyering.net>
23535
23536         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
23537         matches that of the current directory (which we're about to chdir ".."
23538         out of), then save the dev-ino of the parent, instead.
23539
23540         * lib/same-inode.h (SAME_INODE): New file/macro.
23541         * lib/chdir-safer.c (SAME_INODE): Remove definition.
23542         Include "same-inode.h", instead.
23543         * lib/same.c: Likewise.
23544         * lib/cycle-check.h: Include "same-inode.h".
23545         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
23546         * lib/cycle-check.c (SAME_INODE): Remove definition.
23547         * lib/root-dev-ino.h: Include "same-inode.h".
23548
23549         2006-03-11  Eric Blake  <ebb9@byu.net>
23550
23551         * lib/same.c (same_name): s/base_name/last_component/
23552         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
23553         * lib/filenamecat.c (file_name_concat): Likewise.
23554
23555         2006-03-11  Eric Blake  <ebb9@byu.net>,
23556                     Paul Eggert  <eggert@cs.ucla.edu>
23557
23558         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
23559         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
23560         drive prefix.
23561         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
23562         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
23563         (last_component): New method.
23564         * lib/dirname.c (dir_len): Determine when drive letters need a
23565         subsequent slash.  Preserve // when it is special.
23566         (dir_name): Don't append dot when drive letter is absolute.
23567         [TEST_DIRNAME]: Move into a full-blown gnulib test.
23568         * lib/basename.c (base_name): New semantics - malloc the result.
23569         Preserve // when it is special.  Preserve relative files that look
23570         like drive letters.
23571         (base_len): Preserve // when it is special.
23572         (last_component): New method, similar to old base_name semantics.
23573         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
23574         base_name.  Strip redundant slashes from ///.
23575
23576 2006-07-03  Jim Meyering  <jim@meyering.net>
23577
23578         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
23579         macro is used before the first cycle_check call.
23580
23581 2006-07-03  Eric Blake  <ebb9@byu.net>
23582
23583         * modules/dirname (Depends-on): Add xstrndup.
23584
23585 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
23586
23587         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
23588         test cases, so that config.log is a bit easier to follow.
23589
23590 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
23591
23592         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
23593         both are 64 bits, since this seems to be the tradition, and this
23594         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
23595         we ever run into a host that prefers long long to long in this
23596         case, we'll need another configure-time test.  Problem reported by
23597         Jim Meyering.
23598
23599 2006-07-02  Eric Blake  <ebb9@byu.net>
23600
23601         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
23602
23603 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
23604
23605         * modules/inttypes (Depends-on): No longer depends on stdint.
23606         * modules/stdint (Description): Say more about assumptions.
23607         Say that the fast types might differ.  Say macros are used.
23608         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
23609         (Makefile.am): Revise list of substituted symbols to match
23610         new stdint.m4.
23611         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
23612         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
23613         * tests/test-stdint.c (verify_same_types)
23614         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
23615         the code conforms to C99/C89.
23616         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
23617         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
23618
23619 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
23620
23621         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
23622         but fix a bug, by requiring at least 64 bits.
23623         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
23624         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
23625         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
23626         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
23627
23628         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
23629         changes.  Make 2.59 a prerequisite.  Check and substitute for
23630         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
23631         inttypes.h.  Do not use special include files; just use the
23632         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
23633         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
23634         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
23635         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
23636         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
23637         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
23638         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
23639         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
23640         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
23641         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
23642         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
23643         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
23644         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
23645         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
23646         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
23647         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
23648         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
23649         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
23650         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
23651         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
23652         WINT_MAX.  Check for C99 conformance more strictly, by detecting
23653         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
23654         not check for things that C99 does not require, e.g., int8_t.  If
23655         a test isn't needed unless <stdint.h> isn't working, and is
23656         unlikely to be needed for any other reason, then don't do it
23657         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
23658         size_t, since we assume C89 freestanding at least.  Do not check
23659         for sig_atomic_t, wchar_t, or wint_t, since the code now does
23660         the right thing even if the types are not defined.  Instead use:
23661         (gl_STDINT_TYPE_PROPERTIES): New macro.
23662         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
23663         testing whether <sys/types.h> clashes, as Autoconf does this for
23664         us now.  All uses removed.
23665         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
23666         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
23667         (gl_CHECK_TYPE_SAME):
23668         Remove; no longer needed.
23669         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
23670         exists, since we'll return 0 anyway in that case.
23671         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
23672
23673 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
23674
23675         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
23676         possible collision with system files.
23677         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
23678         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
23679         WCHAR_MIN and WCHAR_MAX in this case.
23680         (<stddef.h>): Do not include; no longer needed.
23681         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
23682         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
23683         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
23684         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
23685         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
23686         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
23687         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
23688         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
23689         !defined(__c99))]: Include in this case too, since it's harmless
23690         now.
23691         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
23692         dangerous to do so.
23693         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
23694         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
23695         (_STDINT_MIN, _STDINT_MAX): New macros.
23696         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
23697         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
23698         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
23699         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
23700         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
23701         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
23702         macros, not typedefs; this simplifies things quite a bit.
23703         Use long int for all types narrower than int64_t.
23704         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
23705         Define in terms of long long int or int64_t or long int,
23706         not int64_t or int32_t.  This saves some compile-time testing.
23707         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
23708         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
23709         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
23710         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
23711         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
23712         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
23713         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
23714         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
23715         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
23716         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
23717         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
23718         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
23719         undef any previous version and define our own version, for
23720         simplicity and consistency with the new macros for types.
23721         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
23722         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
23723         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
23724         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
23725         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
23726         @WINT_T_SUFFIX@ to keep things simple here.
23727         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
23728         Simplify by assuming typical 8/16/32/64 host, since we're
23729         already doing that elsewhere anyway.
23730         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
23731         and assume long long int is 64 bits if available.  This
23732         speeds up 'configure'.
23733
23734 2006-07-01  Eric Blake  <ebb9@byu.net>
23735
23736         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
23737         Reported by Andreas Buening.
23738
23739 2006-07-01  Eric Blake  <ebb9@byu.net>
23740
23741         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
23742
23743 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
23744
23745         * lib/getaddrinfo.c: fixed typo
23746
23747 2006-06-29  Jim Meyering  <jim@meyering.net>
23748
23749         * modules/strftime (Maintainer): Add my name, since with the
23750         FPRINTFTIME changes strftime.c has forked from glibc.
23751
23752 2006-06-29  Eric Blake  <ebb9@byu.net>
23753
23754         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
23755
23756 2006-06-29  Eric Blake  <ebb9@byu.net>
23757
23758         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
23759
23760 2006-06-29  Eric Blake  <ebb9@byu.net>
23761
23762         * lib/stat_.h: New file.
23763
23764 2006-06-29  Eric Blake  <ebb9@byu.net>
23765
23766         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
23767         unused static function.
23768
23769 2006-06-29  Eric Blake  <ebb9@byu.net>
23770
23771         * doc/functions.texi (Function Portability): Document missing lstat
23772         on mingw.
23773
23774 2006-06-29  Eric Blake  <ebb9@byu.net>
23775
23776         * MODULES.html.sh: Add sys_stat.
23777         * modules/sys_stat: New module.
23778         * modules/mkstemp (Depends-on): Add sys_stat.
23779
23780 2006-06-29  Derek R. Price  <derek@ximbiot.com>
23781
23782         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
23783
23784 2006-06-29  Derek R. Price  <derek@ximbiot.com>
23785
23786         * m4/c-bs-a.m4: Removed.
23787
23788 2006-06-29  Derek R. Price  <derek@ximbiot.com>
23789
23790         * lib/strftime.c: Assume strftime() exists.
23791
23792 2006-06-29  Derek Price  <derek@ximbiot.com>
23793
23794         * modules/c-bs-a: Removed - \a is C89.
23795         * MODULES.html.sh: Remove c-bs-a.
23796
23797 2006-06-29  Bruno Haible  <bruno@clisp.org>
23798
23799         * modules/wcwidth (License): Change to LGPL.
23800
23801 2006-06-28  Simon Josefsson  <jas@extundo.com>
23802
23803         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
23804         on _WIN32.
23805
23806         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
23807         getnameinfo.
23808
23809 2006-06-28  Simon Josefsson  <jas@extundo.com>
23810
23811         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
23812
23813 2006-06-28  Simon Josefsson  <jas@extundo.com>
23814
23815         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
23816         functions there.  It will succeed on Windows XP, but on Windows
23817         2000 and (presumably) earlier, it will fail, and use the internal
23818         re-implementation.
23819         (use_win32_p): New function.
23820         (getaddrinfo): Use strtoul on servname, to support numeric ports.
23821         Support AI_NUMERICSERV to disable getservbyname.
23822         (getnameinfo): New function, only supports
23823         NI_NUMERICHOST|NI_NUMERICSERV for now.
23824
23825         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
23826         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
23827         getnameinfo.
23828
23829 2006-06-28  Eric Blake  <ebb9@byu.net>
23830
23831         * modules/wcwidth: New file.
23832         * modules/mbchar (Depends-on): Add wcwidth.
23833         * modules/mbswidth (Depends-on): Add wcwidth.
23834         * MODULES.html.sh: Add wcwidth.
23835
23836 2006-06-28  Eric Blake  <ebb9@byu.net>
23837
23838         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
23839         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
23840
23841 2006-06-28  Eric Blake  <ebb9@byu.net>
23842
23843         * lib/xvasprintf.h: Fix comments.
23844
23845 2006-06-28  Eric Blake  <ebb9@byu.net>
23846
23847         * lib/mbchar.h (wcwidth): Include wcwidth.h.
23848         * lib/mbswidth.c (wcwidth): Move from here...
23849         * lib/wcwidth.h: ...to this new file.
23850
23851 2006-06-28  Derek R. Price  <derek@ximbiot.com>
23852
23853         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
23854
23855         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
23856         it's obsolete.
23857         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
23858
23859 2006-06-28  Derek R. Price  <derek@ximbiot.com>
23860
23861         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
23862         Autoconf 2.60 says this stuff was obsolete.
23863
23864 2006-06-28  Bruno Haible  <bruno@clisp.org>
23865
23866         * modules/wcwidth (Files): Add m4/wchar_t.m4.
23867
23868 2006-06-28  Bruno Haible  <bruno@clisp.org>
23869
23870         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
23871         gt_TYPE_WCHAR_T.
23872
23873 2006-06-28  Bruno Haible  <bruno@clisp.org>
23874
23875         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
23876         declaration for wcwidth.
23877         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
23878
23879 2006-06-28  Bruno Haible  <bruno@clisp.org>
23880
23881         * lib/mkdtemp.c [MINGW]: Include <io.h>.
23882         (mkdir): Define using _mkdir.
23883
23884 2006-06-28  Bruno Haible  <bruno@clisp.org>
23885
23886         * lib/getaddrinfo.h: Fix POSIX URL.
23887         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
23888         _WIN32.
23889         (use_win32_p): Make static.
23890         (getaddrinfo): Reject service name if it is empty or does not consist
23891         solely of decimal digits, or if its value is > 65535.
23892         (getnameinfo): Remove useless casts.
23893
23894 2006-06-27  Simon Josefsson  <jas@extundo.com>
23895
23896         * modules/sys_select: New file, suggested by Bruno Haible, Paul
23897         Eggert and Martin Lambers.
23898
23899 2006-06-27  Simon Josefsson  <jas@extundo.com>
23900
23901         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
23902         Eggert and Martin Lambers.
23903
23904 2006-06-27  Bruno Haible  <bruno@clisp.org>
23905
23906         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
23907         result to 0, not to empty.
23908         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
23909
23910 2006-06-27  Bruno Haible  <bruno@clisp.org>
23911
23912         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
23913
23914 2006-06-26  Simon Josefsson  <jas@extundo.com>
23915
23916         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
23917         present.
23918
23919 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
23920
23921         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
23922         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
23923         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
23924
23925 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
23926
23927         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
23928
23929 2006-06-26  Bruno Haible  <bruno@clisp.org>
23930
23931         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
23932
23933 2006-06-26  Bruno Haible  <bruno@clisp.org>
23934
23935         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
23936
23937 2006-06-26  Bruno Haible  <bruno@clisp.org>
23938
23939         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
23940         SGI C compiler in pre-C99 mode.
23941         Suggested by Mark D. Baushke and Larry Jones.
23942
23943 2006-06-26  Bruno Haible  <bruno@clisp.org>
23944
23945         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
23946         WCHAR_MAX.
23947         Reported by Mark D. Baushke and Larry Jones.
23948
23949 2006-06-26  Bruno Haible  <bruno@clisp.org>
23950
23951         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
23952         in pre-C99 mode.
23953         Suggested by Mark D. Baushke and Larry Jones.
23954
23955 2006-06-23  Simon Josefsson  <jas@extundo.com>
23956             Bruno Haible  <bruno@clisp.org>
23957
23958         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
23959         Emit mostlyclean-local rule.
23960         (func_emit_tests_Makefile_am): Likewise.
23961         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
23962
23963 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
23964
23965         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
23966
23967 2006-06-23  Bruno Haible  <bruno@clisp.org>
23968
23969         * tests/test-stdint.c: Update to match ISO C 99 Technical
23970         Corrigendum 1.
23971
23972 2006-06-23  Bruno Haible  <bruno@clisp.org>
23973
23974         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
23975
23976 2006-06-23  Bruno Haible  <bruno@clisp.org>
23977
23978         * lib/stdint_.h: Treat IRIX like OpenBSD.
23979
23980 2006-06-23  Bruno Haible  <bruno@clisp.org>
23981
23982         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
23983         ISO C 99 Technical Corrigendum 1.
23984
23985 2006-06-22  Simon Josefsson  <jas@extundo.com>
23986
23987         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
23988         MinGW.
23989
23990 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
23991
23992         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
23993         needed.  Some compiler complained about some of them.  Problem reported
23994         by Larry Jones in
23995         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
23996
23997 2006-06-21  Simon Josefsson  <jas@extundo.com>
23998
23999         * tests/test-getaddrinfo.c: New file.
24000
24001         * modules/getaddrinfo-tests: New file.
24002
24003         * MODULES.html.sh: Add inet_pton.
24004
24005         * modules/inet_pton: New file.
24006
24007 2006-06-21  Simon Josefsson  <jas@extundo.com>
24008
24009         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
24010         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
24011         of using the (limited) gnulib implementation on Windows XP.
24012
24013         * m4/inet_pton.m4: New file.
24014
24015 2006-06-21  Simon Josefsson  <jas@extundo.com>
24016
24017         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
24018         variable.
24019
24020         * lib/socket_.h: Don't define WINVER.
24021
24022         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
24023         slightly modified to work in gnulib.
24024
24025 2006-06-21  Simon Josefsson  <jas@extundo.com>
24026
24027         * doc/gnulib.texi (Windows sockets): Add.
24028
24029 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
24030
24031         * lib/read-file.c (fread_file): Start with buffer allocation of
24032         0 bytes rather than 1 byte; this simplifies the code.
24033         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
24034         code to free buffer and save/restore errno.
24035         (internal_read_file): Remove unused local.
24036
24037 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
24038
24039         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
24040         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
24041         Problem reported by Denis Excoffier in
24042         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
24043
24044 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24045
24046         * modules/sys_socket, modules/socklen: Include sys/types since
24047         FreeBSD 4.x's sys/socket.h needs it.
24048
24049 2006-06-19  Simon Josefsson  <jas@extundo.com>
24050
24051         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
24052
24053 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
24054
24055         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
24056
24057 2006-06-19  Bruno Haible  <bruno@clisp.org>
24058
24059         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
24060         and FULL_PATH_INTTYPES_H in angle brackets.
24061         Reported by Mark D. Baushke <mdb@gnu.org>.
24062
24063 2006-06-17  Eric Blake  <ebb9@byu.net>
24064
24065         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
24066         errno.
24067
24068 2006-06-17  Bruno Haible  <bruno@clisp.org>
24069
24070         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
24071         <sys/inttypes.h>.
24072
24073 2006-06-17  Bruno Haible  <bruno@clisp.org>
24074
24075         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
24076         whether errno is declared. Assume <errno.h> declares errno.
24077
24078 2006-06-17  Bruno Haible  <bruno@clisp.org>
24079
24080         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
24081
24082 2006-06-17  Bruno Haible  <bruno@clisp.org>
24083
24084         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
24085         problem on Solaris 2.5.1.
24086
24087 2006-06-16  Eric Blake  <ebb9@byu.net>
24088
24089         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
24090         * lib/unicodeio.c [!defined errno]: Likewise.
24091         * lib/strtol.c [!defined errno]: Likewise.
24092         * lib/strtod.c [!defined errno]: Likewise.
24093
24094 2006-06-15  Eric Blake  <ebb9@byu.net>
24095
24096         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
24097
24098 2006-06-15  Eric Blake  <ebb9@byu.net>
24099
24100         * config/srclist.txt (ssize_t.m4): Lose sync.
24101
24102 2006-06-15  Bruno Haible  <bruno@clisp.org>
24103
24104         * modules/stdint (Files): Include m4/full-header-path.m4,
24105         m4/size_max.m4, m4/wchar_t.m4.
24106         (Makefile.am): Many more substitutions.
24107         * modules/stdint-tests: New file.
24108         * tests/test-stdint.c: New file.
24109
24110 2006-06-15  Bruno Haible  <bruno@clisp.org>
24111
24112         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
24113         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
24114         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
24115         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
24116         gl_CHECK_TYPE_SAME): New macros.
24117
24118 2006-06-15  Bruno Haible  <bruno@clisp.org>
24119
24120         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
24121
24122 2006-06-15  Bruno Haible  <bruno@clisp.org>
24123
24124         * lib/stdint_.h: Rewritten to be fully auto-configured.
24125         Fixes bug on HP-UX/IA64.
24126
24127 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
24128
24129         * lib/getdate.y (__attribute__): Don't define if already defined.
24130         Problem reported by Larry Jones.
24131         * lib/utimens.c (__attribute__): Likewise.
24132
24133 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
24134
24135         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
24136         reported by Andreas Schwab.
24137
24138 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24139             Bruno Haible  <bruno@clisp.org>
24140
24141         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
24142         check for the declaration of strnlen and a run test that exposes the
24143         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
24144         rpl_strndup.
24145
24146 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24147             Bruno Haible  <bruno@clisp.org>
24148
24149         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
24150
24151 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24152
24153         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
24154         compile test, for Tru64 4.0D.
24155
24156 2006-05-28  Karl Berry  <karl@gnu.org>
24157
24158         * config/srclist.txt (printf-args.c): lose sync.
24159
24160 2006-05-26  Martin Lambers  <marlam@marlam.de>
24161
24162         * lib/getpass.c: Updates the test for the native W32 API, and adds
24163         missing includes, thus fixing compilation warnings.
24164
24165 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24166
24167         * lib/exclude.c (exclude_fnmatch): New function.
24168         (excluded_file_name): Call exclude_fnmatch.
24169         * lib/exclude.h (excluded_file_name): New prototype
24170
24171 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
24172
24173         * lib/tempname.c (small_open, large_open): New macros.
24174         (__open, __open64) [!_LIBC]: Remove.
24175         (__gen_tempname): Use small_open and large_open instead of __open
24176         and __open64.  This fixes a portability bug on HP-UX 11.11i
24177         reported by Simon Wing-Tang in
24178         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
24179
24180 2006-05-24  Bruno Haible  <bruno@clisp.org>
24181
24182         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
24183         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
24184         Reported by Thorsten Maerz <torte@netztorte.de> via
24185         Aaron Stone <aaron@serendipity.cx>.
24186
24187 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24188
24189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
24190         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
24191         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
24192         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
24193         not really conditional on the cache.
24194         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
24195
24196 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24197
24198         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
24199         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
24200         (my_usleep): Don't mishandle maximum value.
24201
24202 2006-05-19  Jim Meyering  <jim@meyering.net>
24203
24204         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
24205
24206 2006-05-17  Bruno Haible  <bruno@clisp.org>
24207
24208         Cygwin portability.
24209         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
24210
24211 2006-05-17  Bruno Haible  <bruno@clisp.org>
24212
24213         * lib/stdint_.h: Fix recognition of Cygwin.
24214
24215 2006-05-15  Bruno Haible  <bruno@clisp.org>
24216
24217         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
24218         on libtool patch by Ralf Wildenhues.
24219
24220 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
24221
24222         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
24223         test for C99 conformance; (bool) 0.5 is an integer constant
24224         expression, but (bool) -0.5 is not.  Problem reported by Fedor
24225         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
24226
24227 2006-05-11  Simon Josefsson  <jas@extundo.com>
24228
24229         * m4/xvasprintf.m4: Fix obvious typo.
24230
24231 2006-05-11  Jim Meyering  <jim@meyering.net>
24232
24233         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
24234         James Lemley.
24235
24236 2006-05-10  Simon Josefsson  <jas@extundo.com>
24237
24238         * lib/md4.c: Typo fix, update copyright years.
24239         (K1, K2): Don't use L because it turn computations into 64-bit on
24240         64-bit platforms.
24241
24242 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
24243
24244         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
24245         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
24246         unwanted sign propagation, e.g., on hosts with 64-bit int.
24247         There still are some problems with reeelly weird theoretical hosts
24248         (e.g., 33-bit int) but it's not worth worrying about now.
24249         * lib/sha1.c (rol): Likewise.
24250         (K1, K2, K3, K4): Remove unnecessary L suffix.
24251
24252 2006-05-10  Bruno Haible  <bruno@clisp.org>
24253
24254         * lib/des.c: Cast to avoid warnings.
24255
24256 2006-05-09  Bruno Haible  <bruno@clisp.org>
24257
24258         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
24259         (Depends-on): Depend also on xsize, stdarg.
24260         (configure.ac): Add gl_XVASPRINTF.
24261
24262 2006-05-09  Bruno Haible  <bruno@clisp.org>
24263
24264         * m4/xvasprintf.m4: New file.
24265
24266 2006-05-09  Bruno Haible  <bruno@clisp.org>
24267
24268         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
24269         (EOVERFLOW): Define fallback value.
24270         (xstrcat): New function.
24271         (xvasprintf): Recognize the special case of a string concatenation.
24272
24273 2006-05-08  Eric Blake  <ebb9@byu.net>
24274
24275         * gnulib-tool (func_version): Base copyright year on CVS date.
24276         (func_emit_copyright_notice): New function.
24277         (func_emit_lib_Makefile_am): Use it.
24278         (func_emit_tests_Makefile_am): Likewise.
24279         (func_import): Likewise.
24280
24281 2006-05-08  Bruno Haible  <bruno@clisp.org>
24282
24283         * modules/stdarg: New file.
24284         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
24285
24286 2006-05-08  Bruno Haible  <bruno@clisp.org>
24287
24288         * m4/stdarg.m4: New file, from GNU gettext.
24289
24290 2006-05-08  Bruno Haible  <bruno@clisp.org>
24291
24292         * config/srclist.txt (build-aux/config.rpath): different from latest
24293         release.
24294
24295 2006-05-08  Bruno Haible  <bruno@clisp.org>
24296
24297         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
24298
24299 2006-05-05  Jim Meyering  <jim@meyering.net>
24300
24301         * m4/warning.m4: New file, derived from bison's file by the same name.
24302
24303 2006-05-03  Bruno Haible  <bruno@clisp.org>
24304
24305         * lib/stdint_.h: Shorter URL.
24306         * lib/inttypes.h: Likewise.
24307
24308 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24309
24310         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
24311
24312 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24313
24314         * lib/verify.h: Document the internals better.  Most of this change
24315         was written by Bruno Haible.
24316
24317 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24318
24319         * doc/verify.texi: New file, partly based on a proposal by
24320         Bruno Haible.
24321
24322 2006-05-02  Bruno Haible  <bruno@clisp.org>
24323
24324         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
24325         test from here...
24326         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
24327
24328 2006-04-29  Bruno Haible  <bruno@clisp.org>
24329
24330         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
24331         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
24332
24333 2006-04-29  Bruno Haible  <bruno@clisp.org>
24334
24335         * gnulib-tool: Make --update option actually work.
24336
24337 2006-04-29  Bruno Haible  <bruno@clisp.org>
24338
24339         * doc/gcd.texi: New file.
24340         * doc/gnulib.texi: Include it.
24341
24342 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
24343
24344         * lib/getdate.y (get_date): When adding relative date, start with the
24345         initial time, not with the result of the first mktime call.
24346
24347 2006-04-25  Bruno Haible  <bruno@clisp.org>
24348
24349         * gnulib-tool (func_import): Output the include directives in three
24350         blocks, sorted separately.
24351         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24352
24353 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
24354
24355         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
24356         to define main with arguments, for C++.  Reported by Eric Blake.
24357         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
24358         Prefer 'int main ()' to 'int main (void)', for C++.
24359         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24360         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
24361         for 'main', for C99 and C++.
24362
24363 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
24364
24365         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
24366         Don't assume that exit status -1 is valid.
24367         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24368         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24369         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
24370         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
24371         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
24372         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
24373         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
24374         functions can be used without declaring them, or that you can
24375         exit with status -1.
24376         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
24377
24378 2006-04-24  Karl Berry  <karl@gnu.org>
24379
24380         * config/srclist.txt (longdouble.m4): sync lost.
24381
24382 2006-04-24  Eric Blake  <ebb9@byu.net>
24383
24384         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
24385
24386 2006-04-24  Bruno Haible  <bruno@clisp.org>
24387
24388         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
24389         poll() implementation in AIX.
24390         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24391
24392 2006-04-24  Bruno Haible  <bruno@clisp.org>
24393
24394         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
24395         assigned exactly once.
24396
24397 2006-04-23  Claudio Fontana  <claudio@gnu.org>
24398             Bruno Haible  <bruno@clisp.org>
24399
24400         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
24401         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
24402         for AM_CPPFLAGS.
24403
24404 2006-04-23  Bruno Haible  <bruno@clisp.org>
24405
24406         * modules/copy-file: Depend on unistd.
24407         * modules/execute: Likewise.
24408         * modules/fatal-signal: Likewise.
24409         * modules/findprog: Likewise.
24410         * modules/mkdtemp : Likewise.
24411         * modules/pipe: Likewise.
24412         * modules/wait-process: Likewise.
24413
24414 2006-04-23  Bruno Haible  <bruno@clisp.org>
24415
24416         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
24417         condition was already detected.
24418         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24419
24420 2006-04-23  Bruno Haible  <bruno@clisp.org>
24421
24422         * lib/copy-file.c: Include <unistd.h> unconditionally.
24423         * lib/execute.c: Likewise.
24424         * lib/fatal-signal.c: Likewise.
24425         * lib/findprog.c: Likewise.
24426         * lib/mkdtemp.c: Likewise.
24427         * lib/pipe.h: Likewise.
24428         * lib/pipe.c: Likewise.
24429         * lib/wait-process.h: Likewise.
24430
24431 2006-04-23  Bruno Haible  <bruno@clisp.org>
24432
24433         * gnulib-tool (func_usage): Fix --import description. Document
24434         --update.
24435         (func_import): Create temporary file in a temporary directory, if
24436         --dry-run is specified. Silence errors from 'grep' when there are no
24437         m4 files in $m4dir.
24438         (func_create_testdir): Silence errors from 'grep' when there are no
24439         m4 files in $m4dir.
24440         Reported by Karl Berry <karl@freefriends.org>.
24441
24442 2006-04-20  Bruno Haible  <bruno@clisp.org>
24443
24444         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
24445         one argument, so that the code will be portable to Autoconf 2.60.
24446         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
24447         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
24448         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
24449
24450 2006-04-19  Derek Price  <derek@ximbiot.com>
24451             Eric Blake  <ebb9@byu.net>
24452
24453         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
24454         rather than "/full/path.h".  Update comment to match.  Shorten &
24455         generalize m4_translit call via AS_TR_CPP.
24456
24457 2006-04-19  Derek Price  <derek@ximbiot.com>
24458             Eric Blake  <ebb9@byu.net>
24459
24460         * lib/inttypes.h: Correct grammar in comment.
24461
24462 2006-04-18  Derek Price  <derek@ximbiot.com>
24463             Paul Eggert  <eggert@cs.ucla.edu>
24464
24465         * modules/inttypes: New file.
24466         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
24467
24468 2006-04-18  Derek Price  <derek@ximbiot.com>
24469             Paul Eggert  <eggert@cs.ucla.edu>
24470
24471         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
24472         New files.
24473
24474 2006-04-18  Derek Price  <derek@ximbiot.com>
24475             Paul Eggert  <eggert@cs.ucla.edu>
24476
24477         * lib/inttypes.h: New file.
24478         * lib/strtoimax.c: Assume <inttypes.h>.
24479
24480 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
24481
24482         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
24483         isn't mounted.  Problem reported by Kir Kolyshkin.
24484
24485 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
24486
24487         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
24488         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
24489         Derek R. Price.
24490         * lib/regex.h (RE_DUP_MAX): Update comment to match current
24491         implementation.
24492
24493 2006-04-12  Eric Blake  <ebb9@byu.net>
24494
24495         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
24496         is now done automatically by the corresponding Autoconf macro.
24497
24498 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
24499
24500         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
24501         time_r.h.
24502
24503 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
24504
24505         Merge regex changes from libc, removing some of our
24506         POSIX-conformance changes that were rejected and redoing them in a
24507         less-intrusive way.
24508
24509         * lib/regcomp.c (re_compile_internal, init_dfa):
24510         Length arg is now size_t, not Idx.  All uses changed.
24511         (peek_token): Forward decl now says internal_function.
24512         (__re_error_msgid, __re_error_msgid_idx):
24513         Now static rather than extern with attribute_hidden.
24514         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
24515         For some reason libc prefers K&R style defns for external functions.
24516         (regerror) [!defined _LIBC]: Likewise.
24517         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
24518         (seek_collating_symbol_entry, lookup_collation_sequence_value):
24519         (build_range_exp, build_collating_symbol):
24520         Use K&R-style defn.
24521         (re_compile_fastmap): Use '\0' to memset, not 0.
24522         (utf8_sb_map): Make the calculations more obvious.
24523         (init_dfa, parse_bracket_exp, build_charclass_op):
24524         Call calloc and cast result, as glibc does.
24525         (init_word_char, fetch_token, peek_token, peek_token_bracket):
24526         (build_range_exp, build_collating_symbol):
24527         Now internal functions.
24528
24529         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
24530
24531         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
24532         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
24533         Don't depend on VMS; depend on __VMS instead, for POSIX
24534         namespace cleanness.
24535         (regoff_t): Define to ssize_t, not long int.
24536
24537         Remove the REG_ macros named below.  Instead, make the old names
24538         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
24539         __USE_GNU_REGEX.
24540         (REG_BACKSLASH_ESCAPE_IN_LISTS):
24541         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
24542         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
24543         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
24544         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
24545         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
24546         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
24547         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
24548         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
24549         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
24550         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
24551         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
24552         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
24553         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
24554         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
24555         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
24556         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
24557         (REG_NREGS):
24558         Remove.  All uses replaced by the old RE_* names.
24559         (RE_BACKSLASH_ESCAPE_IN_LISTS):
24560         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
24561         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
24562         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
24563         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
24564         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
24565         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
24566         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
24567         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
24568         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
24569         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
24570         Don't bother having these macros be independent of each others'
24571         values, since they no longer exist in the POSIX name space.
24572
24573         Rename the following member names back to their old names,
24574         unless !__USE_GNU_REGEX.  All uses changed back.
24575         (buffer): Renamed from re_buffer.
24576         (allocated): Renamed from re_allocated.
24577         (used): Renamed from re_used.
24578         (syntax): Renamed from re_syntax.
24579         (fastmap): Renamed from re_fastmap.
24580         (translate): Renamed from re_translate.
24581         (can_be_null): Renamed from re_can_be_null.
24582         (regs_allocated): Renamed from re_regs_allocated.
24583         (fastmap_accurate): Renamed from re_fastmap_accurate.
24584         (no_sub): Renamed from re_no_sub.
24585         (not_bol): Renamed from re_not_bol.
24586         (not_eol): Renamed from re_not_eol.
24587         (newline_anchor): Renamed from re_newline_anchor.
24588         (num_regs): Renamed from rm_num_regs.
24589         (start): Renamed from rm_start.
24590         (end): Renamed from rm_end.
24591
24592         (free_state): Move up a bit.
24593
24594         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
24595         #define to be empty.
24596         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
24597         when that is what is intended.
24598         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
24599         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
24600         (MAX): New macro.
24601         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
24602         All uses changed back to re_malloc, etc.  It's now the caller's
24603         responsibility to check for overflow; all callers changed.
24604         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
24605         (re_x2nrealloc): Remove.
24606         (free_state): Remove decl.
24607
24608         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
24609         (re_set_registers, re_exec):
24610         Use K&R-style defn.
24611
24612         2006-01-31  Roland McGrath  <roland@redhat.com>
24613
24614         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
24615         Reported by Mike Frysinger <vapier@gentoo.org>.
24616
24617         2006-01-15  Andreas Jaeger  <aj@suse.de>
24618
24619         [BZ #1950]
24620         * lib/regex_internal.c (re_string_reconstruct): Adjust for
24621         build_wcs_upper_buffer change.
24622         (build_wcs_upper_buffer): Change return type.
24623
24624         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
24625
24626         * lib/regex_internal.h: Include <stdint.h> if available.
24627
24628         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
24629
24630         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
24631
24632         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
24633
24634         * lib/regcomp.c: Adjust for changed secondary hash function.
24635
24636         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
24637
24638         * lib/regex.h: Pretty printing.
24639         Clean up namespace a bit.
24640
24641         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
24642
24643         * lib/regexec.c (update_cur_sifted_state, check_arrival,
24644         check_arrival_add_next_nodes): Avoid using uninitialized variable.
24645
24646         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24647                     Ulrich Drepper  <drepper@redhat.com>
24648
24649         [BZ #1302]
24650         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
24651         changed.
24652         (bitset_word_t): Renamed from bitset_word.  All uses changed.
24653
24654         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
24655
24656         [BZ #281]
24657         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
24658         * lib/regcomp.c: Remove unnecessary uses of
24659         unsigned RE_TRANSLATE_TYPE.
24660         * lib/regex_internal.h: Likewise.
24661         * lib/regex_internal.c: Likewise.
24662         * lib/regexec.c: Likewise.
24663         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
24664
24665         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
24666
24667         * lib/regexec.c (find_recover_state): Remove unnecessary
24668         initialization.
24669         (transit_state_bkref): Make DFA a const pointer.
24670         (get_subexp): Likewise.
24671         (check_arrival): Likewise.
24672         (update_cur_sifted_state): Likewise.
24673         (re_search_internal): Likewise.
24674         (prune_impossible_nodes): Likewise.
24675         (acquire_init_state_context): Likewise.
24676         (proceed_next_node): Likewise.
24677         (set_regs): Likewise.
24678         (free_fail_stack_return): Likewise.
24679         (check_arrival_expand_ecl): Mark DFA parameter as const.
24680         (check_arrival_expand_ecl_sub): Likewise.
24681         (check_subexp_limits): Likewise.
24682         (sub_epsilon_src_nodes):  Likewise.
24683         (add_epsilon_src_nodes):  Likewise.
24684         (merge_state_array): Likewise.
24685         (update_regs): Likewise.
24686         (build_trtable): Likewise.
24687         (sift_states_backward): Mark MCTX parameter as const.
24688         (build_sifted_states): Likewise.
24689         (update_cur_sifted_state): Likewise.
24690         (sift_states_mkref): Likewise.
24691         (check_arrival_expand_ecl): Mark eclosure as const.
24692         (check_dst_limits_calc_pos_1): Likewise.
24693         * lib/regex_internal.h (re_match_context_t): Make dfa a const
24694         pointer.
24695
24696         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
24697
24698         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
24699         (transit_state_sb): Likewise.
24700         (transit_state_mb): Likewise.
24701         (sift_states_iter_mb): Likewise.
24702         (check_arrival_add_next_nodes): Likewise.
24703         (check_node_accept_bytes): Change first parameter to pointer-to-const.
24704         [_LIBC] (re_search_2_stub): Use mempcpy.
24705
24706         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
24707         mbrtowc for very simple UTF-8 case.
24708
24709         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
24710         a pointer-to-const.
24711         (re_acquire_state_context): Likewise.
24712         * lib/regex_internal.h: Adjust prototypes.
24713
24714         * lib/regex.c: Prevent using C++ compilers.
24715
24716         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
24717         (re_acquire_state_context): Likewise.
24718
24719 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
24720
24721         * modules/regex (Depends-on): Add ssize_t.
24722
24723 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
24724
24725         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
24726         translation table.
24727
24728 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
24729
24730         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
24731
24732 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
24733             Bruno Haible  <bruno@clisp.org>
24734
24735         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
24736         <sys/types.h> and <inttypes.h>.
24737
24738 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24739
24740         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
24741         `__error_t_defined', so argp.h will not typedef the former.
24742
24743 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24744
24745         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
24746         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
24747         glibc names.  Even if glibc is changed to conform to POSIX, the
24748         traditional names will be available anyway, since regex depends on
24749         the extensions module.  Also, fix a longstanding typo in the
24750         implementation of Spencer ERE test #75 from grep 2.3.  Problems
24751         reported by Emanuele Giaquinta.  Also, change sense of cached
24752         variable, so that the message makes sense.
24753
24754 2006-03-24  Simon Josefsson  <jas@extundo.com>
24755
24756         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
24757         including some doc fixes.
24758         (base64_encode_alloc): Fix +1 bug on allocation failures.
24759
24760 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24761
24762         * lib/base64.c (base64_encode): Do not read past end of array with
24763         unsanitized input on systems with CHAR_BIT > 8.
24764
24765 2006-03-24  Eric Blake  <ebb9@byu.net>
24766
24767         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
24768
24769 2006-03-22  Karl Berry  <karl@gnu.org>
24770
24771         * config/srclist.txt (*setenv.[ch]): get from coreutils.
24772         * config/srclistvars.sh (COREUTILS): new var.
24773
24774 2006-03-17  Jim Meyering  <jim@meyering.net>
24775
24776         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
24777         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
24778
24779 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24780
24781         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
24782         no longer needs it.  Instead, check that regoff_t is as least
24783         as wide as ptrdiff_t.
24784
24785         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
24786         so that our regex.h stays compatible with the installed regex.
24787         This is helpful for installers who configure --without-included-regex.
24788         Problem reported by Emanuele Giaquinta.
24789
24790 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24791
24792         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
24793         Typedef to long int, not to off_, as POSIX will likely change
24794         in that direction.
24795
24796 2006-03-15  Eric Blake  <ebb9@byu.net>
24797
24798         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
24799
24800 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
24801
24802         * lib/argp-help.c (validate_uparams): Fix typo
24803         * lib/argp-parse.c (argp_default_options): Consistently begin help
24804         messages with a lowercase letter.
24805
24806 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
24807
24808         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
24809         overrun buffers and shouldn't be used (much as gets shouldn't be
24810         used).
24811         * lib/time_r.c (asctime_r, ctime_r): Likewise.
24812
24813 2006-03-08  Simon Josefsson  <jas@extundo.com>
24814
24815         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
24816         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24817
24818 2006-03-08  Simon Josefsson  <jas@extundo.com>
24819
24820         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
24821         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24822
24823 2006-03-08  Simon Josefsson  <jas@extundo.com>
24824
24825         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
24826         signal that configure disabled the device.
24827
24828 2006-03-08  Simon Josefsson  <jas@extundo.com>
24829
24830         * build-aux/maint.mk: Fix refresh-po, to handle no translated
24831         languages.
24832
24833 2006-03-07  Simon Josefsson  <jas@extundo.com>
24834
24835         * modules/getopt (Depends-on): Add unistd.
24836
24837         * modules/unistd: New file.
24838
24839 2006-03-07  Simon Josefsson  <jas@extundo.com>
24840
24841         * modules/gc-random: New file.
24842
24843 2006-03-07  Simon Josefsson  <jas@extundo.com>
24844
24845         * m4/unistd_h.m4: New file.
24846
24847 2006-03-07  Simon Josefsson  <jas@extundo.com>
24848
24849         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
24850         test to be side-effect free by storing the result in the cache
24851         variable gl_cv_lib_readline, and moving the assignment of
24852         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
24853         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24854
24855 2006-03-07  Simon Josefsson  <jas@extundo.com>
24856
24857         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
24858         error on missing devices (the functions will return an error).
24859
24860         * m4/gc.m4: Move random stuff to gc-random.m4
24861
24862 2006-03-07  Simon Josefsson  <jas@extundo.com>
24863
24864         * lib/unistd_.h: New file.
24865
24866 2006-03-07  Simon Josefsson  <jas@extundo.com>
24867
24868         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
24869
24870 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
24871
24872         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
24873         Problem reported by Juan Manuel Guerrero.
24874
24875 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
24876
24877         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
24878         the unistd module.
24879         * lib/getlogin_r.c: Likewise.
24880         * lib/getlogin_r.h: Likewise.
24881         * lib/glob.c: Likewise.
24882         * lib/pagealign_alloc.c: Likewise.
24883         * lib/unistd_.h: Remove; no longer needed.
24884
24885 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
24886
24887         * MODULES.html.sh (Support for systems lacking POSIX:2001):
24888         Add unistd.
24889         * modules/c-stack (Depends-on): Add unistd.
24890         * modules/getlogin_r: Likewise.
24891         * modules/glob: Likewise.
24892         * modules/pagealign_alloc: Likewise.
24893         * modules/unistd (Files): Remove lib/unistd_.h.
24894         (EXTRA_DIST): Remove.
24895         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
24896         need unistd_.h.
24897         (MOSTLYCLEANFILES): Remove unistd.h-t.
24898
24899 2006-03-03  Simon Josefsson  <jas@extundo.com>
24900
24901         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
24902
24903 2006-03-03  Simon Josefsson  <jas@extundo.com>
24904
24905         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
24906         libidn and bison.
24907
24908 2006-03-03  Simon Josefsson  <jas@extundo.com>
24909
24910         * build-aux/maint.mk: Add indent target.
24911
24912 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
24913
24914         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
24915         our replacement poll.h in any case, to avoid a differing
24916         declaration from a system header.  Seen on AIX.
24917
24918 2006-03-01  Simon Josefsson  <jas@extundo.com>
24919
24920         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
24921         <kasal@ucw.cz>.
24922
24923 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
24924
24925         * modules/gettime (Depends-on): Add extensions module.
24926         * modules/nanosleep (Depends-on): Likewise.
24927         * modules/settime (Depends-on): Likewise.
24928
24929 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
24930
24931         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
24932         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
24933         pedantically.
24934         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24935         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
24936
24937         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
24938         not "==".  Reported by Ralf Wildenhues.
24939
24940 2006-03-01  Karl Berry  <karl@gnu.org>
24941
24942         * doc/Copyright/request-*: new files, synced from gnuorg.
24943
24944 2006-03-01  Karl Berry  <karl@gnu.org>
24945
24946         * config/srclist.txt (Copyright/*): new entries.
24947
24948 2006-02-28  Simon Josefsson  <jas@extundo.com>
24949
24950         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
24951
24952 2006-02-27  Simon Josefsson  <jas@extundo.com>
24953
24954         * lib/base64.h: Indent #define's.  From Jim Meyering
24955         <jim@meyering.net>.
24956
24957 2006-02-27  Jim Meyering  <jim@meyering.net>
24958
24959         Revert the change of 2006-02-24, so these files can continue
24960         to be sync'd from gettext.
24961         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
24962         of `config.h'.
24963
24964 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
24965
24966         * modules/intprops: New file.
24967         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
24968         Add intprops.
24969         * modules/getloadavg (Files): Remove lib/intprops.h.
24970         (Depends-on): Add intprops.
24971         * modules/human: Likewise.
24972         * modules/inttostr: Likewise.
24973         * modules/openat: Likewise.
24974         * modules/sig2str: Likewise.
24975         * modules/userspec: Likewise.
24976         * modules/utimecmp: Likewise.
24977         * modules/xnanosleep: Likewise.
24978         * modules/xstrtol: Likewise.
24979
24980 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
24981
24982         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
24983         * modules/lock-tests (TESTS): Use $(EXEEXT).
24984         * modules/tls-tests: Likewise.
24985         * modules/argp-tests: Likewise.
24986         (check_PROGRAMS): New var, replacing...
24987         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
24988
24989 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24990
24991         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
24992         `config.h'.
24993
24994 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24995
24996         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
24997
24998 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24999
25000         Sync from coreutils.
25001         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
25002         gl_CHDIR_SAFER.
25003
25004 2006-02-22  Jim Meyering  <jim@meyering.net>
25005
25006         Sync from coreutils.
25007         * m4/chdir-safer.m4: New file.
25008
25009 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25010
25011         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
25012         AT_FDCWD exceeds INT_MAX.
25013         * lib/openat.h (AT_FDCWD): Likewise.
25014
25015 2006-02-17  Eric Blake  <address@hidden>
25016
25017         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
25018
25019 2006-02-16  Simon Josefsson  <jas@extundo.com>
25020
25021         * modules/getaddrinfo (Depends-on): Add sys_socket.
25022
25023 2006-02-15  Simon Josefsson  <jas@extundo.com>
25024
25025         * build-aux/maint.mk: Add dsyntax-check rule.
25026
25027 2006-02-15  Eric Blake  <ebb9@byu.net>
25028
25029         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
25030         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
25031         'present but cannot compile' warnings on cygwin.
25032         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
25033         use ws2tcpip.h if sys/socket.h works.
25034         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
25035         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
25036
25037 2006-02-14  Simon Josefsson  <jas@extundo.com>
25038
25039         * modules/maintainer-makefile (Files): Rename.
25040
25041         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
25042         and (the local) Makefile.cfg to maint-cfg.mk.
25043
25044         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
25045         to the latter.
25046
25047         * modules/maintainer-makefile: New module.
25048
25049         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
25050         severaly stripped to make it possible to build it up from scratch
25051         with reliable tests.
25052
25053         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
25054         fixes to permit overriding the default actions when configure and
25055         makefile are not available.
25056
25057 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25058
25059         Sync from coreutils.
25060         * modules/lstat (Depends-on): Don't depend on xalloc.
25061         (License): Change from GPL to LGPL, since this is now simply a
25062         replacement for a libc function.
25063
25064 2006-02-14  Jim Meyering  <jim@meyering.net>
25065
25066         Sync from coreutils.
25067
25068         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
25069         failure on deficient systems, and simplify gnulib lgpl dependencies.
25070         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
25071         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
25072
25073         * lib/xalloc-die.c: Remove unused definition of N_.
25074
25075 2006-02-14  Jim Meyering  <jim@meyering.net>
25076
25077         Sync from coreutils.
25078         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
25079         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
25080         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
25081         double-quote uses of that variable, to accommodate the rare case in
25082         which getmntent is available in none of the libraries checked.  This
25083         happens at least on FreeBSD 5.0.
25084
25085 2006-02-13  Simon Josefsson  <jas@extundo.com>
25086
25087         * gnulib-tool (Usage): Fix --import, from
25088         karl@freefriends.org (Karl Berry).
25089
25090 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
25091
25092         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
25093
25094 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
25095
25096         * lib/argp-namefrob.h: Restore changes accidentally lost during the
25097         "autoupdate" on 2005-12-12.
25098
25099 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25100
25101         * modules/closeout (Depends-on): Remove atexit.
25102
25103 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25104
25105         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
25106         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
25107
25108 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
25109
25110         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
25111         __EXTENSIONS__ if this causes compilation to fail.  Problem
25112         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
25113         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
25114
25115 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
25116
25117         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
25118         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
25119         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
25120         All uses changed.
25121
25122 2006-01-26  Simon Josefsson  <jas@extundo.com>
25123
25124         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
25125         prototype is visible on mingw32.
25126
25127         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
25128         for mingw32.
25129
25130         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
25131         mingw32).
25132
25133 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
25134
25135         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
25136         attempt to open for write; this always fails, at least on POSIX
25137         hosts.  This reinstates the 2006-01-09 change, which was
25138         inadvertently removed.
25139
25140 2006-01-26  Bruno Haible  <bruno@clisp.org>
25141
25142         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
25143         Reported by Paul Eggert.
25144
25145 2006-01-26  Bruno Haible  <bruno@clisp.org>
25146             Paul Eggert  <eggert@cs.ucla.edu>
25147
25148         * lib/stdbool_.h (_Bool)
25149         [(! (defined __cplusplus || defined __BEOS__)
25150           && !defined __GNUC__
25151           && !(defined __HP_cc || defined __xlc__
25152                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
25153                || defined __sgi))]:
25154         #define to signed char in these cases too; this simplifies
25155         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
25156         etc., separately) and makes it more conservative.
25157
25158 2006-01-25  Simon Josefsson  <jas@extundo.com>
25159
25160         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
25161         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
25162         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
25163
25164 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25165
25166         * lib/argp-namefrob.h: Bugfix. Remove stray #
25167
25168 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25169
25170         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
25171         so that we test the test.
25172         Check for yet another HP-UX cc bug involving *bool |= bool.
25173
25174 2006-01-25  Karl Berry  <karl@gnu.org>
25175
25176         * config/srclist.txt (vasnprintf.c): sync lost.
25177
25178 2006-01-25  Jim Meyering  <jim@meyering.net>
25179
25180         Sync from the stable (b5) branch of coreutils:
25181
25182         * lib/fts.c (fts_children): Don't let close() clobber errno from
25183         failed fchdir().
25184
25185         * lib/fts.c (fts_stat): When following a symlink-to-directory,
25186         don't necessarily interpret stat-fails+lstat-succeeds as indicating
25187         a dangling symlink.  That can also happen at least for ELOOP.
25188         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
25189         FYI, this bug predates the inclusion of fts.c in coreutils.
25190
25191         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
25192         in their own block, so pre-c99 compilers don't object.
25193
25194         Avoid the double-free (first in fts_read, second in fts_close) that
25195         would occur when an `active' directory is made inaccessible (e.g.,
25196         via chmod a-x) during a traversal.
25197         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
25198         before returning.  Reproduce this failure by
25199         mkdir -p a/b; cd a; chmod a-x . b
25200         Reported by Stavros Passas.
25201
25202 2006-01-25  Jim Meyering  <jim@meyering.net>
25203
25204         * lib/fileblocks.c: Remove more useless parentheses.
25205         * lib/readutmp.h: Likewise.
25206
25207 2006-01-25  Bruno Haible  <bruno@clisp.org>
25208
25209         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
25210         warnings.
25211         Reported by Paul Eggert.
25212
25213 2006-01-25  Bruno Haible  <bruno@clisp.org>
25214
25215         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
25216         rid of a trap command. For Solaris sh.
25217         Reported by Mark D. Baushke <mdb@gnu.org>.
25218
25219 2006-01-24  Simon Josefsson  <jas@extundo.com>
25220
25221         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
25222         Bruno.
25223
25224 2006-01-24  Karl Berry  <karl@gnu.org>
25225
25226         * config/srclist.txt (argp-namefrob.h): sync lost.
25227
25228 2006-01-24  Jim Meyering  <jim@meyering.net>
25229
25230         * modules/openat (Files): Add lib/intprops.h.
25231         From Mark D. Baushke.
25232
25233 2006-01-24  Jim Meyering  <jim@meyering.net>
25234
25235         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
25236         Reported by Mark D. Baushke.
25237
25238 2006-01-24  Jim Meyering  <jim@meyering.net>
25239
25240         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
25241
25242 2006-01-24  Bruno Haible  <bruno@clisp.org>
25243
25244         * modules/strnlen (Maintainer): Change from glibc to all.
25245
25246 2006-01-24  Bruno Haible  <bruno@clisp.org>
25247
25248         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
25249         Patch by Paul Eggert.
25250
25251 2006-01-24  Bruno Haible  <bruno@clisp.org>
25252
25253         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
25254         already has it.
25255         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
25256         2005-11-26.
25257
25258         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
25259         'signed char' to avoid problems with the built-in _Bool type.
25260         Reported by Paul Eggert on 2005-11-26.
25261
25262 2006-01-24  Bruno Haible  <bruno@clisp.org>
25263
25264         * gnulib-tool (func_import): Avoid constructing complicated sed
25265         expressions inside backquote.
25266         Report and solution by Mark D. Baushke <mdb@gnu.org>.
25267
25268 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
25269
25270         These changes imported from libc.
25271         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
25272         test and two separate function calls.
25273         * lib/strndup.c (__strndup): Add libc_hidden_def.
25274
25275 2006-01-23  Simon Josefsson  <jas@extundo.com>
25276
25277         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
25278         Remove the test_*_SOURCES variable: automake infers it by default.
25279         * modules/tls-tests: Likewise.
25280
25281 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25282
25283         Work around porting bugs reported by Dieter in
25284         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
25285         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
25286         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
25287         Include "getopt.h" first, to check interface.
25288         (getenv): Declare only if defined HAVE_DECL_GETENV &&
25289         !HAVE_DECL_GETENV.
25290         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
25291         (__strndup): Revert to K&R-style function dfns, the glibc style.
25292         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
25293         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
25294         Include strnlen.h first, to get prototype properly.
25295         (strnlen): Renamed from __strnlen.
25296         Remove weak alias.
25297
25298 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25299
25300         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
25301
25302 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25303
25304         * config/srclist.txt: Adjust to reflect glibc reorganization.
25305         This affects only comments.
25306
25307 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
25308
25309          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
25310          Reported by Bruce Korb <bkorb@gnu.org>.
25311
25312 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
25313
25314         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
25315         to pacify gcc -Wswitch-default.
25316
25317 2006-01-22  Bruno Haible  <bruno@clisp.org>
25318
25319         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
25320         temporary buffer for sprintf, take into account the precision also
25321         for 'd', 'i', 'u', 'o', 'x', 'X'.
25322
25323 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
25324
25325         * modules/argp-tests: New module
25326         * tests/test-argp.c: New file
25327         * tests/test-argp-2.sh: New file
25328
25329 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
25330
25331         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
25332         (__argp_base_name): Removed
25333         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
25334         typo.
25335         (__argp_base_name): Provide macro definition or extern declaration
25336         depending on the configuration
25337
25338 2006-01-20  Simon Josefsson  <jas@extundo.com>
25339
25340         * modules/inet_ntop (Depends-on): Depend on sys_socket.
25341
25342 2006-01-20  Simon Josefsson  <jas@extundo.com>
25343
25344         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
25345
25346 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25347
25348         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
25349         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
25350         Suggested by Bruno Haible.
25351
25352 2006-01-20  Karl Berry  <karl@gnu.org>
25353
25354         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
25355         until changes propagate, I guess.
25356
25357 2006-01-19  Simon Josefsson  <jas@extundo.com>
25358
25359         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
25360
25361 2006-01-19  Simon Josefsson  <jas@extundo.com>
25362
25363         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
25364
25365 2006-01-19  Simon Josefsson  <jas@extundo.com>
25366
25367         * gnulib-tool: Set check_PROGRAMS.
25368
25369         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
25370         modules/des-tests, modules/gc-arcfour-tests,
25371         modules/gc-arctwo-tests, modules/gc-des-tests,
25372         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
25373         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
25374         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
25375         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
25376         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
25377         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
25378         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
25379         test_*_SOURCES.
25380
25381 2006-01-18  Simon Josefsson  <jas@extundo.com>
25382
25383         * modules/socklen (Depends-on): Depend on sys_socket.
25384
25385 2006-01-18  Simon Josefsson  <jas@extundo.com>
25386
25387         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
25388         modules/des-tests, modules/gc-arcfour-tests,
25389         modules/gc-arctwo-tests, modules/gc-des-tests,
25390         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
25391         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
25392         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
25393         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
25394         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
25395         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
25396         $(EXEEXT) to automake TESTS variable, for mingw32.
25397
25398 2006-01-17  Simon Josefsson  <jas@extundo.com>
25399
25400         * modules/socklen (Include): Need sys/socket.h.
25401
25402 2006-01-17  Bruno Haible  <bruno@clisp.org>
25403
25404         * modules/ssize_t (Include): Add <sys/types.h>.
25405
25406 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
25407
25408         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
25409         it's not portable and it doesn't work with cross-compiles.
25410         Problem reported by Bruno Haible.  Fix missing-$ typo in
25411         'test "gl_cv_ignore_unused_libraries" ...' that prevented
25412         -zignore from being used with Sun's C compiler.
25413
25414 2006-01-12  Simon Josefsson  <jas@extundo.com>
25415
25416         * lib/base64.c: Fix warning, reported by Bruno Haible
25417         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
25418
25419 2006-01-12  Bruno Haible  <bruno@clisp.org>
25420
25421         * modules/ldd: New file.
25422         * build-aux/ldd.sh.in: New file.
25423         * MODULES.html.sh (Support for building libraries and executables): Add
25424         ldd.
25425
25426 2006-01-12  Bruno Haible  <bruno@clisp.org>
25427
25428         * m4/ldd.m4: New file.
25429
25430 2006-01-12  Bruno Haible  <bruno@clisp.org>
25431
25432         * gnulib-tool (func_import, func_create_testdir): Don't go into an
25433         endless loop while replacing $auxdir with build-aux.
25434
25435 2006-01-11  Simon Josefsson  <jas@extundo.com>
25436
25437         * lib/stdint_.h (SIZE_MAX): Add missing (.
25438
25439 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25440
25441         Sync from coreutils.
25442         * lib/md5.c: Fix commentary typos.
25443         (alignof, UNALIGNED_P): No need for a GCC-specific version.
25444         * lib/md5.h (__attribute__): Remove; unused.
25445         * lib/sha1.c: Fix commentary to match md5 better.
25446         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
25447         so that we don't need to worry about alignment.  All uses changed.
25448         This merges the 2005-10-28 md5 change into sha1.
25449
25450 2006-01-11  Jim Meyering  <jim@meyering.net>
25451
25452         Sync from coreutils.
25453         * lib/md5.c (OP): Fix spacing.
25454
25455 2006-01-11  Bruno Haible  <bruno@clisp.org>
25456
25457         Ensure automatic ordering between gl_LOCK and gl_ARGP.
25458         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
25459         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
25460
25461 2006-01-11  Bruno Haible  <bruno@clisp.org>
25462
25463         Ensure automatic ordering between gl_LOCK and gl_ARGP.
25464         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
25465         the "early" section as well.
25466
25467 2006-01-11  Bruno Haible  <bruno@clisp.org>
25468
25469         Avoid "ar: no archive members specified" error on MacOS X.
25470         * gnulib-tool (func_modules_add_dummy): New function.
25471         (func_import, func_create_testdir): Invoke it.
25472
25473 2006-01-11  Bruno Haible  <bruno@clisp.org>
25474
25475         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
25476         with $auxdir in AC_CONFIG_FILES statements.
25477
25478 2006-01-11  Bruno Haible  <bruno@clisp.org>
25479
25480         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25481         Initialize also noinst_HEADERS to empty.
25482
25483 2006-01-11  Bruno Haible  <bruno@clisp.org>
25484
25485         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
25486         variables.
25487         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
25488         autoreconf.
25489
25490 2006-01-11  Bruno Haible  <bruno@clisp.org>
25491
25492         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
25493         overridable by the user.
25494         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25495
25496 2006-01-10  Simon Josefsson  <jas@extundo.com>
25497
25498         * modules/sys_socket: New file.
25499
25500 2006-01-10  Simon Josefsson  <jas@extundo.com>
25501
25502         * m4/sys_socket_h.m4: New file.
25503
25504 2006-01-10  Simon Josefsson  <jas@extundo.com>
25505
25506         * lib/socket_.h: New file.
25507
25508 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25509
25510         * modules/readutmp (Maintainer): Add myself.
25511
25512 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25513
25514         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
25515         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
25516         People who are still concerned with buggy memcmp implementations
25517         can invoke gl_FUNC_MEMCMP themselves.
25518
25519 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25520
25521         * lib/regex_internal.h (BITSET_WORD_BITS):
25522         Work around a bug in 64-bit PGC (before version 6.1-2), where the
25523         preprocessor mishandles large unsigned values as if they were signed.
25524         Problem reported by Claudio Fontana in
25525         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
25526
25527 2006-01-10  Jim Meyering  <jim@meyering.net>
25528
25529         Avoid the double-free (first in fts_read, second in fts_close) that
25530         would occur when an `active' directory is made inaccessible (e.g.,
25531         via chmod a-x) during a traversal.
25532         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
25533         before returning.  Reproduce this failure by
25534         mkdir -p a/b; cd a; chmod a-x . b
25535         Reported by Stavros Passas.
25536
25537         Sync from coreutils.
25538         * lib/sha1.c: Tweak grammar in a comment.
25539
25540 2006-01-10  Jim Meyering  <jim@meyering.net>
25541
25542         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
25543         Patch by Joerg Sonnenberger.
25544
25545 2006-01-10  Bruno Haible  <bruno@clisp.org>
25546
25547         * modules/readutmp: Depend on module free.
25548         * modules/strtok_r: Depend on module restrict.
25549
25550 2006-01-10  Bruno Haible  <bruno@clisp.org>
25551
25552         * modules/gettext (configure.ac): Add an invocation of
25553         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
25554
25555 2006-01-10  Bruno Haible  <bruno@clisp.org>
25556
25557         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
25558         Reported by Werner Lemberg <wl@gnu.org>.
25559
25560 2006-01-10  Bruno Haible  <bruno@clisp.org>
25561
25562         * lib/localcharset.c: Update from GNU gettext.
25563
25564 2006-01-10  Bruno Haible  <bruno@clisp.org>
25565
25566         * lib/argp.h (__const): Remove macro. Use const instead.
25567         * lib/argp-fmtstream.h (__const): Likewise.
25568         * lib/glob_.h (__const): Remove macro.
25569         * lib/glob-libc.h: Use const instead of __const.
25570
25571 2006-01-10  Bruno Haible  <bruno@clisp.org>
25572
25573         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
25574         variable.
25575         Needed to avoid an automake error regarding the 'gettext' module.
25576
25577 2006-01-09  Simon Josefsson  <jas@extundo.com>
25578
25579         * modules/inet_ntop (Depends-on): Add restrict.
25580
25581 2006-01-09  Simon Josefsson  <jas@extundo.com>
25582
25583         * modules/gc-rijndael-tests (License): Put under LGPL.
25584
25585         * modules/gc-des-tests (License): Likewise.
25586
25587         * modules/gc-arcfour-tests (License): Likewise.
25588
25589         * modules/gc-arctwo-tests (License): Likewise.
25590
25591         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
25592
25593         * modules/gc-hmac-sha1-tests (Files): Likewise.
25594
25595         * modules/gc-hmac-md5-tests (License): Likewise.
25596
25597         * modules/gc-sha1-tests (License): Likewise.
25598
25599         * modules/gc-md5-tests (License): Likewise.
25600
25601         * modules/gc-md4-tests (License): Likewise.
25602
25603         * modules/gc-md2-tests (License): Likewise.
25604
25605         * modules/gc-tests (License): Likewise.
25606
25607         * modules/des-tests (License): Likewise.
25608
25609         * modules/md4-tests (License): Likewise.
25610
25611         * modules/md2-tests (License): Likewise.
25612
25613 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25614
25615         Sync from coreutils:
25616
25617         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
25618         * modules/lib-ignore: New file.
25619         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
25620         chdir-safer.m4, lchmod.m4.
25621         * modules/openat: Add mkdirat.c, openat-priv.h.
25622
25623 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25624
25625         Sync from coreutils.
25626         * m4/lib-ignore.m4: New file.
25627         * m4/lchmod.m4: New file.
25628
25629 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25630
25631         Sync from coreutils.
25632         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
25633         for write access: POSIX says that must fail.
25634         * lib/fts.c (diropen): Likewise.
25635         * lib/save-cwd.c (save_cwd): Likewise.
25636         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
25637         well, for minor improvements on hosts that lack O_DIRECTORY.
25638         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
25639         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
25640         Fall back on chown if open failed with EACCES.
25641
25642         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
25643         Report an error at compile-time if only a 1-second nominal clock
25644         resolution is found.
25645
25646         * lib/lchmod.h: New file.
25647         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
25648         (make_dir_parents): Use lchown rather than chown, and
25649         lchmod rather than chmod.
25650
25651         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
25652         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
25653         "proc" reported by n0dalus.
25654
25655         * lib/mountlist.c: Include <limits.h>.
25656         (dev_from_mount_options)
25657         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
25658         New function.  It no longer assumes "dev=" has the System V meaning
25659         on Linux (since it doesn't).  It also parses "dev=" more carefully.
25660         (read_file_system_list)
25661         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
25662         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
25663         dev= in that case.
25664
25665         * lib/posixtm.h (PDS_PRE_2000): New macro.
25666         * lib/posixtm.c (year): Arg is now syntax_bits rather than
25667         allow_century.  All usages changed.  Reject dates outside the range
25668         1969-1999 if PDS_PRE_2000 is used.
25669
25670 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25671
25672         Sync from coreutils.
25673         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
25674         (Time of day items): Mention the possibility of leap seconds.
25675         Problem reported by Dr. David Alan Gilbert.
25676
25677 2006-01-09  Jim Meyering  <jim@meyering.net>
25678
25679         Sync from coreutils.
25680
25681         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
25682
25683         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
25684
25685         * lib/modechange.c (mode_compile): Reject an invalid mode string
25686         that starts with an octal digit.  From Andreas Gruenbacher.
25687
25688         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
25689         and dup to open_safer and dup_safer, respectively.
25690         (openat_permissive): Fix typo in comment.
25691
25692         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
25693         "gettext.h"; either no longer needed or are guaranteed by openat.h.
25694         (_): Remove; no longer needed.
25695         (openat): Renamed from rpl_openat; no need for rpl_openat
25696         since openat.h renames openat for us.
25697         Replace most of the body with a call to openat_permissive,
25698         to avoid duplicate code.
25699         Port to (probably hypothetical) environments were mode_t is
25700         wider than int.
25701         (openat_permissive): Require mode arg, so that we can check
25702         types better.  Put it just after flags.  Change cwd failure
25703         indicator from pointer-to-bool to pointer-to-errno-value.
25704         All callers changed.
25705         Invoke openat_save_fail and/or openat_restore_fail if
25706         cwd_errno is null, so that openat can call us.
25707         (openat_permissive, fdopendir, fstatat, unlinkat):
25708         Simplify errno handling to avoid some duplicate code,
25709         as it's OK to set errno on success.
25710         * lib/openat.h: Revamp code so that function macros depend on
25711         __OPENAT_PREFIX only, not also on AT_FDCWD.
25712         (openat_ro): Remove.  Caller changed to use openat_permissive.
25713         (openat_permissive): Now a macro, if not a function.
25714         (openat_restore_fail, openat_save_fail): Now always functions,
25715         since mkdirat needs them even if __OPENAT_PREFIX is defined.
25716
25717         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
25718         and openat.c.
25719         * lib/mkdirat.c: Include openat-priv.h.
25720         Remove definitions of macros defined therein.
25721         * lib/openat.c: Likewise.
25722
25723         * lib/mkdirat.c (mkdirat): New file and function.
25724         * lib/openat.h (mkdirat): Declare.
25725
25726         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
25727
25728         * lib/openat.h (openat_permissive): Declare.
25729         (openat_ro): Define.
25730
25731         * lib/openat.c (EXPECTED_ERRNO): New macro.
25732         (openat_permissive): New function -- used in remove.c rewrite.
25733         (all functions): Set errno just before returning, only if there
25734         was an actual failure.
25735         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
25736
25737         Emulate openat-family functions using Linux's procfs, if possible.
25738         Idea and some code based on Ulrich Drepper's glibc changes.
25739
25740         * lib/openat.c: (BUILD_PROC_NAME): New macro.
25741         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
25742         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
25743         before falling back on save_cwd and restore_cwd.
25744         (fdopendir, fstatat, unlinkat): Likewise.
25745
25746         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
25747         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
25748
25749         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
25750         as second argument to va_arg.  Otherwise, some versions of gcc
25751         warn that `if this code is reached, the program will abort'.
25752
25753 2006-01-09  Jim Meyering  <jim@meyering.net>
25754
25755         Sync from coreutils.
25756         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
25757         Require openat-priv.h.
25758
25759 2006-01-09  Bruno Haible  <bruno@clisp.org>
25760
25761         * modules/strnlen (Include): Use strnlen.h.
25762
25763 2006-01-09  Bruno Haible  <bruno@clisp.org>
25764
25765         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
25766
25767 2006-01-09  Bruno Haible  <bruno@clisp.org>
25768
25769         * lib/sysexit_.h (EX_OK): New macro.
25770         Suggested by Martin Lambers <marlam@marlam.de>.
25771
25772 2006-01-09  Bruno Haible  <bruno@clisp.org>
25773
25774         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
25775         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
25776
25777 2006-01-09  Bruno Haible  <bruno@clisp.org>
25778
25779         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
25780         numbers.
25781
25782 2006-01-09  Bruno Haible  <bruno@clisp.org>
25783
25784         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
25785         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
25786         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
25787         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
25788
25789 2006-01-09  Bruno Haible  <bruno@clisp.org>
25790
25791         * build-aux/javacomp.sh.in: New file, moved from lib/.
25792         * modules/javacomp-script (Files): Update.
25793         (configure.ac): Add AC_CONFIG_FILES invocation.
25794         (EXTRA_DIST): Remove variable.
25795
25796         * build-aux/javaexec.sh.in: New file, moved from lib/.
25797         * modules/javaexec (Files): Update.
25798         (configure.ac): Add AC_CONFIG_FILES invocation.
25799         (EXTRA_DIST): Remove javaexec.sh.in.
25800
25801         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
25802         * modules/csharpcomp-script (Files): Update.
25803         (configure.ac): Add AC_CONFIG_FILES invocation.
25804         (EXTRA_DIST): Remove variable.
25805
25806         * build-aux/csharpexec.sh.in: New file, moved from lib/.
25807         * modules/csharpexec (Files): Update.
25808         (configure.ac): Add AC_CONFIG_FILES invocation.
25809         (EXTRA_DIST): Remove csharpexec.sh.in.
25810
25811 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
25812
25813         Sync from coreutils.
25814
25815         Add POSIX ACL support
25816         * lib/acl.h (copy_acl, set_acl): Add declarations.
25817         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
25818         systems other than Linux.
25819         (chmod_or_fchmod): New function: use fchmod when possible,
25820         and chmod otherwise.
25821         (file_has_acl): Add a POSIX ACL implementation, with a
25822         Linux-specific subcase.
25823         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
25824         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
25825         acls are unsupported.
25826         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
25827         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
25828         are unsupported.
25829
25830 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
25831
25832         Sync from coreutils.
25833         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
25834
25835 2006-01-07  Bruno Haible  <bruno@clisp.org>
25836
25837         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
25838         gl_EARLY.
25839
25840 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25841
25842         * lib/strftime.c (tzname): Don't declare if it is already #defined.
25843         Problem reported for Mingw by Mark Junker.
25844
25845 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25846
25847         * README: Gnulib normally doesn't generate a tarball.
25848
25849 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
25850
25851         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
25852         long int, not int, for nanosecond counts, so that people who are
25853         used to POSIX struct timespec won't be surprised.  Reported by Jim
25854         Meyering.
25855
25856 2005-12-28  Bruno Haible  <bruno@clisp.org>
25857
25858         * build-aux/config.rpath: Update from GNU gettext.
25859
25860 2005-12-16  Jim Meyering  <jim@meyering.net>
25861
25862         * modules/fprintftime: New module.
25863         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
25864
25865 2005-12-16  Jim Meyering  <jim@meyering.net>
25866
25867         * m4/fprintftime.m4: New file.
25868
25869 2005-12-16  Jim Meyering  <jim@meyering.net>
25870
25871         * lib/fprintftime.c, lib/fprintftime.h: New files.
25872
25873 2005-12-15  Simon Josefsson  <jas@extundo.com>
25874
25875         * modules/socklen (configure.ac): Fix M4 macro name, to align with
25876         new m4/socklen.m4.
25877
25878 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
25879
25880         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
25881         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
25882
25883 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
25884
25885         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
25886         * lib/argp-help.c (fill_in_uparams): Check if the constructed
25887         struct uparams is valid. Fall back to the default values if it is
25888         not.
25889
25890 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
25891
25892         * modules/argp (Files): Add argp-pin.c
25893         (Depends-on): dirname
25894         (lib_SOURCES): Add argp-pin.c
25895
25896 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
25897
25898         * m4/argp.m4:  Check if program_invocation_name and
25899         program_invocation_short_name are declared and define appropriate
25900         macros if they are not.
25901
25902 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
25903
25904         * lib/argp-help.c (__argp_base_name): New function
25905         (__argp_short_program_name): Rewrite using __argp_base_name
25906         * lib/argp-namefrob.h: Define program_invocation_name and
25907         program_invocation_short_name if requested
25908         (__argp_base_name): Add prototype
25909         * lib/argp-parse.c (argp_def): Use gettext wrappers
25910         (argp_default_parser): Use __argp_base_name
25911         * lib/argp-pin.c: New file. Defines program_invocation_name and
25912         program_invocation_short_name on systems that lack them.
25913
25914 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
25915
25916         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
25917         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
25918         porting problem reported by Georg Schwarz in
25919         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
25920
25921 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
25922
25923         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
25924         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
25925         porting problem reported by Georg Schwarz in
25926         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
25927
25928 2005-12-05  Bruno Haible  <bruno@clisp.org>
25929
25930         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
25931         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
25932         Reported by Mark Junker <mjscod@gmx.de>.
25933
25934 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
25935
25936         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
25937         Use implementation from Albert Chin, with some
25938         comments/corrections by Stepan Kasal and myself.
25939
25940 2005-12-02  Bruno Haible  <bruno@clisp.org>
25941
25942         * gnulib-tool (func_import): Accept GPLed build tool modules when
25943         --lgpl is given.
25944         * modules/csharpcomp-script: New file.
25945         * modules/csharpcomp: Depend on it.
25946         * modules/javacomp-script: New file.
25947         * modules/javacomp: Depend on it.
25948         Suggested by Simon Josefsson.
25949
25950 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
25951
25952         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
25953         statement, to work around an HP-UX 10.20 compiler bug reported by
25954         Peter O'Gorman.
25955
25956 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
25957
25958         * modules/savedir (Depends-on): Add openat.
25959
25960 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
25961
25962         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
25963         (uintmax_t) [defined uintmax_t]: Do not declare.
25964         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
25965         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
25966         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
25967         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
25968         sake of portability to weird hosts that C allows (though we don't
25969         know of any practical examples).
25970
25971         * lib/savedir.h (fdsavedir): New decl.
25972         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
25973         contains most of the former guts of savedir.
25974         (savedir): Use savedirstream.
25975         Include "openat.h".
25976
25977 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25978
25979         * modules/obstack (Files): Add m4/ulonglong.m4.
25980         Problem reported by Davide Angelocola.
25981
25982 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25983
25984         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
25985         coreutils no longer futzes with rounding modes.
25986
25987 2005-11-14  Jim Meyering  <jim@meyering.net>
25988
25989         * lib/mkstemp-safer.c: Include <config.h>, required for possible
25990         replacement of mkstemp.
25991
25992 2005-11-10  Simon Josefsson  <jas@extundo.com>
25993
25994         * lib/readline.c: Remove EOL.
25995
25996 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
25997
25998         * modules/gethrxtime (Depends-on): Add gettime.
25999
26000 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26001
26002         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
26003         or gettimeofday; no longer needed.
26004
26005 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26006
26007         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
26008         time business.
26009         (gethrxtime) [! (HAVE_NANOUPTIME
26010         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
26011         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
26012         our own approximation.
26013
26014 2005-11-08  Eric Blake  <ebb9@byu.net>
26015
26016         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
26017
26018 2005-11-08  Eric Blake  <ebb9@byu.net>
26019
26020         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
26021
26022 2005-11-04  Bruno Haible  <bruno@clisp.org>
26023
26024         * gnulib-tool: Implement --update mode.
26025
26026 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26027
26028         Fix porting problem reported by Theodoros V. Kalamatianos.
26029         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
26030         Don't assume that futimes failing means we must fail.
26031
26032 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26033
26034         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
26035         variables to suggest the intended function of the PATH_MAX check.
26036
26037 2005-10-30  Kean Johnston  <jkj@sco.com>
26038
26039         Trivial changes to support SCO systems.
26040         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
26041         as PATH_MAX.
26042         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
26043         where __ptr is null when no I/O is pending.
26044
26045 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
26046
26047         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
26048         leave errno alone.  Problem reported by Dmitry V. Levin.
26049
26050 2005-10-28  Simon Josefsson  <jas@extundo.com>
26051
26052         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
26053         Test more.
26054
26055         * tests/test-gc-md2.c, tests/test-md2.c: New files.
26056
26057         * modules/md2, modules/md2-tests: New files.
26058
26059 2005-10-28  Simon Josefsson  <jas@extundo.com>
26060
26061         * m4/inet_ntop.m4: More tests.
26062
26063         * m4/gc-md2.m4, md2.m4: New file.
26064
26065 2005-10-28  Simon Josefsson  <jas@extundo.com>
26066
26067         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
26068         "restrict" keywords, as per POSIX.  Protect the function
26069         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
26070         Don't use K&R prototypes.  Check the sprintf return values.
26071         Re-define EAFNOSUPPORT if not present.  Indent.
26072
26073         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
26074         suggested by Bruno Haible <bruno@clisp.org>.
26075
26076         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
26077
26078         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
26079
26080         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
26081         libgcrypt).
26082
26083         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
26084
26085         * lib/md2.h, lib/md2.c: New files.
26086
26087 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
26088
26089         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
26090         errno alone.  Problem reported by Frederic Jolliton.
26091
26092 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
26093
26094         * modules/verify (License): Change from GPL to LGPL.  This is a
26095         tiny module and there are apparently near-equivalents that are
26096         under the BSD license.
26097
26098 2005-10-24  Simon Josefsson  <jas@extundo.com>
26099
26100         * modules/sha1: Relicense to LGPL.
26101
26102 2005-10-24  Simon Josefsson  <jas@extundo.com>
26103
26104         * lib/md4.h: Shrink buffer size, now that we changed the type.
26105
26106 2005-10-23  Simon Josefsson  <jas@extundo.com>
26107
26108         * gnulib-tool (func_import): Fix --tests-base.
26109
26110 2005-10-22  Simon Josefsson  <jas@extundo.com>
26111
26112         * modules/arcfour (Depends-on): Need stdint.
26113
26114 2005-10-22  Simon Josefsson  <jas@extundo.com>
26115
26116         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
26117         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
26118
26119 2005-10-22  Simon Josefsson  <jas@extundo.com>
26120
26121         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
26122         suggested by Bruno Haible <bruno@clisp.org>.
26123
26124 2005-10-22  Simon Josefsson  <jas@extundo.com>
26125
26126         * lib/crc.h: Include stddef.h, for size_t.
26127
26128 2005-10-22  Simon Josefsson  <jas@extundo.com>
26129
26130         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
26131         arcfour_context struct (simplify test vector testing in GNU
26132         Shishi).
26133
26134 2005-10-21  Simon Josefsson  <jas@extundo.com>
26135
26136         * modules/des, modules/des-tests: New files.
26137
26138         * modules/gc-des, modules/gc-des-tests: New files.
26139
26140         * tests/test-des.c, tests/test-gc-des.c: New file.
26141
26142 2005-10-21  Simon Josefsson  <jas@extundo.com>
26143
26144         * modules/arctwo, modules/arctwo-tests: New files.
26145
26146         * tests/test-arctwo.c: New file.
26147
26148         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
26149
26150         * tests/test-gc-arctwo.c: New file.
26151
26152 2005-10-21  Simon Josefsson  <jas@extundo.com>
26153
26154         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
26155         Bruno Haible <bruno@clisp.org>.
26156
26157         * m4/gc-des.m4: New file.
26158
26159 2005-10-21  Simon Josefsson  <jas@extundo.com>
26160
26161         * m4/arctwo.m4: New file.
26162
26163         * m4/gc-arctwo.m4: New file.
26164
26165 2005-10-21  Simon Josefsson  <jas@extundo.com>
26166
26167         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
26168         block.
26169
26170 2005-10-21  Simon Josefsson  <jas@extundo.com>
26171
26172         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
26173         <bruno@clisp.org>.
26174
26175         * lib/hmac-sha1.c (hmac_sha1): Likewise.
26176
26177         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
26178         Bruno Haible <bruno@clisp.org>.
26179
26180         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
26181         <bruno@clisp.org>.
26182
26183 2005-10-21  Simon Josefsson  <jas@extundo.com>
26184
26185         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
26186
26187 2005-10-21  Simon Josefsson  <jas@extundo.com>
26188
26189         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
26190
26191 2005-10-21  Simon Josefsson  <jas@extundo.com>
26192
26193         * lib/des.h, lib/des.c: New files.
26194
26195         * lib/gc-gnulib.c: Support DES.c
26196
26197 2005-10-21  Simon Josefsson  <jas@extundo.com>
26198
26199         * lib/arctwo.h, lib/arctwo.c: New files.
26200
26201         * lib/gc-gnulib.c: Support ARCTWO.
26202
26203 2005-10-21  Simon Josefsson  <jas@extundo.com>
26204
26205         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
26206         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26207
26208 2005-10-21  Simon Josefsson  <jas@extundo.com>
26209
26210         * gnulib-tool (func_import, func_create_testdir): Define automake
26211         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
26212         Makefile.am snippet),
26213         suggested by Bruno Haible <bruno@clisp.org>.
26214
26215         * modules/gc (Makefile.am): Use it.
26216
26217 2005-10-21  Bruno Haible  <bruno@clisp.org>
26218
26219         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
26220         patch.
26221
26222 2005-10-19  Simon Josefsson  <jas@extundo.com>
26223
26224         * tests/test-gc-rijndael.c: New file.
26225
26226         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
26227
26228 2005-10-19  Simon Josefsson  <jas@extundo.com>
26229
26230         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
26231         interface too.
26232
26233 2005-10-19  Simon Josefsson  <jas@extundo.com>
26234
26235         * tests/test-gc-arcfour.c: New file.
26236
26237         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
26238
26239 2005-10-19  Simon Josefsson  <jas@extundo.com>
26240
26241         * modules/gc-md4, modules/gc-md4-tests: New file.
26242
26243         * tests/test-gc-md4.c: New file.
26244
26245 2005-10-19  Simon Josefsson  <jas@extundo.com>
26246
26247         * m4/gc-md4.m4: New file.
26248
26249 2005-10-19  Simon Josefsson  <jas@extundo.com>
26250
26251         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
26252         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
26253         <kasal@ucw.cz>.
26254
26255 2005-10-19  Simon Josefsson  <jas@extundo.com>
26256
26257         * m4/gc-arcfour.m4: New file.
26258
26259         * m4/gc-rijndael.m4: New file.
26260
26261 2005-10-19  Simon Josefsson  <jas@extundo.com>
26262
26263         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
26264
26265 2005-10-19  Simon Josefsson  <jas@extundo.com>
26266
26267         * lib/gc-gnulib.c: Support ARCFOUR.
26268
26269 2005-10-19  Simon Josefsson  <jas@extundo.com>
26270
26271         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
26272         support.
26273
26274         * lib/gc.h: Add ECB enum type.
26275
26276         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
26277
26278 2005-10-18  Simon Josefsson  <jas@extundo.com>
26279
26280         * tests/test-md5.c: New file.
26281
26282         * modules/md5-tests: New file.
26283
26284 2005-10-18  Simon Josefsson  <jas@extundo.com>
26285
26286         * tests/test-md4.c: New file.
26287
26288         * modules/md4, modules/md4-tests: New files.
26289
26290 2005-10-18  Simon Josefsson  <jas@extundo.com>
26291
26292         * m4/md4.m4: New file.
26293
26294 2005-10-18  Simon Josefsson  <jas@extundo.com>
26295
26296         * lib/md4.h, lib/md4.c: New files, based on md5.?.
26297
26298 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
26299
26300         * gnulib-tool (func_create_testdir): Omit the second check whether
26301         BUILT_SOURCES in nonempty.
26302
26303 2005-10-17  Simon Josefsson  <jas@extundo.com>
26304
26305         * tests/test-rijndael.c: New file.
26306
26307 2005-10-17  Simon Josefsson  <jas@extundo.com>
26308
26309         * modules/sha1: Depend on stdint instead of md5.
26310
26311         * modules/md5: Depend on stdint, remove uint32_t.
26312
26313 2005-10-17  Simon Josefsson  <jas@extundo.com>
26314
26315         * modules/gc-sha1-tests: New file.
26316
26317         * tests/test-gc-sha1.c: New file.
26318
26319 2005-10-17  Simon Josefsson  <jas@extundo.com>
26320
26321         * m4/md5.m4: Remove call to uint32_t.m4.
26322
26323 2005-10-17  Simon Josefsson  <jas@extundo.com>
26324
26325         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
26326
26327         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
26328         md5.h.
26329
26330         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
26331
26332         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
26333
26334 2005-10-17  Simon Josefsson  <jas@extundo.com>
26335
26336         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
26337
26338 2005-10-17  Simon Josefsson  <jas@extundo.com>
26339
26340         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
26341
26342 2005-10-17  Simon Josefsson  <jas@extundo.com>
26343
26344         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
26345
26346         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
26347
26348 2005-10-17  Bruno Haible  <bruno@clisp.org>
26349
26350         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
26351         that it can also be used in a test.
26352
26353 2005-10-16  Bruno Haible  <bruno@clisp.org>
26354
26355         * gnulib-tool (func_emit_tests_Makefile_am): Also define
26356         TESTS_ENVIRONMENT, so that individual tests can augment it.
26357
26358         * gnulib-tool (func_create_testdir): Use an intermediate target for
26359         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
26360         macros, like $(ALLOCA_H), which cannot be passed through the command
26361         line.
26362
26363 2005-10-15  Simon Josefsson  <jas@extundo.com>
26364
26365         * modules/rijndael-tests: New file.
26366
26367         * modules/rijndael: New file.
26368
26369 2005-10-15  Simon Josefsson  <jas@extundo.com>
26370
26371         * m4/rijndael.m4: New file.
26372
26373 2005-10-15  Simon Josefsson  <jas@extundo.com>
26374
26375         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
26376
26377         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
26378
26379 2005-10-14  Simon Josefsson  <jas@extundo.com>
26380
26381         * tests/test-arcfour.c: New file.
26382
26383         * modules/arcfour, modules/arcfour-tests: New files.
26384
26385 2005-10-14  Simon Josefsson  <jas@extundo.com>
26386
26387         * m4/arcfour.m4: New file.
26388
26389 2005-10-14  Simon Josefsson  <jas@extundo.com>
26390
26391         * lib/arcfour.h, lib/arcfour.c: New files.
26392
26393 2005-10-14  Roland McGrath  <roland@redhat.com>
26394
26395         Import from libc.  [BZ #1331]
26396         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
26397         macro argument.
26398         Reported by Matej Vela <vela@debian.org>.
26399
26400 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
26401
26402         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
26403         include <wchar.h>; no longer needed.
26404
26405 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
26406
26407         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
26408
26409 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
26410         and  Ulrich Drepper  <drepper@redhat.com>
26411
26412         Import from libc.
26413         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
26414         instead of inline stream orientation test and two separate
26415         function calls.  Pay no attention to USE_IN_LIBIO.
26416
26417 2005-10-13  Simon Josefsson  <jas@extundo.com>
26418
26419         * modules/gc-hmac-md5-tests: New file.
26420
26421         * tests/test-gc-hmac-sha1.c: New file.
26422
26423         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
26424
26425         * modules/gc-hmac-md5-tests: New file.
26426
26427         * tests/test-gc-md5.c: New file.
26428
26429         * modules/gc-md5-tests: New file.
26430
26431 2005-10-13  Simon Josefsson  <jas@extundo.com>
26432
26433         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
26434         Move memory allocation outside of loop.
26435
26436 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26437
26438         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
26439         intermediate directory is in a read-only file system.  Problem
26440         reported by Eric Blake.
26441
26442 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
26443
26444         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
26445
26446 2005-10-12  Simon Josefsson  <jas@extundo.com>
26447
26448         * tests/test-hmac-sha1.c: New file.
26449
26450         * modules/hmac-sha1-tests: New file.
26451
26452         * modules/hmac-sha1: New file.
26453
26454 2005-10-12  Simon Josefsson  <jas@extundo.com>
26455
26456         * modules/gc-sha1: New file.
26457
26458 2005-10-12  Simon Josefsson  <jas@extundo.com>
26459
26460         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
26461
26462         * tests/test-gc-pbkdf2-sha1.c: New file.
26463
26464 2005-10-12  Simon Josefsson  <jas@extundo.com>
26465
26466         * modules/gc-md5, modules/gc-hmac-md5: New files.
26467
26468         * modules/gc (Files): Remove md5, memxor and hmac files.
26469
26470 2005-10-12  Simon Josefsson  <jas@extundo.com>
26471
26472         * m4/gc-pbkdf2-sha1.m4: New file.
26473
26474         * m4/gc-hmac-sha1.m4: New file.
26475
26476         * m4/gc-sha1: New file.
26477
26478         * m4/hmac-sha1.m4: New file.
26479
26480 2005-10-12  Simon Josefsson  <jas@extundo.com>
26481
26482         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
26483
26484         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
26485
26486 2005-10-12  Simon Josefsson  <jas@extundo.com>
26487
26488         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
26489         suggested by Bruno Haible <bruno@clisp.org>.
26490
26491 2005-10-12  Simon Josefsson  <jas@extundo.com>
26492
26493         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
26494
26495 2005-10-12  Simon Josefsson  <jas@extundo.com>
26496
26497         * lib/gc-pbkdf2-sha1.c: New file.
26498
26499         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
26500
26501 2005-10-12  Simon Josefsson  <jas@extundo.com>
26502
26503         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
26504
26505         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
26506
26507 2005-10-12  Simon Josefsson  <jas@extundo.com>
26508
26509         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
26510         GC_USE_HMAC_MD5, respectively.
26511
26512         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
26513         (gc_md5): Fix typo.
26514
26515         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
26516
26517         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
26518
26519         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
26520
26521 2005-10-12  Bruno Haible  <bruno@clisp.org>
26522
26523         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
26524         Reported by Stepan Kasal <kasal@ucw.cz>.
26525
26526 2005-10-11  Simon Josefsson  <jas@extundo.com>
26527
26528         * tests/test-crc.c: New file.
26529
26530         * modules/crc, modules/crc-tests: New files.
26531
26532 2005-10-11  Simon Josefsson  <jas@extundo.com>
26533
26534         * m4/crc.m4: New file.
26535
26536 2005-10-11  Simon Josefsson  <jas@extundo.com>
26537
26538         * lib/gc.h: Add gc_hash and gc_hash_buffer.
26539
26540         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
26541
26542         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
26543
26544 2005-10-11  Simon Josefsson  <jas@extundo.com>
26545
26546         * lib/crc.h, lib/crc.c: New files.
26547
26548         * lib/gc.h (gc_hash_buffer): Add doc.
26549
26550 2005-10-11  Bruno Haible  <bruno@clisp.org>
26551
26552         * modules/c-strcasestr: New file.
26553         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
26554
26555 2005-10-11  Bruno Haible  <bruno@clisp.org>
26556
26557         * modules/c-strcase: New file.
26558         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
26559
26560 2005-10-11  Bruno Haible  <bruno@clisp.org>
26561
26562         * lib/strcasecmp.c: Include limits.h.
26563         (strcasecmp): Avoid integer overflow on exotic platforms.
26564         * lib/strncasecmp.c: Include limits.h.
26565         (strncasecmp): Avoid integer overflow on exotic platforms.
26566         Reported by Paul Eggert.
26567
26568 2005-10-11  Bruno Haible  <bruno@clisp.org>
26569
26570         * lib/c-strcasestr.h: New file, from GNU gettext.
26571         * lib/c-strcasestr.c: New file, from GNU gettext.
26572
26573 2005-10-11  Bruno Haible  <bruno@clisp.org>
26574
26575         * lib/c-strcase.h: New file, from GNU gettext.
26576         * lib/c-strcasecmp.c: New file, from GNU gettext.
26577         * lib/c-strncasecmp.c: New file, from GNU gettext.
26578
26579 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26580
26581         * modules/mempcpy (License): GPL -> LGPL.
26582         * modules/strchrnul (License): Likewise.
26583         * modules/sysexits (License): Likewise.
26584
26585 2005-10-08  Simon Josefsson  <jas@extundo.com>
26586
26587         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
26588
26589 2005-10-07  Simon Josefsson  <jas@extundo.com>
26590
26591         * m4/memxor.m4: Remove gl_C_RESTRICT call.
26592
26593 2005-10-06  Simon Josefsson  <jas@extundo.com>
26594
26595         * tests/test-hmac-md5.c: New file.
26596
26597         * modules/hmac-md5-tests: New file.
26598
26599         * modules/hmac-md5: New file.
26600
26601 2005-10-06  Simon Josefsson  <jas@extundo.com>
26602
26603         * m4/hmac-md5.m4: New file.
26604
26605         * m4/memxor.m4: Require gl_C_RESTRICT.
26606
26607 2005-10-06  Simon Josefsson  <jas@extundo.com>
26608
26609         * lib/memxor.c (memxor): Avoid casts and warnings.
26610
26611 2005-10-06  Simon Josefsson  <jas@extundo.com>
26612
26613         * lib/hmac-md5.c: New file.
26614
26615         * lib/hmac.h: New file.
26616
26617 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
26618
26619         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
26620         promotes to int, not unsigned int, to catch the AIX 5.3
26621         compiler bug.
26622
26623 2005-10-05  Simon Josefsson  <jas@extundo.com>
26624
26625         * modules/memxor: New file.
26626
26627         * modules/iconv (Files): Move config.rpath to havelib, it is used
26628         there.
26629
26630         * modules/havelib (Files): Add config.rpath.
26631
26632 2005-10-05  Simon Josefsson  <jas@extundo.com>
26633
26634         * m4/memxor.m4: New file.
26635
26636 2005-10-05  Simon Josefsson  <jas@extundo.com>
26637
26638         * lib/memxor.c (memxor): Fix compiler error.
26639
26640         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
26641         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
26642
26643         * lib/memxor.h, lib/memxor.c: New files.
26644
26645         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
26646         we assume all systems have it, suggested by Jim Meyering
26647         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
26648         any systems lack sys/socket.h; mingw32 is known to lack it, but we
26649         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
26650         same reasons.
26651
26652 2005-10-05  Simon Josefsson  <jas@extundo.com>
26653
26654         * config/srclist.txt: Add glibc bug 1423 for md5.h.
26655
26656 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26657
26658         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
26659         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
26660         needed, since the source code now assumes these .h files.
26661
26662 2005-10-05  Derek Price  <derek@ximbiot.com>
26663
26664         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
26665
26666 2005-10-05  Bruno Haible  <bruno@clisp.org>
26667
26668         * modules/stdint (License): Change to LGPL.
26669
26670 2005-10-04  Simon Josefsson  <jas@extundo.com>
26671
26672         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
26673         D. Baushke" <mdb@gnu.org>.
26674
26675 2005-10-04  Bruno Haible  <bruno@clisp.org>
26676
26677         * lib/verify.h (verify_true): Provide alternative definition for C++.
26678
26679 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
26680
26681         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
26682         (SSIZE_MAX): New macro, if not already defined.
26683         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
26684         than 2 GiB.
26685
26686 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
26687
26688         Sync from coreutils.
26689         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
26690         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
26691         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
26692         ULLONG_MAX doesn't work with 2.7.2.1.
26693
26694 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
26695
26696         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
26697         From Ben Pfaff.
26698
26699         * modules/exclude (Depends-on): Depend on verify.
26700         * modules/strtoimax (Depends-on): Likewise.
26701         * modules/utimecmp (Depends-on): Likewise.
26702
26703 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
26704
26705         * lib/exclude.c: Include verify.h.
26706         (verify): Remove.  All callers changed to use verify.h's version.
26707         * lib/strtoimax.c: Likewise.
26708         * lib/utimecmp.c: Likewis.e
26709
26710         Sync from coreutils.
26711         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
26712         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
26713         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
26714         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
26715         bother returning ENOSYS if settimeofday or stime fails; just let
26716         them return whatever errno they want to return.
26717         * lib/utimens.c: Include unistd.h, for dup2.
26718         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
26719         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
26720
26721 2005-10-02  Jim Meyering  <jim@meyering.net>
26722
26723         Sync from coreutils.
26724         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
26725         from glibc-2.2.5 that fails for read-only files.
26726
26727 2005-10-02  Jim Meyering  <jim@meyering.net>
26728
26729         Sync from coreutils.
26730         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
26731         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
26732         `#if HAVE_CONFIG_H'.
26733         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
26734         Remove AT_FDCWD test.
26735         Do not consume the fd unless successful.
26736         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
26737         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
26738         block, so that we don't even try to compile it if settimeofday is
26739         available.  This works around a compilation failure on OSF1 V5.1,
26740         due to stime requiring a `long int*' while tv_sec is `int'.
26741
26742 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
26743
26744         Sync from coreutils.
26745         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
26746         against `yes', rather than just testing for nonempty.
26747
26748 2005-10-01  Simon Josefsson  <jas@extundo.com>
26749
26750         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
26751         and Darwin.
26752
26753         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
26754         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
26755         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
26756         freeaddrinfo and gai_strerror are declared by the POSIX headers.
26757         Check if struct addrinfo is declared.
26758
26759 2005-10-01  Simon Josefsson  <jas@extundo.com>
26760
26761         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
26762         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
26763         AI_* and EAI_* definitions.  Protect function declarations.
26764
26765 2005-10-01  Jim Meyering  <jim@meyering.net>
26766
26767         Sync from coreutils.
26768
26769         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
26770         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
26771         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
26772         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
26773         in the inet and nsl libraries.  Required on Solaris 5.7.
26774
26775 2005-10-01  Jim Meyering  <jim@meyering.net>
26776
26777         Sync from coreutils.
26778         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
26779         in the inet and nsl libraries.  Required on Solaris 5.7.
26780
26781 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
26782
26783         * lib/getdelim.c (getdelim): Remove unused variables.
26784
26785 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
26786
26787         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
26788         so that the code works even with ancient cpp.  Portability problem
26789         with GCC 2.7.2.1 reported by Thomas M.Ott.
26790
26791 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
26792
26793         * modules/regex (Depends-on): Add strcase.
26794
26795         * modules/gethostname (Licence): Change from GPL to LGPL, since
26796         gethostname.c is a trivial implementation of a standard library
26797         function.
26798         * modules/poll (License): Change from GPL to LGPL, since it's
26799         derived from LGPL code.
26800
26801 2005-09-27  Jim Meyering  <jim@meyering.net>
26802
26803         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
26804         HAVE_CONFIG_H.
26805
26806         * lib/intprops.h (signed_type_or_expr__): Define.
26807         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
26808         for unsigned types.
26809
26810 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
26811
26812         * lib/verify.h (verify_expr): Remove, replacing with:
26813         (verify_true): New macro that returns true instead of void.
26814         (verify_type__): Remove.
26815         (verify): Use verify_true rather than verify_type__.
26816
26817 2005-09-26  Bruno Haible  <bruno@clisp.org>
26818
26819         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
26820         is necessary.
26821         (lib_SOURCES): Remove mbchar.c.
26822         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
26823         (Files): Add m4/mbrtowc.m4.
26824         * modules/mbiter: Likewise.
26825         * modules/mbuiter: Likewise.
26826
26827 2005-09-26  Bruno Haible  <bruno@clisp.org>
26828
26829         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
26830         compile mbchar.c if they are not both present.
26831         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
26832         * m4/mbiter.m4 (gl_MBITER): Likewise.
26833         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
26834         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
26835         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
26836
26837 2005-09-25  Jim Meyering  <jim@meyering.net>
26838
26839         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
26840         also uses socklen_t.
26841
26842 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
26843
26844         * lib/utimens.c (ENOSYS): Define if not already defined.
26845         (futimens): Support having a null PATH if the file descriptor
26846         is nonnegative.
26847
26848         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
26849         Remove.
26850         (__attribute): Define to empty unless GCC 3.1 or later.
26851         This works around a core dump on OpenBSD 3.4, which has GCC
26852         2.95.3, which dumps core when given __attribute__(()).  It also
26853         simplifies other tests, since we really don't want to bother with
26854         worrying about which ancient version of GCC supported what.
26855         Original problem reported by Yoann Vandoorselaere, with part of
26856         the fix suggested by Derek Price.
26857
26858 2005-09-24  Jim Meyering  <jim@meyering.net>
26859
26860         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
26861         so we can once again use a positive bitfield width of 1 -- now we
26862         don't have to explain why we were using a bitfield width of 2.
26863
26864 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
26865
26866         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
26867         and similarly for the other external symbols.  Problem reported
26868         by James Gallager.
26869
26870         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
26871         bug reported by Jim Meyering.
26872
26873         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
26874         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
26875         not needed, since socklen is a prerequisite module.
26876
26877 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
26878
26879         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
26880         Problem reported by Eric Blake.
26881         (getaddrinfo): Initialize se so that it's not garbage.
26882         Redo internal storage allocation so that it doesn't make unportable
26883         assumptions about alignment.
26884         Fix a memory leak.
26885
26886         * lib/utimens.c (futimens): Use futimesat if available.
26887         Prefer it to futimes since it doesn't have the futimes bug.
26888
26889         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
26890         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
26891         Instead, declare a function that returns a pointer to an array,
26892         and use verify_type__ to declare the size of the array.
26893         Problem and germ of a solution reported by Bruno Haible.
26894         (verify_type__): Use 2, not 1, for bitfield size, to avoid
26895         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
26896
26897 2005-09-23  Jim Meyering  <jim@meyering.net>
26898
26899         Sync from coreutils.
26900         Correct build failure (socklen_t not defined) on at least
26901         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
26902         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
26903
26904 2005-09-23  Jim Meyering  <jim@meyering.net>
26905
26906         * modules/getaddrinfo (Depends-on): Add socklen.
26907
26908 2005-09-23  Bruno Haible  <bruno@clisp.org>
26909
26910         * tests/test-verify.c: New file.
26911
26912 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26913
26914         Sync from coreutils.
26915
26916         * modules/argmatch (Depends-on): Add verify.
26917         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
26918         unistd-safer.
26919         * modules/save-cwd (Depends-on): Likewise.
26920
26921         * modules/openat (Files): Add lib/openat-die.c.
26922         (Depends-on): Remove error, exitfail.
26923         Add dirname.
26924
26925         * modules/verify: New file.
26926         * MODULES.html.sh (Diagnostics <assert.h>): New section,
26927         with "verify" module.
26928
26929 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26930
26931         Sync from coreutils.
26932
26933         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
26934         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
26935         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
26936         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
26937         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
26938         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
26939         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
26940         Don't bother checking for string.h, stdlib.h, unistd.h.
26941         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
26942         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
26943         module's job.
26944         * m4/jm-macros.m4 (gl_MACROS): Likewise.
26945         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
26946
26947         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
26948         (gl_GETDATE): Use it.
26949
26950         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
26951
26952 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26953
26954         Sync from coreutils.
26955
26956         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
26957         stat-time.h.
26958         * lib/argmatch.h: Include verify.h
26959         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
26960         (ARGMATCH_ASSERT): Remove; unused.
26961         * lib/canonicalize.c: Assume STDC_HEADERS.
26962         * lib/exclude.c: Include "strcase.h".
26963         * lib/regex_internal.h [!defined _LIBC]: Likewise.
26964         * lib/getusershell.c: Include stdio--.h rather than stdio.h
26965         and stdio-safer.h.
26966         (getusershell): Call fopen, not fopen_safer.
26967         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
26968         Do not include unistd-safer.h.
26969         (save_cwd): Don't call fd_safer; no longer needed
26970         now that we include fcntl--.h.
26971
26972         * lib/getdate.y (relative_time): New type.
26973         (RELATIVE_TIME_0): New constant.
26974         (parser_control): Use relative_time instead of doing it ourselves.
26975         (%union): Add new relative_time rel member.
26976         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
26977         Now typeless.
26978         (relunit, relunit_snumber): Now of type rel.
26979         (zone, rel, relunit, get_date): Adjust to above changes.
26980
26981         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
26982         Do not include unistd-safer.h.
26983         (getloadavg): Don't call fd_safer; no longer needed
26984         now that we include fcntl--.h.
26985
26986         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
26987         (make_dir_parents): Treat ENOSYS like EEXIST.
26988
26989         Improve quality of diagnostics on restore_cwd failure.
26990         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
26991         (make_dir_parents): Last arg is now int * (for errno), not bool *.
26992         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
26993         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
26994         each time through the loop.  Do not diagnose restore_cwd failure;
26995         that is the caller's job (and perhaps the caller does not care).
26996
26997         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
26998         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
26999         If the file already exists but is not a directory, don't bother
27000         to try to make its parents.
27001         Close potential file descriptor leak if we can't chdir("/") (!).
27002         Don't always return true if chdir($PWD) fails; return true only
27003         if the requested action was done successfully (except for the
27004         chdir($PWD)).
27005         Don't log final directory unless we actually made it.
27006         Refactor to avoid duplicate code to fix up permissions.
27007         Don't attempt to fix up parent permissions if chdir($PWD) fails.
27008
27009         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
27010         to make it a bit faster and (I hope) clearer.
27011         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
27012         Fix bug in formats like %2N.
27013
27014         * lib/verify.h: New file.
27015
27016 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27017
27018         Sync from coreutils.
27019         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
27020
27021 2005-09-22  Jim Meyering  <jim@meyering.net>
27022
27023         Sync from coreutils.
27024
27025         * m4/lstat.m4 (gl_FUNC_LSTAT):
27026         Use AC_LIBSOURCES to require lstat.c and lstat.h.
27027         Remove obsolete comment.
27028         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
27029         * m4/xstrtod.m4: Likewise.
27030
27031         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
27032
27033 2005-09-22  Jim Meyering  <jim@meyering.net>
27034
27035         Sync from coreutils.
27036
27037         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
27038
27039         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
27040         the .tm_year member, since otherwise gcc-4.0 would now warn about
27041         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
27042
27043         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
27044         order to avoid an unsuppressible warning from gcc on 64-bit systems.
27045
27046         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
27047         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
27048         when run in a time zone for which daylight savings time is in effect
27049         for the starting date.
27050
27051         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
27052         stop us from restricting permissions of just-created absolute-named
27053         directories.
27054         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
27055         to restore initial working directory.
27056         * lib/mkdir-p.c (make_dir_parents): New parameter:
27057         different_working_dir, to tell caller if/when we change the working
27058         directory and are unable to return to the initial one.
27059         * lib/mkdir-p.h (make_dir_parents): Update prototype.
27060         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
27061         `return false'.  This fixes a bug introduced on 2004-07-30.
27062
27063         * lib/openat.c (fdopendir): Be sure to close the supplied
27064         file descriptor before returning.  This makes our replacement
27065         implementation a little closer to Solaris's, where fdopendir
27066         ties the file descriptor to the returned DIR* pointer.
27067         * lib/openat.c (unlinkat): New function.
27068         * lib/openat.h (unlinkat): Add prototype.
27069         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
27070         (openat_restore_fail): Rename from openat_restore_die.
27071         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
27072
27073         Provide an alternative to exiting immediately upon save_cwd or
27074         restore_cwd failure.  Now, an application can arrange e.g.,
27075         to perform a longjump in that case.
27076         * lib/openat.c: Include dirname.h.
27077         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
27078         (rpl_openat, fdopendir, fstatat): Call openat_save_die
27079         and openat_restore_die rather than calling error directly.
27080         Don't include "error.h" or "exitfail.h"; they're no longer needed.
27081
27082         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
27083         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
27084         define.
27085
27086         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
27087         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
27088                             int utc, int nanoseconds);
27089         Background:
27090         date should not have to allocate a megabyte of virtual memory to
27091         handle a format argument like +%1048575T.  When implemented with
27092         strftime, it must allocate such a buffer, use strftime to fill it
27093         in, print it, then free it.
27094         With fprintftime, it simply prints everything and exits.
27095         With no need for memory allocation, that's one fewer way to fail.
27096         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
27097         optional field width, not before, so we accept %9:z, not %:9z.
27098         (my_strftime): Be sure to use L_('x') for literals.
27099
27100         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
27101         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
27102         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
27103         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
27104         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
27105         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
27106         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
27107         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
27108         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
27109         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
27110         * lib/xgethostname.c, lib/xreadlink.c:
27111         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
27112
27113         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
27114         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
27115         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
27116         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
27117         and don't include <sys/file.h>).
27118
27119 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
27120
27121         Sync from coreutils.
27122
27123         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
27124         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
27125         [!LDAV_DONE]: Avoid unused variable warning.
27126
27127 2005-09-21  Bruno Haible  <bruno@clisp.org>
27128
27129         * lib/unicodeio.h (unicode_to_mb): New declaration.
27130
27131 2005-09-20  Derek Price  <derek@ximbiot.com>
27132
27133         * lib/getaddrinfo.c: Don't include <netdb.h> included from
27134         getaddrinfo.h.
27135
27136 2005-09-20  Bruno Haible  <bruno@clisp.org>
27137
27138         * gnulib-tool: Remove trailing slashes from the values specified for
27139         --source-base, --m4-base, --tests-base, --aux-dir.
27140         Suggested by Simon Josefsson <jas@extundo.com>.
27141
27142 2005-09-20  Bruno Haible  <bruno@clisp.org>
27143
27144         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
27145         func_modules_to_filelist, func_import, func_create_testdir): Make all
27146         sorting results locale-independent, so that gnulib-cache.m4 doesn't
27147         change when gnulib-tool is invoked in a different locale.
27148
27149 2005-09-19  Simon Josefsson  <jas@extundo.com>
27150
27151         * m4/socklen.m4: Fix typo.
27152
27153 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27154
27155         Use a consistent style for including <config.h>.
27156         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
27157         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
27158         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
27159         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
27160         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
27161         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
27162         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
27163         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
27164         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
27165         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
27166         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
27167         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
27168         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
27169         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
27170         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
27171         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
27172         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
27173         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
27174         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
27175         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
27176         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
27177         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
27178         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
27179         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
27180         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
27181         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
27182         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
27183         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
27184         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
27185         lib/xstrtoumax.c, lib/yesno.c:
27186         Standardize inclusion of config.h.
27187         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
27188         lib/inttostr.h:  Removed inclusion of config.h from header files.
27189         * lib/inttostr.c:  Adjusted in-tree users.
27190         * lib/timespec.h: Remove superfluous warning to include config.h.
27191         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
27192         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
27193         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
27194         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
27195         config.h with HAVE_CONFIG_H.
27196
27197 2005-09-19  Jim Meyering  <jim@meyering.net>
27198
27199         * modules/pathmax (License): Change to LGPL.
27200
27201 2005-09-19  Derek Price  <derek@ximbiot.com>
27202
27203         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
27204
27205 2005-09-19  Bruno Haible  <bruno@clisp.org>
27206
27207         * gnulib-tool (import): Provide default for --tests-base.
27208
27209 2005-09-19  Bruno Haible  <bruno@clisp.org>
27210
27211         * doc/quote.texi: New file, extracted from gnulib.texi.
27212         * doc/ctime.texi: New file, extracted from gnulib.texi.
27213         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
27214         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
27215         * doc/gnulib.texi: Include them.
27216
27217 2005-09-18  Bruno Haible  <bruno@clisp.org>
27218
27219         Portability fix.
27220         * gnulib-tool (func_readlink): New function.
27221         (func_ln_if_changed): Use it.
27222
27223 2005-09-18  Bruno Haible  <bruno@clisp.org>
27224
27225         * gnulib-tool: Support --with-tests also with --import.
27226         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
27227         (func_import): Use variables $testsbase and $inctests. Emit a
27228         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
27229         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
27230         SUBDIRS += $testsdir.
27231         (func_create_testdir): Update.
27232
27233 2005-09-18  Bruno Haible  <bruno@clisp.org>
27234
27235         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
27236         instead of $dry_run.
27237         (func_cp_if_changed, func_mv_if_changed): Remove functions.
27238         (func_ln_if_changed): Don't handle dry-run here.
27239         (func_import): In dry-run mode, detect more precisely which actions
27240         would be performed, and don't use "...ing" verbs.
27241
27242 2005-09-18  Bruno Haible  <bruno@clisp.org>
27243
27244         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
27245         (func_import): Use join on two temporary files instead of three nested
27246         loops, in order to determine which files are new or old.
27247
27248 2005-09-18  Bruno Haible  <bruno@clisp.org>
27249
27250         * gnulib-tool (func_import): Comment out code that spits out the
27251         new files with --dry-run.
27252
27253 2005-09-18  Bruno Haible  <bruno@clisp.org>
27254
27255         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
27256
27257 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27258
27259         * lib/stat-time.h: New file.
27260         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
27261         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
27262         in a different way.
27263         (timespec_cmp): New function.
27264         * lib/utimecmp.c: Include stat-time.h.
27265         (SYSCALL_RESOLUTION): Depend on whether various struct stat
27266         members exist, not on the obsolescent ST_MTIM_NSEC.
27267         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
27268
27269 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27270
27271         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
27272
27273 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27274
27275         * MODULES.html.sh (File system functions): Add stat-time.
27276         * modules/stat-time: New file.
27277         * modules/timespec (Files): Remove m4/st_mtim.m4; this
27278         is now done in a different way, by the stat-time module.
27279         * modules/utimecmp (Depends-on): Add stat-time.
27280
27281 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
27282
27283         * m4/st_mtim.m4: Remove.  Superseded by...
27284         * m4/stat-time.m4: New file.
27285         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
27286         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
27287
27288 2005-09-15  Derek Price  <derek@ximbiot.com>
27289
27290         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
27291
27292 2005-09-15  Derek Price  <derek@ximbiot.com>
27293
27294         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
27295         * lib/regex_internal.c: Ditto, using this...
27296         (__GNUC_PREREQ): ...new macro.
27297         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
27298         using...
27299         (__GNUC_PREREQ): ...this new macro.
27300
27301         * lib/strstr.h: Include string.h. Define strstr as a macro here.
27302
27303 2005-09-15  Derek Price  <derek@ximbiot.com>
27304             Paul Eggert  <eggert@cs.ucla.edu>
27305
27306         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
27307         changes, consolidating in...
27308         * lib/regex_internal.h: ...this file.
27309
27310 2005-09-13  Jim Meyering  <jim@meyering.net>
27311
27312         * lib/canon-host.c: Filter through gnu indent and reword comments
27313         slightly.
27314         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
27315
27316 2005-09-13  Derek Price  <derek@ximbiot.com>
27317
27318         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
27319         failure.
27320         Reported by Jim Meyering  <jim@meyering.net>.
27321
27322 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
27323
27324         * lib/base64.c: Typo.
27325         (base64_encode): Put b64str in initialized data section.
27326
27327 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27328
27329         Merge glibc and coreutils changes into gnulib, plus a few
27330         extra fixes.
27331         * lib/md5.c: Use #error rather than a string.
27332         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
27333         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
27334         (__attribute__): Define to empty for non recent-GCC.
27335         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
27336         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
27337         Renamed from their non-__ counterparts, with new macros replacing
27338         them if not _LIBC.  Add __THROW attribute.
27339         (rol): Remove.
27340         (struct md5_ctx): Align buffer if using GCC.
27341         * lib/sha1.h (struct sha1_ctx): Likewise.
27342         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
27343         The old name was backwards.
27344         (NOTSWAP): Remove; not used.
27345         (rol): New macro, moved here from md5.h.
27346         (sha1_process_block): Remove a FIXME that doesn't make sense.
27347
27348 2005-09-12  Derek Price  <derek@ximbiot.com>
27349
27350         Return usable errors from canon-host.
27351         * lib/canon-host.h: New file.
27352         * lib/canon-host.c (canon_host): Wrap...
27353         (canon_host_r): ...this new function, which now relies exclusively on
27354         getaddrinfo.
27355         (ch_strerror): New function.
27356         (last_cherror): New global.
27357         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
27358         interface.
27359         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
27360         void *.
27361         (freeaddrinfo): Free ai->ai_canonname when set.
27362
27363 2005-09-12  Derek Price  <derek@ximbiot.com>
27364
27365         Make canon-host require getaddrinfo.
27366         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
27367         AC_LIBSOURCE canon-host.h.  Call...
27368         (gl_PREREQ_CANON_HOST): ...this new function, which requires
27369         gl_GETADDRINFO.
27370         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
27371
27372 2005-09-12  Derek Price  <derek@ximbiot.com>
27373
27374         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
27375         LGPL.
27376         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
27377
27378 2005-09-12  Derek Price  <derek@ximbiot.com>
27379
27380         * lib/gai_strerror.c: Include config.h when available.  Include
27381         getaddrinfo.h before other headers to test interface.
27382         Reported by Larry Jones <lawrence.jones@ugs.com>.
27383
27384 2005-09-12  Derek Price  <derek@ximbiot.com>
27385             Paul Eggert  <eggert@cs.ucla.edu>
27386
27387         * modules/glob (Files): Add glob-libc.h.
27388
27389 2005-09-12  Derek Price  <derek@ximbiot.com>
27390             Paul Eggert  <eggert@cs.ucla.edu>
27391
27392         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
27393         glob_.h, glob-libc.h.
27394         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
27395
27396 2005-09-12  Derek Price  <derek@ximbiot.com>
27397             Paul Eggert  <eggert@cs.ucla.edu>
27398
27399         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
27400         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
27401         protecting things that should be done only in gnulib contexts.
27402         * lib/glob_.h: New file, containing only the glob things needed for
27403         gnulib.
27404         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
27405         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
27406         (glob, globfree, glob_pattern_p): Now defined simply in terms of
27407         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
27408         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
27409         and to respect the namespace rules better.
27410
27411 2005-09-08  Simon Josefsson  <jas@extundo.com>
27412
27413         * modules/socklen: New file.
27414
27415 2005-09-08  Simon Josefsson  <jas@extundo.com>
27416
27417         * m4/socklen.m4: New file.
27418
27419 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
27420
27421         * modules/utimens (Files): Add m4/utimbuf.m4, since
27422         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
27423         Reported by Sergey Poznyakoff.
27424
27425 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
27426
27427         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
27428         definitions, since that's the preferred style in glibc.
27429         Fix a minor spacing issue, and update copyright notice to match
27430         glibc's.
27431
27432 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
27433
27434         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
27435
27436 2005-09-06  Simon Josefsson  <jas@extundo.com>
27437
27438         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
27439         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
27440
27441 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27442
27443         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
27444         warning.
27445
27446 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27447
27448         * config/srclist.txt: Add glibc bug 1302.
27449
27450 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
27451
27452         Change bitset word type from unsigned int to unsigned long int,
27453         as this has better performance on typical 64-bit hosts.
27454         Port bitset code to hosts with unusual word sizes.
27455         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
27456         (build_collating_symbol):
27457         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
27458         argument is a bitset.  This is merely a style issue, but it makes
27459         it clearer that an entire array is expected.
27460         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
27461         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
27462         Port to the case where bitset_word is not the same as unsigned int.
27463         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
27464         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
27465         Likewise.
27466         * lib/regexec.c (check_dst_limits_calc_pos_1,
27467         check_subexp_matching_top):
27468         (build_trtable, group_nodes_into_DFAstates):
27469         Likewise.
27470         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
27471         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
27472         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
27473         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
27474         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
27475         * lib/regcomp.c (optimize_subexps, lower_subexp):
27476         Work even if bitset_word has holes in its bitwise representation.
27477         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
27478         * lib/regexec.c (check_dst_limits_calc_pos_1,
27479         check_subexp_matching_top):
27480         Likewise.
27481         * lib/regex_internal.c (re_string_reconstruct):
27482         Don't assume UCHAR_MAX == 255.
27483         * lib/regex_internal.h (bitset_set_all): Likewise.
27484         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
27485         All uses changed.
27486         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
27487         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
27488         All uses changed.
27489         (BITSET_WORD_MAX): New macro.
27490         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
27491         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
27492         (bitset_empty, bitset_copy):
27493         Prefer sizeof (bitset) to multiplying it out ourselves.
27494         (bitset_not_merge): Remove; unused.
27495         (bitset_contain): Return bool, not unsigned int with one bit on.
27496         All callers changed.
27497         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
27498         alignment than re_node_set; do this by defining a new internal
27499         type struct dests_alloc and using it to allocate memory.
27500
27501 2005-09-05  Bruno Haible  <bruno@clisp.org>
27502
27503         * gnulib-tool (func_import): Fix comparison in handling of symbolic
27504         links.
27505
27506 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
27507
27508         * modules/size_max (Makefile.am): Add size_max.h
27509
27510 2005-09-04  Derek Price  <derek@ximbiot.com>
27511
27512         * gnulib-tool (func_import): Fix reversed $symbolic logic.
27513
27514 2005-09-03  Simon Josefsson  <jas@extundo.com>
27515
27516         * gnulib-tool: Fix typo.
27517
27518 2005-09-03  Simon Josefsson  <jas@extundo.com>
27519
27520         * config/srclist.txt: Add glibc bug 1293.
27521
27522 2005-09-03  Derek Price  <derek@ximbiot.com>
27523
27524         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
27525         From Larry Jones <lawrence.jones@ugs.com>.
27526
27527 2005-09-02  Simon Josefsson  <jas@extundo.com>
27528
27529         * modules/socklen: New file.
27530
27531 2005-09-02  Simon Josefsson  <jas@extundo.com>
27532
27533         * modules/havelib: New module.
27534
27535         * modules/gettext, modules/iconv, modules/lock, modules/readline:
27536         Use havelib.
27537
27538 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27539
27540         Check for arithmetic overflow when calculating sizes, to prevent
27541         some buffer-overflow issues.  These patches are conservative, in the
27542         sense that when I couldn't determine whether an overflow was possible,
27543         I inserted a run-time check.
27544         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
27545         macros.
27546         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
27547         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
27548         (re_xnrealloc, re_x2nrealloc): New inline functions.
27549         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
27550         parse_bracket_exp):
27551         (build_equiv_class, build_charclass): Check for arithmetic overflow
27552         in size expression calculations.
27553         * lib/regex_internal.c (re_string_realloc_buffers):
27554         (build_wcs_upper_buffer, re_node_set_add_intersect):
27555         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
27556         (re_dfa_add_node, register_state): Likewise.
27557         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
27558         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
27559         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
27560         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
27561
27562 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27563
27564         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
27565         m4/ulonglong.m4.  Problem reported by Martin Lambers.
27566
27567 2005-09-02  Bruno Haible  <bruno@clisp.org>
27568
27569         Support for lib vs. lib64 distinction on biarch platforms.
27570         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
27571         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
27572         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
27573
27574 2005-09-02  Bruno Haible  <bruno@clisp.org>
27575
27576         * gnulib-tool (import): In the other first-use case, provide defaults
27577         as well.
27578
27579 2005-09-02  Bruno Haible  <bruno@clisp.org>
27580
27581         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
27582         patches not yet found in the latest gettext release.
27583
27584 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27585
27586         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
27587         to avoid a collision with bits/local_lim.h in glibc.
27588         All uses changed.  Problem reported by Dmitry V. Levin in
27589         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
27590
27591         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
27592         bugs in int versus size_t comparisons.
27593         (re_string_context_at): Fix bug where the code assumed that
27594         Idx is signed.
27595
27596         Use bool where appropriate.
27597         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
27598         All callers changed.
27599         (calc_eclosure_iter): Likewise, for ROOT arg.
27600         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
27601         (build_charclass_op): Likewise, for NON_MATCH arg.
27602         * lib/regex_internal.c (re_string_allocate, re_string_construct):
27603         (re_string_construct_common): Likewise, for ICASE arg.
27604         * lib/regexec.c (re_search_2_stub, re_search_stub):
27605         Likewise, for RET_LEN arg.
27606         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
27607         (set_regs): Likewise, for FL_BACKTRACK arg.
27608         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
27609         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
27610         (calc_eclosure_iter, parse_bracket_exp):
27611         Use bool for internal variables that are booleans.
27612         * lib/regexec.c (re_search_internal, check_matching,
27613         proceed_next_node):
27614         (set_regs, build_sifted_states, sift_states_bkref):
27615         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
27616         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
27617         (find_collation_sequence_value):
27618         Likewise.
27619         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
27620         (re_node_set_compare):
27621         Return bool, not int. All callers changed.
27622         * lib/regexec.c (check_halt_node_context, check_dst_limits):
27623         (build_trtable, check_node_accept): Likewise.
27624         * lib/regex_internal.h: Include stdbool.h.
27625
27626         Fix bugs uncovered when converting to bool.
27627         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
27628         failure instead of charging ahead blindly.
27629         * lib/regex_internal.c (register_state): Likewise.
27630         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
27631         for freeing internal storage.
27632         (group_nodes_into_DFA_states): Use unsigned int, not int, for
27633         bitset pieces used as boolean, to avoid undefined behavior
27634         on hosts that do int overflow checking.
27635
27636 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27637
27638         * config/srclist.txt: Add glibc bugs 1285-1287.
27639
27640 2005-09-01  Jim Meyering  <jim@meyering.net>
27641
27642         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
27643         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
27644         Require gl_STAT_MACROS, too.
27645
27646 2005-09-01  Bruno Haible  <bruno@clisp.org>
27647
27648         * gnulib-tool (import): In the first-use case, provide defaults.
27649
27650 2005-09-01  Bruno Haible  <bruno@clisp.org>
27651
27652         * gnulib-tool (func_import): Remove the .tmp files.
27653
27654 2005-09-01  Bruno Haible  <bruno@clisp.org>
27655
27656         * gnulib-tool (func_import): Fix handling of symbolic links.
27657
27658 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
27659
27660         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
27661         old glibc regex code mishandles strings longer than 2**31 bytes.
27662         This patch fixes this when the regex code is used in gnulib
27663         (i.e., outside glibc).
27664
27665         This patch should not affect the use of the regex code inside
27666         glibc.  No doubt this problem also needs to be handled for glibc
27667         as well, but the result will be an incompatible change to the
27668         glibc ABI, and the old ABI will have to be supported too.  That
27669         can be the the subject for another patch.
27670
27671         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
27672         governing whether the rest of this patch is active.  By default,
27673         the macro is disabled and the patch has no effect.
27674         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
27675         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
27676         (struct re_pattern_buffer, re_search, re_search_2, re_match):
27677         (re_match_2, re_set_registers): Use the new types.
27678         * lib/regex_internal.h (Idx, re_hashval_t): New types.
27679         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
27680         New macros.
27681         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
27682         (re_string_context_at, bin_tree_t, re_dfastate_t):
27683         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
27684         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
27685         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
27686         (re_string_char_size_at, re_string_wchar_at):
27687         (re_string_elem_size_at):
27688         Use the new types and macros to port to 64-bit hosts.
27689         Use unsigned types for internal values, so that the code
27690         mostly works even for arrays larger than SSIZE_MAX.
27691         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
27692         (search_duplicated_node, calc_eclosure_iter, fetch_number):
27693         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
27694         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
27695         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
27696         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
27697         (calc_inveclosure, parse_dup_op, build_range_exp):
27698         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
27699         (fetch_number, create_token_tree, mark_opt_subexp):
27700         Likewise.
27701         * lib/regex_internal.c (re_string_construct_common,
27702         create_ci_newstate):
27703         (create_cd_newstate, re_string_allocate, re_string_construct):
27704         (re_string_realloc_buffers, build_wcs_upper_buffer):
27705         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
27706         (re_string_reconstruct, re_string_peek_byte_case):
27707         (re_string_fetch_byte_case, re_string_context_at):
27708         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
27709         (re_node_set_init_copy, re_node_set_add_intersect):
27710         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
27711         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
27712         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
27713         (re_acquire_state, re_acquire_state_context, register_state):
27714         Likewise.
27715         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
27716         search_cur_bkref_entry):
27717         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
27718         (re_search_internal, re_search_2_stub, re_search_stub)
27719         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
27720         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
27721         (update_cur_sifted_state, check_dst_limits):
27722         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
27723         (check_subexp_limits, sift_states_bkref, merge_state_array):
27724         (check_subexp_matching_top, get_subexp, get_subexp_sub):
27725         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
27726         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
27727         (expand_bkref_cache, check_node_accept_bytes):
27728         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
27729         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
27730         (acquire_init_state_context, check_halt_node_context):
27731         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
27732         (sift_states_backward, clean_state_log_if_needed):
27733         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
27734         (find_recover_state, transit_state_sb, transit_state_mb):
27735         (transit_state_bkref, build_trtable, match_ctx_clean):
27736         Likewise.
27737         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
27738         to work around an assumption that REG_MISSING is negative.
27739
27740         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
27741         (seek_collating_symbol_entry) [defined _LIBC]:
27742         (lookup_collation_sequence_value) [defined _LIBC]:
27743         (build_range_exp, build_collating_symbol) [defined _LIBC]:
27744         Use prototypes rather than old-style function definitions.
27745         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
27746         (transit_state_sb) [0]:
27747         (find_collation_sequence_value) [defined _LIBC]: Likewise.
27748
27749         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
27750         rm_eo.
27751
27752         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
27753         (optimize_subexps, lower_subexp):
27754         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
27755         since the signed shift might overflow.  Use 1u<<31 instead.
27756         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
27757         Likewise.
27758         * lib/regexec.c (check_dst_limits_calc_pos_1,
27759         check_subexp_matching_top): Likewise.
27760
27761         * lib/regcomp.c (optimize_subexps, lower_subexp):
27762         Use CHAR_BIT rather than 8, for clarity.
27763         * lib/regexec.c (check_dst_limits_calc_pos_1):
27764         (check_subexp_matching_top): Likewise.
27765         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
27766         have to worry about portability issues when shifting it left.
27767         Remove no-longer-needed test for table_size > 0.
27768         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
27769         in a word, as the resulting behavior is undefined.
27770         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
27771         in one case, a <= should have been an <, and in another case the
27772         whole test was missing.
27773         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
27774         the standard name CHAR_BIT.
27775         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
27776         this is not true on one's complement and signed-magnitude hosts.
27777
27778         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
27779         next_last_offset.
27780         (struct re_dfa_t): Remove unused member states_alloc.
27781         * lib/regcomp.c (init_dfa): Don't initialize unused members.
27782
27783 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
27784
27785         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
27786         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
27787         and large-file glibc and in 32-bit large-file Solaris.
27788
27789 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
27790
27791         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
27792         lengths fit in regoff_t; this isn't true if regoff_t is the same
27793         width as size_t.
27794         * lib/regex.c (re_search_internal): 5th arg is LAST_START
27795         (= START + RANGE) instead of RANGE.  This avoids overflow
27796         problems when regoff_t is the same width as size_t.
27797         All callers changed.
27798         (re_search_2_stub): Check for overflow when adding the
27799         sizes of the two strings.
27800         (re_search_stub): Check for overflow when adding START
27801         to RANGE; if it occurs, substitute the extreme value.
27802
27803 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
27804
27805         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
27806
27807 2005-08-31  Jim Meyering  <jim@meyering.net>
27808
27809         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
27810         a pointer-to-const.
27811         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
27812         (register_state): Likewise.
27813         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
27814         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
27815         (group_nodes_into_DFAstates): Likewise.
27816
27817 2005-08-31  Jim Meyering  <jim@meyering.net>
27818
27819         * check-module: Add a FIXME comment.
27820
27821 2005-08-31  Eric Blake  <ebb9@byu.net>
27822
27823         * modules/unistd-safer (Files): Add unistd--.h.
27824         * modules/stdio-safer (Files): Add stdio--.h.
27825
27826 2005-08-31  Derek Price  <derek@ximbiot.com>
27827
27828         * lib/getdelim.c (getdelim): Return EOF on EOF.
27829         Reported by Larry Jones <lawrence.jones@ugs.com>.
27830
27831 2005-08-31  Bruno Haible  <bruno@clisp.org>
27832
27833         Avoid unnecessary diffs in the generated lib/Makefile.am.
27834         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
27835         the generated files.
27836         (func_import): Don't set cmd.
27837
27838 2005-08-31  Bruno Haible  <bruno@clisp.org>
27839
27840         * lib/strstr.c: Include <stddef.h>, for NULL.
27841         * lib/strcasestr.c: Likewise.
27842         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27843
27844 2005-08-31  Bruno Haible  <bruno@clisp.org>
27845
27846         * gnulib-tool: New option --macro-prefix.
27847         (func_import): Use macro_prefix.
27848         (import): Handle option --macro-prefix.
27849
27850 2005-08-31  Bruno Haible  <bruno@clisp.org>
27851
27852         * gnulib-tool (import): Rename most ac_* variables to cached_*.
27853         Also use new variables cached_lgpl, cached_libtool.
27854
27855 2005-08-31  Bruno Haible  <bruno@clisp.org>
27856
27857         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
27858         always instantiating them.
27859
27860 2005-08-31  Bruno Haible  <bruno@clisp.org>
27861
27862         * gnulib-tool (func_import): Read the previous cached settings
27863         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
27864         earlier added by gnulib but are now dropped. Warn when a gnulib file
27865         overwrites a non-gnulib file.
27866
27867 2005-08-31  Bruno Haible  <bruno@clisp.org>
27868
27869         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
27870         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
27871         projects that don't keep autogenerated files in CVS. Put into
27872         actioncmd only the specified modules, not the transitive closure.
27873
27874 2005-08-31  Bruno Haible  <bruno@clisp.org>
27875
27876         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
27877         Create directories that shall be filled.
27878         (import): Don't look for gl_* macros in configure.ac. Recurse across
27879         all directories containing a gnulib-cache.m4 files, if meaningful.
27880
27881 2005-08-31  Bruno Haible  <bruno@clisp.org>
27882
27883         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
27884         (import): Set seen_libtool when we see gl_LIBTOOL.
27885
27886 2005-08-31  Bruno Haible  <bruno@clisp.org>
27887
27888         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
27889         declaration macro definitions from generated gnulib.m4.
27890
27891 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
27892
27893         * lib/iconvme.h: Add prototype for iconv_alloc.
27894
27895 2005-08-29  Simon Josefsson  <jas@extundo.com>
27896
27897         * lib/iconvme.c: Fix errno.
27898
27899 2005-08-29  Bruno Haible  <bruno@clisp.org>
27900
27901         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
27902         that it works when the directory contains spaces.
27903
27904 2005-08-29  Bruno Haible  <bruno@clisp.org>
27905
27906         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
27907
27908 2005-08-29  Bruno Haible  <bruno@clisp.org>
27909
27910         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
27911         Emit more advice.
27912
27913 2005-08-29  Bruno Haible  <bruno@clisp.org>
27914         and Stepan Kasal  <kasal@ucw.cz>
27915
27916         * check-module: If more parameters are given, check each of them
27917         separately; add more exceptions, as noted by Jim Meyering.
27918         (check_module): New procedure.
27919         (%exempt_header): Now contains all exceptions.
27920
27921 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
27922
27923         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
27924
27925 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
27926
27927         * lib/iconvme.c: Split iconv_string into iconv_alloc.
27928
27929 2005-08-28  Bruno Haible  <bruno@clisp.org>
27930
27931         * m4/gnulib-tool.m4: New file.
27932
27933 2005-08-27  Jim Meyering  <jim@meyering.net>
27934
27935         * modules/unistd-safer (Files): Add pipe-safer.c.
27936         * modules/fcntl-safer (Files): Add creat-safer.c.
27937
27938 2005-08-27  Jim Meyering  <jim@meyering.net>
27939
27940         * m4/stdlib-safer.m4: New file.  From coreutils.
27941         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
27942         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
27943         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
27944         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
27945         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
27946
27947 2005-08-27  Jim Meyering  <jim@meyering.net>
27948
27949         * lib/fopen-safer.c: Merge minor changes from coreutils.
27950         * lib/dup-safer.c: Likewise.
27951         * lib/fd-safer.c: Likewise.
27952
27953         Merge from coreutils.
27954         * lib/stdio--.h: New file.
27955         * lib/stdlib--.h: New file.
27956         * lib/mkstemp-safer.c: New file.
27957
27958         GNU tar needs these.
27959         * lib/pipe-safer.c: New file.
27960         * lib/creat-safer.c: New file.
27961         * lib/fcntl--.h (creat): Define to creat_safer.
27962         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
27963         * lib/unistd--.h (pipe): Define to pipe_safer.
27964         * lib/unistd-safer.h: Declare pipe_safer.
27965
27966 2005-08-26  Simon Josefsson  <jas@extundo.com>
27967
27968         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
27969         Haible <bruno@clisp.org>.
27970
27971 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
27972
27973         * lib/regex_internal.h: Remove all references to
27974         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
27975         or better.
27976         (bitset_not, bitset_merge, bitset_not_merge):
27977         (bitset_mask, re_string_allocate, re_string_construct):
27978         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
27979         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
27980         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
27981         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
27982         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
27983         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
27984         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
27985         (re_acquire_state_context):
27986         Remove unnecessary forward decls.
27987         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
27988         Put __attribute at function definition,
27989         now that the function decl has been removed.
27990         * lib/regex_internal.c (re_string_peek_byte_case):
27991         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
27992         Likewise.
27993
27994 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
27995
27996         * m4/regex.m4: Add AC_PREREQ(2.50).
27997         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
27998
27999 2005-08-25  Simon Josefsson  <jas@extundo.com>
28000
28001         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
28002         __fsetlocking.
28003
28004 2005-08-25  Simon Josefsson  <jas@extundo.com>
28005
28006         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
28007         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
28008         GLIBC specific code.
28009
28010 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28011
28012         Make regex safe for g++.  This fixes one real bug (an "err"
28013         that should have been "*err").  g++ problem reported by
28014         Sam Steingold.
28015         * lib/regex_internal.h (re_calloc): New macro, consistent with
28016         re_malloc etc.  All callers of calloc changed to use re_calloc.
28017         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
28018         not int.  All callers changed.
28019         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
28020         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
28021         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
28022         (find_recover_state): Change "err" to "*err"; this fixes what
28023         appears to be a real bug.
28024         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
28025         versus int.
28026
28027 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28028
28029         * modules/regex (Depends-on): Add malloc, since the code
28030         assumes that !malloc(0) means failure.
28031
28032 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28033
28034         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
28035
28036         alloca modernization/simplification for regex.
28037         * lib/regex.c: Remove portability cruft for alloca.  This no longer
28038         needs to be at the start of the file, and can be moved into
28039         regex_internal.h and simplified.
28040         * lib/regex_internal.h: Include <alloca.h>.
28041         (__libc_use_alloca) [!defined _LIBC]: New macro.
28042         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
28043         now works outside glibc.
28044
28045 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28046
28047         * config/srclist.txt: Add glibc bugs 1241, 1245.
28048
28049 2005-08-25  Jim Meyering  <jim@meyering.net>
28050
28051         * lib/open-safer.c: Include <config.h>.
28052         Otherwise, we'd lose LARGEFILE support in any file using
28053         e.g. "fcntl--.h"
28054
28055 2005-08-25  Bruno Haible  <bruno@clisp.org>
28056
28057         * m4/minmax.m4: Require autoconf 2.52.
28058         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
28059         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
28060         alternatives of translit over the alphabet.
28061         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
28062
28063 2005-08-24  Simon Josefsson  <jas@extundo.com>
28064
28065         * tests/test-getpass.c: New file.
28066
28067 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28068
28069         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
28070         for GNU regex features.
28071
28072 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28073
28074         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
28075         * lib/regex.h (regerror): Likewise.
28076
28077         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
28078         requires this.  (The code never needed it.)
28079
28080         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
28081         All uses of recently-renamed identifiers changed to use the new,
28082         POSIX-compliant names.  The code will build and run just fine
28083         without these changes, but it's better to eat our own dog food
28084         and use the standard-conforming names.
28085
28086         * lib/regex.h: Fix a multitude of POSIX name space violations.
28087         These changes have an effect only for programs that define
28088         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
28089         do not change anything for programs compiled in the normal way.
28090         Also, there is no effect on the ABI.
28091
28092         (_REGEX_SOURCE): New macro.
28093         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
28094         defined and _GNU_SOURCE is not; this fixes a name space violation.
28095
28096         Rename the following macros to obey POSIX requirements.
28097         The old names are still visible as macros if _REGEX_SOURCE is defined.
28098         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
28099         RE_BACKSLASH_ESCAPE_IN_LISTS.
28100         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
28101         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
28102         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
28103         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
28104         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
28105         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
28106         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
28107         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
28108         (REG_INTERVALS): renamed from RE_INTERVALS.
28109         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
28110         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
28111         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
28112         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
28113         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
28114         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
28115         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
28116         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
28117         RE_UNMATCHED_RIGHT_PAREN_ORD.
28118         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
28119         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
28120         (REG_DEBUG): renamed from RE_DEBUG.
28121         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
28122         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
28123         unusual, since we can't clash with the POSIX REG_ICASE.
28124         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
28125         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
28126         (REG_NO_SUB): renamed from RE_NO_SUB.
28127         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
28128         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
28129         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
28130         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
28131         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
28132         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
28133         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
28134         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
28135         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
28136         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
28137         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
28138         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
28139         RE_SYNTAX_POSIX_MINIMAL_BASIC.
28140         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
28141         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
28142         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
28143         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
28144         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
28145         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
28146         (REG_FIXED): Renamed from REGS_FIXED.
28147         (REG_NREGS): Renamed from RE_NREGS.
28148
28149         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
28150         of other REG_* macros, since POSIX says the user is allowed to
28151         #undef these macros selectively.
28152
28153         (reg_errcode_t): Update comment stating what other tables need
28154         to be consistent.
28155
28156         Rename the following enum values to obey POSIX requirements.
28157         The old names are still visible as macros.
28158         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
28159         is not defined, since GNU is supposed to be a superset of POSIX as
28160         much as possible, and since we want reg_errcode_t to be a signed
28161         type for implementation consistency.
28162         (_REG_NOERROR): Renamed from REG_NOERROR.
28163         (_REG_NOMATCH): Renamed from REG_NOMATCH.
28164         (_REG_BADPAT): Renamed from REG_BADPAT.
28165         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
28166         (_REG_ECTYPE): Renamed from REG_ECTYPE.
28167         (_REG_EESCAPE): Renamed from REG_EESCAPE.
28168         (_REG_ESUBREG): Renamed from REG_ESUBREG.
28169         (_REG_EBRACK): Renamed from REG_EBRACK.
28170         (_REG_EPAREN): Renamed from REG_EPAREN.
28171         (_REG_EBRACE): Renamed from REG_EBRACE.
28172         (_REG_BADBR): Renamed from REG_BADBR.
28173         (_REG_ERANGE): Renamed from REG_ERANGE.
28174         (_REG_ESPACE): Renamed from REG_ESPACE.
28175         (_REG_BADRPT): Renamed from REG_BADRPT.
28176         (_REG_EEND): Renamed from REG_EEND.
28177         (_REG_ESIZE): Renamed from REG_ESIZE.
28178         (_REG_ERPAREN): Renamed from REG_ERPAREN.
28179         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
28180         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
28181         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
28182         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
28183
28184         (_REG_RE_NAME, _REG_RM_NAME): New macros.
28185         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
28186         changed.  But support the old name if the new one is not defined
28187         and if _REGEX_SOURCE.
28188
28189         Change the following member names in struct re_pattern_buffer.
28190         The old names are still supported if !_REGEX_SOURCE.
28191         The new names are always supported, regardless of _REGEX_SOURCE.
28192         (re_buffer): Renamed from buffer.
28193         (re_allocated): Renamed from allocated.
28194         (re_used): Renamed from used.
28195         (re_syntax): Renamed from syntax.
28196         (re_fastmap): Renamed from fastmap.
28197         (re_translate): Renamed from translate.
28198         (re_can_be_null): Renamed from can_be_null.
28199         (re_regs_allocated): Renamed from regs_allocated.
28200         (re_fastmap_accurate): Renamed from fastmap_accurate.
28201         (re_no_sub): Renamed from no_sub.
28202         (re_not_bol): Renamed from not_bol.
28203         (re_not_eol): Renamed from not_eol.
28204         (re_newline_anchor): Renamed from newline_anchor.
28205
28206         Change the following member names in struct re_registers.
28207         The old names are still supported if !_REGEX_SOURCE.
28208         The new names are always supported, regardless of _REGEX_SOURCE.
28209         (rm_num_regs): Renamed from num_regs.
28210         (rm_start): Renamed from start.
28211         (rm_end): Renamed from end.
28212
28213         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
28214         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
28215         Prepend __ to parameter names.
28216
28217         Undo yesterday's changes.
28218
28219 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28220
28221         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
28222         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
28223         lib/regex.c.
28224
28225 2005-08-24  Jim Meyering  <jim@meyering.net>
28226
28227         Sync from coreutils.
28228         * m4/fcntl-safer.m4: New file.
28229
28230         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
28231         and object files for this module.
28232
28233 2005-08-24  Jim Meyering  <jim@meyering.net>
28234
28235         Sync from coreutils.
28236         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
28237
28238 2005-08-24  Jim Meyering  <jim@meyering.net>
28239
28240         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
28241         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
28242
28243 2005-08-24  Jim Meyering  <jim@meyering.net>
28244
28245         * modules/fcntl-safer: New module.
28246         * modules/fts (Depends-on): Add fcntl-safer.
28247         * MODULES.html.sh (File descriptor based Input/Output):
28248         Add fcntl-safer.
28249
28250 2005-08-24  Bruno Haible  <bruno@clisp.org>
28251
28252         Support for unit test modules.
28253         * modules/README: Mention tests modules.
28254         * modules/TEMPLATE-TESTS: New file.
28255         * gnulib-tool: New options --extract-tests-module, --with-tests and
28256         --tests-base (unused for the moment).
28257         (testsbase, inctests): New variables.
28258         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
28259         (func_verify_module): Exclude TEMPLATE-TESTS.
28260         (func_verify_nontests_module, func_verify_tests_module): New functions.
28261         (func_get_dependencies): Add implicit dependency for tests modules.
28262         (func_get_tests_module): New function.
28263         (func_modules_transitive_closure): When --with-tests was specified,
28264         include the unit tests as well, unless explicitly avoided.
28265         (func_emit_lib_Makefile_am): Ignore the tests modules here.
28266         (func_emit_tests_Makefile_am): New function.
28267         (func_create_testdir): When --with-tests was specified, emit a
28268         tests/ directory.
28269         * MODULES.html.sh (Future developments): Update.
28270
28271 2005-08-24  Bruno Haible  <bruno@clisp.org>
28272
28273         * modules/tls-tests: New file.
28274         * tests/test-tls.c: New file, from GNU gettext.
28275
28276 2005-08-24  Bruno Haible  <bruno@clisp.org>
28277
28278         * modules/lock-tests: New file.
28279         * tests/test-lock.c: New file, from GNU gettext.
28280
28281 2005-08-24  Bruno Haible  <bruno@clisp.org>
28282
28283         * lib/lock.h: Add multiple inclusion guard.
28284         * lib/tls.h: Add multiple inclusion guard.
28285
28286 2005-08-24  Bruno Haible  <bruno@clisp.org>
28287
28288         * gnulib-tool: Add support for the --aux-dir option to
28289         --create-testdir, --create-megatestdir, --test, --megatest.
28290         (func_create_testdir, func_create_megatestdir): Optionally emit a
28291         AC_CONFIG_AUX_DIR directive.
28292         (create-testdir, create-megatestdir, test, megatest): Provide a
28293         default value for $auxdir.
28294
28295 2005-08-24  Bruno Haible  <bruno@clisp.org>
28296
28297         * gnulib-tool (import): Use compound statement instead of subshell
28298         where possible.
28299
28300 2005-08-24  Bruno Haible  <bruno@clisp.org>
28301
28302         * gnulib-tool (import): Change --aux-dir default to "build-aux".
28303
28304 2005-08-24  Bruno Haible  <bruno@clisp.org>
28305
28306         * gnulib-tool (func_version): Update.
28307
28308 2005-08-24  Bruno Haible  <bruno@clisp.org>
28309
28310         * gnulib-tool (func_import, func_create_testdir,
28311         func_create_megatestdir): Quote all autoconf macro arguments.
28312
28313 2005-08-24  Bruno Haible  <bruno@clisp.org>
28314
28315         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
28316         option --force, because --force causes the aclocal.m4 of each
28317         subdirectory to be newer than the corresponding config.h.in.
28318
28319 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28320
28321         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
28322         All contents moved to gl_REGEX.
28323         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
28324         assume that it does.
28325
28326 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28327
28328         * lib/regex.h (REG_NOSYS)
28329         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
28330         Define, since POSIX requires it as of 2001.
28331         (_REG_ENOSYS)
28332         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
28333         New private symbol, used to keep the enum signed in all cases.
28334         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
28335         Youngman in
28336         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
28337
28338         * lib/regex_internal.c (re_string_skip_chars, register_state):
28339         (calc_state_hash):
28340         Remove forward decls; no longer needed now that we use prototypes.
28341         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
28342         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
28343         (clean_state_log_if_needed): Likewise.
28344
28345 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28346
28347         * config/srclist.txt: Add glibc bugs 1231-1233.
28348
28349 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
28350
28351         Fix problems reported by Sam Steingold in
28352         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
28353         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
28354         assumed that reg_errcode_t is a signed type, which is not
28355         necessarily true if _XOPEN_SOURCE is not defined.
28356         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
28357         since some compilers warn about it otherwise.
28358
28359 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
28360
28361         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
28362         (init_word_char, create_initial_state, duplicate_node_closure):
28363         (fetch_token, peek_token_bracket, build_range_exp):
28364         (build_collating_symbol): Remove forward decls; no longer needed
28365         now that we use prototypes.
28366
28367         * lib/regcomp.c:
28368         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
28369         (re_compile_fastmap_iter, regcomp, regerror, regfree):
28370         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
28371         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
28372         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
28373         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
28374         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
28375         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
28376         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
28377         (build_range_exp, build_collating_symbol, parse_bracket_exp):
28378         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
28379         (build_charclass, build_charclass_op, fetch_number, create_tree):
28380         (create_token_tree, mark_opt_subexp, duplicate_tree):
28381         Use prototypes rather than old-style definitions.
28382
28383         * lib/regex_internal.c:
28384         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
28385         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
28386         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
28387         (re_string_reconstruct, re_string_peek_byte_case):
28388         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
28389         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
28390         (re_node_set_init_copy, re_node_set_add_intersect):
28391         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28392         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28393         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
28394         (re_acquire_state, re_acquire_state_context, register_state):
28395         (create_ci_newstate, create_cd_newstate, free_state):
28396         Likewise.
28397         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
28398         re_search_2):
28399         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
28400         (re_search_internal, prune_impossible_nodes):
28401         (acquire_init_state_context, check_matching, static):
28402         (check_halt_node_context, check_halt_state_context, proceed_next_node):
28403         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
28404         (update_regs, sift_states_backward, build_sifted_states):
28405         (clean_state_log_if_needed, merge_state_array):
28406         (update_cur_sifted_state, add_epsilon_src_nodes):
28407         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
28408         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
28409         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
28410         (find_recover_state, check_subexp_matching_top, transit_state_mb):
28411         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
28412         (check_arrival, check_arrival_add_next_nodes):
28413         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
28414         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
28415         (check_node_accept_bytes, check_node_accept, extend_buffers):
28416         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
28417         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
28418         (sift_ctx_init):
28419         Likewise.
28420
28421         * lib/regex_internal.h:
28422         (re_string_allocate, re_string_construct, re_string_reconstruct):
28423         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
28424         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
28425         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
28426         (re_string_context_at, re_string_peek_byte_case):
28427         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
28428         is defined, since we now use prototypes always.
28429
28430         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
28431         C89 or better.  All uses removed.
28432
28433 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
28434
28435         * config/srclist.txt: Add glibc bugs 1220-1227.
28436
28437 2005-08-20  Jim Meyering  <jim@meyering.net>
28438
28439         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
28440         of unused local, dfa.
28441
28442 2005-08-20  Bruno Haible  <bruno@clisp.org>
28443
28444         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
28445
28446 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28447
28448         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
28449         (re_node_set_insert_last, re_dfa_add_node):
28450         Rename local variables to avoid GCC shadowing warnings.
28451
28452 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28453
28454         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
28455         [defined lint]: Suppress bogus uninitialized-variable warnings.
28456
28457         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
28458         and let the caller return REG_ESPACE if out of space.  This
28459         removes an uninitialied-variable warning with GCC 4.0.1, and also
28460         avoids taking the address of a local variable.  All callers
28461         changed.
28462
28463 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28464
28465         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
28466         $LIBCSRC/posix/regexec.c.
28467         Add glibc bug 1217 for regcomp.c.
28468
28469 2005-08-19  Jim Meyering  <jim@meyering.net>
28470
28471         * lib/regexec.c (proceed_next_node): Redo local variables to
28472         avoid GCC shadowing warnings.
28473
28474 2005-08-18  Bruno Haible  <bruno@clisp.org>
28475
28476         * lib/strstr.c (strstr): Fix return value in multibyte case.
28477         * lib/strcasestr.c (strcasestr): Likewise.
28478
28479 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28480
28481         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
28482
28483 2005-08-17  Jim Meyering  <jim@meyering.net>
28484
28485         Make the %s format (seconds since the epoch) work for a negative
28486         number and when used with a zero-padded field width, e.g. %015s.
28487
28488         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
28489         label so that it precedes the code to set `digits'.  Otherwise,
28490         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
28491         print `00-22'.  Now, it prints `-0022', as it should.
28492
28493 2005-08-17  Bruno Haible  <bruno@clisp.org>
28494
28495         * modules/strstr (Files): Add m4/mbrtowc.m4.
28496         (Depends-on): Add mbuiter.
28497
28498 2005-08-17  Bruno Haible  <bruno@clisp.org>
28499
28500         * modules/strcasestr: New file.
28501         * MODULES.html.sh (String handling, based on ANSI C 89): Add
28502         strcasestr.
28503
28504 2005-08-17  Bruno Haible  <bruno@clisp.org>
28505
28506         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
28507
28508 2005-08-17  Bruno Haible  <bruno@clisp.org>
28509
28510         * modules/mbuiter: New file.
28511         * MODULES.html.sh (Extended multibyte and wide character utilities):
28512         Add mbuiter.
28513
28514 2005-08-17  Bruno Haible  <bruno@clisp.org>
28515
28516         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
28517         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
28518
28519 2005-08-17  Bruno Haible  <bruno@clisp.org>
28520
28521         * m4/strcasestr.m4: New file.
28522
28523 2005-08-17  Bruno Haible  <bruno@clisp.org>
28524
28525         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
28526         * lib/strstr.c: Completely rewritten, with multibyte locale support.
28527
28528 2005-08-17  Bruno Haible  <bruno@clisp.org>
28529
28530         * lib/strcasestr.h: New file.
28531         * lib/strcasestr.c: New file.
28532
28533 2005-08-17  Bruno Haible  <bruno@clisp.org>
28534
28535         * lib/strcasecmp.c: Use mbuiter.h.
28536
28537 2005-08-17  Bruno Haible  <bruno@clisp.org>
28538
28539         * lib/mbuiter.h: New file.
28540
28541 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
28542
28543         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
28544         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
28545         and gl_GETOPT are both invoked via different paths (as happens
28546         with GNU tar CVS because it uses both argp and getopt), the former
28547         wins.
28548
28549 2005-08-16  Bruno Haible  <bruno@clisp.org>
28550
28551         * modules/tls: New file.
28552         * MODULES.html.sh (Multithreading): Add tls.
28553
28554 2005-08-16  Bruno Haible  <bruno@clisp.org>
28555
28556         * modules/strnlen1: New file.
28557         * MODULES.html.sh (String handling): Add strnlen1.
28558
28559 2005-08-16  Bruno Haible  <bruno@clisp.org>
28560
28561         * modules/strcase (Files): Add m4/mbrtowc.m4.
28562         (Depends-on): Add strnlen1, mbchar.
28563
28564 2005-08-16  Bruno Haible  <bruno@clisp.org>
28565
28566         * modules/mbiter: New file.
28567         * MODULES.html.sh (Extended multibyte and wide character utilities):
28568         Add mbiter.
28569
28570 2005-08-16  Bruno Haible  <bruno@clisp.org>
28571
28572         * modules/mbfile: New file.
28573         * MODULES.html.sh (Extended multibyte and wide character utilities):
28574         Add mbfile.
28575
28576 2005-08-16  Bruno Haible  <bruno@clisp.org>
28577
28578         * modules/mbchar: New file.
28579         * MODULES.html.sh (Extended multibyte and wide character utilities):
28580         New section.
28581
28582 2005-08-16  Bruno Haible  <bruno@clisp.org>
28583
28584         * m4/tls.m4: New file, from GNU gettext.
28585
28586 2005-08-16  Bruno Haible  <bruno@clisp.org>
28587
28588         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
28589         always.
28590         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
28591
28592 2005-08-16  Bruno Haible  <bruno@clisp.org>
28593
28594         * m4/mbiter.m4: New file.
28595
28596 2005-08-16  Bruno Haible  <bruno@clisp.org>
28597
28598         * m4/mbfile.m4: New file.
28599
28600 2005-08-16  Bruno Haible  <bruno@clisp.org>
28601
28602         * m4/mbchar.m4: New file.
28603
28604 2005-08-16  Bruno Haible  <bruno@clisp.org>
28605
28606         * lib/tls.h: New file, from GNU gettext.
28607         * lib/tls.c: New file, from GNU gettext.
28608
28609 2005-08-16  Bruno Haible  <bruno@clisp.org>
28610
28611         * lib/strnlen1.h: New file.
28612         * lib/strnlen1.c: New file.
28613
28614 2005-08-16  Bruno Haible  <bruno@clisp.org>
28615
28616         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
28617         (mbi_init): Update.
28618         (mbi_avail, mbi_advance): Let the iteration end before the terminating
28619         NUL byte, not after it.
28620
28621 2005-08-16  Bruno Haible  <bruno@clisp.org>
28622
28623         * lib/strcase.h (strcasecmp): Add note in comments.
28624         * lib/strncasecmp.c: Use code from strcasecmp.c.
28625         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
28626         (strcasecmp): Work correctly in multibyte locales.
28627
28628 2005-08-16  Bruno Haible  <bruno@clisp.org>
28629
28630         * lib/mbiter.h: New file.
28631
28632 2005-08-16  Bruno Haible  <bruno@clisp.org>
28633
28634         * lib/mbfile.h: New file.
28635
28636 2005-08-16  Bruno Haible  <bruno@clisp.org>
28637
28638         * lib/mbchar.h: New file.
28639         * lib/mbchar.c: New file.
28640
28641 2005-08-16  Bruno Haible  <bruno@clisp.org>
28642
28643         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
28644         the valid ones. Makes the comparison operations transitive:
28645         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
28646         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
28647
28648 2005-08-15  Simon Josefsson  <jas@extundo.com>
28649
28650         * modules/ssize_t (License): Change to 'unlimited'.
28651
28652         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
28653
28654 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28655
28656         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
28657         Add comments for each pending glibc patch.
28658
28659 2005-08-15  Bruno Haible  <bruno@clisp.org>
28660
28661         * lib/regex.h (__restrict_arr): Don't define to __restrict if
28662         __cplusplus is defined.
28663
28664 2005-08-14  Jim Meyering  <jim@meyering.net>
28665
28666         Sync from coreutils.
28667
28668         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
28669         Use the hash-table-based cycle-detection code not just when
28670         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
28671         Reported by James Youngman in
28672         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
28673         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
28674         FTS_TIGHT_CYCLE_CHECK.
28675         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
28676         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
28677         once again.
28678         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
28679         * lib/fts.c (fd_safer): Remove decl.
28680         Include fcntl--.h rather than unistd-safer.h
28681         (fts_safe_changedir): Don't call fd_safer; no longer needed
28682         now that we include fcntl--.h.
28683
28684 2005-08-12  Simon Josefsson  <jas@extundo.com>
28685
28686         * modules/getndelim2: Use ssize_t module.
28687         * modules/getnline: Likewise.
28688         * modules/safe-read: Likewise.
28689         * modules/xreadlink: Likewise.
28690
28691         * modules/ssize_t: New file.
28692
28693 2005-08-12  Simon Josefsson  <jas@extundo.com>
28694
28695         * m4/readline.m4: Look for termcap, curses or ncurses if required.
28696
28697 2005-08-12  Simon Josefsson  <jas@extundo.com>
28698
28699         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28700         ssize_t.
28701
28702 2005-08-12  Simon Josefsson  <jas@extundo.com>
28703
28704         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
28705         readline, getdelim and check_version.
28706         (Support for systems lacking ISO C 99: Sizes of integer types):
28707         Add size_max.
28708
28709 2005-08-12  Bruno Haible  <bruno@clisp.org>
28710
28711         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
28712
28713 2005-08-11  Simon Josefsson  <jas@extundo.com>
28714
28715         * modules/readline: New file.
28716
28717         * modules/strnlen (Files): Add strnlen.h.
28718
28719 2005-08-11  Simon Josefsson  <jas@extundo.com>
28720
28721         * m4/readline.m4: New file.
28722
28723 2005-08-11  Simon Josefsson  <jas@extundo.com>
28724
28725         * lib/readline.h, readline.c: New file.
28726
28727 2005-08-11  Simon Josefsson  <jas@extundo.com>
28728
28729         * doc/gnulib.texi (Initial import, Finishing touches): Mention
28730         gl_AVOID.
28731
28732 2005-08-11  Bruno Haible  <bruno@clisp.org>
28733
28734         * lib/strnlen.h (strnlen): Change parameter name to match comment.
28735
28736 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
28737
28738         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
28739
28740 2005-08-10  Simon Josefsson  <jas@extundo.com>
28741
28742         * tests/test-iconvme.c: New file.
28743
28744 2005-08-10  Simon Josefsson  <jas@extundo.com>
28745
28746         * m4/strnlen.m4: New file.
28747
28748         * m4/strndup.m4: Don't check for strnlen declaration, done in
28749         strnlen.m4.
28750
28751 2005-08-10  Simon Josefsson  <jas@extundo.com>
28752
28753         * lib/strndup.c: Use strnlen.h.
28754
28755         * lib/strnlen.h: New file.
28756
28757 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
28758
28759         * README: Typos.
28760
28761 2005-08-02  Simon Josefsson  <jas@extundo.com>
28762
28763         * modules/readline: New file.
28764
28765 2005-08-02  Simon Josefsson  <jas@extundo.com>
28766
28767         * modules/getdelim: New file.
28768
28769         * modules/getline: Rewrite, don't use getndelim2.
28770
28771 2005-08-02  Simon Josefsson  <jas@extundo.com>
28772
28773         * m4/getline.m4: Separate out getdelim stuff into separate module.
28774
28775         * m4/getdelim.m4: New file.
28776
28777 2005-08-02  Simon Josefsson  <jas@extundo.com>
28778
28779         * lib/getline.h, getline.c: Rewrite.
28780
28781         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
28782
28783 2005-07-31  Bruno Haible  <bruno@clisp.org>
28784
28785         * lib/lock.h (gl_lock_initializer): New macro.
28786         (gl_lock_define_initialized): Use it.
28787         (gl_rwlock_initializer): New macro.
28788         (gl_rwlock_define_initialized): Use it.
28789         (gl_recursive_lock_initializer): New macro.
28790         (gl_recursive_lock_define_initialized): Use it.
28791
28792 2005-07-30  Karl Berry  <karl@gnu.org>
28793
28794         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
28795         Report from Ben Pfaff, regarding getopt.
28796
28797 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
28798
28799         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
28800         normal way.
28801         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
28802         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
28803         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
28804         (gl_GETOPT): Use the new macros.  Most of the implementation
28805         is moved to the new macros.  This is for programs like Emacs
28806         that don't want all the functionality of gl_GETOPT.
28807
28808 2005-07-26  Bruno Haible  <bruno@clisp.org>
28809
28810         * m4/lock.m4: Update from GNU gettext.
28811
28812 2005-07-26  Bruno Haible  <bruno@clisp.org>
28813
28814         * lib/lock.h: Update from GNU gettext.
28815         * lib/lock.c: Update from GNU gettext.
28816
28817 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
28818
28819         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
28820         obsolescent AC_TRY_RUN.  Include the default includes files, for
28821         'exit'.
28822
28823 2005-07-24  Bruno Haible  <bruno@clisp.org>
28824
28825         * modules/visibility: New file.
28826         * MODULES.html.sh (Misc): Add visibility.
28827
28828 2005-07-24  Bruno Haible  <bruno@clisp.org>
28829
28830         * m4/visibility.m4: New file.
28831
28832 2005-07-24  Bruno Haible  <bruno@clisp.org>
28833
28834         * doc/visibility.texi: New file.
28835
28836 2005-07-22  Bruno Haible  <bruno@clisp.org>
28837
28838         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
28839         $(ALLOCA_H), redundant through BUILT_SOURCES.
28840         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
28841         redundant through BUILT_SOURCES.
28842         * modules/byteswap (Makefile.am): Remove explicit dependency on
28843         $(BYTESWAP_H), redundant through BUILT_SOURCES.
28844         * modules/fnmatch (Makefile.am): Remove explicit dependency on
28845         $(FNMATCH_H), redundant through BUILT_SOURCES.
28846         * modules/getopt (Makefile.am): Remove explicit dependency on
28847         $(GETOPT_H), redundant through BUILT_SOURCES.
28848         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
28849         redundant through BUILT_SOURCES.
28850         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
28851         redundant through BUILT_SOURCES.
28852         * modules/stdbool (Makefile.am): Remove explicit dependency on
28853         $(STDBOOL_H), redundant through BUILT_SOURCES.
28854         * modules/stdint (Makefile.am): Remove explicit dependency on
28855         $(STDINT_H), redundant through BUILT_SOURCES.
28856         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
28857         Remove explicit dependency on $(SYSEXITS_H).
28858         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
28859
28860 2005-07-18  Simon Josefsson  <jas@extundo.com>
28861
28862         * lib/check-version.c (check_version): Accept identical versions too.
28863
28864 2005-07-18  Bruno Haible  <bruno@clisp.org>
28865
28866         * modules/lock: New file.
28867         * MODULES.html.sh (Multithreading): New section.
28868
28869 2005-07-18  Bruno Haible  <bruno@clisp.org>
28870
28871         * m4/lock.m4: New file, from GNU gettext.
28872
28873 2005-07-18  Bruno Haible  <bruno@clisp.org>
28874
28875         * lib/lock.h: New file, from GNU gettext.
28876         * lib/lock.c: New file, from GNU gettext.
28877
28878 2005-07-18  Bruno Haible  <bruno@clisp.org>
28879
28880         * lib/lock.h (gl_once_t): New type.
28881         (gl_once_define, gl_once): New macros.
28882         * lib/lock.c (fresh_once): New variable.
28883         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
28884         functions.
28885
28886 2005-07-16  Simon Josefsson  <jas@extundo.com>
28887
28888         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
28889         workaround, suggested by Bruno.
28890
28891 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
28892
28893         * modules/xalloc (Depends-on): Add xalloc-die.
28894         * modules/xvasprintf (Depends-on): Add xalloc-die.
28895
28896 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
28897
28898         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
28899         with a minor change.
28900
28901 2005-07-15  Bruno Haible  <bruno@clisp.org>
28902
28903         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
28904         When using lib/poll.c, define poll as rpl_poll.
28905
28906 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
28907
28908         * modules/argp (Depends-on): Remove unlocked-io.
28909
28910 2005-07-14  Derek Price  <derek@ximbiot.com>
28911
28912         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
28913         for glob symlink bug.
28914
28915 2005-07-14  Bruno Haible  <bruno@clisp.org>
28916
28917         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
28918         Instead, test for *_unlocked function declarations directly.
28919
28920 2005-07-11  Simon Josefsson  <jas@extundo.com>
28921
28922         * modules/size_max: New file.
28923
28924         * modules/xsize: Depend on size_max module for size_max.m4.
28925
28926 2005-07-11  Simon Josefsson  <jas@extundo.com>
28927
28928         * lib/size_max.h: New file.
28929
28930 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
28931
28932         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
28933         copyright symbol and the year.
28934         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
28935         (version_etc_va): Use parameterized copyright notice.
28936         Reword to conform to the current GNU coding standards.
28937
28938 2005-07-11  Karl Berry  <karl@gnu.org>
28939
28940         * doc/gnulib.texi (Quoting): new node.
28941         (Initial import): more info, from Patrice.
28942
28943 2005-07-11  Bruno Haible  <bruno@clisp.org>
28944
28945         * gnulib-tool (func_usage): Document option --avoid.
28946         (Command line options): Handle --avoid.
28947         (func_acceptable): New function.
28948         (func_modules_transitive_closure): Use it.
28949
28950 2005-07-11  Bruno Haible  <bruno@clisp.org>
28951
28952         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
28953         Reported by Jim Meyering.
28954
28955 2005-07-10  Bruno Haible  <bruno@clisp.org>
28956
28957         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
28958         Needed when size_t is smaller than 'unsigned int'.
28959         Reported by Paul Eggert.
28960
28961 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
28962
28963         * modules/argp (Depends-on): Add unlocked-io
28964
28965 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
28966
28967         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
28968         block of defines.
28969
28970 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28971
28972         * config/srclist.txt: Comment out regcomp.c, since we have a porting
28973         fix now.
28974
28975 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
28976         and Paul Eggert  <eggert@cs.ucla.edu>
28977
28978         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
28979         in wint_t, not wchar_t.  Remove now-unnecessary cast.
28980
28981 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
28982
28983         * modules/regex (Files): Add lib/regex_internal.c,
28984         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
28985         (Depends-on): Add extensions.
28986         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
28987
28988 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
28989
28990         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
28991         pathconf.
28992         * m4/same.m4 (gl_SAME): Likewise.
28993         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
28994
28995         * m4/regex.m4: Adjust to new libc regex implementation.
28996         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
28997         all the .c and .h parts of (the new) regex.
28998         Quote the m4 stuff better.
28999         Check for RE_ICASE bug of old gnulib.
29000         Check for REG_STARTEND of recent libc.
29001         Rename local variables from jm_* to gl_*.
29002         Quote operand of "test -f".
29003         Say "recent enough" version of libc, not "version 2".
29004         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
29005         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
29006         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
29007         Remove check for btowc, isascii.
29008         Require AM_LANGINFO_CODESET.
29009
29010 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29011
29012         * lib/regex.c, regex.h: Sync from libc.
29013         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
29014         * lib/regexec.c:
29015         New files, synced from libc, except that regex_internal.h
29016         currently has a small porting fix.
29017
29018 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29019
29020         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
29021         regex_internal.c, regexec.c.
29022         Add regex_internal.h too, but as a comment, since the libc version
29023         is currently broken in gnulib mode.
29024
29025 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29026
29027         Support programs like Emacs that use gnulib but not gettext.
29028         * MODULES.html.sh (Internationalization functions): Add gettext-h.
29029         * modules/gettext-h: New file.
29030         * modules/gettext (Files): Remove lib/gettext.h.
29031         (Depends-on): Add gettext-h.
29032         (Makefile.am): Remove lib_SOURCES.
29033         * modules/argmatch, modules/c-stack, modules/closeout:
29034         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
29035         * modules/execute, modules/file-type, modules/getaddrinfo:
29036         * modules/getopt, modules/human, modules/javacomp:
29037         * modules/javaexec, modules/mkdir-p, modules/obstack:
29038         * modules/openat, modules/pagealign_alloc, modules/pipe:
29039         * modules/quotearg, modules/regex, modules/rpmatch:
29040         * modules/unicodeio, modules/userspec, modules/version-etc:
29041         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
29042         * modules/xsetenv:
29043         Depend on gettext-h, not gettext.
29044
29045 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29046
29047         * gnulib-tool (func_import): Add support for 'public domain' license.
29048         * modules/alloca, modules/atexit, modules/memmove:
29049         Now public domain, not GPL.
29050         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
29051         * modules/realloc, modules/strerror, modules/strtod:
29052         Now LGPL, not GPL.
29053
29054 2005-07-05  Bruno Haible  <bruno@clisp.org>
29055
29056         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
29057         autoconf CVS. Needed for mingw.
29058
29059 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29060
29061         Remove the dependency of the strftime module on the tzset module.
29062         * modules/strftime (Depends-on): Remove dependency on tzset.
29063
29064 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29065
29066         Remove the dependency of the strftime module on the tzset module.
29067         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
29068         gl_FUNC_TZSET_CLOBBER.
29069
29070 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29071
29072         Remove the dependency of the strftime module on the tzset module.
29073         * lib/strftime.c (my_strftime)
29074         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
29075         Copy the input structure, to work around some of the bug with
29076         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
29077         Solaris releases, you should also use the tzset module, but we won't
29078         require it as a dependency any more since we don't want LGPLed code
29079         to depend on GPLed code.
29080
29081 2005-07-02  Jim Meyering  <jim@meyering.net>
29082
29083         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
29084         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
29085         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
29086         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
29087
29088 2005-07-02  Jim Meyering  <jim@meyering.net>
29089
29090         * lib/backupfile.c (backup_args): Change a `0' to NULL.
29091
29092 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
29093
29094         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
29095         declares only 'struct timespec;' (!).
29096
29097 2005-07-01  Jim Meyering  <jim@meyering.net>
29098
29099         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
29100         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
29101         * lib/save-cwd.c, tempname.c:
29102         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
29103         and don't include <sys/file.h>).
29104
29105 2005-06-29  Jim Meyering  <jim@meyering.net>
29106
29107         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
29108         type name.  Use the variable name instead.
29109         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
29110         Likewise.
29111
29112 2005-06-28  Simon Josefsson  <jas@extundo.com>
29113
29114         * modules/check-version (Files): Add check-version.m4.
29115
29116 2005-06-28  Simon Josefsson  <jas@extundo.com>
29117
29118         * m4/check-version.m4: New file, suggested by Jim Meyering
29119         <jim@meyering.net>.
29120
29121 2005-06-28  Simon Josefsson  <jas@extundo.com>
29122
29123         * lib/check-version.h, lib/check-version.c: New files.
29124
29125 2005-06-28  Simon Josefsson  <jas@extundo.com>
29126
29127         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
29128         collision with global variable.  Better indentation.  Don't
29129         increment buffer pointer beyond buffer end.  Based on comments
29130         from Paul Eggert <eggert@cs.ucla.edu>.
29131
29132         * lib/base64.h: Indent.
29133
29134 2005-06-28  Simon Josefsson  <jas@extundo.com>
29135
29136         * doc/gnulib.texi (Library version handling): New section.
29137
29138 2005-06-28  Jim Meyering  <jim@meyering.net>
29139
29140         * check-module (find_included_lib_files): Hard-code another
29141         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
29142         but modules/fts-lgpl (correctly) does not list those files.
29143
29144         * modules/canonicalize (Files): Add lib/pathmax.h.
29145
29146 2005-06-25  Simon Josefsson  <jas@extundo.com>
29147
29148         * modules/check-version: New file.
29149
29150 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
29151
29152         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
29153         initializer of struct addrinfo, as an indication that we don't
29154         care how many members the structure has.
29155
29156 2005-06-24  Derek Price  <derek@ximbiot.com>
29157         and Bruno Haible  <bruno@clisp.org>
29158
29159         Remove stat module & update lstat.
29160         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
29161         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29162         * m4/stat.m4: Remove this file.
29163
29164 2005-06-24  Derek Price  <derek@ximbiot.com>
29165         and Bruno Haible  <bruno@clisp.org>
29166
29167         Remove stat module & update lstat.
29168         * lib/stat.c: Remove this file...
29169         (slash_aware_lstat): ...moving this content and its support...
29170         * lib/lstat.c (rpl_lstat): ...into here.
29171         * lib/lstat.h: New file.
29172
29173 2005-06-24  Derek Price  <derek@ximbiot.com>
29174         and Bruno Haible  <bruno@clisp.org>
29175
29176         Remove stat module & update lstat.
29177         * config/srclist.txt (libc sources): Remove stat.
29178
29179 2005-06-24  Derek Price  <derek@ximbiot.com>
29180         and Bruno Haible  <bruno@clisp.org>
29181
29182         Remove stat module & update lstat.
29183         * MODULES.html.sh (stat): Remove.
29184         * MODULES.html: Regenerated.
29185         * modules/lstat (Description): Correct function name.
29186         (Files): Add "lstat.h".
29187         (Depends-on): Remove stat, add xalloc, stat-macros.
29188         * modules/stat: Remove this file.
29189         (Include): Add "lstat.h", remove <sys/stat.h>.
29190
29191 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29192
29193         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
29194         (ranged_convert): Don't save conversion in a temporary struct.
29195         This causes a warning with GCC 4.0.0, and anyway in the typical
29196         case it's not worth the extra 100 bytes or so of code.
29197         (ranged_convert, __mktime_internal): When calling a function via a
29198         pointer P, use P () rather than (*P) (), as we now assume C89 or
29199         better.
29200
29201 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29202
29203         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
29204         "who -r" failed to give output.  Problem reported by Tim Waugh.
29205
29206         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
29207         (xcalloc): Use it to avoid needless tests.
29208         Problem reported by Jim Meyering.
29209
29210 2005-06-20  Derek Price  <derek@ximbiot.com>
29211
29212         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
29213         unnecessary for Autoconfs > 2.59c.
29214
29215 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29216
29217         * lib/argp.h (__option_is_short): Check upper limit of
29218         __key. Isprint() requires its argument to have the value
29219         of an unsigned char or EOF.
29220
29221 2005-06-16  Jim Meyering  <jim@meyering.net>
29222
29223         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
29224         when either N or S is zero.
29225
29226 2005-06-16  Derek Price  <derek@ximbiot.com>
29227
29228         * m4/bison.m4: Declare YACC & YFLAGS precious.
29229
29230 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
29231
29232         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
29233         multibyte string or pattern, fall back on unibyte matching.
29234         Problem reported by James Youngman.
29235
29236 2005-06-08  Bruno Haible  <bruno@clisp.org>
29237
29238         * modules/csharpcomp: New file.
29239         * MODULES.html.sh (C#): Add csharpcomp.
29240
29241 2005-06-08  Bruno Haible  <bruno@clisp.org>
29242
29243         * m4/csharpcomp.m4: New file, from GNU gettext.
29244
29245 2005-06-08  Bruno Haible  <bruno@clisp.org>
29246
29247         * lib/csharpcomp.h: New file, from GNU gettext.
29248         * lib/csharpcomp.c: New file, from GNU gettext.
29249         * lib/csharpcomp.sh.in: New file, from GNU gettext.
29250
29251 2005-06-08  Bruno Haible  <bruno@clisp.org>
29252
29253         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
29254         warning on mingw.
29255
29256 2005-06-07  Derek Price  <derek@ximbiot.com>
29257
29258         Sync from CVS.
29259         * lib/glob_.h: Indent nested #ifdef.
29260
29261 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
29262
29263         Sync from coreutils.
29264         Use "file name" when talking about file names, instead of "filename"
29265         or "path", as per the GNU coding standards.
29266         * lib/mkdir-p.c: Renamed from makepath.c.
29267         (make_dir_parents): Renamed from make_path.  All callers changed.
29268         * lib/mkdir-p.h: Likewise.  All includers changed.
29269         * lib/filenamecat.c: Renamed from path-concat.c.
29270         (file_name_concat): Renamed from path_concat.  All callers changed.
29271         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
29272         * lib/filenamecat.h: Likewise.  All includers changed.
29273         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
29274         in comments or local variable names.
29275         * lib/basename.c: Likewise.
29276         * lib/canonicalize.c, canonicalize.h: Likewise.
29277         * lib/dirname.c, dirname.h: Likewise.
29278         * lib/euidaccess.c: Likewise.
29279         * lib/exclude.c: Likewise
29280         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
29281         * lib/fsusage.c, fsuage.h: Likewise.
29282         * lib/fts.c, fts_.h: Likewise.
29283         * lib/getcwd.c: Likewise.
29284         * lib/getloadavg.c: Likewise.
29285         * lib/mkstemp.c: Likewise.
29286         * lib/mountlist.c, mountlist.h: Likewise.
29287         * lib/openat.c, openat.h: Likewise.
29288         * lib/readlink-stub.c: Likewise.
29289         * lib/readutmp.c, readutmp.h: Likewise.
29290         * lib/rename.c: Likewise.
29291         * lib/rmdir.c: Likewise.
29292         * lib/same.c: Likewise.
29293         * lib/savedir.c: Likewise.
29294         * lib/stripslash.c: Likewise.
29295         * lib/tempname.c: Likewise.
29296         * lib/xreadlink.c: Likewise.
29297         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
29298         All uses changed.
29299         * lib/exclude.h: Likewise.
29300
29301         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
29302         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
29303         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
29304         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
29305         * lib/pathmax.h: Include <limits.h> unconditionally, since other
29306         files have been getting away with it for years (MORE/BSD 4.3
29307         is extinct now).
29308         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
29309         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
29310
29311         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
29312         Define to 256, not 255, as per modern POSIX.
29313
29314 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
29315
29316         Sync from coreutils.
29317         Use "file name" when talking about file names, instead of "filename"
29318         or "path", as per the GNU coding standards.
29319         * MODULES.html.sh: mkdir-p renamed from makepath.
29320         filenamecat renamed from path-concat.
29321         * modules/filenamecat: Renamed from modules/path-concat.
29322         (Files): filenamecat.h and filenamecat.c renamed from
29323         path-concat.h and path-concat.c.
29324         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
29325         (Include): filenamecat.h, not path-concat.h.
29326         * modules/mkdir-p: Renamed from modules/makepath.
29327         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
29328         makepath.c.
29329         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
29330         (Include): mkdir-p.h, not makepath.h.
29331
29332 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
29333
29334         Sync from coreutils.
29335         * m4/mkdir-p.m4: Renamed from makepath.m4.
29336         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
29337         Rename files from makepath.c to mkdir-p.c, and from
29338         makepath.h to mkdir-p.h.
29339         * m4/filenamecat.m4: Renamed from path-concat.m4.
29340         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
29341         Rename files from path-concat.c to filenamecat.c,
29342         and from path-concat.h to filenamecat.h.
29343         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
29344         "file name" in local variables or comments.
29345         * m4/rename.m4: Likewise.
29346
29347 2005-06-01  Bruno Haible  <bruno@clisp.org>
29348
29349         * modules/csharpexec: New file.
29350         * MODULES.html.sh (C#): New section.
29351
29352 2005-06-01  Bruno Haible  <bruno@clisp.org>
29353
29354         * m4/csharp.m4: New file, from GNU gettext.
29355         * m4/csharpexec.m4: New file, from GNU gettext.
29356
29357 2005-06-01  Bruno Haible  <bruno@clisp.org>
29358
29359         * lib/csharpexec.h: New file, from GNU gettext.
29360         * lib/csharpexec.c: New file, from GNU gettext.
29361         * lib/csharpexec.sh.in: New file, from GNU gettext.
29362
29363 2005-05-31  Derek Price  <derek@ximbiot.com>
29364             Paul Eggert  <eggert@cs.ucla.edu>
29365
29366         Sync from cvs.
29367         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
29368
29369 2005-05-31  Derek Price  <derek@ximbiot.com>
29370             Paul Eggert  <eggert@cs.ucla.edu>
29371
29372         Sync from cvs.
29373         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
29374
29375 2005-05-29  Derek Price  <derek@ximbiot.com>
29376
29377         * config/srclist.txt (glob_.h, glob.c): Add these files.
29378
29379 2005-05-29  Derek Price  <derek@ximbiot.com>
29380
29381         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
29382         * modules/glob: New file.
29383         * modules/getlogin_r: Add link to POSIX spec in description.
29384
29385 2005-05-29  Derek Price  <derek@ximbiot.com>
29386             Paul Eggert  <eggert@cs.ucla.edu>
29387
29388         * m4/glob.m4: New file.
29389
29390 2005-05-29  Derek Price  <derek@ximbiot.com>
29391             Paul Eggert  <eggert@cs.ucla.edu>
29392
29393         * lib/glob_.h, lib/glob.c: New files.
29394
29395 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29396
29397         * modules/fts (Files): Remove m4/inttypes-pri.m4.
29398         * modules/fts-lgpl (Depends-on): Remove gettext.
29399
29400 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29401
29402         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
29403         and don't require gt_INTTYPES_PRI.
29404
29405 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29406
29407         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
29408
29409         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
29410         the configuration hassle isn't worth it.
29411         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
29412         (LONGEST_MODIFIER, PRIuMAX): Remove.
29413
29414 2005-05-27  Bruno Haible  <bruno@clisp.org>
29415
29416         * lib/getlogin_r.h: Remove second include of <stddef.h>.
29417
29418 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
29419
29420         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
29421         _POSIX_PTHREAD_SEMANTICS for Solaris.
29422
29423 2005-05-25  Derek Price  <derek@ximbiot.com>
29424
29425         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
29426
29427 2005-05-25  Derek Price  <derek@ximbiot.com>
29428             Paul Eggert  <eggert@cs.ucla.edu>
29429
29430         * modules/getlogin_r, m4/getlogin_r.m4: New files.
29431         * lib/getlogin_r.c, getlogin_r.h: New files.
29432
29433 2005-05-25  Bruno Haible  <bruno@clisp.org>
29434             Derek Price  <derek@ximbiot.com>
29435
29436         * lib/getlogin_r.h: Simplify API documentation.
29437
29438 2005-05-23  Derek Price  <derek@ximbiot.com>
29439
29440         * modules/minmax (Files): Add m4/minmax.m4.
29441         (configure.ac): Add gl_MINMAX.
29442
29443 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
29444
29445         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
29446         so that unistd-safer.h (GPL'ed code) need not be included.
29447
29448 2005-05-22  Bruno Haible  <bruno@clisp.org>
29449
29450         * m4/minmax.m4: New file.
29451         Based on a patch by Derek Price <derek@ximbiot.com>.
29452
29453 2005-05-22  Bruno Haible  <bruno@clisp.org>
29454
29455         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
29456         (INT64_MIN): Fix definition.
29457         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
29458
29459         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
29460         NEED_SIGNED_INT_TYPES.
29461
29462         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
29463         HAVE_SYSTEM_INTTYPES.
29464
29465 2005-05-22  Bruno Haible  <bruno@clisp.org>
29466
29467         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
29468         Also include <sys/param.h> if it defines MIN, MAX.
29469         Based on a patch by Derek Price <derek@ximbiot.com>.
29470
29471 2005-05-21  Jim Meyering  <jim@meyering.net>
29472
29473         * modules/fts (Files): Add m4/inttypes-pri.m4.
29474         (Depends-on): Add lstat and remove gettext.  Alphabetize.
29475
29476 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29477
29478         New fts module.
29479         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
29480         (setup_dir, free_dir): New functions.
29481         (enter_dir, leave_dir): Define trivial
29482         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
29483         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
29484         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
29485         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
29486         Move to fts-cycle.c.
29487         (fts_open): Use setup_dir.
29488         (fts_close): Use free_dir.
29489         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
29490         This adds a label and some gotos, but the alternatives were messier.
29491         Check for memory allocation failure when entering a dir.
29492         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
29493         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
29494         (FTS): New member fts_cycle, that is a union that contains the
29495         old active_dir_ht and cycle_state.  All uses changed to mention
29496         fts_cycle.ht and fts_cycle.state.
29497         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
29498         fts.c, with the following changes:
29499         (setup_dir, free_dir): New functions.
29500         (enter_dir): Now returns bool.  Return true if successful, false
29501         if memory exhausted.  All callers changed.
29502         Do not bother partly cleaning up on
29503         memory allocation failure; that is free_dir's job.
29504         However, free ad if hash_insert fails, to avoid memory leak.
29505         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
29506         fts->fts_options to see which union member to use.
29507
29508 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29509
29510         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
29511         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
29512
29513 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29514
29515         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
29516
29517 2005-05-20  Jim Meyering  <jim@meyering.net>
29518
29519         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
29520         Now a macro, to pacify GCC.
29521
29522 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
29523
29524         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
29525         of -1.
29526
29527 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
29528
29529         * lib/chown.c (rpl_chown): Return -1 on failure.
29530
29531 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
29532
29533         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
29534         Don't check for stddef.h.
29535         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
29536         don't use its results.
29537         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
29538         since we include them unconditionally.  Don't require
29539         AM_STDBOOL_H, since stdbool is a prerequisite.
29540         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
29541         since we assume C89 or better.
29542         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
29543         as we don't use their results.
29544         Don't check for fchdir, memmove, memset, strrchr, as we use
29545         them unconditionally.
29546         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
29547         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
29548
29549 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
29550
29551         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
29552         Include <stddef.h> unconditionally, since we assume C89 now.
29553         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
29554         * lib/fts.c: Include fts_.h first, to check interface.
29555         Do not include intprops.h; no longer needed.
29556         Include cycle-check.h and hash.h, since fts_.h no longer does.
29557         Remove unnecessary casts of closedir to void.
29558         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
29559         decide whether to decrement nlinks.
29560         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
29561         (FTS): Use struct hash_table * instead of Hash_table, so that
29562         we no longer need to include hash.h here.
29563
29564 2005-05-18  Jim Meyering  <jim@meyering.net>
29565
29566         * modules/dirfd (License): Change to LGPL.  Most of the code
29567         is already in the public domain.
29568
29569 2005-05-18  Jim Meyering  <jim@meyering.net>
29570
29571         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
29572         Reported by Yoann Vandoorselaere.
29573
29574 2005-05-17  Jim Meyering  <jim@meyering.net>
29575
29576         * m4/fts.m4: New file, from coreutils.
29577
29578 2005-05-17  Jim Meyering  <jim@meyering.net>
29579
29580         * lib/fts.c, lib/fts_.h: New files, from coreutils.
29581
29582 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
29583
29584         Sync from coreutils.
29585         * m4/unlinkdir.m4: New file.
29586
29587 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
29588
29589         Sync from coreutils.
29590         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
29591         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
29592         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
29593         White space changes only.
29594         * lib/makepath.c (make_path): Port to hosts where leading "//" is
29595         special.
29596         * lib/yesno.c: Include getline.h, not ctype.h.
29597         (yesno): Don't remove leading white space; POSIX doesn't allow it.
29598         Use getline to remove arbitrary restriction on response length.
29599
29600 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
29601
29602         * config/srclist-update: Spell out "Street" in FSF postal
29603         mail address; this is the style the FSF seems to prefer.
29604
29605         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
29606         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
29607         this updates FSF postal mail address.
29608
29609         Sync from coreutils.
29610         * modules/unlinkdir: New file.
29611         * modules/yesno (Depends-on): Add getline.
29612         * MODULES.html.sh (File system functions): Add unlinkdir.
29613
29614 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
29615
29616         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
29617         lib/strsep.h:
29618         Change the initial comment to refer to GPL, not LGPL.
29619         gnulib-tool will change it to LGPL as needed.
29620
29621         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
29622         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
29623         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
29624         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
29625         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
29626         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
29627         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
29628         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
29629         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
29630         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
29631         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
29632         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
29633         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
29634         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
29635         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
29636         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
29637         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
29638         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
29639         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
29640         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
29641         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
29642         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
29643         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
29644         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
29645         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
29646         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
29647         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
29648         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
29649         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
29650         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
29651         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
29652         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
29653         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
29654         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
29655         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
29656         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
29657         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
29658         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
29659         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
29660         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
29661         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
29662         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
29663         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
29664         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
29665         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
29666         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
29667         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
29668         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
29669         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
29670         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
29671         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
29672         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
29673         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
29674         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
29675         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
29676         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
29677         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
29678         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
29679         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
29680         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
29681         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
29682         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
29683         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
29684         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
29685         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
29686         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
29687         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
29688         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
29689         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
29690         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
29691         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
29692         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
29693         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
29694         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
29695         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
29696         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
29697         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
29698         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
29699         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
29700         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
29701         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
29702         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
29703         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
29704         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
29705         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
29706         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
29707         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
29708         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
29709         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
29710         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
29711         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
29712         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
29713         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
29714         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
29715         lib/yesno.c, lib/yesno.h:
29716         Update FSF postal mail address.
29717
29718 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
29719
29720         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
29721         tests/test-memmem.c, tests/test-stpncpy.c:
29722         Update FSF postal mail address.
29723
29724 2005-05-13  Bruno Haible  <bruno@clisp.org>
29725
29726         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
29727         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
29728         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
29729         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
29730         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
29731         Add support for 64-bit integers in the MSVC compiler.
29732
29733 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29734
29735         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
29736
29737 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
29738
29739         * gnulib-tool (func_import): Sort and uniquify recommended includes.
29740
29741 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
29742
29743         * doc/getdate.texi (General date syntax): Don't say that date
29744         date --iso-8601=ns generates acceptable dates; it doesn't yet.
29745         Problem reported by Nic Ferrier.
29746
29747 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29748
29749         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
29750         specified in ai_socktype. Fix invalid ai_protocol
29751         check. ai_protocol is usually set to 0 or depending on
29752         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
29753         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
29754         ai_socktype / ai_protocol in the returned addrinfo structure.
29755
29756 2005-05-10  Simon Josefsson  <jas@extundo.com>
29757
29758         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
29759         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29760
29761 2005-05-10  Karl Berry  <karl@gnu.org>
29762
29763         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
29764         (from http://www.gnu.org/licenses).
29765         * doc/COPYING.LIB: also rename to COPYING.LESSER.
29766         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
29767         fdl.texi suffices.
29768
29769 2005-05-10  Karl Berry  <karl@gnu.org>
29770
29771         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
29772         (COPYING.DOC): remove.
29773
29774         * config/srclist-update: new FSF address.
29775
29776 2005-05-10  Derek Price  <derek@ximbiot.com>
29777
29778         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
29779         possible.
29780
29781 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29782             Bruno Haible  <bruno@clisp.org>
29783
29784         * modules/inet_ntop: New file.
29785         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29786         inet_ntop.
29787
29788 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29789             Bruno Haible  <bruno@clisp.org>
29790
29791         * m4/inet_ntop.m4: New file.
29792
29793 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29794             Bruno Haible  <bruno@clisp.org>
29795
29796         * lib/inet_ntop.h: New file.
29797         * lib/inet_ntop.c: New file, from glibc with modifications.
29798
29799 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
29800
29801         * modules/time_r (License): Change to LGPL.
29802         * modules/extensions (License): Change to LGPL.  Actually,
29803         the license is more permissive than that, but currently gnulib-tool
29804         doesn't know how to handle more-permissive licenses.
29805
29806         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
29807         Problem reported by Dave Love.
29808
29809 2005-05-08  Jim Meyering  <jim@meyering.net>
29810
29811         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
29812         blank.
29813
29814 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
29815
29816         * modules/argmatch (Depends-on): Add stdbool.
29817         * modules/backupfile (Depends-on): Likewise.
29818         * modules/chdir-long (Depends-on): Likewise.
29819         * modules/closeout (Depends-on): Likewise.
29820         * modules/cycle-check (Depends-on): Likewise.
29821         * modules/dirname (Depends-on): Likewise.
29822         * modules/fnmatch (Depends-on): Likewise.
29823         * modules/fsusage (Depends-on): Likewise.
29824         * modules/fwriteerror (Depends-on): Likewise.
29825         * modules/getcwd (Depends-on): Likewise.
29826         * modules/getloadavg (Depends-on): Likewise.
29827         * modules/hard-locale (Depends-on): Likewise.
29828         * modules/makepath (Depends-on): Likewise.
29829         * modules/mountlist (Depends-on): Likewise.
29830         * modules/nanosleep (Depends-on): Likewise.
29831         * modules/posixtm (Depends-on): Likewise.
29832         * modules/quotearg (Depends-on): Likewise.
29833         * modules/readtokens (Depends-on): Likewise.
29834         * modules/readtokens0 (Depends-on): Likewise.
29835         * modules/readutmp (Depends-on): Likewise.
29836         * modules/save-cwd (Depends-on): Likewise.
29837         * modules/strftime (Depends-on): Likewise.
29838         * modules/userspec (Depends-on): Likewise.
29839         * modules/utimecmp (Depends-on): Likewise.
29840         * modules/xgetcwd (Depends-on): Likewise.
29841         * modules/xnanosleep (Depends-on): Likewise.
29842         * modules/xstrtod (Depends-on): Likewise.
29843         * modules/yesno (Depends-on): Likewise.
29844
29845 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29846
29847         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
29848         needless checks.
29849
29850 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
29851
29852         Merge from coreutils.  Among other things,
29853         add bulletproofing for cases where stdin, stdout, or stderr are closed.
29854         * lib/fd-safer.c: New file.
29855         * lib/fcntl-safer.h, open-safer.c: Remove.
29856         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
29857         * lib/dup-safer.c: Include unistd-safer.h first.
29858         Don't include errno.h.
29859         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
29860         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
29861         * lib/file-type.c: Rely on file-type.h change.
29862         * lib/getloadavg.c: Include unistd-safer.h.
29863         (getloadavg): Use safer open.
29864         * lib/getusershell.c: Include "stdio-safer.h".
29865         (getusershell): Use safer fopen.
29866         * lib/long-options.c (long_options): Use NULL rather than 0.
29867         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
29868         'free'.
29869         * lib/modechange.c: Likewise.
29870         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
29871         (MODE_DONE): New constant.
29872         (struct mode_change): Remove 'next' member.
29873         (make_node_op_equals): New function; like the old one of the
29874         same name, except it allocates an array.
29875         (mode_compile, mode_create_from_ref): Use it.
29876         (mode_compile): Allocate result as an array, not a linked list.
29877         Parse octal string ourself, so that we catch mistakes like "+0".
29878         (mode_adjust): Arg is an array, not a linked list.
29879         * lib/modechange.c: Include stat-macros.h, xalloc.h.
29880         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
29881         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
29882         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
29883         Remove.  This is now stat-macros.h's job.
29884         (talloc): Remove.  All callers replaced by xalloc, so that
29885         our invokers don't have to worry about reporting memory failures.
29886         (make_node_op_equals): Remove.
29887         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
29888         New constants.
29889         (struct mode_change): Moved here from modechange.h.
29890         (mode_append_entry): Remove.
29891         (mode_compile): Remove MASKED_OPS arg, since it encouraged
29892         apps to have incorrect behavior.  Use simpler algorithm for head
29893         and tail.  Don't futz with umask; that's now the job of mode_adjust.
29894         Detect more invalid usages rather than having somewhat-random behavior.
29895         Don't insert an "a=" action, as that leads to incorrect behavior.
29896         (mode_compile, mode_create_from_ref): Return NULL on error instead
29897         of an enum, since now there's only one way to have an error.  All
29898         callers changed.
29899         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
29900         at the correct time.  Simplify calculation of "+u" and its ilk.
29901         Don't mishandle "+X".
29902         (mode_free): Remove "register" and localize decls.
29903         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
29904         (struct mode_change): Move to modechange.c; callers don't
29905         need to see this stuff.
29906         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
29907         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
29908         (mode_change, mode_adjust): Reflect the new signatures noted above.
29909         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
29910         that might redefine system include files.
29911         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
29912         (my_usleep): Use NULL rather than (void *) 0.
29913         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
29914         Use siginterrupt to specify that system calls should be interrupted.
29915         (rpl_nanosleep): Move initialization of suspended closer to call of
29916         my_usleep.
29917         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
29918         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
29919         (desirable_utmp_entry): New function.
29920         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
29921         using x2nrealloc, to simplify logic.
29922         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
29923         size calculation.  Do not assume utmp file is a regular file.
29924         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
29925         (READ_UTMP_CHECK_PIDS): New constant.
29926         * lib/save-cwd.c: Include unistd-safer.h.
29927         (save_cwd): Use fd_safer.
29928         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
29929         [!_LIBC] Include "stat-macros.h" instead.
29930         * lib/unistd-safer.h (fd_safer): New decl.
29931
29932 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
29933
29934         * modules/getloadavg (Depends-on): Add unistd-safer.
29935         * modules/getusershell (Depends-on): Add stdio-safer.
29936         * modules/lstat (Depends-on): Remove xalloc.
29937         * modules/mkstemp (Depends-on): Add stat-macros.
29938         * modules/modechange (Depends-on): Remove xstrtol.
29939         Add stat-macros, xalloc.
29940         * modules/save-cwd (Depends-on): Add unistd-safer.
29941         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
29942         * modules/unistd-safer (Files): Add lib/fd-safer.c
29943         (Makefile.am): Remove lib_SOURCES.
29944
29945         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
29946         Remove fcntl-safer; unistd-safer supersedes it.
29947
29948 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
29949
29950         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
29951         AC_HEADER_STAT.
29952         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
29953         (gl_PREREQ_CHOWN): Remove.
29954         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
29955         it.  Don't require AC_HEADER_STAT.
29956         (gl_PREREQ_LSTAT): Remove.
29957         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
29958         Don't require AC_HEADER_STAT.
29959         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
29960         (gl_PREREQ_RMDIR): Remove.
29961         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
29962         mention stat-macros.h or AC_HEADER_STAT, since we'll make
29963         the stat-macros module a prerequisite.
29964         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
29965         * m4/filemode.m4 (gl_FILEMODE): Likewise.
29966         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
29967         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
29968         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
29969         variable names.
29970         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
29971         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
29972         variable prefixes.
29973         * m4/fcntl-safer.m4: Remove.
29974         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
29975         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
29976         Invoke gl_PREREQ_FD_SAFER.
29977         (gl_PREREQ_FD_SAFER): New macro.
29978         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
29979         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
29980         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
29981         Remove duplicate call to AC_LIBOBJ(readutmp).
29982         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
29983
29984         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
29985         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
29986
29987 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
29988
29989         * MODULES.html.sh (Misc): Add byteswap.
29990
29991 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
29992
29993         * modules/getcwd (Depends-on): Add extensions.
29994         * modules/openat (Depends-on): Likewise.
29995
29996 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
29997
29998         * modules/byteswap: New file.
29999
30000 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30001
30002         * m4/byteswap.m4: New file.
30003
30004 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30005
30006         * lib/byteswap_.h: New file.
30007
30008 2005-04-25  Karl Berry  <karl@gnu.org>
30009
30010         * m4/gettext.m4: Update from GNU gettext 0.14.4.
30011
30012 2005-04-25  Albert Chin  <china@thewrittenword.com>
30013
30014         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
30015         Toolkit C bug.
30016
30017 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
30018
30019         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
30020         (func_ln_if_changed) Remove forcibly for no error message
30021         in case file does not exist.
30022
30023 2005-04-19  Simon Josefsson  <jas@extundo.com>
30024
30025         * gnulib-tool (Options): Make --symlink mean --symbolic.
30026
30027 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
30028
30029         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
30030
30031 2005-04-16  Simon Josefsson  <jas@extundo.com>
30032
30033         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
30034
30035 2005-04-15  Simon Josefsson  <jas@extundo.com>
30036
30037         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
30038
30039 2005-04-15  Simon Josefsson  <jas@extundo.com>
30040
30041         * gnulib-tool: Rename --symlink to --symbolic.
30042
30043 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
30044
30045         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
30046         symbolic links to files instead of copying/moving.  Add --aux-dir,
30047         specifying directory relative --dir where auxiliary build tools
30048         are placed.
30049
30050 2005-04-14  Bruno Haible  <bruno@clisp.org>
30051
30052         * modules/allocsa (License): Change to LGPL.
30053         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30054
30055 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
30056
30057         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
30058         that "UTC +1 second" continues to work.  Problem reported
30059         by Dmitry V. Levin.
30060         (relunit_snumber): New rule.
30061         (relunit): Use it.
30062
30063 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
30064
30065         * lib/getdate.y (universal_time_zone_table): New constant.
30066         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
30067         universal_time_zone_table.
30068         (lookup_zone): Prefer universal_time_zone_table to
30069         local_time_zone_table, so that "GMT" time stamps are allowed in
30070         London during the summer.  Problem reported by Ian Abbott.
30071
30072 2005-04-12  Jim Meyering  <jim@meyering.net>
30073
30074         * lib/human.c (humblock): Set *options even when returning due to
30075         xstrtoumax conversion failure.  Thanks to a used-uninitialized
30076         warning from gcc-4.
30077
30078 2005-04-09  Jim Meyering  <jim@meyering.net>
30079
30080         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
30081         -Wuninitialized: initialize tm0.tm_year.
30082
30083 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
30084
30085         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
30086         count, since there's no maximum.  All uses changed.
30087         Add member dsts_seen.
30088         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
30089         not being INT_MAX.
30090         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
30091         Use pc_rels_seen to decide whther a date is absolute.
30092
30093         * lib/getdate.y (number): Don't overwrite year.
30094         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
30095         check.
30096
30097 2005-04-02  Simon Josefsson  <jas@extundo.com>
30098
30099         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
30100         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
30101
30102 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
30103
30104         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
30105         where no absolute path name can be longer than PATH_MAX.
30106
30107 2005-03-27  Jim Meyering  <jim@meyering.net>
30108
30109         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
30110
30111 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
30112
30113         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
30114         "one's complement" -> "ones' complement" in comment, as per Knuth.
30115         "value of type" -> "type or expression" in comment.
30116         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
30117
30118 2005-03-26  Jim Meyering  <jim@meyering.net>
30119
30120         Comment nits.
30121         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
30122         Correct typos: s/or/of/.
30123
30124 2005-03-26  Jim Meyering  <jim@meyering.net>
30125
30126         * modules/check-include-files: Move to ../ and rename to...
30127         * check-module: ...this.
30128
30129 2005-03-25  Jim Meyering  <jim@meyering.net>
30130
30131         * modules/xvasprintf (Files): Add xalloc.h.
30132
30133 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
30134
30135         * modules/gettext (Files): config/config.rpath ->
30136         build-aux/config.rpath
30137         * modules/iconv (Files): Likewise.
30138         Problem reported by Oskar Liljeblad.
30139
30140 2005-03-23  Jim Meyering  <jim@meyering.net>
30141
30142         * modules/check-include-files: New script to check for
30143         missing dependencies, multiple includes, etc.
30144
30145         * modules/c-strtold (Depends-on): Add xalloc.
30146         * modules/c-strtod (Depends-on): Add xalloc.
30147         * modules/hash (Depends-on): Add xalloc.
30148         (Files): Remove lib/xalloc.h.
30149
30150         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
30151         * modules/userspec (Files): Add lib/inttostr.h.
30152
30153 2005-03-23  Jim Meyering  <jim@meyering.net>
30154
30155         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
30156
30157 2005-03-22  Jim Meyering  <jim@meyering.net>
30158
30159         * modules/stat-macros: New module.
30160         * modules/canonicalize, modules/euidaccess, modules/file-type,
30161         * modules/filemode, modules/lchown, modules/makepath,
30162         * modules/rmdir, modules/stat: Depend on new stat-macros module
30163         rather than listing lib/stat-macros.h manually.
30164         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
30165
30166 2005-03-22  Jim Meyering  <jim@meyering.net>
30167
30168         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
30169
30170 2005-03-22  Bruno Haible  <bruno@clisp.org>
30171
30172         * config/srclist.txt: Replace target directory 'config' with
30173         'build-aux'.
30174         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
30175         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
30176         ../build-aux/.
30177
30178 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
30179
30180         * modules/chdir-long (Depends-on): Add mempcpy.
30181
30182         * modules/acl, modules/backupfile, modules/c-strtod,
30183         modules/c-strtold, modules/canon-host, modules/canonicalize,
30184         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
30185         modules/exclude, modules/exitfail, modules/file-type,
30186         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
30187         modules/getdate, modules/getline, modules/getpagesize,
30188         modules/getpass, modules/getugroups, modules/group-member,
30189         modules/hard-locale, modules/hash, modules/human, modules/idcache,
30190         modules/inttostr, modules/long-options, modules/makepath,
30191         modules/md5, modules/memcasecmp, modules/memcoll,
30192         modules/modechange, modules/mountlist, modules/path-concat,
30193         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
30194         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
30195         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
30196         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
30197         modules/strftime, modules/strndup, modules/strverscmp,
30198         modules/timespec, modules/unlocked-io, modules/userspec,
30199         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
30200         modules/yesno:
30201         Remove lib_SOURCES line from Makefile.am section, as this is now
30202         done automatically by the corresponding Autoconf macro.
30203
30204 2005-03-21  Jim Meyering  <jim@meyering.net>
30205
30206         Changes imported from coreutils.
30207
30208         * lib/cycle-check.c: Don't include xalloc.h.
30209
30210         * lib/path-concat.c: Don't include assert.h.
30211         (path_concat): Remove assertion that would have triggered
30212         for ABASE starting with more than one slash.
30213         Reported by Andreas Schwab.
30214
30215         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
30216         properly when ABASE is an absolute file name.
30217         Correct the description of this function.
30218         Include <assert.h>.
30219         Add an assertion and a test driver.
30220         This fixes a bug introduced on 2004-07-02.
30221         Andreas Schwab reported the resulting failure of cp --parents:
30222         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
30223
30224 2005-03-21  Jim Meyering  <jim@meyering.net>
30225
30226         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
30227         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
30228
30229 2005-03-21  Jim Meyering  <jim@meyering.net>
30230         and  Paul Eggert  <eggert@cs.ucla.edu>
30231
30232         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
30233         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
30234         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
30235         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
30236         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
30237         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
30238         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
30239         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
30240         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
30241         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
30242         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
30243         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
30244         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
30245         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
30246         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
30247         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
30248         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
30249         for these modules.
30250
30251 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
30252
30253         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
30254         (which shouldn't happen), generate nothing instead of returning 0
30255         immediately, so that nstrftime (NULL, ...) doesn't return 0.
30256
30257 2005-03-16  Bruno Haible  <bruno@clisp.org>
30258
30259         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
30260         HAVE_LONGLONG_64BIT.
30261
30262 2005-03-16  Bruno Haible  <bruno@clisp.org>
30263
30264         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
30265         HAVE_LONGLONG_64BIT.
30266
30267 2005-03-16  Bruno Haible  <bruno@clisp.org>
30268
30269         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
30270         HAVE_LONGLONG_64BIT.
30271
30272 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
30273
30274         * lib/strftime.c (my_strftime): Prepend space to format so that we can
30275         reliably distinguish strftime failure from empty output on POSIX
30276         hosts.
30277
30278 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
30279
30280         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
30281         (iconv_string): Don't guess a size-zero buffer, as that might cause
30282         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
30283         result would be 'too large', where 'too large' is (heuristically)
30284         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
30285         overflow concerns.  This will prevent some unwanted malloc failures
30286         when the inputs are very large.
30287
30288 2005-03-15  Karl Berry  <karl@gnu.org>
30289
30290         * config/srclist.txt (config.rpath): from gettext.
30291         * config/config.rpath: update.
30292
30293 2005-03-15  Bruno Haible  <bruno@clisp.org>
30294
30295         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
30296         to 'negate'.
30297
30298         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
30299         variable.
30300
30301         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
30302         results.
30303
30304 2005-03-14  Simon Josefsson  <jas@extundo.com>
30305
30306         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
30307         <fx@gnu.org>.
30308
30309 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
30310
30311         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
30312         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
30313         intprops.h.
30314         * lib/strtol.c: Likewise.
30315
30316 2005-03-14  Jim Meyering  <jim@meyering.net>
30317
30318         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
30319         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
30320         to be nonzero so that we (and caller) can detect the difference
30321         between a valid zero-length expansion and an error return, even
30322         when the underlying strftime fails before writing anything into
30323         that location.
30324
30325 2005-03-14  Bruno Haible  <bruno@clisp.org>
30326
30327         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
30328         Update from GNU gettext 0.14.3.
30329
30330 2005-03-10  Jim Meyering  <jim@meyering.net>
30331
30332         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
30333
30334 2005-03-10  Jim Meyering  <jim@meyering.net>
30335
30336         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
30337         so that this module works on systems without fchdir.
30338
30339 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
30340
30341         Factor int-properties macros into a single file, except for
30342         glibc-related files.
30343         * lib/intprops.h: New file.
30344         * lib/getloadavg.c: Include it instead of limits.h.
30345         (INT_STRLEN_BOUND): Remove.
30346         * lib/human.c: Include intprops.h.
30347         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
30348         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
30349         302/1000.
30350         * lib/inttostr.h: Include intprops.h instead of limits.h.
30351         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
30352         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
30353         for consistency with intprops.h.
30354         (time_t_is_integer, twos_complement_arithmetic): Use them.
30355         * lib/sig2str.h: Include <signal.h>, intprops.h.
30356         (INT_STRLEN_BOUND): Remove.
30357         * lib/strftime.c (TYPE_SIGNED): Remove.
30358         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
30359         * lib/strtol.c: Adjust comments to match intprops.h.
30360         * lib/userspec.c: Include intprops.h.
30361         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
30362         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
30363         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
30364         instead of rolling our own expressions.
30365         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
30366
30367         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
30368         instead of int.
30369         (my_strftime): Do not mishandle years close to INT_MAX, by doing
30370         the right thing even if adding 1900 would overflow.  Similarly
30371         for tm_mon + 1 and tm_yday + 1.
30372         Make %Y always equivalent to %C%y, and similarly for %G and %g.
30373         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
30374         (DO_SIGNED_NUMBER): New macro.
30375         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
30376
30377 2005-03-07  Bruno Haible  <bruno@clisp.org>
30378
30379         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
30380
30381 2005-03-07  Bruno Haible  <bruno@clisp.org>
30382
30383         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
30384
30385 2005-03-04  Derek R. Price  <derek@ximbiot.com>
30386
30387         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
30388         (func_import): Only replace files via --import when they have actually
30389         changed.
30390
30391 2005-03-03  Derek R. Price  <derek@ximbiot.com>
30392
30393         * m4/mmap-anon.m4: New file.
30394         * m4/pagealign_alloc.m4: New file.
30395
30396 2005-03-03  Derek R. Price  <derek@ximbiot.com>
30397             Bruno Haible  <bruno@clisp.org>
30398
30399         * modules/pagealign_alloc: New file.
30400         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
30401
30402 2005-03-03  Derek R. Price  <derek@ximbiot.com>
30403             Bruno Haible  <bruno@clisp.org>
30404
30405         * lib/pagealign_alloc.h: New file.
30406         * lib/pagealign_alloc.c: New file.
30407
30408 2005-03-03  Bruno Haible  <bruno@clisp.org>
30409
30410         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
30411         Use an all-permissive copyright notice, recommended by RMS.
30412
30413 2005-03-02  Bruno Haible  <bruno@clisp.org>
30414
30415         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
30416         of AIX, the replacement has to be done only after <string.h> is
30417         included, therefore not in config.h. stpncpy.h does the replacement,
30418         and stpncpy.c uses it.
30419
30420 2005-03-02  Bruno Haible  <bruno@clisp.org>
30421
30422         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
30423         stpncpy.c uses it.
30424
30425 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
30426
30427         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
30428         The workaround isn't strictly needed for POSIX conformance, and
30429         it's too much of a pain to configure and maintain.  We'll ask
30430         people to fix their kernels instead.
30431         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
30432         (NANOSLEEP_BUG_WORKAROUND): Remove.
30433         (xnanosleep): Remove the workaround.
30434
30435 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
30436
30437         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
30438         Reported by Derek Price.
30439         (Include): Add "timespec.h".
30440
30441         * modules/xnanosleep (Depends-on): Remove gethrxtime.
30442
30443 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
30444
30445         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
30446         to detect nanosleep bug.
30447
30448 2005-03-01  Bruno Haible  <bruno@clisp.org>
30449
30450         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
30451
30452 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
30453
30454         * modules/gethrxtime: New file.
30455         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
30456         (Depends-on): Add gethrxtime.
30457         (configure.ac): Add gl_XNANOSLEEP.
30458         (Makefile.am): Remove lib_SOURCES line.
30459
30460 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
30461
30462         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
30463         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
30464
30465 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
30466
30467         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
30468         * lib/timespec.h (gettime): Return void, since it always
30469         succeeds now.  All uses changed.
30470         * lib/gettime.c (gettime) Likewise.
30471         [HAVE_NANOTIME]: Prefer nanotime.
30472         Assume gettimeofday succeeds, as POSIX requires.
30473         Assime time () succeeds, since other code already does.
30474         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
30475         (timespec_subtract): Remove.
30476         (NANOSLEEP_BUG_WORKAROUND): New constant.
30477         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
30478         things considerably.  Use it only on GNU/Linux hosts, since the
30479         workaround shouldn't be needed elsewhere.
30480
30481 2005-02-24  Bruno Haible  <bruno@clisp.org>
30482
30483         * modules/gettext (Files): Add m4/glibc2.m4.
30484
30485 2005-02-24  Bruno Haible  <bruno@clisp.org>
30486
30487         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
30488         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
30489         * m4/progtest.m4:
30490         Update from GNU gettext 0.14.2.
30491         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
30492
30493 2005-02-24  Bruno Haible  <bruno@clisp.org>
30494
30495         * lib/localcharset.c: Update from GNU gettext 0.14.2.
30496         * lib/config.charset: Update from GNU gettext 0.14.2.
30497
30498 2005-02-24  Bruno Haible  <bruno@clisp.org>
30499
30500         * lib/gettext.h: Update from GNU gettext 0.14.2.
30501
30502 2005-02-23  Simon Josefsson  <jas@extundo.com>
30503
30504         * m4/iconvme.m4: New file.
30505
30506 2005-02-23  Jim Meyering  <jim@meyering.net>
30507
30508         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
30509         change.
30510         Thanks to Bruno Haible for catching it.
30511
30512 2005-02-22  Simon Josefsson  <jas@extundo.com>
30513
30514         * modules/iconvme: New file.
30515
30516         * MODULES.html.sh: Add iconvme.
30517
30518 2005-02-22  Simon Josefsson  <jas@extundo.com>
30519
30520         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
30521
30522 2005-02-22  Simon Josefsson  <jas@extundo.com>
30523
30524         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
30525
30526 2005-02-22  Jim Meyering  <jim@meyering.net>
30527
30528         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
30529         s/ifndef/ifdef/.
30530
30531 2005-02-20  Neil Conway  <neilc@samurai.com>
30532
30533         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
30534         returned by OSX/Darwin if the specified buffer is not large
30535         enough for the hostname.
30536
30537 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30538
30539         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
30540         pass it to _help, otherwise the latter coredumps trying to
30541         dereference state.root_argp.
30542
30543 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
30544
30545         * modules/chdir-long (Depends-on): Add memrchr.
30546         * modules/memrchr (Files): Add lib/memrchr.h.
30547         (Include): "memrchr.h".
30548
30549 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
30550
30551         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
30552
30553 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
30554
30555         * lib/memrchr.h: New file.
30556         * lib/chdir-long.c: Include it.
30557         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
30558         Don't bother including stddef.h.
30559
30560 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
30561
30562         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
30563         inclusion.
30564         Include <sys/types.h>, for dev_t.
30565         (ME_DUMMY, ME_REMOTE): Move from here....
30566         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
30567         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
30568         Dmitry V. Levin.
30569         Include mountlist.h first, to test the interface.
30570
30571 2005-01-29  Bruno Haible  <bruno@clisp.org>
30572
30573         * lib/progname.c (program_name): Initialize.
30574         Needed when linking statically on MacOS X.
30575
30576 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
30577
30578         Sync from coreutils.
30579         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
30580         (Depends-on): Add c-strtod.
30581         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
30582
30583 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
30584
30585         Sync from coreutils.
30586         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
30587
30588         Remove files that are specific to coreutils.
30589         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
30590
30591 2005-01-28  Bruno Haible  <bruno@clisp.org>
30592
30593         * modules/javacomp: New file.
30594         * MODULES.html.sh (Java): Add javacomp.
30595
30596 2005-01-28  Bruno Haible  <bruno@clisp.org>
30597
30598         * m4/javacomp.m4: New file, from GNU gettext.
30599
30600 2005-01-28  Bruno Haible  <bruno@clisp.org>
30601
30602         * lib/javacomp.sh.in: New file, from GNU gettext.
30603         * lib/javacomp.h: New file, from GNU gettext.
30604         * lib/javacomp.c: New file, from GNU gettext.
30605
30606 2005-01-26  Simon Josefsson  <jas@extundo.com>
30607
30608         * lib/gai_strerror.c: Use GPL in header.
30609
30610 2005-01-26  Bruno Haible  <bruno@clisp.org>
30611
30612         * modules/javaexec: New file.
30613         * MODULES.html.sh (Java): Add javaexec.
30614
30615 2005-01-26  Bruno Haible  <bruno@clisp.org>
30616
30617         * m4/javaexec.m4: New file, from GNU gettext.
30618
30619 2005-01-26  Bruno Haible  <bruno@clisp.org>
30620
30621         * lib/javaexec.sh.in: New file, from GNU gettext.
30622         * lib/javaexec.h: New file, from GNU gettext.
30623         * lib/javaexec.c: New file, from GNU gettext.
30624
30625 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30626
30627         * modules/lchown (Depends-on): Remove lchown.h
30628
30629 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30630
30631         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
30632         must be defined if the header file was not found, in order
30633         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
30634
30635 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30636
30637         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
30638         initializers for struct pentry_state.
30639         (__argp_error): Check return value of __asprintf
30640         (__argp_failure): Translate error message
30641
30642         * lib/argp-parse.c: Removed braces around the expansion of N_()
30643
30644 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
30645
30646         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
30647         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
30648         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
30649         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
30650         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
30651         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
30652         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
30653         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
30654         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
30655         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
30656         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
30657         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
30658         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
30659         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
30660         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
30661         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
30662         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
30663         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
30664         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
30665         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
30666         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
30667         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
30668         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
30669         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
30670         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
30671         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
30672         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
30673         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
30674         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
30675         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
30676         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
30677         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
30678         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
30679         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
30680         xstrtol.m4, xstrtoumax.m4, yesno.m4:
30681         Use an all-permissive copyright notice, recommended by RMS.
30682
30683 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
30684
30685         * modules/chdir-long (Depends-on): Remove mempcpy.
30686
30687 2005-01-21  Jim Meyering  <jim@meyering.net>
30688
30689         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
30690         same value as for Solaris 9.
30691
30692         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
30693         component length.  This included changing the parameter to be
30694         of type `char *' rather than `char const *'.
30695         * lib/chdir-long.h (chdir_long): Update prototype.
30696
30697         * lib/openat.c (fdopendir, fstatat): New functions.
30698         * lib/openat.h: Include headers required for use of DIR and struct
30699         stat.
30700         [AT_SYMLINK_NOFOLLOW]: Define.
30701         (fdopendir, fstatat): Add prototypes.
30702
30703 2005-01-21  Bruno Haible  <bruno@clisp.org>
30704
30705         * modules/classpath: New file.
30706         * MODULES.html.sh (Java): Add classpath.
30707
30708 2005-01-21  Bruno Haible  <bruno@clisp.org>
30709
30710         * lib/classpath.h: New file, from GNU gettext.
30711         * lib/classpath.c: New file, from GNU gettext.
30712
30713 2005-01-20  Simon Josefsson  <jas@extundo.com>
30714
30715         * modules/version-etc-fsf: New file.
30716
30717 2005-01-20  Simon Josefsson  <jas@extundo.com>
30718
30719         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
30720         * lib/version-etc.c: Remove version_etc_copyright.
30721         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
30722         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
30723
30724 2005-01-20  Simon Josefsson  <jas@extundo.com>
30725
30726         * lib/base64.h (isbase64): Add.
30727
30728         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
30729         using a unsigned prototype, don't inline.
30730         (base64_decode): Use it.
30731
30732 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
30733
30734         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
30735         it.
30736
30737 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
30738
30739         * lib/save-cwd.c (save_cwd): Remove code to support the case
30740         where fchdir is missing or flaky.
30741
30742 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
30743
30744         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
30745
30746 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
30747
30748         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
30749         AC_LIBSOURCES now does this.
30750         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
30751         with new ullong_max module.
30752
30753 2005-01-19  Bruno Haible  <bruno@clisp.org>
30754
30755         * modules/sh-quote: New file.
30756         * MODULES.html.sh (Executing programs): Add sh-quote.
30757
30758 2005-01-19  Bruno Haible  <bruno@clisp.org>
30759
30760         * lib/sh-quote.h: New file, from GNU gettext.
30761         * lib/sh-quote.c: New file, from GNU gettext.
30762
30763 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
30764
30765         Merge from coreutils.
30766         * m4/ullong_max.m4: New file.
30767         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
30768         (gl_MACROS): Assume localeconv exists.
30769
30770 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
30771
30772         Merge changes from coreutils, as described below in several
30773         changelogs dated today.
30774
30775         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
30776         (O_DIRECTORY): Remove; not needed here, since "." must be
30777         a directory.  All uses removed.
30778         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
30779         universal on Suns, and we also need to test for IRIX.
30780         Revamp code to use 'if' rather than '#if'.
30781         Avoid unnecessary comparison of cwd->desc to 0.
30782
30783         * lib/utimens.c (futimens): Robustify the previous patch, by checking
30784         for known valid error numbers rather than observed invalid ones.
30785
30786 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
30787
30788         * modules/ullong_max: New file.
30789
30790         * modules/chdir-long, modules/openat: New files.
30791         * modules/save-cwd (Depends-on): Depend on chdir-long.
30792         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
30793
30794 2005-01-18  Jim Meyering  <jim@meyering.net>
30795
30796         Merge from coreutils.
30797         * m4/chdir-long.m4, m4/openat.m4: New files.
30798         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
30799         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
30800         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
30801         is sane and DOES follow symlinks.  Besides, testing 20 different
30802         systems found no broken chown implementations.
30803         Prompted by a change in rsync's copy of this macro.
30804         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
30805
30806         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
30807
30808         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
30809         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
30810         NULL-means-set-to-current-time semantics.
30811         Remove temporary file immediately, rather than waiting
30812         for configure's at-exit trap code to do it.
30813
30814 2005-01-18  Jim Meyering  <jim@meyering.net>
30815
30816         * lib/version-etc.c (version_etc_copyright): Update copyright date.
30817
30818         * lib/utimens.c (futimens): Account for the fact that futimes
30819         can also fail with errno == ENOSYS or errno == ENOENT.
30820         Patch from Dmitry V. Levin.
30821
30822         Change the name of the robust chdir function from chdir to chdir_long.
30823         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
30824         (restore_cwd): Use chdir_long, not chdir.
30825         * lib/chdir-long.c: Renamed from chdir.c.
30826         * lib/chdir-long.h: Renamed from chdir.h.
30827         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
30828         Hurd.
30829
30830 2005-01-18  Bruno Haible  <bruno@clisp.org>
30831
30832         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
30833         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
30834         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
30835         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
30836         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
30837         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
30838         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
30839         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
30840         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
30841         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
30842         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
30843         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
30844         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
30845         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
30846         Use an all-permissive copyright notice, recommended by RMS.
30847
30848 2005-01-18  Bob Proulx  <bob@proulx.com>
30849
30850         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
30851         simplify offsetof() macro construct to avoid compile failure with
30852         native HP-UX 11.0 ANSI C compiler.
30853
30854 2005-01-17  Bruno Haible  <bruno@clisp.org>
30855
30856         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
30857         redundant because stpncpy.m4 takes care of it.
30858
30859 2005-01-17  Bruno Haible  <bruno@clisp.org>
30860
30861         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
30862
30863 2005-01-17  Bruno Haible  <bruno@clisp.org>
30864
30865         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
30866         used.
30867
30868 2005-01-17  Bruno Haible  <bruno@clisp.org>
30869
30870         * lib/fwriteerror.h (fwriteerror): Change specification to include
30871         fclose.
30872         * lib/fwriteerror.c: Include <stdbool.h>.
30873         (fwriteerror): At the end, close the file stream. Record whether
30874         stdout was already closed.
30875
30876 2005-01-17  Bruno Haible  <bruno@clisp.org>
30877
30878         * lib/execute.c (environ): Declare if needed.
30879         * lib/pipe.c (environ): Likewise.
30880         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
30881
30882 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30883
30884         * modules/argp: Depend on vsnprintf
30885
30886 2005-01-10  Jim Meyering  <jim@meyering.net>
30887
30888         * modules/closeout (Depends-on): Add atexit.
30889
30890 2005-01-06  Bruno Haible  <bruno@clisp.org>
30891
30892         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
30893
30894 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
30895
30896         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
30897         definitions to be after all include files, to avoid collisions.
30898         Problem reported by Bob Proulx.
30899
30900 2005-01-04  Jim Meyering  <jim@meyering.net>
30901
30902         Changes imported from coreutils.
30903         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
30904         as the mkstemp template, use a temporary directory and an
30905         8.3-friendly template to avoid trouble on systems like DJGPP.
30906         Reported by Juan M. Guerrero via Stepan Kasal.
30907         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
30908         close. Remove the temporary directory right away, rather than waiting
30909         for configure's at-exit trap code to do it.
30910         Suggestion from Stepan Kasal.
30911
30912 2005-01-01  Simon Josefsson  <jas@extundo.com>
30913
30914         * gnulib-tool: Print #include directives when --import'ing.
30915
30916 2004-12-28  Simon Josefsson  <jas@extundo.com>
30917
30918         * tests/test-base64.c: Include required header files.  Remove
30919         unused variables.
30920
30921 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
30922
30923         * modules/error (Depends-on): Remove gettext.
30924
30925 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
30926
30927         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
30928         not needed.  This removes a dependency on the gettext module.
30929         [defined _LIBC]: Do not include <libintl.h>; not needed.
30930
30931 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
30932
30933         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
30934         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
30935
30936 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
30937
30938         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
30939         HAVE_DECL_STRTOLD.
30940
30941 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
30942
30943         * modules/getdate (Depends-on): Remove alloca-opt.
30944
30945 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
30946
30947         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
30948
30949 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
30950
30951         * lib/argp-parse.c: Include <stddef.h>.
30952         (alignof, alignto): New macros.
30953         (parser_init): Don't assume that void * is aligned sufficiently
30954         for struct option.
30955
30956         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
30957         need to extend the stack.
30958         (YYINITDEPTH): New macro, so that the initial stack isn't overly
30959         large.
30960
30961 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30962
30963         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
30964
30965 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
30966
30967         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
30968         (2004-10-24) change.  Apparently this was a false alarm.
30969
30970         * modules/getdate: Depend on alloca-opt, not alloca.
30971
30972 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
30973
30974         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
30975         Remove now-obsolete comment about AIX.
30976         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
30977         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
30978         (YYMAXDEPTH): New macro.
30979
30980 2004-12-18  Simon Josefsson  <jas@extundo.com>
30981
30982         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
30983
30984 2004-12-18  Bruno Haible  <bruno@clisp.org>
30985
30986         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
30987
30988 2004-12-18  Bruno Haible  <bruno@clisp.org>
30989
30990         * lib/fatal-signal.c (fatal_signals): Make non-const.
30991         (init_fatal_signals): New function.
30992         (uninstall_handlers, install_handlers): Ignore signals that were set to
30993         SIG_IGN.
30994         (at_fatal_signal): Call init_fatal_signals.
30995         (init_fatal_signal_set): Likewise. Ignore signals that were set to
30996         SIG_IGN.
30997         Reported by Paul Eggert.
30998
30999 2004-12-18  Bruno Haible  <bruno@clisp.org>
31000
31001         * doc/alloca.texi: New file.
31002         * doc/alloca-opt.texi: New file.
31003
31004 2004-12-17  Jim Meyering  <jim@meyering.net>
31005
31006         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
31007         Otherwise, install-sh could exit with improper exit status when
31008         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
31009
31010 2004-12-16  Simon Josefsson  <jas@extundo.com>
31011
31012         * tests/test-base64.c: Add license.
31013
31014 2004-12-15  Stepan Kasal  <address@hidden>
31015
31016         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
31017
31018 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
31019
31020         * modules/getcwd (Files): Add m4/d-ino.m4.
31021         Suggested by Mark D. Baushke.
31022
31023 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
31024
31025         * lib/getdate.y (textint): New member "negative".
31026         (time_zone_hhmm): New function.
31027         Expect 14 shift-reduce conflicts, not 13.
31028         (o_colon_minutes): New rule.
31029         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
31030         (yylex): Set the "negative" member of signed numbers.
31031
31032 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
31033
31034         * doc/getdate.texi (Time of day items, Time zone items):
31035         Describe new formats +00:00, UTC+00:00.
31036
31037 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
31038
31039         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
31040         spurious "-l"s.  Problem reported by Stepan Kasal.
31041
31042 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
31043
31044         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
31045         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
31046
31047 2004-12-04  Simon Josefsson  <jas@extundo.com>
31048
31049         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
31050         Vandoorselaere <yoann@prelude-ids.org>.
31051
31052 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31053
31054         Changes imported from coreutils.
31055         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
31056         exist.
31057         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
31058
31059 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31060
31061         Changes imported from coreutils.
31062         * lib/hard-locale.c: Assume <locale.h> exists.
31063         Include "strdup.h".
31064         (GLIBC_VERSION): New macro.
31065         (hard_locale): Assume setlocale exists.
31066         Rewrite to avoid #ifdef.
31067         Use strdup rather than malloc + strcpy.
31068         * lib/human.c: Assume <locale.h> exists.
31069         (human_readable): Assume localeconv exists.
31070
31071 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31072
31073         * modules/hard-locale (Depends-on): Add strdup.
31074
31075 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
31076
31077         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
31078         convert T2, not T.  (Imported from libc.)
31079
31080 2004-11-30  Simon Josefsson  <jas@extundo.com>
31081
31082         * modules/restrict (License): Change to LGPL.
31083
31084 2004-11-30  Simon Josefsson  <jas@extundo.com>
31085
31086         * m4/restrict.m4: Add copyright and copying conditions.
31087
31088 2004-11-30  Simon Josefsson  <jas@extundo.com>
31089
31090         * m4/base64.m4: New file.
31091
31092 2004-11-30  Simon Josefsson  <jas@extundo.com>
31093
31094         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
31095         base64.
31096
31097         * tests/test-base64.c: New file.
31098
31099         * modules/base64: New file.
31100
31101 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
31102
31103         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
31104         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
31105
31106         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
31107
31108 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
31109
31110         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
31111         (__getcwd.c): Don't restore errno; glibc doesn't.
31112         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
31113         first, falling back to our code only if its results look suspicious.
31114         Ensure that the resulting buffer is only as large as necessary.
31115
31116         * lib/readutmp.c: Include readutmp.h first.
31117         Include <errno.h>, since readutmp.h no longer does that.
31118         * lib/readutmp.h: Don't include <errno.h>,
31119         <sys/param.h>, <time.h>; not needed to establish interface.
31120         (errno): Remove decl.
31121         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
31122         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
31123         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
31124
31125 2004-11-28  Simon Josefsson  <jas@extundo.com>
31126
31127         * lib/base64.h, base64.c: New file.
31128
31129 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
31130
31131         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
31132
31133 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
31134
31135         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
31136         (Depends-on): Remove pathmax, same.  Add mempcpy.
31137         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
31138         (Makefile.am): Append getcwd.h to lib_SOURCES.
31139         (Include): Add getcwd.h.
31140         (Maintainer): Change from Jim Meyering to "all, glibc",
31141         since getdate now uses intended-for-glibc code.
31142         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
31143         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
31144
31145 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
31146
31147         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
31148         HP's ANSI C compiler.
31149         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
31150         Declaring int functions causes warnings on some modern systems and
31151         shouldn't be needed to compile on ancient ones.
31152         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
31153         defined.
31154
31155         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
31156         with the following changes.
31157         (__set_errno): Parenthesize properly.
31158         Include <stdbool.h>.
31159         (MIN, MAX, MATCHING_INO): New macros.
31160         (__getcwd): Define with prototype, not K&R form.
31161         Use heuristics to allocate default buffer on stack if possible.
31162         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
31163         behavior, and to avoid the PATH_MAX limit when computing
31164         ../../../../...
31165         Use MATCHING_INO to compare inode number to file.
31166         Check for arithmetic overflow in size calculations.
31167         Fix bug in reallocation of dot array that caused getcwd to fail
31168         on directories nested deeper than 75.
31169         Be more careful about saving errno on error.
31170         Do not use realloc; use only free+malloc, as this is a bit
31171         more flexible and avoids a needless copy operation.
31172         Do not inspect st_dev and st_ino for symbolic links; POSIX
31173         doesn't specify the latter.
31174         Check for closedir errors.
31175         Avoid needless casts.
31176         Use "#ifdef weak_alias" around weak_alias, to be like other
31177         glibc code.
31178         The following changes to getcwd.c have effect only when used in
31179         gnulib; they have no effect inside glibc proper.
31180         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
31181         as alloca isn't used.
31182         (alloca, __alloca): Likewise.
31183         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
31184         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
31185         unconditionally, as gnulib assumes C89 or better.
31186         Do not include <sys/param.h>.
31187         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
31188         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
31189         better.
31190         (NULL) [!defined NULL]: Remove; we assume C89 or better.
31191         Include <dirent.h> in a way that is compatible with modern Autoconf.
31192         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
31193         New macros, if not already defined.
31194         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
31195         Use "_LIBC", not "defined _LIBC", for consistency.
31196         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
31197         a mempcpy module.
31198         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
31199         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
31200         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
31201         credit only to Jim Meyering and adjust the copyright dates.
31202         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
31203         <stdlib.h>, <unistd.h>, "pathmax.h".
31204         Instead, include "xgetcwd.h" (first) and "getcwd.h".
31205         (INITIAL_BUFFER_SIZE): Remove.
31206         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
31207
31208 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
31209
31210         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
31211         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
31212         Use the _ONCE methods, for efficiency.
31213         Check for fcntl.h.  In test program, include <errno.h>
31214         and <fcntl.h> if available.  Remove old K&R cruft from
31215         test program.  Check for common errors in GNU/Linux,
31216         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
31217         don't do AC_LIBOBJ, as that's getcwd.m4's job.
31218         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
31219         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
31220         name accordingly.
31221         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
31222         accommodate new getcwd.c.
31223         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
31224         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
31225         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
31226         that's all we need now.
31227
31228 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31229
31230         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
31231         argp-parse.c depends on getopt internals, that means we should
31232         always use our getopt, to be on the safe side.
31233         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
31234         order not to spoil the result of an eventual previous invocation
31235         of gl_GETOPT_SUBSTITUTE.
31236
31237 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31238
31239         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
31240         redefinition warnings. To avoid them, include the defines
31241         in `#if !defined __need_getopt ... #endif'. The only place
31242         where __getopt_argv_const is used is in definitions
31243         of getopt_long and getopt_long_only below, which are as well
31244         protected by `#ifndef __need_getopt'.
31245         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
31246         __need_getopt after including <stdio.h> and <unistd.h> These
31247         headers might have defined it.
31248
31249 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
31250
31251         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
31252
31253 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
31254
31255         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
31256         (futimens): New function, which uses futimes if available.
31257         (futimens, utimens): Support timespec==NULL, with same semantics
31258         as utime and utimens.
31259         * lib/utimens.h (futimens): New decl.
31260
31261 2004-11-23  Jim Meyering  <jim@meyering.net>
31262
31263         * lib/getopt_.h: Remove trailing blanks.
31264
31265 2004-11-23  Jim Meyering  <jim@meyering.net>
31266
31267         * lib/__fpending.c: Add comment.
31268
31269 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
31270
31271         * modules/canonicalize (Depends-on): Add xreadlink.
31272         Problem reported by James Youngman.
31273
31274 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
31275
31276         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
31277         New macros.
31278         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
31279         optopt): Use them instead of invoking ## directly; otherwise, the
31280         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
31281
31282 2004-11-19  Bruno Haible  <bruno@clisp.org>
31283
31284         * lib/strtok_r.c: Move comments from here...
31285         * lib/strtok_r.h: ... to here.
31286
31287 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
31288
31289         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
31290         implementations that mishandle size_t overflow.
31291
31292 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
31293
31294         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
31295         might fail.  Problem reported by Yoann Vandoorselaere.
31296         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
31297         implementations that mishandle size_t overflow.
31298
31299 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31300
31301         * modules/canon-host (Depends-on): Add strdup.
31302
31303 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31304
31305         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
31306
31307 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31308
31309         * lib/canon-host.c: Include "strdup.h".
31310         (canon_host): Use getaddrinfo if available, so that IPv6 works.
31311         Use strdup instead of malloc/strcpy to duplicate strings.
31312
31313         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
31314         (human_space_before_unit): New constant.
31315         * lib/human.c (human_readable): Support it.
31316
31317         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
31318         (xgetcwd): Set errno correctly when failing.
31319         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
31320         the failure is actually due to a PATH_MAX problem.
31321
31322         Further getopt changes to make it more likely that glibc will
31323         buy the changes back.
31324         * lib/getopt.c (POSIXLY_CORRECT): New constant.
31325         (getopt): Use it, so to preserve glibc semantic
31326         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
31327         when compiling for libc.
31328         * lib/getopt_.h (__getopt_argv_const): Bring it back.
31329         (getopt_long, getopt_long_only): Use it.
31330
31331         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
31332         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
31333         (getopt): Argv is now char * const *, as per standard.
31334         (_getopt_internal_r, _getopt_internal): Argv is now char **,
31335         not char *__getopt_argv_const *.
31336         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
31337         _getopt_long_only_r): Likewise.
31338         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
31339         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
31340         _getopt_long_r, _getopt_long_only_r): Likewise.
31341         * lib/getopt_.h (__getopt_argv_const): Remove.
31342         (getopt): Argv is now char * const *, as per standard.
31343
31344         * lib/getdate.y (tORDINAL): New token.
31345         (day, relunit): Allow it for relative times.
31346         (relative_time_table): Use tORDINAL for ordinals.
31347
31348 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31349
31350         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
31351         Document that "second" isn't allowed as an ordinal number.
31352
31353 2004-11-16  Jim Meyering  <jim@meyering.net>
31354
31355         * modules/closeout (Depends-on): Add fpending.
31356
31357 2004-11-15  Jim Meyering  <jim@meyering.net>
31358
31359         * lib/closeout.c: Include "__fpending.h" once again.
31360         Include <stdbool.h>.
31361         (close_stdout): Don't fail just because stdout was closed initially,
31362         since some programs don't write to stdout in the normal course of
31363         operation (other than --version and --help), and we don't want this
31364         function to make e.g. `touch file >&-' fail.
31365         But do fail if it was closed and someone has tried to write to it.
31366         E.g., `printf foo >&-' must fail.
31367
31368 2004-11-13  Jim Meyering  <jim@meyering.net>
31369
31370         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
31371
31372 2004-11-12  Simon Josefsson  <jas@extundo.com>
31373
31374         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
31375         small doc fix is still pending.
31376
31377 2004-11-11  Simon Josefsson  <jas@extundo.com>
31378
31379         * modules/strtok_r: New file.
31380
31381         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31382         strtok_r.
31383
31384 2004-11-11  Simon Josefsson  <jas@extundo.com>
31385
31386         * m4/strtok_r.m4: New file.
31387
31388         * m4/getopt.m4: Replace opterr.
31389
31390 2004-11-11  Simon Josefsson  <jas@extundo.com>
31391
31392         * lib/strtok_r.h, strtok_r.c: New file.
31393
31394 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
31395
31396         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
31397         of replacing opterr, getopt, etc.  This should handle the
31398         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
31399
31400 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
31401
31402         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
31403         we can stop lying to compilers about the constness of argv when we
31404         are compiled outside glibc.
31405         (getopt, getopt_long, getopt_long_only): Use it.
31406         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
31407         _getopt_internal, getopt): Likewise.
31408         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
31409         _getopt_long_only_r): Likewise.
31410         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
31411         _getopt_long_r, _getopt_long_only_r): Likewise.
31412
31413         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
31414         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
31415         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
31416         the other external symbols.
31417         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
31418         declaration, since the above renaming now works around collisions.
31419
31420 2004-11-11  Jim Meyering  <jim@meyering.net>
31421
31422         * lib/linebreak.c: Remove trailing blanks.
31423         * lib/alloca_.h: Likewise.
31424         * lib/acosl.c: Likewise.
31425         * lib/euidaccess.c: Likewise.
31426         * lib/allocsa.h: Likewise.
31427
31428 2004-11-10  Simon Josefsson  <jas@extundo.com>
31429
31430         * m4/getaddrinfo.m4: New file.
31431
31432 2004-11-10  Simon Josefsson  <jas@extundo.com>
31433
31434         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
31435
31436 2004-11-10  Simon Josefsson  <jas@extundo.com>
31437
31438         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31439         getaddrinfo.
31440
31441         * modules/getaddrinfo: New file.
31442
31443 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31444
31445         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
31446
31447 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31448
31449         * lib/mktime.c (SHR): New macro, which is a portable
31450         substitute for >> that should work even on Crays.
31451         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
31452         Problem reported by Mark D. Baushke in
31453         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
31454         * lib/getdate.y (SHR): Likewise.
31455         (tm_diff): Use it.
31456         * lib/strftime.c (SHR): Likewise.
31457         (tm_diff): Use it.
31458         * lib/quotearg.c (struct quoting_options): Use unsigned int for
31459         quote_these_too, so that right shifts are well defined.  All uses
31460         changed.
31461
31462 2004-11-10  Jim Meyering  <jim@meyering.net>
31463
31464         Ensure that no close failure goes unreported.
31465         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
31466         return early when it seems there's nothing to flush.
31467         Don't include __fpending.h.
31468
31469 2004-11-10  Jim Meyering  <jim@meyering.net>
31470
31471         * modules/closeout (Depends-on): Remove fpending.
31472
31473 2004-11-10  Jim Meyering  <jim@meyering.net>
31474
31475         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
31476
31477 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
31478
31479         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
31480         gl_FUNC_STRFTIME.
31481         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
31482         and AC_REQUIRE when possible, to avoid duplicate checks.
31483         Check for <wchar.h>.
31484
31485 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
31486
31487         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
31488
31489 2004-11-09  Bruno Haible  <bruno@clisp.org>
31490
31491         * m4/sockpfaf.m4: New file.
31492
31493 2004-11-05  Bruno Haible  <bruno@clisp.org>
31494
31495         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
31496         Reported by Mark D. Baushke <mdb@cvshome.org>.
31497
31498 2004-11-04  Bruno Haible  <bruno@clisp.org>
31499
31500         2004-09-11  Bruno Haible  <bruno@clisp.org>
31501                 * allocsa.valgrind: New file.
31502         2004-02-06  Bruno Haible  <bruno@clisp.org>
31503                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
31504                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
31505                 Reported by Christopher Seip <chris.seip@hp.com>.
31506
31507 2004-11-04  Bruno Haible  <bruno@clisp.org>
31508
31509         * modules/allocsa (Files): Add lib/allocsa.valgrind.
31510         (Makefile.am): Distribute it.
31511
31512 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
31513
31514         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
31515         with errno == ERANGE if the buffer is too small.
31516         Problem reported by Mark D. Baushke.
31517
31518 2004-11-03  Albert Chin  <china@thewrittenword.com>
31519             Paul Eggert  <eggert@cs.ucla.edu>
31520
31521         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
31522         equivalent, substitute $ac_type for equivalent type rather than
31523         blindly using uint32_t *always* which won't work if uint32_t is not
31524         available.  Define _UINT32_T to work around typedef of uint32_t if
31525         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
31526         2.5.1.
31527
31528 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31529
31530         * m4/jm-macros.m4: Sync from coreutils.
31531         (gl_MACROS): Check for mbrlen, for pathchk.
31532         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
31533
31534 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31535
31536         * lib/xreadlink.c (MAXSIZE): New macro.
31537         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
31538         size does not exceed MAXSIZE.  Avoid cast.
31539         As suggested by Mark D. Baushke in
31540         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
31541         if readlink fails with buffer size just under MAXSIZE, try again
31542         with MAXSIZE.
31543
31544 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31545
31546         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
31547
31548 2004-11-02  Derek R. Price  <derek@ximbiot.com>
31549         and  Paul Eggert  <eggert@cs.ucla.edu>
31550
31551         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
31552         (get_date): Overparenthesize to avoid GCC warning.
31553
31554 2004-11-02  Bruno Haible  <bruno@clisp.org>
31555
31556         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
31557         returns void.
31558
31559 2004-11-02  Bruno Haible  <bruno@clisp.org>
31560
31561         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
31562         function returns void.
31563
31564 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
31565
31566         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
31567         fflush_unlocked, flockfile, funlockfile, funlockfile,
31568         fputs_unlocked, putc_unlocked.
31569
31570 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
31571
31572         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
31573         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
31574         already declared.
31575
31576 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
31577
31578         * modules/getdate (Files): Add doc/getdate.texi.
31579         (Depends-on): Add setenv, xalloc.
31580
31581 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
31582
31583         * lib/getdate.y: Add support for TZ="foo" within a date string.
31584         Fix some bugs near time_t boundaries.  Reject dates with
31585         out-of-range components, e.g., "Sept 31".
31586         Include <stdlib.h>, "setenv.h", "xalloc.h".
31587         (ISDIGIT_LOCALE): Remove; unused.
31588         Note that the TZ and time functions used here are not reentrant.
31589         (mktime_ok, get_tz): New functions.
31590         (TZBUFSIZE): New constant.
31591         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
31592         This requires that we sometimes generate our own TZ="XXX..." setting.
31593
31594 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
31595
31596         * doc/getdate.texi: New file, from coreutils with modifications for
31597         the new TZ parsing.
31598
31599 2004-10-27  Derek R. Price  <derek@ximbiot.com>
31600
31601         * lib/mktime.c (not_equal_tm): Remove redundant check.
31602
31603 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31604
31605         * modules/regex (lib_SOURCES): Add regex.c.
31606         Reported by James Youngman in
31607         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
31608
31609 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31610
31611         * lib/getdate.y: Use Bison 1.875 features, and some minor
31612         code cleanups.  This change does not affect semantics.
31613         Don't include <stdlib.h>; no longer needed.
31614         Don't include unlocked-io.h; only the "#if TEST" code uses
31615         stdio, and performance isn't crucial there.
31616         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
31617         Bison 1.875 features as described below.
31618         All uses of "PC." replaced by "pc->".
31619         (YYSTYPE): Add a forward declaration.
31620         (yylex, yyerror): Use full prototypes in forward decls.
31621         Use "%pure-parser" rather than obsolescent "%pure_parser".
31622         Use %parse-param and %lex-param instead of obsolescent
31623         YYPARSE_PARAM and YYLEX_PARAM.
31624         (meridian_table, month_and_day_table, time_units_table,
31625         relative_time_table, time_zone_table, military_table,
31626         lookup_zone, lookup_word, get_date):
31627         Use NULL instead of 0 where appropriate.
31628         (to_hour): Avoid abort (), to avoid a dependency on
31629         stdlib.h.
31630         (yyerror, yylex): Now accepts parser_control * arg.
31631         (main) [TEST]: Use '\0' rather than 0 for char.
31632
31633 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
31634
31635         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
31636
31637 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
31638
31639         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
31640         It's now the caller's responsibility to handle the case where
31641         !HAVE_GETPAGESIZE && !defined getpagesize.
31642
31643         * lib/mktime.c (leapyear): Arg is long int, not int.
31644
31645 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
31646
31647         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
31648
31649 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
31650
31651         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
31652         missing.  Problem reported by James Youngman.
31653
31654 2004-10-16  Simon Josefsson  <jas@extundo.com>
31655
31656         * gnulib-tool: Fix comments.  Fix parse problem.
31657         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
31658
31659 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
31660
31661         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
31662         implementation of getopt_long.  Problem reported by Alexander Taler in:
31663         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
31664
31665 2004-10-15  Bruno Haible  <bruno@clisp.org>
31666
31667         * gnulib-tool: Untabify. Initialize supplied_libname.
31668         (func_usage): More homogenous output.
31669         (func_modules_transitive_closure, func_modules_to_filelist,
31670         func_emit_lib_Makefile_am): New functions.
31671         (func_import): New function, extracted from big case statement. Use
31672         func_get_license, func_modules_transitive_closure,
31673         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
31674         opt_lgpl. Don't use test -a, as it's not portable.
31675         (func_create_testdir): Use func_modules_transitive_closure,
31676         func_modules_to_filelist, func_emit_lib_Makefile_am.
31677
31678 2004-10-15  Bruno Haible  <bruno@clisp.org>
31679
31680         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
31681
31682 2004-10-15  Bruno Haible  <bruno@clisp.org>
31683
31684         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
31685         the portions belonging to each module.
31686         Suggested by Derek Robert Price <derek@ximbiot.com>.
31687
31688 2004-10-12  Simon Josefsson  <jas@extundo.com>
31689
31690         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
31691         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
31692         to real functions.
31693
31694 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31695
31696         * modules/vsnprintf: New file.
31697
31698 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31699
31700         * m4/vsnprintf.m4: New file.
31701
31702 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31703
31704         * lib/vsnprintf.h: New file.
31705         * lib/vsnprintf.c: New file.
31706
31707 2004-10-11  Bruno Haible  <bruno@clisp.org>
31708
31709         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
31710         vsnprintf.
31711
31712 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
31713
31714         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
31715
31716 2004-10-07  Bruno Haible  <bruno@clisp.org>
31717
31718         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
31719         fits into the provided buffer.
31720
31721 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
31722
31723         * lib/diacrit.c, diacrit.h: Add GPL notice.
31724
31725         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
31726         notice.
31727         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
31728         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
31729         This avoids a potential constant-folding bug.
31730
31731 2004-10-05  Bruno Haible  <bruno@clisp.org>
31732
31733         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
31734         for the declaration of strsep.
31735
31736 2004-10-05  Bruno Haible  <bruno@clisp.org>
31737
31738         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
31739
31740 2004-10-04  Simon Josefsson  <jas@extundo.com>
31741
31742         * modules/memmem: New file.
31743         * tests/test-memmem.c: New file.
31744         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
31745
31746 2004-10-04  Simon Josefsson  <jas@extundo.com>
31747
31748         * m4/memmem.m4: New file.
31749
31750 2004-10-04  Simon Josefsson  <jas@extundo.com>
31751
31752         * lib/memmem.h: New file.
31753         * lib/memmem.c: New file, taken from glibc.
31754
31755 2004-10-04  Simon Josefsson  <jas@extundo.com>
31756
31757         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
31758         '#ifdef USE_UNLOCKED_IO'.
31759
31760 2004-10-04  Simon Josefsson  <jas@extundo.com>
31761
31762         * config/srclist.txt: Add memmem from glibc.
31763
31764 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
31765
31766         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
31767
31768         * modules/argmatch, modules/argp, modules/closeout, modules/error,
31769         modules/exclude, modules/getdate, modules/getline,
31770         modules/getndelim2, modules/getpass, modules/getpass-gnu,
31771         modules/getusershell, modules/linebuffer, modules/md5,
31772         modules/mountlist, modules/posixtm, modules/readtokens,
31773         modules/readutmp, modules/regex, modules/sha1,
31774         modules/version-etc, modules/yesno:
31775         Remove dependency on unlocked-io.
31776
31777 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
31778
31779         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
31780
31781         * m4/unlocked-io.m4: Add copyright notice.
31782         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
31783
31784 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
31785
31786         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
31787         * lib/xmalloc.c (xmemdup): Likewise.
31788         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
31789         XFREE): Remove these long-obsolescent macros.
31790         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
31791         * lib/xstrdup.c: Remove.
31792
31793         * lib/regex.c (re_comp): Cast gettext return value to char *,
31794         Problem reported by Martin Neitzel via Mark D. Baushke.
31795
31796 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
31797
31798         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
31799         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
31800         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
31801         regex.c, sha1.c, version-etc.c, yesno.c:
31802         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
31803         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
31804         the includer's responsibility.
31805
31806         Sync from coreutils.
31807
31808         * lib/modechange.c (mode_compile): Don't decrement a pointer that
31809         points to the start of a string, as the C Standard says the
31810         resulting behavior is undefined.
31811
31812         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
31813         simple -> simple_backups, numbered_existing ->
31814         numbered_existing_backups, numbered -> numbered_backups
31815         to avoid shadowing problems.  All uses changed.
31816         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
31817         * lib/backupfile.c (check_extension, numbered_backup):
31818         Rename locals to avoid shadowing 'basename'.
31819         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
31820         once.
31821
31822         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
31823         * lib/.cvsignore: Add getopt.h.
31824
31825 2004-10-04  Bruno Haible  <bruno@clisp.org>
31826
31827         * modules/README: New file.
31828         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
31829         not a module.
31830
31831 2004-10-02  Jim Meyering  <jim@meyering.net>
31832
31833         * lib/dirfd.h, getpagesize.h: Add copyright notice.
31834
31835 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31836
31837         * modules/strsep: New file.
31838
31839 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31840
31841         * m4/strsep.m4: New file.
31842
31843 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31844
31845         * lib/strsep.h: New file.
31846         * lib/strsep.c: New file.
31847
31848 2004-10-01  Simon Josefsson  <jas@extundo.com>
31849
31850         * lib/snprintf.c (snprintf): Handle size==0.
31851
31852 2004-10-01  Simon Josefsson  <jas@extundo.com>
31853             Bruno Haible  <bruno@clisp.org>
31854
31855         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
31856         (snprintf): Declare 'args'.
31857
31858 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
31859
31860         * lib/snprintf.c: Remove comments as to why each header is needed.
31861
31862 2004-10-01  Bruno Haible  <bruno@clisp.org>
31863
31864         * MODULES.html.sh: Add strsep.
31865
31866 2004-09-30  Simon Josefsson  <jas@extundo.com>
31867
31868         * modules/snprintf: New file.
31869
31870 2004-09-30  Simon Josefsson  <jas@extundo.com>
31871
31872         * m4/snprintf.m4: New file.
31873
31874 2004-09-30  Simon Josefsson  <jas@extundo.com>
31875
31876         * lib/snprintf.h, lib/snprintf.c: New files.
31877
31878 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31879
31880         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
31881         (hol_entry_help): Never translate an empty string.
31882         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
31883         * lib/argp.h (OPTION_NO_TRANS): New option.
31884
31885 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
31886
31887         * modules/argp (Maintainer): Replace Simon Josefsson
31888         by Sergey Poznyakoff.
31889
31890 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
31891
31892         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
31893         changes merged back into glibc.
31894
31895 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
31896
31897         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
31898
31899 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
31900
31901         * lib/xvasprintf.c: Include xalloc.h.
31902         (xvasprintf): Use xalloc_die, not xmalloc_die.
31903
31904 2004-09-29  Bruno Haible  <bruno@clisp.org>
31905
31906         * modules/alloca-opt: New file, derived from modules/alloca.
31907         * modules/allocsa: Depend on alloca-opt instead of alloca.
31908         * modules/setenv: Likewise.
31909         * modules/vasnprintf: Likewise.
31910         * MODULES.html.sh: Add alloca-opt.
31911
31912 2004-09-28  Simon Josefsson  <jas@extundo.com>
31913
31914         * gnulib-tool: New parameter --lgpl, to asseert that modules are
31915         LGPL, and to replace license template from GPL to LGPL.
31916
31917 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
31918
31919         * modules/dummy: Change license to LGPL.
31920
31921 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
31922
31923         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
31924
31925 2004-09-24  Simon Josefsson  <jas@extundo.com>
31926
31927         * modules/minmax (License): Change from GPL to LGPL.
31928
31929 2004-09-23  Simon Josefsson  <jas@extundo.com>
31930
31931         * gnulib-tool (--import): Typo.
31932
31933 2004-09-23  Simon Josefsson  <jas@extundo.com>
31934
31935         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
31936
31937 2004-09-22  Bruno Haible  <bruno@clisp.org>
31938
31939         * modules/*: Add 'License' field.
31940         * gnulib-tool: Accept --extract-license option.
31941         (func_get_license): New function.
31942
31943 2004-09-21  Bruno Haible  <bruno@clisp.org>
31944
31945         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
31946         Reported by Simon Josefsson.
31947
31948 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
31949
31950         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
31951         gl_AC_TYPE_LONG_LONG.
31952
31953 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
31954
31955         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
31956
31957 2004-09-18  Simon Josefsson  <jas@extundo.com>
31958         and  Paul Eggert  <eggert@cs.ucla.edu>
31959
31960         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
31961         calls with autoreconf.  Define GL_LIB.
31962
31963 2004-09-14  Karl Berry  <karl@gnu.org>
31964
31965         * config/srclist.txt: unsync setenv.c, sigh.
31966
31967 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31968
31969         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
31970         Problem reported by Bruno Haible in:
31971         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
31972
31973 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31974
31975         * config/srclist.txt: Comment out argp-pvh.c.
31976
31977 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
31978
31979         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
31980         in case some system header has #define'd it.  Problem reported by
31981         Soeren D. Schulze in
31982         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
31983
31984 2004-09-09  Karl Berry  <karl@gnu.org>
31985
31986         * regex.[ch]: delete from the root.  These were supposed to be
31987                 synced with emacs cvs, but this has not happened for about
31988                 a year, and anyway nothing else uses emacs regex.[ch].
31989                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
31990                 lib/regex[.ch] is untouched.
31991
31992 2004-09-09  Bruno Haible  <bruno@clisp.org>
31993
31994         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
31995
31996 2004-09-09  Bruno Haible  <bruno@clisp.org>
31997
31998         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
31999         modifications.
32000         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
32001
32002 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
32003
32004         * modules/xvasprintf: New file.
32005         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
32006
32007 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
32008
32009         * lib/xvasprintf.h: New file.
32010         * lib/xvasprintf.c: New file.
32011         * lib/xasprintf.c: New file.
32012
32013 2004-09-08  Bruno Haible  <bruno@clisp.org>
32014
32015         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
32016
32017 2004-09-08  Bruno Haible  <bruno@clisp.org>
32018
32019         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
32020         length is > INT_MAX.
32021         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
32022         more.
32023
32024 2004-09-08  Bruno Haible  <bruno@clisp.org>
32025
32026         * lib/stdint_.h: New file, taken from GNU clisp.
32027
32028 2004-09-08  Bruno Haible  <bruno@clisp.org>
32029             Oskar Liljeblad  <oskar@osk.mine.nu>
32030
32031         * modules/stdint: New file.
32032         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
32033
32034 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32035
32036         Import from coreutils.
32037         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
32038         strings on unbounded length.  alloca's performance benefits aren't
32039         that important here.
32040         (V_STRDUP): Remove.
32041         (parse_with_separator): New function, with most of the internals
32042         of the old parse_user_spec.  Allow user to omit both user and group,
32043         for compatibility with FreeBSD.
32044         Clone only the user name, not the entire spec.
32045         Do not set *uid, *gid unless entirely successful.
32046         Avoid memory leak in some failing cases.
32047         Fix regression for USER.GROUP reported by Dmitry V. Levin in
32048         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
32049         (parse_user_spec): Rewrite to use parse_with_separator.
32050
32051 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32052
32053         * modules/userspec: Don't depend on alloca.
32054
32055 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32056
32057         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
32058
32059 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
32060
32061         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
32062         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
32063         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
32064
32065 2004-08-16  Simon Josefsson  <jas@extundo.com>
32066
32067         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
32068         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
32069         Add --dry-run for --import.
32070         Let user provided command line parameters override configure.ac
32071         settings.
32072
32073 2004-08-12  Simon Josefsson  <jas@extundo.com>
32074
32075         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
32076         as discussed with Paul Eggert in threads rooted at
32077         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
32078         and
32079         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
32080         Before, the test was empty, and relied on ELIDE_CODE in source
32081         code.)
32082         (gl_PREREQ_GETOPT): New macro.
32083         (gl_GETOPT): Use them.
32084
32085 2004-08-12  Simon Josefsson  <jas@extundo.com>
32086
32087         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
32088         * lib/getopt_.h: Renamed from getopt.h.
32089
32090 2004-08-12  Simon Josefsson  <jas@extundo.com>
32091
32092         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
32093         Change default library name from libfoo to libgnu.
32094         Now, if you have a configure.ac that says:
32095                 gl_SOURCE_BASE(gl)
32096                 gl_M4_BASE(gl/m4)
32097                 gl_MODULES(error getopt etcetera)
32098                 gl_INIT
32099         you can import all you need by running:
32100                 ../gnulib/gnulib-tool --import
32101
32102         * modules/getopt (Files): Rename getopt.h to getopt_.h.
32103         (Makefile.am): Rewrite, use logic from argz.
32104         (Include): Use <getopt.h> instead of "getopt.h".
32105
32106 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32107
32108         * modules/argp (Files): Add m4/unlocked-io.m4.
32109         (Depends-on): Add extensions.
32110
32111 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32112
32113         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
32114         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
32115         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
32116         Check for program_invocation_name, program_invocation_short_name,
32117         flockfile, funlockfile, features.h, _getopt_long_only_r.
32118
32119 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32120
32121         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
32122         its complicated substitute.
32123         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
32124         and program_invocation_name.
32125         (__argp_basename) [!_LIBC]: Remove; the only use was
32126         replaced by its body.
32127         (__argp_short_program_name): Change condition from
32128         !defined __argp_short_program_name to
32129         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
32130         to match argp-namefrob.h.
32131         (__argp_failure): Don't assume strerror_r returns char *.
32132         * lib/argp-parse.c (N_): Define unconditionally.
32133         (argp_default_options): Fill out initializers with 0 to avoid
32134         gcc warnings.
32135
32136 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32137
32138         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
32139         getopt1.c.
32140
32141 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32142
32143         Merge from coreutils.
32144
32145         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
32146
32147         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
32148         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
32149
32150 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32151
32152         Merge from coreutils.
32153
32154         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
32155         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
32156         for Reliant Unix 5.43.
32157
32158         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
32159         (union fooround): Use uintmax_t, not long int.
32160         The rest is a merge from libc:
32161         [defined _LIBC]: Include <shlib-compat.h>.
32162         (_obstack) [defined _LIBC]: Remove after 2.3.4.
32163
32164         * lib/settime.c (settime): Recode to avoid warning with
32165         Sun Forte C 6U2.
32166
32167         * lib/strverscmp.c: Convert to UTF-8.
32168
32169 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32170
32171         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
32172         m4/uintmax_t.m4.
32173
32174 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32175
32176         * modules/xalloc-die: New file.
32177         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
32178
32179         * modules/md5 (Files): Add m4/uint32_t.m4.
32180         * modules/sha1: Renamed from modules/sha.
32181         (Files):
32182         Rename lib/sha.h to lib/sha1.h.
32183         Rename lib/sha.c to lib/sha1.c.
32184         Rename m4/sha.m4 to m4/sha1.m4.
32185         (lib_SOURCES): Likewise.
32186         (configure.ac): Rename gl_SHA to gl_SHA1.
32187         (Include): sha.h -> sha1.h.
32188
32189 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32190
32191         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
32192         * m4/sha1.m4: Renamed from sha.m4.
32193         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
32194
32195 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32196
32197         * lib/obstack.h (obstack_empty_p):
32198         Don't assume that chunk->contents is suitably aligned.
32199         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
32200         Likewise. Problem reported by Benno in
32201         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
32202
32203         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
32204         readable.  This could be improved further but it'd take some work.
32205
32206 2004-08-08  Simon Josefsson  <jas@extundo.com>
32207
32208         * modules/xgethostname (Depends-on): Remove exit and error (not
32209         used).
32210
32211         * modules/getpass-gnu: Add getpass.h.
32212         (Depends-on): Add stdbool.
32213         * modules/getpass: Add getpass.h.
32214
32215 2004-08-08  Simon Josefsson  <jas@extundo.com>
32216
32217         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
32218         Check getpass declaration.
32219
32220 2004-08-08  Simon Josefsson  <jas@extundo.com>
32221
32222         * lib/xgethostname.c: Don't include error.h (not used).
32223
32224         * lib/getpass.h: Add.
32225         * lib/getpass.c: Include getpass.h first.
32226
32227 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
32228
32229         * lib/xalloc-die.c: New file.
32230         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
32231         All uses removed.
32232         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
32233         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
32234         xalloc-die.c.
32235         (_, N_, xalloc_die): Move to xalloc-die.c.
32236         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
32237         so that we needn't mess with xalloc_msg_memory_exhausted.
32238
32239         * lib/sha1.h: Renamed from sha.h.
32240         (SHA1_H): Renamed from _SHA_H.
32241         (sha1_ctx): Renamed from sha_ctx.
32242         (sha1_init_ctx): Renamed from sha_init_ctx.
32243         (sha1_process_block): Renamed from sha_process_block.
32244         (sha1_process_bytes): Renamed from sha_process_bytes.
32245         (sha1_finish_ctx): Renamed from sha_finish_ctx.
32246         (sha1_read_ctx): Renamed from sha_read_ctx.
32247         (sha1_stream): Renamed from sha_stream.
32248         (sha1_buffer): Renamed from sha_buffer.
32249         * lib/sha1.c: Likewise; renamed from sha.c.
32250         Do not include <sys/types.h>.
32251         Include <stddef.h> rather than <stdlib.h>.
32252
32253 2004-08-08  Bruno Haible  <bruno@clisp.org>
32254
32255         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
32256         FILESYSTEM_PREFIX_LEN.
32257         * lib/progreloc.c: Likewise.
32258         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
32259
32260 2004-08-06  Simon Josefsson  <jas@extundo.com>
32261
32262         * modules/progname (Depends-on): Don't depend on stdbool.
32263
32264 2004-08-06  Simon Josefsson  <jas@extundo.com>
32265
32266         * modules/getsubopt: New file.
32267         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32268         getsubopt.
32269
32270 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32271
32272         More merge from coreutils.
32273
32274         * m4/utimens.m4, m4/utimecmp.m4: New files.
32275         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
32276         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
32277         prereq.m4, sha.m4: Import changes from coreutils.
32278
32279 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32280
32281         More merge from coreutils.
32282         * modules/raise, modules/readtokens0, modules/utimens:
32283         * modules/utimecmp, module/xnanosleep: New files.
32284         * modules/strftime: Add lib/strftime.h.
32285         Change include from <time.h> to "strftime.h".
32286         * modules/yesno: Add lib/yesno.h.
32287         * modules/backupfile: Remove lib/addext.c.
32288         * modules/euidaccess: Add stat-macros.h.
32289         * modules/canonicalize, modules/euidaccess,
32290         modules/filemode, modules/lchown, modules/makepath,
32291         modules/rmdir, modules/stat: Likewise.
32292
32293 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32294
32295         Merge from tar.
32296         * lib/argp-help.c (make_hol, hol_append): Don't assume that
32297         SIZE_MAX is a valid preprocessor constant.
32298         (__argp_basename): Change from "#ifndef _LIBC"
32299         to "#ifndef __argp_short_program_name", so that
32300         we don't compile these functions for tar.
32301
32302         More merges from coreutils.
32303         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
32304         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
32305         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
32306         * lib/addext.c: Remove; no longer needed.
32307         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
32308         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
32309         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
32310         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
32311         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
32312         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
32313         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
32314         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
32315         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
32316         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
32317         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
32318         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
32319         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
32320         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
32321         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
32322         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
32323         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
32324         Import changes from coreutils.
32325
32326 2004-08-05  Simon Josefsson  <jas@extundo.com>
32327
32328         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
32329
32330 2004-08-05  Simon Josefsson  <jas@extundo.com>
32331
32332         * m4/getsubopt.m4: New file.
32333
32334 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32335
32336         Merge from coreutils.
32337
32338         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
32339         * m4/getcwd-path-max.m4: New files.
32340
32341         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
32342         FILESYSTEM_PREFIX_LEN ->
32343         FILE_SYSTEM_PREFIX_LEN.
32344         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
32345         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
32346         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
32347         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
32348
32349         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
32350         prerequisite modules now handle the DOS stuff.
32351         Don't check for unistd.h.
32352
32353 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32354
32355         Merge from coreutils.
32356
32357         * lib/.gdb-history: Remove; this doesn't belong here.
32358
32359         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
32360         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
32361         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
32362         * lib/getcwd.c: New files.
32363
32364         * lib/dirname.h: Include <stdbool.h>.
32365         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
32366         for consistency with POSIX terminology.  All uses changed.
32367         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
32368         (strip_trailing_slashes): Use bool for booleans.
32369         * lib/stripslash.c (strip_trailing_slashes): Likewise.
32370
32371         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
32372         sometimes returns a positive errno value even when it succeeds.
32373         (print_errno_message) [!LIBC]: Fall back on strerror if
32374         __strerror_r fails.
32375
32376         * lib/path-concat.c (mempcpy): Don't define if a system header defines
32377         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
32378         (longest_relative_suffix): New function.
32379         (path_concat): Use it.  Assume first argument is not NULL.
32380         Port to DOS.  Omit redundant separators.
32381         Report an error instead of returning NULL.
32382         Use mempcpy instead of memcpy.
32383         (xpath_concat): Remove: not declared or used.
32384
32385         * lib/same.h: Include <stdbool.h>
32386         (same_name): Return bool, not int.
32387         * lib/same.c (same_name): Likewise.
32388         (errno): Don't declare; we assume C89 or better now.
32389
32390         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
32391         if not already defined.
32392
32393         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
32394         * lib/dup-safer.c (errno): Likewise.
32395
32396 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32397
32398         Merge from coreutils.
32399         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
32400         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
32401         * modules/path-concat: Don't depend on strdup.
32402
32403 2004-08-03  Simon Josefsson  <jas@extundo.com>
32404
32405         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
32406         * lib/progname.h: Don't include stdbool.h.
32407
32408 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
32409
32410         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
32411         * MODULES.html.sh (func_all_modules): Remove fatal.
32412
32413 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
32414
32415         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
32416
32417 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
32418
32419         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
32420         working.
32421
32422 2004-08-02  Simon Josefsson  <jas@extundo.com>
32423
32424         * lib/getsubopt.h: New file, with comments from Bruno Haible.
32425         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
32426         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
32427
32428 2004-08-01  Simon Josefsson  <jas@extundo.com>
32429
32430         * lib/xgetdomainname.c: Include stdlib.h, for free().
32431
32432 2004-07-19  Bruno Haible  <bruno@clisp.org>
32433
32434         * MODULES.html.sh (func_all_modules): Add dummy.
32435
32436 2004-07-16  Simon Josefsson  <jas@extundo.com>
32437
32438         * modules/dummy: New file.
32439
32440 2004-07-16  Simon Josefsson  <jas@extundo.com>
32441
32442         * lib/dummy.c: New file.
32443
32444 2004-07-16  Bruno Haible  <bruno@clisp.org>
32445
32446         * lib/backupfile.h: Add extern "C" for C++.
32447         * lib/closeout.h: Likewise.
32448         * lib/copy-file.h: Likewise.
32449         * lib/findprog.h: Likewise.
32450         * lib/full-write.h: Likewise.
32451         * lib/pathname.h: Likewise.
32452         * lib/progname.h: Likewise.
32453         * lib/stpcpy.h: Likewise.
32454         * lib/stpncpy.h: Likewise.
32455         * lib/strcase.h: Likewise.
32456         * lib/strstr.h: Likewise.
32457         * lib/xalloc.h: Likewise.
32458
32459         * lib/mbswidth.h: Add extern "C" for C++.
32460         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
32461
32462 2004-07-13  Robert Millan  <robertmh@gnu.org>
32463
32464         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
32465
32466 2004-07-09  Simon Josefsson  <jas@extundo.com>
32467
32468         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
32469         failed without this.)
32470
32471 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32472
32473         * modules/chown (Files): Add lib/fchown-stub.c, since
32474         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
32475
32476 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32477
32478         * lib/fchown-stub.c: New file.
32479
32480 2004-06-24  Jim Meyering  <jim@meyering.net>
32481
32482         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
32483
32484 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32485
32486         * modules/argz: Omit "#include".
32487
32488         * MODULES.html.sh (func_all_modules): Add calloc, to match
32489         2004-06-01 addition of calloc module.
32490
32491 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32492
32493         * m4/argz.m4: New file, which is autoupdated from libtool.
32494
32495 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32496
32497         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
32498         libtool.
32499
32500 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32501
32502         * config/srclist-update: Don't insist on "USA." before the
32503         close-comment, as libtool omits the period and puts the */ on a
32504         separate line.
32505         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
32506         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
32507
32508 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
32509
32510         * modules/argz: New file.
32511         * MODULES.html.sh (func_all_modules): Add argz.
32512
32513 2004-06-12  Jim Meyering  <jim@meyering.net>
32514         and  Paul Eggert  <eggert@cs.ucla.edu>
32515
32516         * modules/hash (Files): Add lib/xalloc.h.
32517         * modules/pipe (Depends-on): Add wait-process.
32518         * modules/stat (Depends-on): Add xalloc.
32519         * modules/userspec (Files): Add lib/userspec.h.
32520         * modules/xstrto
32521
32522         Upgrade from gettext-0.13.
32523         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
32524         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
32525         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
32526
32527 2004-06-10  Jim Meyering  <jim@meyering.net>
32528
32529         * lib/calloc.c: New file.
32530
32531 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
32532
32533         * lib/getdate.y (yylex): Allow space between sign and number.
32534         Problem reported by Dan Jacobson.
32535
32536 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
32537
32538         Merge from coreutils CVS.
32539
32540         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
32541         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
32542         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
32543         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
32544         xstrtol.m4: Fix copyright date and/or serial number.
32545
32546         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
32547         See if we need an fchown replacement.
32548         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
32549         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
32550         and use the replacement function if we detect either defect.
32551
32552         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
32553         gl_UTIMECMP.
32554
32555 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
32556         and  Jim Meyering  <jim@meyering.net>
32557
32558         Merge from coreutils CVS.
32559
32560         * lib/stat-macros.h: New file, with contents from file-type.h
32561         and coreutils' system.h.
32562         * lib/file-type.c: Include "stat-macros.h".
32563         * lib/file-type.h (file_type): Move all macro definitions to new file,
32564         stat-macros.h.
32565
32566         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
32567         Wrap old code with this conditional.
32568         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
32569         function that does not dereference symlinks.
32570         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
32571
32572         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
32573         dependency problems.
32574         (xreadlink): Accept new arg SIZE, for efficiency.
32575         All decls and uses changed.
32576         * lib/xreadlink.h: Include <stddef.h>, for size_t.
32577
32578         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
32579         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
32580
32581         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
32582         sysexits.h.
32583
32584 2004-06-01  Jim Meyering  <jim@meyering.net>
32585
32586         * m4/calloc.m4: New file.
32587
32588 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
32589
32590         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
32591         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
32592         Also, fix a typo in a diagnostic.
32593
32594 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
32595
32596         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
32597         or AC_FUNC_REALLOC.
32598
32599 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
32600
32601         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
32602         macros to be defined.
32603         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
32604         the allocator returns NULL because the requested size is zero.
32605
32606 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32607
32608         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
32609         var.  Add comment explaining why libc still defines it.  This
32610         merges the following patch from glibc:
32611         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
32612
32613 2004-05-20  Andreas Schwab  <schwab@suse.de>
32614
32615         * m4/free.m4: Replace free if it not known to work, not the other
32616         way round.
32617
32618 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32619
32620         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
32621         present in glibc since revision 1.1 of this file.
32622         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
32623         obstack_alignment_mask, obstack_alloc, obstack_base,
32624         obstack_blank, obstack_blank_fast, obstack_chunk_size,
32625         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
32626         obstack_grow0, obstack_init, obstack_int_grow,
32627         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
32628         obstack_next_free, obstack_object_size, obstack_ptr_grow,
32629         obstack_ptr_grow_fast, obstack_room): Remove declarations of
32630         nonexistent functions.
32631
32632 2004-05-18  Karl Berry  <karl@gnu.org>
32633
32634         * config/srclist.txt: break link for vasnprintf.c.
32635
32636 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
32637
32638         Port obstack to the AS/400, where pointers are 16 bytes wide and
32639         you cannot cast an integer to a valid pointer.  This patch is
32640         currently waiting to be integrated into glibc; see
32641         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
32642
32643         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
32644         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
32645         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
32646         (struct obstack): temp member is now a union of a pointer and
32647         an integer, instead of an integer.  All integer uses changed.
32648         This does not affect the physical layout of struct obstack,
32649         except on hosts (like the AS/400) where the size or alignment of
32650         void * is greater than that of ptrdiff_t.
32651         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
32652         __STDC__)]: Store temporary in pointer member of union, not
32653         integer member.
32654         * lib/obstack.c: Include <stddef.h>, for offsetof.
32655         (struct fooalign): Remove; it doesn't need a name.
32656         (union fooround): Change double to long double, and add void *.
32657         (DEFAULT_ALIGNMENT): Use offsetof to compute.
32658         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
32659         not a macro.  Hence the values are always int; so remove all
32660         casts-to-int in uses.
32661
32662 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
32663
32664         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
32665         we can get this patch merged into glibc.
32666
32667 2004-05-17  Derek R. Price  <derek@ximbiot.com>
32668             Paul Eggert  <eggert@cs.ucla.edu>
32669
32670         * m4/argp: Depend on alloca.
32671
32672 2004-05-17  Derek R. Price  <derek@ximbiot.com>
32673             Paul Eggert  <eggert@cs.ucla.edu>
32674
32675         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
32676         freecoding.
32677
32678 2004-05-17  Bruno Haible  <bruno@clisp.org>
32679
32680         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
32681         precision that consists of a '.' followed by an empty digit string.
32682         Patch by Tor Lillqvist <tml@iki.fi>.
32683
32684 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32685
32686         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
32687         for backward compatibility with older code.  We need our own
32688         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
32689         it under some other name, and our alloca.h will define it.
32690
32691 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32692             Derek Price  <derek@ximbiot.com>
32693
32694         * lib/alloca.c: Include <alloca.h>, to get our interface.
32695         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
32696         include <alloca.h> first.  Use C89 prototype for alloca; this
32697         requires including <stddef.h> for size_t.  Use extern "C" if C++.
32698         Use #elif for simplicity, since we can assume C89 now.
32699         Don't try to source the system alloca.h since it will not be found
32700         and to prevent recursively including its replacement.
32701         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
32702         * lib/regex.c: Likewise.
32703
32704 2004-05-16  Derek Price  <derek@ximbiot.com>
32705             Paul Eggert  <eggert@cs.ucla.edu>
32706
32707         getline cleanup.  This changes the getndelim2 API: both order of
32708         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
32709         no delimiter).
32710
32711         * lib/getline.c: Don't include stddef.h or stdio.h, since our
32712         interface does that.
32713         (getline): Always use getdelim, so that we don't have two
32714         copies of this code.
32715         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
32716         if available.
32717         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
32718         (GETNDELIM2_MAXIMUM): New macro.
32719         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
32720         instead of the old practice of delim2==0.  All callers changed.
32721         Return -1 on overflow, instead of returning junk.
32722         Do not set *linesize unless allocation succeeds.
32723         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
32724         that we include sys/types.h.
32725         * lib/getnline.h: Likewise.
32726         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
32727         (getndelim2): Reorder arguments.
32728         * lib/getnline.c (getnline, getndelim):
32729         Don't discard the NMAX argument.
32730         (getnline): Invoke getndelim, to avoid code duplication.
32731         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
32732         of (size_t) -1 by callers of the getnline family.
32733
32734 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
32735
32736         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
32737         Check for gettimeofday.
32738         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
32739         Check for settimeofday, stime.
32740
32741 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
32742
32743         * lib/nanosleep.c (suspended): Change its type from int to
32744         sig_atomic_t volatile.
32745         (first_call): Make it private to rpl_nanosleep, and have it
32746         be zero initially as that's a bit faster.
32747         (my_usleep): Round up fractional times instead of truncating them,
32748         as this is the usual meaning for 'sleep'.
32749
32750         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
32751         doesn't work.
32752         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
32753         (ENOSYS): Define if not defined.
32754         (settime): Fall back on stime if it exists and settimeofday fails.
32755         But don't bother with fallbacks if a method fails with errno == EPERM.
32756
32757 2004-05-11  Jim Meyering  <jim@meyering.net>
32758
32759         Prior to this change, the save_cwd caller required read access to the
32760         current directory on most systems (ones with the fchdir function).
32761
32762         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
32763         fails, try write-only, and finally, resort to using xgetcwd.
32764
32765 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
32766
32767         * lib/obstack.c, obstack.h: Import changes from libc.
32768
32769 2004-04-28  Bruno Haible  <bruno@clisp.org>
32770
32771         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
32772         also implicitly appends .exe to executables.
32773         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
32774         accepts Windows pathnames.
32775         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
32776         Treat Cygwin like Windows, since it now accepts Windows pathnames.
32777         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
32778         Treat Cygwin like Windows, since it now accepts Windows pathnames.
32779         Reported by Derek Robert Price <derek@ximbiot.com>.
32780
32781 2004-04-21  Karl Berry  <karl@gnu.org>
32782
32783         * config/srclist.txt (localcharset.c): break sync.
32784
32785 2004-04-20  Paul Eggert  <eggert@twinsun.com>
32786
32787         * m4/host-os.m4: Add a copyright notice.
32788
32789 2004-04-20  Jim Meyering  <jim@meyering.net>
32790
32791         Change UTILS_ to gl_ in AC_DEFINE'd names.
32792         Change utils_- and jm_-prefixed variables, too.
32793         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
32794         UTILS_FUNC_MKDIR_TRAILING_SLASH.
32795         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
32796
32797         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
32798         Don't emit trailing blanks.
32799         Also rename jm_-prefixed variables to have gl_ prefix.
32800
32801         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
32802         Also rename jm_-prefixed variables to have gl_ prefix.
32803
32804         * m4/jm-macros.m4: Reflect the renamings.
32805         * m4/prereq.m4: Likewise.
32806
32807 2004-04-20  Jim Meyering  <jim@meyering.net>
32808
32809         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
32810         memory.
32811
32812 2004-04-20  Jim Meyering  <jim@meyering.net>
32813             Bruno Haible  <bruno@clisp.org>
32814
32815         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
32816         memory when realloc fails.
32817
32818 2004-04-19  Jim Meyering  <jim@meyering.net>
32819
32820         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
32821         now that readutmp.c may call `free (0)'.
32822
32823 2004-04-19  Bruno Haible  <bruno@clisp.org>
32824
32825         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
32826         * m4/inttypes_h.m4: Likewise.
32827         * m4/stdint_h.m4: Likewise.
32828         * m4/intmax_t.m4: Likewise.
32829         * m4/uintmax_t.m4: Likewise.
32830
32831 2004-04-18  Jim Meyering  <jim@meyering.net>
32832
32833         * m4/prereq.m4: Don't forbid jm_ prefix.
32834
32835         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
32836         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
32837         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
32838         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
32839         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
32840         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
32841         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
32842         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
32843         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
32844         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
32845         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
32846         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
32847         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
32848         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
32849         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
32850         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
32851         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
32852         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
32853         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
32854
32855 2004-04-18  Jim Meyering  <jim@meyering.net>
32856
32857         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
32858         failure, don't leak memory and do call END_UTMP_ENT.
32859
32860 2004-04-16  Jim Meyering  <jim@meyering.net>
32861
32862         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
32863         coreutils' stat program.
32864         (gl_PREREQ): Don't require jm_PREREQ_STAT.
32865
32866 2004-04-11  Paul Eggert  <eggert@twinsun.com>
32867
32868         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
32869         C89.
32870         (CHAR_BIT): Remove, since we assume C89.
32871         Include <stdint.h> if available, as per current Autoconf CVS advice.
32872
32873 2004-03-31  Jim Meyering  <jim@meyering.net>
32874
32875         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
32876         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
32877         * m4/xalloc.m4: Likewise.
32878
32879 2004-03-30  Paul Eggert  <eggert@twinsun.com>
32880
32881         Merge from coreutils.
32882
32883         * m4/inttostr.m4: New file.
32884         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
32885         Require AM_STDBOOL_H and gl_TIMESPEC instead.
32886         Require gl_CLOCK_TIME.
32887         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
32888
32889 2004-03-30  Paul Eggert  <eggert@twinsun.com>
32890
32891         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
32892         not bool, to be more consistent with Unix conventions.
32893         Suggested by Bruno Haible.
32894
32895         Merge from coreutils.
32896
32897         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
32898         * lib/umaxtostr.c: New files.
32899
32900         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
32901         the usual <time.h> dance.
32902         (get_date): Change signature to support fractional time stamps.
32903         All callers changed.
32904         * lib/getdate.y: Include "getdate.h" first, as we can now
32905         assume C89 and don't need to worry about 'const'.
32906         Similarly, include "unlocked-io.h" near start, not in middle.
32907         Include <limits.h>.
32908         (textint.value): Use long int rather than int.
32909         (textint.digits): Use size_t rather than int.
32910         (BILLION, LOG10_BILLION): New constants.
32911         (parser_control): New member rel_ns.  Members day_ordinal,
32912         time_zone, month, day, hour, minutes, rel_year, rel_month,
32913         rel_day, rel_hour, rel_minutes, rel_seconds
32914         are now long int, not int.  Member seconds is now struct timespec,
32915         not int.  New member timespec_seen.  Members dates_seen, days_seen,
32916         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
32917         not int.
32918         (%union.intval): Now long int, not int.
32919         New member timespec.
32920         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
32921         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
32922         (spec): Now is a timespec or an item list.
32923         (timespec, items): New nonterminals.
32924         (time, rel, relunit, number, get_date):
32925         Add support for fractional seconds.
32926         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
32927         (gmtime, localtime, mktime): Remove decls; not needed with C89.
32928         (to_hour): First arg is now long int, not int.
32929         (to_year): Returns long int, not int.
32930         Don't treat year -70 like 70.
32931         (tm_diff): Returns long int, not int.
32932         (lookup_word): Use bool instead of int when appropriate.
32933         (yylex): Use size_t for count, not int.
32934         Detect overflow when parsing large integer constants.
32935         Add support for fractions.
32936         (get_date): Make pointers 'const' if possible.
32937         Use more-portable code to detect integer overflow.
32938         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
32939         Don't use ctime; it's not reliable if the year has >4 digits.
32940
32941         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
32942         This is for compatibility with BSD.
32943
32944         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
32945         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
32946         From coreutils' system.h.
32947
32948         * lib/userspec.c: Don't include "posixver.h".
32949         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
32950         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
32951         compatible extension.  Simplify code by removing a boolean int
32952         that was always nonzero if a string was nonnull.
32953
32954 2004-03-30  Jim Meyering  <jim@meyering.net>
32955
32956         Merge from coreutils.
32957
32958         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
32959         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
32960         on some systems one must include <grp.h> before it.
32961         Reported by Christian Krackowizer.
32962
32963 2004-03-30  Jim Meyering  <jim@meyering.net>
32964
32965         Merge from coreutils.
32966
32967         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
32968
32969         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
32970         an empty input stream.
32971
32972         * lib/readtokens.c: Include <stdbool.h>.
32973         (readtoken): Use `size_t' rather than int/long.
32974         All callers adjusted.
32975         Use `bool' rather than `int' where appropriate.
32976         Use memset rather than an explicit loop.
32977         Use x2nrealloc rather than xrealloc.
32978         Allow the use of `\0' as a delimiter.
32979         (readtokens): Likewise.
32980         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
32981
32982 2004-03-30  Jim Meyering  <jim@meyering.net>
32983
32984         * m4/realloc.m4: Remove file, since now it does no more than
32985         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
32986         the `configure.ac' section of module/realloc.
32987         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
32988
32989 2004-03-30  Bruno Haible  <bruno@clisp.org>
32990
32991         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
32992         nonnull.
32993
32994 2004-03-29  Paul Eggert  <eggert@twinsun.com>
32995
32996         Merge changes to getloadavg.c from coreutils and Emacs.
32997
32998         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
32999         Define to an expression, not to the empty string.
33000         Include cloexec.h and xalloc.h.
33001         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
33002         Use set_cloexec_flag rather than rolling our own.
33003         * lib/cloexec.c, lib/cloexec.h: New files.
33004
33005 2004-03-29  Paul Eggert  <eggert@twinsun.com>
33006
33007         * m4/cloexec.m4: New file.
33008
33009 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33010
33011         * lib/getopt.h: Sync with libc CVS.
33012
33013 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33014             Bruno Haible  <bruno@clisp.org>
33015
33016         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
33017         mbswidth.
33018
33019 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33020             Bruno Haible  <bruno@clisp.org>
33021
33022         * lib/mbswidth.h: Include <wchar.h> only if
33023         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
33024         <wchar.h>.
33025         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
33026
33027 2004-03-09  Paul Eggert  <eggert@twinsun.com>
33028
33029         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
33030         Sync with libc CVS.
33031         * lib/getopt_int.h: New file, also synced from libc.
33032
33033 2004-03-09  Paul Eggert  <eggert@twinsun.com>
33034
33035         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
33036         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
33037         Bring back getopt.c, getopt.h, getopt1.c.
33038
33039 2004-03-07  Paul Eggert  <eggert@twinsun.com>
33040
33041         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
33042         All uses changed.  Check for sa_sigaction member; this fixes
33043         a bug first reported by Jason Andrade in
33044         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
33045
33046 2004-03-07  Paul Eggert  <eggert@twinsun.com>
33047
33048         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
33049         '#if' expressions.  Unlike the code it replaces, it does not
33050         depend on (defined _SC_PAGESIZE).  However, it does depend on
33051         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
33052         first reported by Jason Andrade in
33053         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
33054
33055 2004-02-25  Simon Josefsson  <jas@extundo.com>
33056
33057         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
33058
33059 2004-02-25  Simon Josefsson  <jas@extundo.com>
33060
33061         * lib/strdup.h: New file.
33062         * lib/strdup.c: Include it.
33063         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
33064         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
33065
33066 2004-02-23  Karl Berry  <karl@gnu.org>
33067
33068         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
33069         (from fencepost.gnu.org:/gd/gnuorg).
33070
33071 2004-02-23  Karl Berry  <karl@gnu.org>
33072
33073         * config/srclistvars.sh (GNUORG) [karl]: redefine.
33074         * config/srclist.txt: add maintain/standards documents.
33075
33076 2004-02-18  Bruno Haible  <bruno@clisp.org>
33077
33078         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
33079         Reported by Derek Robert Price <derek@ximbiot.com>.
33080
33081 2004-02-16  Karl Berry  <karl@gnu.org>
33082
33083         * config/mkinstalldirs, install-sh: update from automake.
33084
33085 2004-02-06  Karl Berry  <karl@gnu.org>
33086
33087         * m4/po.m4: update from gettext 0.14.1.
33088
33089 2004-02-06  Karl Berry  <karl@gnu.org>
33090
33091         * lib/config.charset: update from gettext 0.14.1.
33092
33093 2004-02-05  Paul Eggert  <eggert@twinsun.com>
33094
33095         Add comments and code, prompted by suggestions from Bruno Haible
33096         for sh-quote.
33097         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
33098         describing the enum quoting_style values.
33099         * lib/quotearg.c (quotearg_alloc): New function.
33100         (quotearg_buffer_restyled): Treat lone { and } as special.
33101         Treat = as special.  Work around bug with older shells
33102         that "see" a '\' that is really the 2nd byte of a multibyte char.
33103         Quote empty string with shell_quoting_style.
33104
33105 2004-02-03  Bruno Haible  <bruno@clisp.org>
33106
33107         * m4/pipe.m4: New file, from GNU gettext.
33108
33109 2004-02-03  Bruno Haible  <bruno@clisp.org>
33110
33111         * lib/pipe.h: New file, from GNU gettext.
33112         * lib/pipe.c: New file, from GNU gettext.
33113
33114 2004-01-27  Bruno Haible  <bruno@clisp.org>
33115
33116         * m4/execute.m4: New file, from GNU gettext.
33117
33118 2004-01-27  Bruno Haible  <bruno@clisp.org>
33119
33120         * lib/execute.h: New file, from GNU gettext.
33121         * lib/execute.c: New file, from GNU gettext.
33122         * lib/w32spawn.h: New file, from GNU gettext.
33123
33124 2004-01-24  Paul Eggert  <eggert@twinsun.com>
33125
33126         Merge from diffutils.
33127
33128         * lib/file-type.c (file_type): Add typed memory objects.
33129         * lib/file-type.h (S_TYPEISTMO): New macro.
33130
33131         * lib/c-stack.h (c_stack_action): Remove argv argument.
33132         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
33133         (die): Don't calculate message unless segv_action returns.
33134         (get_stack_location, min_address_from_argv, max_address_from_argv,
33135         volatile stack_base, volatile_stack_size): Remove.
33136         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
33137         that every segmentation violation is a stack overflow.  (Ouch!)
33138         See Debian bug 136249 (still outstanding) for more info about why
33139         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
33140
33141 2004-01-24  Paul Eggert  <eggert@twinsun.com>
33142
33143         Exit-status fix from coreutils.
33144
33145         Use exit_failure consistently in place of EXIT_FAILURE,
33146         so that program exit statuses are consistent on failure.
33147
33148         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
33149         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
33150         * lib/argmatch.h: Comment fix to match the above.
33151         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
33152         Now a macro referring to exit_failure, instead of a separate
33153         variable.  Include "exitfail.h" to get it.
33154         * lib/xstrtol.h: Include "exitfail.h".
33155         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
33156
33157         * lib/long-options.c (parse_long_options): Use prototype
33158         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
33159         for clarity.
33160
33161 2004-01-21  Jim Meyering  <jim@meyering.net>
33162
33163         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
33164         so as not to conflict with a different-sized __mktime_internal
33165         function in GNU libc.
33166         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
33167         Problem building statically-linked `ls' reported by Michael Brunnbauer.
33168
33169 2004-01-20  Karl Berry  <karl@gnu.org>
33170
33171         * config/config.guess: update from config.
33172
33173         * config/srclistvars.sh: GNUWWWLICENSES for karl.
33174
33175 2004-01-20  Bruno Haible  <bruno@clisp.org>
33176
33177         Safer stack allocation.
33178         * lib/setenv.c: Include allocsa.h.
33179         (alloca): Remove fallback definition.
33180         (freea): Remove macro.
33181         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
33182         instead of freea.
33183
33184 2004-01-20  Bruno Haible  <bruno@clisp.org>
33185
33186         * m4/eealloc.m4: New file, from GNU gettext.
33187
33188 2004-01-20  Bruno Haible  <bruno@clisp.org>
33189
33190         * m4/allocsa.m4: New file, from GNU gettext.
33191
33192 2004-01-20  Bruno Haible  <bruno@clisp.org>
33193
33194         * lib/xallocsa.h: New file, from GNU gettext.
33195         * lib/xallocsa.c: New file, from GNU gettext.
33196
33197 2004-01-20  Bruno Haible  <bruno@clisp.org>
33198
33199         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
33200
33201 2004-01-20  Bruno Haible  <bruno@clisp.org>
33202
33203         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
33204         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
33205         specially.
33206
33207 2004-01-20  Bruno Haible  <bruno@clisp.org>
33208
33209         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
33210         patch.
33211
33212 2004-01-20  Bruno Haible  <bruno@clisp.org>
33213
33214         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
33215
33216 2004-01-20  Bruno Haible  <bruno@clisp.org>
33217
33218         * lib/eealloc.h: New file.
33219
33220 2004-01-20  Bruno Haible  <bruno@clisp.org>
33221
33222         * lib/binary-io.h: Avoid warnings on Cygwin.
33223
33224 2004-01-20  Bruno Haible  <bruno@clisp.org>
33225
33226         * lib/allocsa.h: New file, from GNU gettext.
33227         * lib/allocsa.c: New file, from GNU gettext.
33228
33229 2004-01-18  Karl Berry  <karl@gnu.org>
33230
33231         * doc/gpl.texi, doc/lgpl.texi: new files.
33232
33233 2004-01-18  Karl Berry  <karl@gnu.org>
33234
33235         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
33236         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
33237
33238 2004-01-15  Paul Eggert  <eggert@twinsun.com>
33239
33240         Merge from coreutils.
33241
33242         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
33243         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
33244         (gl_DEFAULT_POSIX2_VERSION): Move
33245         the documentation from 'configure' into 'config.hin',
33246         so that 'configure --help' isn't burdened by it and
33247         we don't have to worry about its formatting there.
33248         Reword the documentation so that it's more succinct
33249         and can be run together into a single paragraph.
33250         * m4/same.m4 (gl_SAME): Check for pathconf.
33251
33252 2004-01-15  Paul Eggert  <eggert@twinsun.com>
33253
33254         Merge from coreutils.
33255
33256         * lib/posixver.c: Include posixver.h.
33257
33258         * lib/same.c: Include <stdbool.h>, <limits.h>.
33259         (_POSIX_NAME_MAX): Define if not defined.
33260         (MIN): New macro.
33261         (same_name): If file names are silently truncated, report
33262         that the file names are the same if they are the same after
33263         the silent truncation.
33264
33265         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
33266         conversion function.
33267         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
33268         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
33269         longer needed.
33270
33271 2004-01-15  Jim Meyering  <jim@meyering.net>
33272
33273         Merge from coreutils.
33274
33275         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
33276         if no library is required.
33277         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
33278         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
33279         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
33280         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
33281         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
33282         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
33283         value, $ac_cv_search_crypt, if it's "none required".
33284         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
33285         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
33286         not gl_FUNC_GETLOADAVG.
33287         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
33288         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
33289
33290 2004-01-15  Jim Meyering  <jim@meyering.net>
33291
33292         Merge from coreutils.
33293
33294         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
33295         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
33296         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
33297
33298         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
33299         optional configure-time default.
33300
33301         * lib/version-etc.c (version_etc_copyright): Update copyright date.
33302
33303         * lib/xreadlink.c (xreadlink): Correct outdated comment.
33304
33305 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
33306
33307         Merge from coreutils.
33308
33309         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
33310         value, $ac_cv_search_nanosleep, if it's "none required".
33311
33312 2004-01-14  Paul Eggert  <eggert@twinsun.com>
33313
33314         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
33315         with like-named macro in fnmatch.c.
33316         (EXT): Use an internal constant instead.
33317
33318         Merge fnmatch patches from glibc.
33319         * lib/fnmatch.c (mbsinit): Remove define.
33320         Add libc_hidden_ver (__fnmatch, fnmatch).
33321         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
33322         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
33323
33324 2004-01-14  Karl Berry  <karl@gnu.org>
33325
33326         * config/install-sh: update from automake.
33327
33328 2004-01-13  Karl Berry  <karl@gnu.org>
33329
33330         * config/install-sh: update from automake.
33331
33332 2004-01-09  Karl Berry  <karl@gnu.org>
33333
33334         * config/install-sh: update from automake.
33335
33336 2004-01-05  Karl Berry  <karl@gnu.org>
33337
33338         * config/config.{sub,guess}: update from config.
33339
33340 2003-12-31  Karl Berry  <karl@gnu.org>
33341
33342         * config/depcomp: update from automake.
33343
33344 2003-12-14  Karl Berry  <karl@gnu.org>
33345
33346         * lib/config.charset: update from gettext-runtime.
33347
33348 2003-12-03  Paul Eggert  <eggert@twinsun.com>
33349
33350         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
33351         Bug reported by Alfred M. Szmidt.
33352
33353 2003-12-03  Bruno Haible  <bruno@clisp.org>
33354
33355         * m4/gettext.m4: Upgrade from gettext-0.13.
33356         * m4/po.m4: Upgrade from gettext-0.13.
33357         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
33358         * m4/intmax.m4: New file, from gettext-0.13.
33359         * m4/printf-posix.m4: New file, from gettext-0.13.
33360
33361 2003-11-29  Karl Berry  <karl@gnu.org>
33362
33363         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
33364
33365 2003-11-25  Paul Eggert  <eggert@twinsun.com>
33366             Bruno Haible  <bruno@clisp.org>
33367
33368         * lib/printf-parse.h: Don't include sys/types.h.
33369         (ARG_NONE): New macro.
33370         (char_directive): Change type of *arg_index fields to size_t.
33371         * lib/printf-parse.c: Don't include sys/types.h.
33372         (SSIZE_MAX): Remove macro.
33373         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
33374         Remove unnecessary overflow check.
33375         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
33376         fields.
33377
33378 2003-11-25  Bruno Haible  <bruno@clisp.org>
33379
33380         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
33381
33382 2003-11-25  Bruno Haible  <bruno@clisp.org>
33383
33384         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
33385         gt_TYPE_SSIZE_T.
33386
33387 2003-11-24  Paul Eggert  <eggert@twinsun.com>
33388
33389         * modules/alloca: Remove dependency on xalloc.
33390
33391 2003-11-24  Paul Eggert  <eggert@twinsun.com>
33392
33393         * lib/alloca.c: Remove dependency on xalloc module.
33394         (xalloc_die): Remove.
33395         (memory_full) [!defined emacs]: New macro.
33396         [!defined emacs]: Don't include xalloc.h.
33397         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
33398         address arithmetic overflows.  Change datatypes a bit to avoid
33399         unnecessary casts.
33400
33401 2003-11-22  Jim Meyering  <jim@meyering.net>
33402
33403         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
33404         s/size/size_t/.
33405
33406 2003-11-21  Karl Berry  <karl@gnu.org>
33407
33408         * config/config.{sub,guess}: update from config.
33409
33410 2003-11-18  Karl Berry  <karl@gnu.org>
33411
33412         * config/config.{sub,guess}: update from config.
33413
33414         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
33415
33416 2003-11-17  Paul Eggert  <eggert@twinsun.com>
33417
33418         * README: Mention that S+T cannot overflow if S is the size of
33419         an existing object and T is sufficiently small.
33420
33421 2003-11-17  Jim Meyering  <jim@meyering.net>
33422
33423         On systems without utime and without a utimes function capable of
33424         dealing with a NULL struct utimbuf* argument, this utime replacement
33425         could -- in unusual circumstances -- leak a file descriptor.
33426         * lib/utime.c: Include <unistd.h> and <errno.h>.
33427         (utime_null): Be sure to close `fd' and to preserve errno.
33428         Reported by Geoff Collyer via Arnold Robbins.
33429
33430 2003-11-17  Bruno Haible  <bruno@clisp.org>
33431
33432         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
33433         (Depends-on): Add xsize.
33434
33435 2003-11-17  Bruno Haible  <bruno@clisp.org>
33436
33437         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
33438
33439 2003-11-17  Bruno Haible  <bruno@clisp.org>
33440
33441         * lib/vasnprintf.c (alloca): Remove fallback definition.
33442         (freea): Remove definition.
33443         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
33444         Reported by Paul Eggert.
33445
33446 2003-11-16  Paul Eggert  <eggert@twinsun.com>
33447             Bruno Haible  <bruno@clisp.org>
33448
33449         Protect against address arithmetic overflow.
33450         * lib/printf-args.h: Include stddef.h.
33451         (arguments): Change type of field 'count' to size_t.
33452         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
33453         'unsigned int' where appropriate.
33454         * lib/printf-parse.h: Include sys/types.h.
33455         (char_directive): Change type of *arg_index fields to ssize_t.
33456         (char_directives): Change type of fields 'count', max_*_length to
33457         size_t.
33458         * lib/printf-parse.c: Include sys/types.h and xsize.h.
33459         (SSIZE_MAX): Define fallback value.
33460         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
33461         instead of 'int' where appropriate. Check a_allocated, d_allocated
33462         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
33463         * lib/vasnprintf.c: Include xsize.h.
33464         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
33465         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
33466         overflow. Avoid wraparound when converting a width or precision from
33467         decimal to binary.
33468
33469 2003-11-16  Bruno Haible  <bruno@clisp.org>
33470
33471         Update from GNU gettext.
33472         * lib/printf-parse.c: Generalize to it can be compiled for wide
33473         strings.
33474         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
33475         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
33476         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
33477         SNPRINTF): New macros.
33478         Don't include <alloca.h> if the file is used inside libintl.
33479         (local_wcslen): New function, for Solaris 2.5.1.
33480         (VASNPRINTF): Use it instead of wcslen.
33481
33482 2003-11-16  Bruno Haible  <bruno@clisp.org>
33483
33484         * lib/xsize.h (xmax): New function.
33485         (xsum, xsum3, xsum4): Declare as "pure" functions.
33486
33487 2003-11-12  Paul Eggert  <eggert@twinsun.com>
33488
33489         * modules/xalloc (Files): Undo latest change, since xalloc.h
33490         no longer needs SIZE_MAX or PTRDIFF_MAX.
33491
33492 2003-11-12  Paul Eggert  <eggert@twinsun.com>
33493
33494         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
33495         gl_PTRDIFF_MAX.
33496
33497 2003-11-12  Paul Eggert  <eggert@twinsun.com>
33498
33499         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
33500         "return", to pacify some unknown compiler.  Problem reported
33501         by Joerg Schilling.
33502
33503 2003-11-12  Paul Eggert  <eggert@twinsun.com>
33504
33505         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
33506         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
33507         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
33508         heuristic is just as accurate as far as we know, and it removes a
33509         dependency on size_max.m4 and ptrdiff_max.m4.
33510
33511 2003-11-11  Bruno Haible  <bruno@clisp.org>
33512
33513         * modules/xsize (Files): Add m4/size_max.m4.
33514         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
33515
33516 2003-11-11  Bruno Haible  <bruno@clisp.org>
33517
33518         * m4/size_max.m4: New file.
33519         * m4/ptrdiff_max.m4: New file.
33520         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
33521         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
33522         (gl_XALLOC): Invoke it.
33523
33524 2003-11-11  Bruno Haible  <bruno@clisp.org>
33525
33526         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
33527         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
33528         defined.
33529
33530 2003-11-10  Paul Eggert  <eggert@twinsun.com>
33531
33532         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
33533         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
33534         rejected some allocations of exactly SIZE_MAX - 2 bytes.
33535         From Bruno Haible.
33536         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
33537         not (size_t) -1, since it's defined here.
33538
33539 2003-11-09  Karl Berry  <karl@gnu.org>
33540
33541         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
33542
33543 2003-11-06  Paul Eggert  <eggert@twinsun.com>
33544
33545         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
33546         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
33547         Reject sizes of exactly SIZE_MAX bytes.
33548         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
33549         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
33550
33551 2003-11-05  Bruno Haible  <bruno@clisp.org>
33552
33553         * lib/xsize.h: Include limits.h, to avoid a possible collision with
33554         SIZE_MAX defined in <limits.h> on Solaris.
33555
33556 2003-11-04  Jim Meyering  <jim@meyering.net>
33557
33558         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
33559         variable names, rather than @VAR@.
33560         * modules/poll: Likewise.
33561
33562 2003-11-04  Bruno Haible  <bruno@clisp.org>
33563
33564         * modules/xsize: New file.
33565         * modules/linebreak: Depend on xsize.
33566         * MODULES.html.sh (func_all_modules): Add xsize.
33567
33568 2003-11-04  Bruno Haible  <bruno@clisp.org>
33569
33570         * m4/xsize.m4: New file.
33571
33572 2003-11-04  Bruno Haible  <bruno@clisp.org>
33573
33574         * lib/xsize.h: New file.
33575         * lib/linebreak.c: Include xsize.h.
33576         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
33577         argument for overflow.
33578         Suggested by Paul Eggert.
33579
33580 2003-11-03  Karl Berry  <karl@gnu.org>
33581
33582         * config/config.{guess,sub}: update from config.
33583
33584 2003-11-03  Jim Meyering  <jim@meyering.net>
33585
33586         * modules/userspec (lib_SOURCES): Add userspec.h.
33587         (Include): Add "userspec.h".
33588         Improve description.
33589
33590 2003-11-03  Jim Meyering  <jim@meyering.net>
33591
33592         * lib/userspec.c: Include "userspec.h".
33593         * lib/userspec.h: New file.
33594
33595 2003-11-03  Bruno Haible  <bruno@clisp.org>
33596
33597         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
33598
33599 2003-11-03  Bruno Haible  <bruno@clisp.org>
33600
33601         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
33602         available, to avoid (extremely rare) race condition.
33603         Suggested by Paul Eggert.
33604
33605 2003-11-02  Karl Berry  <karl@gnu.org>
33606
33607         * config/srclist.txt (vasprintf.c): sync broken, sigh.
33608
33609 2003-10-31  Paul Eggert  <eggert@twinsun.com>
33610
33611         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
33612         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
33613         (read_filesystem_list): Set and use me_type_malloced.
33614         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
33615         whatever the type happens to be), for brevity and consistency.
33616         Check for size calculation overflow on Alphas running OSF/1.
33617
33618 2003-10-31  Jim Meyering  <jim@meyering.net>
33619
33620         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
33621
33622         * lib/linebuffer.c: Include <string.h> for declaration of memset.
33623
33624 2003-10-30  Paul Eggert  <eggert@twinsun.com>
33625             Bruno Haible  <bruno@clisp.org>
33626
33627         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
33628         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
33629
33630 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33631
33632         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
33633         netbsd*-gnu*.  Suggested by Robert Millan.
33634
33635 2003-10-29  Paul Eggert  <eggert@twinsun.com>
33636
33637         * modules/group-member: Depend on stdbool.
33638
33639 2003-10-29  Paul Eggert  <eggert@twinsun.com>
33640
33641         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
33642
33643 2003-10-29  Paul Eggert  <eggert@twinsun.com>
33644
33645         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
33646         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
33647         after the 'gnu' in these cases.  This fixes some bugs in the
33648         previous change, and is based on suggestions by Robert Millan.
33649
33650 2003-10-29  Paul Eggert  <eggert@twinsun.com>
33651
33652         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
33653         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
33654         no longer needed.
33655         * lib/quotearg.c (quotearg_n_options): Use it.
33656         * lib/group-member.c: Include <stdbool.h>.
33657         (free_group_info): Arg is now const *; don't free arg.
33658         (get_group_info): Now returns bool and accepts struct group_info *,
33659         rather than returning a malloc'ed struct group_info *.
33660         All uses changed.  Check for overflow in internal size calculation.
33661
33662         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
33663         rather than xmalloc/xrealloc.
33664         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
33665         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
33666         conformance bug: the old code used a pointer after freeing the
33667         storage that it addressed.
33668         * lib/hash.c (hash_initialize): Simplify the code by using
33669         xalloc_oversized rather than doing it by hand.
33670         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
33671         the buffer preserved.  Use free and xmalloc instead.
33672         * lib/quotearg.c (quotearg_n_options): Likewise.
33673         Use a simpler test for size overflow.  Don't use xalloc_oversized
33674         because unsigned int might be wider than size_t (!); this suggests
33675         that we should switch from unsigned int to size_t for slot numbers.
33676
33677 2003-10-28  Paul Eggert  <eggert@twinsun.com>
33678
33679         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
33680         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
33681         NetBSD kernels.  Requested by Richard Stallman.
33682
33683 2003-10-27  Paul Eggert  <eggert@twinsun.com>
33684
33685         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
33686         to allocate the returned structure.  Do not allocate a subarray,
33687         as x2nrealloc will do that.
33688         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
33689         instead of xnrealloc.
33690         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
33691
33692 2003-10-27  Bruno Haible  <bruno@clisp.org>
33693
33694         * lib/stdbool_.h: Better support for BeOS.
33695
33696 2003-10-26  Paul Eggert  <eggert@twinsun.com>
33697
33698         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
33699         now uses inline.
33700
33701 2003-10-26  Paul Eggert  <eggert@twinsun.com>
33702
33703         * lib/xalloc.h (xalloc_oversized): New static inline function, for
33704         callers that want to do their own size-overflow checking.  Include
33705         <stdbool.h>, since xalloc_oversized returns bool.
33706         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
33707         to use xalloc_oversized.
33708
33709         Add two functions x2realloc, x2nrealloc, for programs that grow
33710         arrays dynamically by doubling their sizes.
33711         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
33712         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
33713         New functions.
33714
33715         Port to C99 semantics for 'inline' of external functions.
33716         Bug reported by Bruno Haible.
33717         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
33718         with the old contents of xnmalloc.
33719         (xnmalloc, xmalloc): Use it.
33720         (xnrealloc_inline): New static inline function,
33721         with the old contents of xnrealloc.
33722         (xnrealloc, xrealloc): Use it.
33723
33724         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
33725         that.
33726
33727 2003-10-26  Karl Berry  <karl@gnu.org>
33728
33729         * config/srclist.txt (COPYING.DOC): no longer available from
33730         /gd/gnuorg; don't know where the ultimate source is.
33731
33732 2003-10-25  Paul Eggert  <eggert@twinsun.com>
33733
33734         Fix several address-calculation bugs in the hash modules,
33735         plus some minor code cleanup.
33736
33737         * lib/hash.h: Include <stdbool.h>, for bool.
33738         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
33739         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
33740         hash_get_n_entries, hash_get_max_bucket_length,
33741         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
33742         hash_rehash): Use size_t rather than unsigned.
33743         * lib/hash.c (struct hash_table, hash_get_n_buckets,
33744         hash_get_n_buckets_used, hash_get_n_entries,
33745         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
33746         hash_get_entries, hash_do_for_each, hash_string, is_prime,
33747         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
33748         Likewise.
33749         (SIZE_MAX): Define if not defined.
33750         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
33751         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
33752         hash_print):
33753         Use const * when possible.
33754         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
33755         (check_tuning): Fix bug: if tuning parameters were very close to
33756         0 or 1, rounding errors could have caused subscript violations.
33757         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
33758         (hash_initialize): Add 'fail:' label
33759         to free table and return NULL, and use it to simplify code.
33760         Use calloc rather than clearing the storage ourself.
33761         (hash_initialize, hash_rehash): Check for arithmetic overflow in
33762         buffer size calculations.
33763         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
33764         Include <stddef.h>, for size_t.
33765         * lib/hash-pjw.c (hash_pjw): Likewise.
33766         Switch to method described by Bruno Haible.
33767         Include <limits.h>, for CHAR_BIT.
33768         (SIZE_BITS): New macro.
33769
33770 2003-10-23  Paul Eggert  <eggert@twinsun.com>
33771
33772         * m4/getline.m4 (AM_FUNC_GETLINE):
33773         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
33774         hosts.  Problem reported by Derek Robert Price in
33775         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
33776         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
33777         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
33778
33779 2003-10-21  Paul Eggert  <eggert@twinsun.com>
33780
33781         * lib/getndelim2.c (getndelim2): When size calculation overflows,
33782         ceiling the allocation at NMAX bytes rather than silently
33783         discarding input bytes before NMAX is reached.  This makes
33784         a difference only if NMAX exceeds SIZE_MAX / 2.
33785
33786         * lib/obstack.c: Merge from glibc.
33787         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
33788         Add libc_hidden_def (_obstack_newchunk).
33789         (_obstack_free) [! defined _LIBC]: Remove.
33790         [defined _LIBC]: Make a strong alias from obstack_free, rather than
33791         a clone of the function body.
33792         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
33793         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
33794
33795         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
33796         glibc.
33797         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
33798         arg to memcpy.
33799
33800         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
33801         (obstack_ptr_grow_fast, obstack_int_grow_fast):
33802         Don't use lvalue casts, as GCC plans to remove support for them
33803         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
33804         was also present in the non-GCC version, indicating that this
33805         code had always been buggy and had never been widely used.
33806         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
33807         Use the fast variant of each macro, rather than copying the
33808         definiens of the fast variant; that way, we'll be more likely to
33809         catch future bugs in the fast variants.
33810
33811 2003-10-20  Bruno Haible  <bruno@clisp.org>
33812
33813         * modules/wait-process: New file.
33814         * MODULES.html.sh (func_all_modules): Add wait-process.
33815
33816 2003-10-20  Bruno Haible  <bruno@clisp.org>
33817
33818         * m4/wait-process.m4: New file.
33819
33820 2003-10-20  Bruno Haible  <bruno@clisp.org>
33821
33822         * lib/wait-process.h: New file, from GNU gettext.
33823         * lib/wait-process.c: New file, from GNU gettext.
33824
33825 2003-10-19  Jim Meyering  <jim@meyering.net>
33826
33827         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
33828         HPUX 10.20.
33829
33830 2003-10-18  Karl Berry  <karl@gnu.org>
33831
33832         * config/config.guess: update from config.
33833
33834 2003-10-16  Paul Eggert  <eggert@twinsun.com>
33835
33836         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
33837         (getgroups): First arg is int, not size_t.
33838         Don't let 'free' mangle errno.
33839
33840 2003-10-16  Paul Eggert  <eggert@twinsun.com>
33841
33842         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
33843
33844 2003-10-16  Karl Berry  <karl@gnu.org>
33845
33846         * config/config.{guess,sub}: update from config.
33847
33848 2003-10-16  Jim Meyering  <jim@meyering.net>
33849
33850         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
33851         memcpy.
33852
33853 2003-10-15  Paul Eggert  <eggert@twinsun.com>
33854
33855         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
33856         (SIZE_MAX): Remove.
33857         (new_exclude, add_exclude_file): Initial size no longer needs to
33858         be a power of 2.
33859         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
33860         our own address arithmetic overflow checking.
33861
33862         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
33863         (fnmatch): Do not alloca more than 2000 wide characters;
33864         instead, use malloc for large buffers.
33865         Check for address arithmetic overflow, and return -1
33866         with errno set to ENOMEM in that case.
33867         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
33868         (NEW_PATTERN): Do not alloca more than 8000 bytes;
33869         instead, return -1.  Check for address arithmetic overflow.
33870
33871 2003-10-14  Paul Eggert  <eggert@twinsun.com>
33872
33873         Handle invalid suffixes and overflow independently, so that
33874         callers can treat them independently as needed.  Fix some bugs in
33875         suffix handling, e.g., "100k@" was not diagnosed as an invalid
33876         suffix for a human-readable blocksize.  The major caller-visible
33877         change is the addition of a new
33878         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
33879         that both overflow and suffix chars were found.
33880
33881         * lib/human.c (humblock): Don't check separately for invalid suffix
33882         char; that is xstrtoumax's job (now that its bug is fixed).
33883         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
33884         INTMAX_MAX]: New macros.
33885         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
33886         TYPE_MAXIMUM): New macros.
33887         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
33888         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
33889         if overflow occurs, as it's what __strtol does and it's more useful
33890         in practice.
33891         (__xstrtol): If __strtol reports some error other than ERANGE,
33892         reflect it to the caller as LONGINT_INVALID.  If it reports
33893         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
33894         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
33895         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
33896         value.
33897         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
33898         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
33899         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
33900         [defined UINTMAX_MAX]: New macros.
33901
33902 2003-10-14  Bruno Haible  <bruno@clisp.org>
33903
33904         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
33905
33906 2003-10-14  Bruno Haible  <bruno@clisp.org>
33907
33908         * m4/sig_atomic_t: New file, from GNU gettext.
33909         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
33910
33911 2003-10-14  Bruno Haible  <bruno@clisp.org>
33912
33913         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
33914         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
33915         Also use volatile where needed.
33916
33917 2003-10-12  Paul Eggert  <eggert@twinsun.com>
33918
33919         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
33920         Change maintainer from Bruno Haible to 'all'.
33921
33922 2003-10-12  Paul Eggert  <eggert@twinsun.com>
33923
33924         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
33925
33926 2003-10-12  Paul Eggert  <eggert@twinsun.com>
33927
33928         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
33929         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
33930         and define in terms of the other primitives.
33931         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
33932         (SIZE_MAX): Define if not already defined.
33933         (array_size_overflow): New function.
33934         (xalloc_die): Abort instead of exiting if 'error' returns.
33935         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
33936         (xmalloc, xrealloc): Use them.
33937         (xcalloc): Check for address arithmetic overflow.
33938         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
33939         a bit faster than strcpy.
33940
33941 2003-10-10  Simon Josefsson  <jas@extundo.com>
33942
33943         * modules/argp (Depends-on): Add restrict and strcase.
33944
33945 2003-10-10  Simon Josefsson  <jas@extundo.com>
33946
33947         * m4/argp.m4: Add AC_C_INLINE.
33948
33949 2003-10-08  Paul Eggert  <eggert@twinsun.com>
33950
33951         Merge getpass from libc, plus a few fixes.
33952
33953         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
33954         Include <stdbool.h>.
33955         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
33956         __fsetlocking to empty.
33957         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
33958         do include <bits/libc-lock.h>.
33959         Do not include <fcntl.h>; not needed.
33960         [_LIBC]: Include <wchar.h>.
33961         (NOTCANCEL_MODE): New macro.
33962         (flockfile, funlockfile) [_LIBC]: New macros.
33963         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
33964         [!_LIBC]: New macros.
33965         (call_fclose): New function.
33966         (getpass): Use it.  Save tty stream separately; this simplifies the
33967         code and makes it more reliable if stdin happens to equal stdout.
33968         Invoke __fsetlocking on tty.
33969         Handle thread cancellation if needed.
33970         Namespace cleanup (use __tcgetattr, __getline).
33971         Use bool for Booleans.
33972         [USE_IN_LIBIO]: Handle wide streams.
33973         [!_LIBC]: Unconditionally do the fseek, since we don't know what
33974         stream might go where.
33975
33976         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
33977         doesn't have to include <stdio.h> before us.
33978         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
33979         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
33980         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
33981         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
33982         if not declared, so that we can use getpass.c code from libc without
33983         rewriting it.
33984         (flockfile, ftrylockfile, funlockfile): New macros.
33985
33986 2003-10-08  Paul Eggert  <eggert@twinsun.com>
33987
33988         * modules/getpass: Depend on stdbool.
33989
33990 2003-10-08  Paul Eggert  <eggert@twinsun.com>
33991
33992         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
33993
33994 2003-10-07  Karl Berry  <karl@gnu.org>
33995
33996         * config/config.{guess,sub}: update from config.
33997
33998 2003-10-06  Jim Meyering  <jim@meyering.net>
33999             Bruno Haible  <bruno@clisp.org>
34000
34001         This lets translators provide better translations for the
34002         "Written by ..." part of --version output.
34003         * lib/version-etc.h: Include stdarg.h.
34004         (version_etc_copyright): Declare as readonly.
34005         (version_etc): Make this function variadic with a NULL-terminated list
34006         of author name strings.
34007         (version_etc_va): New declaration.
34008         * lib/version-etc.c: Include stdarg.h, stdlib.h.
34009         (version_etc_copyright): Declare as readonly.
34010         (version_etc_va): New function. Provide a different translatable string
34011         for each possible number of authors < 10. Abbreviate when there are 10
34012         authors or more.
34013         (version_etc): Make this function variadic. Call version_etc_va.
34014         Suggestion from Gary V. Vaughan.
34015
34016         * lib/long-options.h (parse_long_options): Change prototype: the
34017         authors string is moved to the end and becomes variadic.
34018         * lib/long-options.c: Include stdarg.h.
34019         (parse_long_options): Make this function variadic, too.
34020         Call version_etc_va, not version_etc.
34021
34022 2003-10-06  Bruno Haible  <bruno@clisp.org>
34023
34024         * modules/version-etc-2: Remove file.
34025         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
34026
34027 2003-10-06  Bruno Haible  <bruno@clisp.org>
34028
34029         * modules/fatal-signal: New file.
34030         * MODULES.html.sh (func_all_modules): Add fatal-signal.
34031
34032 2003-10-06  Bruno Haible  <bruno@clisp.org>
34033
34034         * m4/fatal-signal.m4: New file.
34035         * m4/signalblocking.m4: New file, from GNU gettext.
34036
34037 2003-10-06  Bruno Haible  <bruno@clisp.org>
34038
34039         * lib/version-etc-2.h: Remove file.
34040         * lib/version-etc-2.c: Remove file.
34041
34042 2003-10-06  Bruno Haible  <bruno@clisp.org>
34043
34044         * lib/fatal-signal.h: New file, from GNU gettext.
34045         * lib/fatal-signal.c: New file, from GNU gettext.
34046
34047 2003-10-05  Paul Eggert  <eggert@twinsun.com>
34048
34049         * README: Rework advice for preventing empty .o files.
34050         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
34051         not <sys/types.h>.
34052
34053 2003-10-04  Karl Berry  <karl@gnu.org>
34054
34055         * lib/argp*: update from libc.
34056
34057 2003-10-04  Karl Berry  <karl@gnu.org>
34058
34059         * config/config.{guess,sub}: update from config.
34060
34061 2003-10-02  Bruno Haible  <bruno@clisp.org>
34062
34063         * modules/lchown (Include): Add lchown.h.
34064         * modules/time_r (Include): Use "..." syntax.
34065         * modules/xgetdomainname (Include): Add xgetdomainname.h.
34066
34067 2003-10-01  Simon Josefsson  <jas@extundo.com>
34068
34069         * MODULES.html.sh (func_all_modules): Move gethostname from section
34070         'based on' to section 'lacking' POSIX:2001.
34071
34072 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
34073
34074         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
34075         to output mode on the same stream.
34076
34077 2003-09-29  Paul Eggert  <eggert@twinsun.com>
34078
34079         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
34080         Fix arg typo in previous patch.
34081
34082 2003-09-28  Jim Meyering  <jim@meyering.net>
34083
34084         * lib/error.c: Correct cpp indentation.
34085
34086 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34087
34088         * modules/free: New file.
34089
34090 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34091
34092         * m4/free.m4: New file.
34093
34094 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34095
34096         * lib/minmax.h (MIN, MAX)
34097         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
34098         Omit the special code that used __typeof__, since we worry that
34099         it could be more trouble than it's worth.  See:
34100         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
34101         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
34102
34103         * lib/free.c: New file.
34104
34105 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
34106
34107         Trivial fixes to Makefile.am parts of module listings.
34108         * modules/strstr: Append strstr.h to lib_SOURCES.
34109         * modules/strcase: Likewise, for strcase.h.
34110
34111 2003-09-27  Karl Berry  <karl@gnu.org>
34112
34113         * config/mkinstalldirs: update from automake.
34114
34115 2003-09-26  Paul Eggert  <eggert@twinsun.com>
34116
34117         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
34118         (error_tail): Do not loop, reallocating temporary buffer, since
34119         the output cannot contain more wide characters than the input
34120         contains bytes, the size must be big enough already.  This avoids
34121         one potential size overflow calculation.  Check for size overflow
34122         when calculating temporary buffer size.  Free temporary buffer
34123         when done, if it was allocated with malloc; this plugs a memory
34124         leak.  Remove casts from void * to pointers, that are no longer
34125         needed now that we're assuming C89 or better.
34126
34127         Merge error changes from glibc.
34128
34129         * lib/error.c, error.h: Update copyright notice header to match glibc.
34130         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
34131         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
34132         Disable cancellation while printing error.
34133         * lib/error.h: Prepend __ to parameter names.
34134
34135 2003-09-26  Jim Meyering  <jim@meyering.net>
34136
34137         * lib/error.c (error_tail): Move some declarations
34138         into inner scope where the local variables are used.
34139
34140 2003-09-26  Bruno Haible  <bruno@clisp.org>
34141
34142         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
34143         stpncpy().
34144         Don't define stpncpy through config.h; it's now done through stpncpy.h.
34145
34146 2003-09-26  Bruno Haible  <bruno@clisp.org>
34147
34148         * lib/stpncpy.h (gnu_stpncpy): New declaration.
34149         (stpncpy): Define as alias for gnu_stpncpy.
34150         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
34151
34152 2003-09-25  Simon Josefsson  <jas@extundo.com>
34153
34154         * lib/xgetdomainname.h: New file.
34155         * lib/xgetdomainname.c: New file.
34156
34157 2003-09-25  Simon Josefsson  <jas@extundo.com>
34158             Bruno Haible  <bruno@clisp.org>
34159
34160         * modules/getdomainname: New file.
34161         * modules/xgetdomainname: New file.
34162         * MODULES.html.sh (func_all_modules): Add getdomainname,
34163         xgetdomainname.
34164
34165 2003-09-25  Simon Josefsson  <jas@extundo.com>
34166             Bruno Haible  <bruno@clisp.org>
34167
34168         * m4/getdomainname.m4: New file.
34169
34170 2003-09-25  Simon Josefsson  <jas@extundo.com>
34171             Bruno Haible  <bruno@clisp.org>
34172
34173         * lib/getdomainname.h: New file.
34174         * lib/getdomainname.c: New file.
34175
34176 2003-09-25  Karl Berry  <karl@gnu.org>
34177
34178         * lib/argp-fmtstream.c, argp-help.c: update from libc.
34179
34180 2003-09-25  Karl Berry  <karl@gnu.org>
34181
34182         * config/install-sh: update from automake.
34183
34184 2003-09-25  Bruno Haible  <bruno@clisp.org>
34185
34186         * modules/version-etc-2: New file, from modules/version-etc with
34187         modifications.
34188         * MODULES.html.sh (func_all_modules): Add version-etc-2.
34189
34190 2003-09-25  Bruno Haible  <bruno@clisp.org>
34191
34192         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
34193         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
34194
34195 2003-09-24  Simon Josefsson  <jas@extundo.com>
34196
34197         * modules/xgethostname: Add xgethostname.h.
34198
34199 2003-09-24  Paul Eggert  <eggert@twinsun.com>
34200
34201         * lib/linebuffer.c (freebuffer): Don't free the argument, just
34202         the buffer associated with the argument.  Bug reported by
34203         Simon Josefsson.
34204
34205 2003-09-24  Paul Eggert  <eggert@twinsun.com>
34206
34207         * README: Document assumptions that 'int' is at least 32 bits
34208         wide, that integer arithmetic is 2's complement without overflow,
34209         that there are no holes in integer values, that adding sizes of
34210         two nonoverlapping objects can't overflow, and that all-bits-zero
34211         yields scalar zero.  Fix spelling and capitalization typos.
34212
34213 2003-09-19  Karl Berry  <karl@gnu.org>
34214
34215         * lib/argp.h: update from libc.
34216
34217 2003-09-17  Paul Eggert  <eggert@twinsun.com>
34218
34219         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
34220         to avoid spurious warnings like "AC_RUN_IFELSE was called before
34221         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
34222
34223 2003-09-17  Paul Eggert  <eggert@twinsun.com>
34224
34225         * gnulib-tool: Use "test -h", not "test -L", for portability
34226         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
34227         (tags_regexp): Remove, since \| doesn't conform to POSIX.
34228         (sed_extract_prog): Issue s commands one-by-one, rather than
34229         using \| in one s command.
34230
34231 2003-09-16  Paul Eggert  <eggert@twinsun.com>
34232
34233         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
34234         input error, instead of returning NULL the next time we are called
34235         (and therefore losing track of errno).
34236
34237 2003-09-16  Bruno Haible  <bruno@clisp.org>
34238
34239         * gnulib-tool (func_create_testdir): Warn about duplicated
34240         dependencies.
34241
34242 2003-09-15  Paul Eggert  <eggert@twinsun.com>
34243
34244         * modules/argmatch, modules/fatal, modules/obstack,
34245         modules/xalloc, modules/xgethostname: Sort dependencies by
34246         importance, not alphabetically.
34247
34248 2003-09-15  Paul Eggert  <eggert@twinsun.com>
34249
34250         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
34251         fails, so that the caller gets the proper errno.
34252
34253         * lib/readutmp.c (read_utmp): Likewise.
34254         Check for fstat error.  Close stream and free storage
34255         when failing.
34256
34257 2003-09-14  Karl Berry  <karl@gnu.org>
34258
34259         * config/srclist.txt (strdup.c): disable for c89 changes.
34260
34261 2003-09-14  Jim Meyering  <jim@meyering.net>
34262
34263         * lib/getloadavg.c: Correct cpp indentation.
34264         * lib/strdup.c: Likewise.
34265         * lib/vasnprintf.c: Likewise.
34266
34267 2003-09-14  Bruno Haible  <bruno@clisp.org>
34268
34269         * modules/fwriteerror: New file.
34270         * MODULES.html.sh (func_all_modules): Add fwriteerror.
34271
34272 2003-09-14  Bruno Haible  <bruno@clisp.org>
34273
34274         * lib/fwriteerror.h: New file.
34275         * lib/fwriteerror.c: New file.
34276
34277 2003-09-12  Paul Eggert  <eggert@twinsun.com>
34278
34279         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
34280         modules/xgethostname, modules/xalloc: Depend on exit.
34281
34282 2003-09-12  Paul Eggert  <eggert@twinsun.com>
34283
34284         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
34285
34286         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
34287         and AC_MINIX, too, so that their extensions are available.
34288
34289         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
34290         This macro has been superseded by gl_BACKUPFILE.
34291
34292         More patches to assume C89 or better.
34293
34294         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
34295
34296         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
34297         unconditionally.
34298         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
34299         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
34300         Include <string.h>, <stdlib.h> unconditionally.
34301         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
34302         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
34303         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
34304         headers or for string.h.
34305         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
34306         or strtoul.
34307
34308         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
34309         headers.
34310         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
34311         * m4/userspec.m4 (gl_USERSPEC): Likewise.
34312         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
34313         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
34314         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
34315         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
34316         memcpy, memset.
34317         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
34318         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
34319         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
34320         strtol.
34321         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
34322         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
34323         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
34324         strtoul.
34325
34326 2003-09-12  Paul Eggert  <eggert@twinsun.com>
34327
34328         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
34329         * lib/obstack.c [!defined _LIBC]: Likewise.
34330         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
34331         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
34332         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
34333
34334         More changes to assume C89 or better.
34335
34336         * lib/error.c (error_tail): Assume vprintf.
34337
34338         * lib/argmatch.c (getenv): Remove decl.
34339         * lib/progreloc.c (get_full_program_name): Define via prototype.
34340         * lib/setenv.c (clearenv): Likewise.
34341         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
34342         needed.
34343         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
34344         (malloc, memcpy): Remove decls.
34345         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
34346         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
34347         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
34348         (memcpy): Remove macro.
34349         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
34350         (__P): Remove.  All uses removed.
34351         (PTR): Remove.  All uses changed to void *.
34352         (CHAR_BIT, NULL): Remove.
34353         (spaces, zeros, memset_space, memset_zero)
34354         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
34355         Remove.
34356         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
34357         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
34358         Define with prototype.
34359         Remove now-unnecessary prototype decl.
34360         (extra_args_spec): Assume ANSI C.  All uses changed.
34361         (extra_args_spec_iso): Remove.
34362         (my_strftime, emacs_strftimeu): Define via prototype.
34363         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
34364         unconditionally.
34365         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
34366         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
34367         (strtoul, strtol): Remove decls.
34368         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
34369         LONG_MAX): Remove.
34370         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
34371         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
34372         (LOCALE_PARAM_PROTO): New macro.
34373         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
34374         (INTERNAL (strtol), strtol): Define with a prototype.
34375         (PARAMS): Remove.  All uses removed.
34376         * lib/tempname.c: Include <string.h> unconditionally.
34377         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
34378         * lib/xgethostname.c (main): Define with a prototype.
34379         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
34380         Include <stdlib.h> unconditionally.
34381         (calloc, malloc, realloc, free): Remove decls.
34382         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
34383         Include <stdlib.h> unconditionally.  Sort include file names.
34384         (strtod): Remove.
34385         (xstrtod): Define with a prototype.
34386         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
34387         (strtol, strtoul): Remove decls.
34388
34389 2003-09-11  Paul Eggert  <eggert@twinsun.com>
34390
34391         More patches to assume C89 or better.
34392         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
34393         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
34394         string.h, memchr, STDC_HEADERS.
34395
34396 2003-09-11  Paul Eggert  <eggert@twinsun.com>
34397
34398         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
34399         Include <stdlib.h>, <string.h> unconditionally.
34400         Remove now-unnecessary cast to char *.
34401         * lib/strnlen.c: Include <string.h> unconditionally.
34402         * lib/yesno.c (yesno): Define with a prototype.
34403
34404 2003-09-11  Bruno Haible  <bruno@clisp.org>
34405
34406         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
34407
34408 2003-09-10  Jim Meyering  <jim@meyering.net>
34409
34410         * lib/error.c: Correct indentation of cpp directives.
34411
34412 2003-09-10  Bruno Haible  <bruno@clisp.org>
34413
34414         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
34415         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
34416         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
34417         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
34418         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
34419         <stdlib.h> and <string.h> checks.
34420         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
34421         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
34422
34423 2003-09-10  Bruno Haible  <bruno@clisp.org>
34424
34425         * lib/strcspn.c: Include <string.h> unconditionally.
34426         * lib/strpbrk.c: Include <string.h> unconditionally.
34427         * lib/strstr.c: Include <string.h> unconditionally.
34428         * lib/unicodeio.c: Include <string.h> unconditionally.
34429         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
34430         * lib/unsetenv.c: Likewise.
34431         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
34432         * lib/yesno.c: Include <stdlib.h> unconditionally.
34433         (rpmatch): Add prototype.
34434
34435 2003-09-09  Paul Eggert  <eggert@twinsun.com>
34436
34437         More patches to assume C89 or better.
34438         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
34439         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
34440         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
34441         or for string.h.
34442         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
34443         stdlib.h.
34444         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
34445         C headers.
34446         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
34447         string.h.
34448         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
34449         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
34450         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
34451         or for string.h.
34452         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
34453         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
34454         C headers.
34455         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
34456         memcpy.
34457         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
34458         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
34459         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
34460         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
34461         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
34462         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
34463         string.h, free.
34464         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
34465         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
34466         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
34467         C headers, or for string.h.
34468         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
34469         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
34470         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
34471         headers, memory.h, stdlib.h, string.h, strings.h.
34472         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
34473         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
34474         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
34475         strchr.
34476         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
34477         headers, memory.h, string.h.
34478         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
34479         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
34480         free.
34481         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
34482         headers.
34483         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
34484         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
34485         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
34486         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
34487         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
34488
34489 2003-09-09  Paul Eggert  <eggert@twinsun.com>
34490
34491         More K&R removal.
34492
34493         * lib/acosl.c (main): Use a prototype.
34494         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
34495         tanl.c: Likewise.
34496
34497         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
34498
34499         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
34500         (getopt, etopt_long, getopt_long_only, _getopt_internal)
34501         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
34502         with a prototype.
34503         * lib/getopt.c (const): Remove macro.
34504         Include <string.h> unconditionally.
34505         (my_index): Remove; all uses changed to strchr.
34506         (strlen): Remove decl.
34507         (exchange): Remove forward decl; no longer needed.
34508         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
34509         Define with prototype.
34510         * lib/getopt1.c (const): Remove macro.
34511         (getopt_long, getopt_long_only, main): Define with prototype.
34512
34513         * lib/getugroups.c: Include <string.h> unconditionally.
34514
34515         * lib/getusershell.c: Include <stdlib.h> unconditionally.
34516         (getusershell, setusershell, endusershell, readname, main):
34517         Define with prototypes.
34518
34519         * lib/group-member.c: Include group-member.h first.
34520         Include <stdlib.h> unconditionally.
34521
34522         * lib/hard-locale.c: Include hard-locale.h first.
34523         Include <stdlib.h>, <string.h> unconditionally.
34524
34525         * lib/hash.c (free, malloc): Remove decls.
34526         Include <stdlib.h> unconditionally.
34527
34528         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
34529         (getenv): Do not declare.
34530
34531         * lib/idcache.c: Include <string.h> unconditionally.
34532
34533         * lib/long-options.c: Include long-options.h first, to test interface.
34534         Include <stdlib.h> unconditionally.
34535
34536         * lib/makepath.c: Include makepath.h first, to test interface.
34537         Include <stdlib.h> and <string.h> unconditionally.
34538
34539         * lib/linebuffer.c: Include <stdlib.h>.
34540         (free): Remove decl.
34541
34542         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
34543         stddef.h. rpl_malloc returns void *, not char *.
34544         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
34545         prototype.
34546
34547         * lib/md5.h: Include <limits.h> unconditionally.
34548         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
34549         (__P): Remove; all uses removed.
34550         * lib/md5.c: Include "md5.h" first.
34551         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
34552         md5_buffer, md5_process_bytes, md5_process_block):
34553         Define with prototypes.
34554         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
34555         * lib/sha.c: Include "sha.h" first.
34556         Include <stdlib.h>, <string.h> unconditionally.
34557
34558         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
34559         * lib/memcmp.c (__ptr_t): Likewise.
34560         * lib/memrchr.c (__ptr_t): Likewise.
34561         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
34562         Include <string.h> unconditionally.
34563         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
34564         * lib/memchr.c: Include <stdlib.h> unconditionally.
34565         * lib/memchr.c (LONG_MAX): Remove.
34566         * lib/memrchr.c (LONG_MAX): Likewise.
34567         * lib/memchr.c (__memchr): Define via a prototype.
34568         * lib/memrchr.c (__memrchr): Likewise.
34569         * lib/memcmp.c (__P): Remove, and remove all uses.
34570         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
34571         Remove forward decls; no longer needed.
34572         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
34573         Use types required by C89 in prototype.
34574
34575         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
34576         * lib/savedir.c: Likewise.
34577         * lib/mkdir.c (free): Remove decl.
34578         * lib/rmdir.c (rmdir): Define with a prototype.
34579         * lib/savedir.c: Include savedir.h first, to test interface.
34580
34581         * lib/mktime.c (STDC_HEADERS): Remove.
34582         Include <stdlib.h>, <string.h> unconditionally.
34583
34584         * lib/modechange.c: Include <stdlib.h> unconditionally.
34585         (malloc): Remove decl.
34586
34587         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
34588         (free): Remove decl.
34589
34590         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
34591         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
34592         (This type really should be intptr_t, but that's a C99ism.)
34593         (_obstack_memcpy): Remove: all uses changed to memcpy.
34594         Include <string.h> unconditionally.
34595         (struct obstack): Assume __STDC__ for types of members
34596         chunkfun, freefun, extra_arg.
34597         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
34598         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
34599         obstack_begin, obstack_specify_allocation,
34600         obstack_specify_allocation_with_arg, obstack_chunkfun,
34601         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
34602         Remove unprototyped decls and the macros that use them.
34603         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
34604         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
34605         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
34606         (defined __STDC__ && __STDC__)]:
34607         Remove nonprototyped code.
34608         Include <stdlib.h> unconditionally.
34609         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
34610         _obstack_allocated_p, _obstack_free, obstack_free,
34611         _obstack_memory_used, print_and_abort):
34612         Define using prototypes.
34613         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
34614         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
34615         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
34616         obstack_next_free, obstack_object_size, obstack_room) [0]:
34617         Remove unused, unprototyped code.
34618
34619         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
34620
34621         * lib/physmem.c (physmem_total, physmem_available, main): Define
34622         with prototypes.
34623
34624         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
34625         (main): Define with a prototype.
34626
34627         * lib/posixver.c (getenv): Remove decl.
34628
34629         * lib/putenv.c (malloc): Returns void *, not char *.
34630         Include <string.h> unconditionally.
34631         (strchr, memcpy, NULL): Do not define.
34632
34633         * lib/readtokens.c: Include readtokens.h first, to test interface.
34634         Include <stdlib.h>, <string.h> unconditionally.
34635         (init_tokenbuffer): Define with a prototype.
34636
34637         * lib/regex.c (PARAMS): Remove.  All uses removed.
34638         All uses of _RE_ARGS removed, too.
34639         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
34640         unconditionally.
34641         (bzero): Assume memset exists.
34642         (memcmp, memcpy, NULL): Remove.
34643         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
34644         char, or assignments to local vars of type signed char.
34645         (init_syntax_once, PREFIX(extract_number_and_incr),
34646         PREFIX(print_partial_compiled_pattern),
34647         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
34648         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
34649         PREFIX(regex_grow_registers), PREFIX(regex_compile),
34650         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
34651         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
34652         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
34653         wcs_compile_range, byte_compile_range, truncate_wchar,
34654         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
34655         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
34656         count_mbs_length, wcs_re_match_2_internal,
34657         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
34658         PREFIX(alt_match_null_string_p),
34659         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
34660         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
34661         regfree, PREFIX(extract_number)): Define with prototype.  Remove
34662         now-unnecessary declaration, if any.
34663         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
34664         regcomp, regexec):
34665         Remove now-unnecessary casts among pointer types.
34666         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
34667
34668         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
34669         (free): Remove decl.
34670
34671         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
34672
34673         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
34674         (free): Remove decl.
34675
34676         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
34677         * lib/xgetcwd.c: Likewise.
34678
34679         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
34680         (free): Remove decl.
34681
34682         * lib/strchrnul.c (strchrnul): Define with a prototype.
34683         Fix bug: c_in was not converted to char before searching.
34684
34685         The following changes are not K&R related:
34686
34687         * lib/group-member.h: Include <sys/types.h>, so that this file is
34688         self-contained.
34689         * lib/makepath.h: Likewise.
34690
34691         * lib/getusershell.c (readname, default_index, line_size, readname):
34692         Use size_t, not int, for sizes.
34693         (readname): If the size overflows, report an error instead of
34694         looping forever.
34695
34696 2003-09-09  Paul Eggert  <eggert@twinsun.com>
34697
34698         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
34699         libc.
34700
34701 2003-09-09  Paul Eggert  <eggert@twinsun.com>
34702
34703         * README: New section: portability guidelines.
34704
34705 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
34706
34707         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
34708         C89 spec.
34709
34710 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
34711
34712         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
34713
34714 2003-09-08  Paul Eggert  <eggert@twinsun.com>
34715
34716         Assume C89 or better; remove K&R cruft.
34717         A few of these changes were first proposed by Derek Robert Price
34718         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
34719
34720         * lib/addext.c: Include <string.h> unconditionally.
34721         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
34722         Don't declare getenv or malloc.
34723
34724         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
34725         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
34726         (NULL): Remove.
34727         (find_stack_direction, alloca): Use prototypes.
34728
34729         * lib/atexit.c (atexit): Define using a prototype.
34730
34731         * lib/basename.c, dirname.c, stripslash.c:
34732         Include <string.h> unconditionally.
34733
34734         * lib/bcopy.c: Include <stddef.h>.
34735         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
34736
34737         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
34738
34739         * lib/error.h (error, error_at_line, error_print_progname)
34740         [! (defined (__STDC__) && __STDC__)]: Remove decls.
34741         * lib/error.c: Include error.h first, to check interface.
34742         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
34743         (VA_START): Remove; all uses changeed to va_start.
34744         (exit, strerror): Remove decls.
34745         (error_print_progname): Prototype uncondionally.
34746         Don't include <errno.h>; no longer needed.
34747         (private_strerror): Remove.
34748         (error_tail): Always define.
34749         (error, error_at_line): Assume C89 or better; always use prototypes.
34750         * lib/fatal.c: Include "fatal.h" first, to test interface.
34751         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
34752         (VA_START): Remove; all uses changed to va_start.
34753         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
34754         this case.
34755         (exit): Remove decl.
34756         (fatal): Prototype unconditionally.  Assume va_start works.
34757         Abort at end, to pacify gcc.
34758
34759         * lib/euidaccess.c (main): Define with a prototype.
34760
34761         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
34762
34763         * lib/exitfail.c: Include <stdlib.h> unconditionally.
34764
34765         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
34766         prototypes.
34767         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
34768         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
34769         (getenv): Remove decl.
34770         (fnmatch): Define using a prototype.
34771         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
34772         (FCT): Define using a prototype.
34773
34774         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
34775
34776         * lib/gethostname.c: Include <stddef.h>.
34777         (gethostname): Define with prototype.  Length is size_t, not int.
34778
34779 2003-09-08  Paul Eggert  <eggert@twinsun.com>
34780
34781         Assume C89 or better; remove K&R cruft.
34782         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
34783         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
34784         string.h, getenv, malloc.
34785         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
34786         headers.
34787         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
34788         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
34789         do not check for strerror.
34790         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
34791         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
34792         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
34793         do not check for doprnt or vprintf.
34794         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
34795         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
34796
34797 2003-09-08  Paul Eggert  <eggert@twinsun.com>
34798
34799         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
34800         getversion.c should have been removed then, but was accidentally
34801         preserved.
34802
34803         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
34804         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
34805
34806 2003-09-08  Karl Berry  <karl@gnu.org>
34807
34808         * config/config.sub, config.guess, srclistvars.sh: update from savannah
34809                 config, forget about prep.
34810
34811         * config/depcomp, missing: update from automake.
34812
34813 2003-09-07  Paul Eggert  <eggert@twinsun.com>
34814
34815         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
34816         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
34817
34818 2003-09-07  Paul Eggert  <eggert@twinsun.com>
34819
34820         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
34821         copy_tm_result.  Bug reported by Simon Josefsson in
34822         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
34823
34824 2003-09-06  Paul Eggert  <eggert@twinsun.com>
34825
34826         * m4/time_r.m4: New file.
34827         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
34828         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
34829         is. Check for timegm declaration.
34830         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
34831         Do not check for gmtime_r.
34832         Replace mktime if __mktime_internal does not exist and if mktime
34833         hasn't been replaced already.
34834
34835 2003-09-06  Paul Eggert  <eggert@twinsun.com>
34836
34837         * lib/time_r.c, lib/time_r.h: New files.
34838
34839         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
34840         __localtime_r.
34841         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
34842         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
34843
34844         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
34845         __gmtime_r.
34846         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
34847         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
34848         Include <time_r.h>.
34849
34850         * lib/timegm.c: Switch to glibc implementation, with the following
34851         changes:
34852         [defined HAVE_CONFIG_H]: Include <config.h>.
34853         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
34854         (__mktime_internal) [!defined _LIBC]: New decl.
34855         (__gmtime_r) [!defined _LIBC]: New macro and function.
34856         (timegm): Use a prototype, since gnulib assumes C89.
34857         Do not bother declaring tmp to be const, as it's not really usefu.
34858         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
34859         (timegm): Declare only if HAVE_DECL_TIMEGM.
34860
34861 2003-09-06  Paul Eggert  <eggert@twinsun.com>
34862
34863         * MODULES.html.sh (func_all_modules): Add time_r.
34864         * modules/time_r: New file.
34865         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
34866         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
34867
34868 2003-09-03  Paul Eggert  <eggert@twinsun.com>
34869
34870         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
34871         Bug reported by Lute Kamstra in
34872         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
34873
34874         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
34875         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
34876         course with correspondingly smaller numbers for tomorrow and
34877         yesterday.  From Tadayoshi Funaba.  Originally installed into
34878         sh-utils on 1999-08-07, but the patch got lost (I guess during the
34879         coreutils merge?).
34880
34881 2003-08-31  Simon Josefsson  <jas@extundo.com>
34882
34883         * modules/timegm: New file.
34884         * MODULES.html.sh (func_all_modules): Add timegm.
34885
34886 2003-08-31  Simon Josefsson  <jas@extundo.com>
34887
34888         * m4/timegm.m4: New file.
34889
34890 2003-08-31  Simon Josefsson  <jas@extundo.com>
34891
34892         * lib/timegm.h: New file.
34893         * lib/timegm.c: New file.  Based on
34894         wget-1.8.2/src/http.c:mktime_from_utc.
34895
34896 2003-08-31  Karl Berry  <karl@gnu.org>
34897
34898         * lib/argp.h: update from libc.
34899
34900 2003-08-28  Bruno Haible  <bruno@clisp.org>
34901
34902         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
34903         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
34904         followed by '#define fnmatch fnmatch_posix' gives an error.
34905
34906 2003-08-28  Bruno Haible  <bruno@clisp.org>
34907
34908         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
34909         warning on QNX, which defines O_BINARY to 000000.
34910
34911 2003-08-27  Jim Meyering  <jim@meyering.net>
34912
34913         * m4/mkstemp.m4: Require that the system mkstemp be able to create
34914         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
34915         would fail after 32.  Reported by Danny Levinson.  Details here:
34916         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
34917
34918 2003-08-24  Bruno Haible  <bruno@clisp.org>
34919
34920         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
34921         MSVC7 <stdio.h> is included later.
34922
34923 2003-08-22  Simon Josefsson  <jas@extundo.com>
34924
34925         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
34926
34927 2003-08-20  Karl Berry  <karl@gnu.org>
34928
34929         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
34930
34931 2003-08-20  Bruno Haible  <bruno@clisp.org>
34932
34933         * modules/progname: New file.
34934         * MODULES.html.sh (func_all_modules): Add progname.
34935
34936 2003-08-20  Bruno Haible  <bruno@clisp.org>
34937
34938         * lib/progname.h: New file, from GNU gettext.
34939         * lib/progname.c: New file, from GNU gettext.
34940         * lib/progreloc.c: New file, from GNU gettext.
34941
34942 2003-08-19  Jim Meyering  <jim@meyering.net>
34943
34944         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
34945         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
34946
34947 2003-08-19  Bruno Haible  <bruno@clisp.org>
34948
34949         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
34950         more.
34951
34952 2003-08-19  Bruno Haible  <bruno@clisp.org>
34953
34954         * lib/xstrdup.c: Assume <string.h> exists.
34955
34956 2003-08-18  Paul Eggert  <eggert@twinsun.com>
34957
34958         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
34959         in makefile rules.
34960
34961 2003-08-18  Jim Meyering  <jim@meyering.net>
34962
34963         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
34964         * m4/lib-ld.m4: Likewise.
34965
34966 2003-08-18  Jim Meyering  <jim@meyering.net>
34967
34968         * lib/setenv.h: Indent nested cpp directive.
34969         * lib/vasnprintf.c: Remove trailing blanks.
34970
34971 2003-08-17  Simon Josefsson  <jas@extundo.com>
34972
34973         * modules/xstrndup: New file.
34974         * MODULES.html.sh (func_all_modules): Add xstrndup.
34975
34976 2003-08-17  Simon Josefsson  <jas@extundo.com>
34977
34978         * modules/argp: Fix autoconf macro name. Add more dependencies.
34979
34980 2003-08-17  Simon Josefsson  <jas@extundo.com>
34981
34982         * m4/xstrndup.m4: New file.
34983
34984 2003-08-17  Simon Josefsson  <jas@extundo.com>
34985
34986         * m4/argp.m4: New file.
34987
34988 2003-08-17  Simon Josefsson  <jas@extundo.com>
34989             Bruno Haible  <bruno@clisp.org>
34990
34991         * lib/xstrndup.h: New file.
34992         * lib/xstrndup.c: New file.
34993
34994 2003-08-17  Bruno Haible  <bruno@clisp.org>
34995
34996         * modules/strndup (Files, Include): Add lib/strndup.h.
34997
34998 2003-08-17  Bruno Haible  <bruno@clisp.org>
34999
35000         * modules/euidaccess (Files): Add lib/euidaccess.h.
35001
35002 2003-08-17  Bruno Haible  <bruno@clisp.org>
35003
35004         * lib/strndup.h: New file.
35005
35006 2003-08-17  Bruno Haible  <bruno@clisp.org>
35007
35008         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
35009         like AC_GNU_SOURCE.
35010         * modules/extensions (configure.ac): Comment out the invocation of
35011         gl_USE_SYSTEM_EXTENSIONS.
35012
35013 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35014
35015         Merges from coreutils, etc.
35016         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
35017         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
35018         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
35019         fixing a typo.
35020         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
35021         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
35022
35023 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35024
35025         Document merge from coreutils.
35026         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
35027         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
35028         * modules/utime: Add m4/utimes-null.m4.
35029
35030 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35031
35032         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
35033         space, undoing this 2003-08-12 change:
35034         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
35035
35036 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35037
35038         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
35039         strtoul.c from libc, undoing this 2003-08-12 change:
35040         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
35041
35042 2003-08-16  Jim Meyering  <jim@meyering.net>
35043
35044         Merges from coreutils.
35045         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
35046         prefix.  Adjust cache variables similarly.  Create 500 rather than
35047         just 300 files, to exercise bug on Darwin6.5, too.
35048         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
35049         $missing_dir.
35050         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
35051         AM_SYS_POSIX_TERMIOS.
35052         Reported by mkc@mathdogs.com.
35053         Also change use of $am_cv_sys_posix_termios
35054         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
35055         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
35056         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
35057         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
35058         in /proc/mounts until it finds one with matching device number.  This
35059         is unnecessary when the FILE argument *is* a mount point.  No stat call
35060         is necessary in that case.  So, disable the statvfs-testing code on
35061         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
35062         as RedHat bug# 84846.
35063         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
35064         to 1MB, so as not to render systems with no stack size limit (e.g.,
35065         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
35066         Include <unistd.h>.  On some systems,
35067         it is required for the definition of _SC_PAGESIZE.
35068
35069 2003-08-16  Jim Meyering  <jim@meyering.net>
35070
35071         Merge from coreutils.
35072         * lib/xstrtoimax.c: #else #if -> #elif.
35073         * lib/xstrtoumax.c: Likewise.
35074
35075 2003-08-16  Jim Meyering  <jim@meyering.net>
35076
35077         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
35078         * m4/utimes.m4: Removed.
35079         * m4/utimes-null.m4: Renamed from utimes.m4.
35080
35081         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
35082         to 1MB, so as not to render systems with no stack size limit (e.g.,
35083         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
35084         Include <unistd.h>.  On some systems,
35085         it is required for the definition of _SC_PAGESIZE.
35086
35087 2003-08-16  Jim Meyering  <jim@meyering.net>
35088         and Paul Eggert  <eggert@cs.ucla.edu>
35089
35090         Merges from coreutils, etc.
35091
35092         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
35093         using the latest version from cvs.  This avoids problems with #line
35094         directives using a vendor (Sun) compiler.
35095         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
35096         Don't set GETGROUPS_LIB here; now it's
35097         done via getgroups.m4's wrapper function.
35098         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
35099         rather than just in sh-util/configure.in, so that the
35100         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
35101         same.
35102         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
35103         AC_FUNC_GETLOADAVG where to find getloadavg.c.
35104         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
35105         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
35106         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
35107         Remove code that is now done by the newly-required macros.
35108         Append $(EXEEXT) to DF_PROG.
35109         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
35110         Do not invoke or require the following here,
35111         since prereq.m4 or some gnulib .m4 now does this for us:
35112         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
35113         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
35114         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
35115         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
35116         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
35117         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
35118         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
35119         AC_FUNC_OBSTACK.
35120         Do not replace the following functions, as this is now the job
35121         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
35122         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
35123         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
35124         atexit getpass, strdup, getpagesize.
35125         Replace 'raise'.
35126         Do not check for the following functions, as this is now the job
35127         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
35128         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
35129         setregid.
35130         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
35131         Check for sys/sysctl.h.
35132         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
35133         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
35134         of checking for ssize_t ourselves.
35135
35136         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
35137         Require every macro that gnulib/modules/* suggests for us.
35138         (jm_PREREQ_ADDEXT): New macro.
35139         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
35140         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
35141
35142         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
35143         (gl_PHYSMEM): Use it.
35144         Also check for `table' function.
35145         Check for new headers and functions.
35146         Add check for sys/sysmp.h.
35147         With suggestions from Kaveh Ghazi.
35148         Ignore headers that are present but cannot be compiled.  This
35149         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
35150         C 5.4.
35151
35152 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35153
35154         Document merge from coreutils.
35155         * modules/userspec: Depend on posixver.
35156         * modules/strftime: Depend on tzset.
35157
35158 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35159
35160         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
35161         rather than tab, after '#' in shell-script copyright notices.
35162         Suggested by Bruno Haible.
35163
35164 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35165
35166         * config/srclist-update: Use three spaces, rather than tab, after '#'
35167         in shell-script copyright notices.  Suggested by Bruno Haible.
35168         Remove unnecessary parenthesization in regular expression.
35169
35170 2003-08-15  Jim Meyering  <jim@meyering.net>
35171
35172         Merge from coreutils.
35173         * lib/xgethostname.c: Include <stdlib.h>.
35174         (xghostname): Don't exit for anything other than memory-related
35175         failure; just return NULL.
35176         * lib/userspec.c: Include "posixver.h".
35177         (parse_user_spec): Accept `.' as a separator only
35178         in pre-POSIX-200112 mode.
35179         * lib/strtoimax.c: Use #elif rather than #else #if.
35180         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
35181         Remove function, now that we can rely on a working tzset function.
35182         [!_LIBC]: Ensure that the required autoconf test has been run.
35183         [!defined _NL_CURRENT && HAVE_STRFTIME]:
35184         Use underlying_strftime for %r.
35185         * lib/sha.c: Merge in some clean-up and optimization changes from
35186         glibc.
35187         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
35188         Ensure that it is a multiple of 64.
35189         Rearrange loop exit tests so as to avoid performing an
35190         additional fread after encountering an error or EOF.
35191         * lib/realloc.c: Update copyright date.
35192
35193 2003-08-15  Jim Meyering  <jim@meyering.net>
35194         and Paul Eggert  <eggert@twinsun.com>
35195
35196         Merge from coreutils.
35197         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
35198         member but strut utmpx does not.  Needed for AIX 4.3.3.
35199         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
35200
35201 2003-08-15  Jim Meyering  <jim@meyering.net>
35202         and Paul Eggert  <eggert@cs.ucla.edu>
35203
35204         Merges from coreutils, etc.
35205         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
35206         Require gl_FUNC_TZSET_CLOBBER.
35207         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
35208         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
35209         members.
35210
35211 2003-08-14  Paul Eggert  <eggert@twinsun.com>
35212
35213         Help the merge from coreutils.
35214         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
35215         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
35216         * m4/tzset.m4: Use it too.
35217
35218 2003-08-14  Paul Eggert  <eggert@twinsun.com>
35219
35220         * modules/tzset: New file.
35221
35222 2003-08-14  Jim Meyering  <jim@meyering.net>
35223
35224         Merges from coreutils.
35225         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
35226         variable names, rather than @FNMATCH_H@.
35227         * modules/alloca: Likewise for $(ALLOCA_H).
35228
35229         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
35230         the three copies of the literal target, `fnmatch.h'.
35231         * modules/alloca (alloca.h): Likewise.
35232
35233 2003-08-14  Jim Meyering  <jim@meyering.net>
35234
35235         Merge from coreutils.
35236         * m4/tzset.m4: New file.
35237         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
35238         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
35239         otherwise, AIX 5.1 systems would end up using the latter.
35240         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
35241         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
35242         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
35243         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
35244
35245 2003-08-14  Jim Meyering  <jim@meyering.net>
35246
35247         Merge from coreutils.
35248         * lib/obstack.h: Whitespace changes.
35249         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
35250         and xcalloc return values.
35251         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
35252         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
35253         hang on OSF/1 5.1 for DIR on both local and remote file systems.
35254         Reported by (and fix confirmed by) Nelson H. F. Beebe.
35255         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
35256         error from mntctl.
35257         Use mntctl's return value to drive the entry-processing loop, since
35258         we can't rely on the value of the vmt_length member in the last
35259         entry.  On some systems doing so could result in exhausting
35260         virtual memory.  Based in part on a patch from Mike Jetzer.
35261
35262 2003-08-14  Jim Meyering  <jim@meyering.net>
35263         and Paul Eggert  <eggert@twinsun.com>
35264
35265         Merges from coreutils, plus other fixes.
35266         * lib/physmem.c: Merge in portability changes from gcc/libiberty
35267         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
35268         for credits and details.  Thanks to Kaveh Ghazi for helping
35269         to keep these files in sync.
35270         (ARRAY_SIZE): Define it.
35271         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
35272         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
35273         (memcasecmp): Don't assume size_t fits in unsigned int.
35274         Remove casts and duplicate code.
35275         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
35276         (memcpy): Remove definition.
35277         Merge in some clean-up and optimization changes from glibc.
35278         [BLOCKSIZE]: Move definition to top of file.
35279         Ensure that it is a multiple of 64.
35280         Rearrange loop exit tests so as to avoid performing an
35281         additional fread after encountering an error or EOF.
35282         * lib/md5.h (md5_uintptr): Define.
35283         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
35284         return to the initial working directory.  Preserve errno
35285         for caller.
35286         * lib/idcache.c: Include "xalloc.h".
35287         (xmalloc, xrealloc): Remove decls.
35288         (getuser): Remove casts no longer required in C89.
35289         * lib/human.c: Include stdio.h, for sprintf.
35290         * lib/group-member.c: Include "xalloc.h".
35291         (xmalloc, xrealloc): Remove decls.
35292         (get_group_info): Remove casts no longer required in C89.
35293         * lib/getusershell.c (readname): Remove casts no longer required in
35294         C89.
35295         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
35296         * lib/getline.c: Whitespace fix, from coreutils.
35297
35298 2003-08-13  Paul Eggert  <eggert@twinsun.com>
35299
35300         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
35301         Check for isascii.
35302
35303         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
35304         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
35305         Undo previous (whitespace-only) change.
35306
35307 2003-08-13  Paul Eggert  <eggert@twinsun.com>
35308
35309         * lib/exclude.c: Include <ctype.h>
35310         (IN_CTYPE_DOMAIN): New macro.
35311         (is_space): New fn.
35312         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
35313         and empty lines.
35314
35315         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
35316         Undo previous (whitespace-only) change.
35317
35318 2003-08-13  Paul Eggert  <eggert@twinsun.com>
35319
35320         * config/srclist-update: Change update back to the old behavior,
35321         leaving whitespace alone.  Use one 'sed' command rather than a
35322         pipeline.
35323         (fixlicense): Now a variable, not a function.
35324         (remove_trailing_blanks): Remove.
35325         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
35326         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
35327         Undo previous (whitespace-only) change.
35328
35329 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35330
35331         Merge from coreutils.
35332         * modules/euidaccess: Add lib_SOURCES, include for new
35333         file euidaccess.h
35334
35335 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35336
35337         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
35338         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
35339         Normalize leading white space and remove trailing white space.
35340
35341         Merge from coreutils
35342         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
35343
35344         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
35345         0.12.1.  These files are now being upgraded automatically by
35346         ../config/srclist-update.
35347
35348 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35349
35350         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
35351         Normalize leading white space and remove trailing white space.
35352         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
35353         notice, as per ../config/srclist-update.
35354
35355         Merge from coreutils.
35356         * lib/euidaccess.h: New file.
35357         * lib/euidaccess.c: Include it.
35358         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
35359         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
35360         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
35361
35362 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35363
35364         * config/srclist-update: Add copyright notice.
35365         (remove_id_lines, remove_trailing_blanks): New constants.
35366         (fixfile): Use them to normalize spacing a bit in copied files.
35367         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
35368         Normalize leading white space and remove trailing white space.
35369
35370         * config/texinfo.tex: Sync with texinfo.
35371
35372         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
35373         strtoul.c from libc, to merge coreutils whitespace changes.
35374
35375         * config/srclist.txt: Get the following m4 files from gettext:
35376         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
35377         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
35378         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
35379         wint_t.m4.
35380
35381 2003-08-12  Karl Berry  <karl@gnu.org>
35382
35383         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
35384         been made.
35385
35386 2003-08-11  Paul Eggert  <eggert@twinsun.com>
35387
35388         * modules/gnu-source, m4/gnu-source.m4:
35389         Remove; we're assuming Autoconf 2.54 or later now.
35390         Suggested by Bruno Haible.
35391         * MODULES.html.sh (func_all_modules): Remove gnu-source.
35392
35393 2003-08-11  Bruno Haible  <bruno@clisp.org>
35394
35395         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
35396
35397 2003-08-11  Bruno Haible  <bruno@clisp.org>
35398
35399         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
35400         (vasnprintf): Use it instead of wcslen.
35401
35402 2003-08-11  Bruno Haible  <bruno@clisp.org>
35403
35404         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
35405         value to ensure that _Bool promotes to int. Use #define for _Bool when
35406         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
35407
35408 2003-08-10  Karl Berry  <karl@gnu.org>
35409
35410         * lib/regex.h: update from libc (whitespace fix).
35411
35412 2003-08-09  Paul Eggert  <eggert@twinsun.com>
35413
35414         Merge some files from coreutils.  These changes were
35415         originally made by Jim Meyering.
35416         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
35417         many older Unixes require this.
35418         * lib/alloca.c (alloca): Remove cast to argument of free;
35419         no longer needed in C89.
35420         * lib/alloca_.h, regex.h: Fix white space to match
35421         what GNU indent does.
35422
35423 2003-08-09  Paul Eggert  <eggert@twinsun.com>
35424
35425         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
35426         apparently Emacs's Unicode mode got confused before my 2003-08-05
35427         checkin.
35428
35429 2003-08-08  Paul Eggert  <eggert@twinsun.com>
35430
35431         * m4/extensions.m4: New file.
35432         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
35433         Require gl_USE_SYSTEM_EXTENSIONS.
35434         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
35435         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
35436
35437 2003-08-08  Paul Eggert  <eggert@twinsun.com>
35438
35439         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
35440         * modules/extensions, modules/gnu-source: New files.
35441         * modules/timespec, modules/unlocked-io: Depend on extensions.
35442
35443 2003-08-07  Paul Eggert  <eggert@twinsun.com>
35444
35445         * modules/restrict: New file.
35446         * MODULES.html.sh (func_all_modules): Add restrict.
35447         * modules/regex: Depend on restrict.
35448
35449 2003-08-07  Paul Eggert  <eggert@twinsun.com>
35450
35451         * m4/restrict.m4: New file.
35452         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
35453
35454 2003-08-07  Bruno Haible  <bruno@clisp.org>
35455
35456         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
35457         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
35458
35459 2003-08-07  Bruno Haible  <bruno@clisp.org>
35460
35461         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
35462         makes the module 'getndelim2' compatible with the module 'getline'.
35463
35464 2003-08-05  Paul Eggert  <eggert@twinsun.com>
35465
35466         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
35467         byte with "\201" to avoid glitches when editing that source file
35468         with multi-gnome-terminal.
35469
35470 2003-08-05  Paul Eggert  <eggert@twinsun.com>
35471
35472         * lib/bumpalloc.h: Remove.
35473
35474 2003-08-05  Paul Eggert  <eggert@twinsun.com>
35475
35476         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
35477         * modules/bumpalloc: Remove.
35478
35479 2003-08-04  Paul Eggert  <eggert@twinsun.com>
35480
35481         * lib/getloadavg.c: Change copyright notice and spacing to conform to
35482         GNU coding style.
35483
35484         Merge from coreutils.
35485         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
35486         1. From glibc.
35487         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
35488         from Karl Berry, implemented by Jim Meyering.
35489         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
35490         from Dmitry V. Levin.
35491         Remove anachronistic cast of xrealloc.
35492         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
35493         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
35494         type. Otherwise, it wouldn't compile with at least /bin/cc on
35495         ymp-cray-unicos9.0.2.X.
35496         Combine two mostly-identical uses of alloca into one.
35497         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
35498
35499 2003-08-04  Dave Love  <d.love@dl.ac.uk>
35500
35501         [From Emacs.]
35502
35503         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
35504         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
35505         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
35506         obsolete NLIST_NAME_UNION.
35507         [__GNU__]: Undef BSD and FSCALE.
35508         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
35509
35510 2003-08-03  Paul Eggert  <eggert@twinsun.com>
35511
35512         * lib/stdbool_.h (_Bool): Make it signed char, instead of
35513         an enum type, so that it's guaranteed to promote to int.  See:
35514         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
35515
35516 2003-08-03  Karl Berry  <karl@gnu.org>
35517
35518         * config/depcomp: update from automake.
35519
35520 2003-07-31  Paul Eggert  <eggert@twinsun.com>
35521
35522         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
35523         (strerror): Don't assume that a printable int fits in 14 bytes.
35524
35525 2003-07-31  Bruno Haible  <bruno@clisp.org>
35526
35527         * modules/getpass-gnu: New file.
35528         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
35529
35530 2003-07-31  Bruno Haible  <bruno@clisp.org>
35531
35532         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
35533
35534 2003-07-24  Karl Berry  <karl@gnu.org>
35535
35536         * config/missing: update from automake.
35537
35538 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
35539             Bruno Haible  <bruno@clisp.org>
35540
35541         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
35542         * lib/getline.c (getline, getdelim): Likewise.
35543         Remove _GNU_SOURCE define; now it's defined in config.h through
35544         m4/getline.m4.
35545
35546 2003-07-23  Karl Berry  <karl@gnu.org>
35547
35548         * config/config.sub: update from prep.
35549
35550 2003-07-22  Paul Eggert  <eggert@twinsun.com>
35551
35552         * modules/xalloc (Depends-on): Add exitfail.
35553         * modules/xmemcoll: Likewise.
35554
35555 2003-07-22  Paul Eggert  <eggert@twinsun.com>
35556
35557         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
35558         over-parenthesization in macros.
35559
35560         Sync with coreutils.
35561
35562         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
35563         required by C99.
35564
35565         Use `exit_failure' for xalloc and xmemcoll instead of their own
35566         private exit-failure variables.
35567         * lib/xalloc.h (xalloc_exit_failure): Remove.
35568         * lib/xmalloc.c: Likewise.  Include exitfail.h.
35569         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
35570         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
35571         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
35572         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
35573
35574 2003-07-20  Jim Meyering  <jim@meyering.net>
35575
35576         * modules/closeout (Depends-on): Add exitfail.
35577         Suggestion from Bruno Haible.
35578
35579 2003-07-19  Karl Berry  <karl@gnu.org>
35580
35581         * config/config.sub: update from prep.
35582
35583 2003-07-18  Paul Eggert  <eggert@twinsun.com>
35584
35585         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
35586         Remove.
35587         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
35588         to test that it can stand by itself.  Include "exitfail.h".
35589         Clients should set exit_failure instead.
35590         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
35591
35592 2003-07-18  Bruno Haible  <bruno@clisp.org>
35593
35594         * modules/getndelim2: New file.
35595         * modules/getline: Share files with module getndelim2.
35596         * modules/getnline: Depend on getndelim2 instead of sharing files with
35597         it. Add getnline.c to lib_SOURCES.
35598         * MODULES.html.sh (func_all_modules): Add getndelim2.
35599
35600 2003-07-18  Bruno Haible  <bruno@clisp.org>
35601
35602         * m4/getndelim2.m4: New file.
35603         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
35604         invoke gl_PREREQ_GETNDELIM2.
35605         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
35606         gl_PREREQ_GETNDELIM2.
35607         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
35608         gl_GETNDELIM2.
35609
35610 2003-07-18  Bruno Haible  <bruno@clisp.org>
35611
35612         * lib/getndelim2.h: New file.
35613         * lib/getndelim2.c: Make into a module of its own. Include config.h,
35614         getndelim2.h.
35615         (getndelim2): Make non-static. Change return type to ssize_t.
35616         * lib/getline.h: Change argument names.
35617         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
35618         * lib/getnline.c: Include getndelim2.h.
35619
35620 2003-07-18  Andreas Schwab  <schwab@suse.de>
35621
35622         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
35623
35624 2003-07-17  Karl Berry  <karl@gnu.org>
35625
35626         * config/config.sub: update from prep.
35627
35628 2003-07-17  Bruno Haible  <bruno@clisp.org>
35629
35630         * modules/getnline: New file.
35631         * modules/getline: Add lib/getndelim2.c to source file list.
35632         * MODULES.html.sh (func_all_modules): Add getnline.
35633
35634 2003-07-17  Bruno Haible  <bruno@clisp.org>
35635
35636         * m4/getnline.m4: New file.
35637
35638 2003-07-17  Bruno Haible  <bruno@clisp.org>
35639
35640         * m4/Makefile.am.in: Remove file.
35641         * m4/Makefile.am: Remove file.
35642         * m4/Makefile.in: Remove file.
35643
35644 2003-07-17  Bruno Haible  <bruno@clisp.org>
35645
35646         * lib/getnline.h: New file.
35647         * lib/getnline.c: New file.
35648         * lib/getndelim2.c: New file, extracted from getline.c.
35649         (getndelim2): Renamed from getdelim2, with added nmax argument.
35650         * lib/getline.c: Include getndelim2.c.
35651         (getdelim2): Moved out to getndelim2.c.
35652         (getline, getdelim): Update.
35653
35654 2003-07-17  Bruno Haible  <bruno@clisp.org>
35655
35656         * lib/Makefile.am: Remove file.
35657         * lib/Makefile.in: Remove file.
35658
35659 2003-07-17  Bruno Haible  <bruno@clisp.org>
35660
35661         * configure.in: Remove file.
35662         * Makefile.in: Remove file.
35663
35664 2003-07-17  Bruno Haible  <bruno@clisp.org>
35665
35666         * MODULES.html.sh: Put the </BODY> right before </HTML>.
35667
35668 2003-07-16  Karl Berry  <karl@gnu.org>
35669
35670         * config/srclist-update: was running fixlicense twice, which caused
35671                 texinfo.tex to be nullified for some reason.  Simplify,
35672                 $gplsrc is no longer needed as far as I can see?
35673
35674 2003-07-16  Jim Meyering  <jim@meyering.net>
35675
35676         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
35677
35678 2003-07-15  Paul Eggert  <eggert@twinsun.com>
35679
35680         * config/srclist.txt: Get the following files from gettext-runtime/intl
35681         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
35682         ref-del.sin.  From Bruno Haible.
35683         * config/srclist-update (fixfile): Change grep pattern again, since the
35684         previous fix didn't work (there was another trailing $).  Use
35685         '[$]' to escape the $s.
35686
35687 2003-07-15  Karl Berry  <karl@gnu.org>
35688
35689         * lib/vasnprintf.c: update from gettext.
35690
35691 2003-07-15  Karl Berry  <karl@gnu.org>
35692
35693         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
35694         gets expanded when surrounded by '$'.
35695
35696 2003-07-15  Jim Meyering  <jim@meyering.net>
35697
35698         * modules/save-cwd: Don't depend on error.  From Derek Price.
35699
35700 2003-07-15  Jim Meyering  <jim@meyering.net>
35701
35702         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
35703
35704 2003-07-14  Simon Josefsson  <jas@extundo.com>
35705
35706         * modules/mempcpy: New file.
35707         * MODULES.html.sh (func_all_modules): Add mempcpy.
35708
35709 2003-07-14  Simon Josefsson  <jas@extundo.com>
35710
35711         * m4/mempcpy.m4: New file.
35712
35713 2003-07-14  Simon Josefsson  <jas@extundo.com>
35714
35715         * lib/mempcpy.h: New file.
35716         * lib/mempcpy.c: New file.
35717
35718 2003-07-14  Paul Eggert  <eggert@twinsun.com>
35719
35720         * modules/getdate, modules/posixtm: Depend on mktime.
35721
35722 2003-07-14  Paul Eggert  <eggert@twinsun.com>
35723
35724         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
35725         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
35726         unicodeio.c, unicodeio.h, unlocked-io.h:
35727         Switch from LGPL to GPL.
35728
35729 2003-07-14  Paul Eggert  <eggert@twinsun.com>
35730
35731         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
35732         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
35733         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
35734         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
35735         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
35736         updated automatically by ../config/srclist-update.  This changes
35737         their license from LPGL to GPL.
35738
35739 2003-07-14  Paul Eggert  <eggert@twinsun.com>
35740
35741         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
35742         assumed to refer to the root of the most recent stable gettext version.
35743         * config/srclistvars.sh: Add defaults for eggert.
35744         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
35745         Match "This program" as well as "The program".  This is needed
35746         for gettext.
35747
35748 2003-07-14  Jim Meyering  <jim@meyering.net>
35749
35750         Don't emit diagnostics.  Let callers do that.
35751         * lib/save-cwd.c: Don't include "error.h".
35752         (save_cwd): Don't call error.  Ensure that errno is valid
35753         when returning nonzero.
35754
35755         * lib/save-cwd.h (restore_cwd): Update prototype.
35756         * lib/save-cwd.c (restore_cwd): Remove two parameters.
35757         Simplify.  Don't call error upon failure.  Let callers do that.
35758         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
35759         when auditing is enabled.  But don't bother updating the #if.
35760
35761 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
35762
35763         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
35764         it breaks C++ compilation.
35765         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
35766
35767 2003-07-10  Simon Josefsson  <jas@extundo.com>
35768
35769         * modules/strchrnul (Makefile.am): Add strchrnul.h.
35770
35771 2003-07-10  Jim Meyering  <jim@meyering.net>
35772
35773         * m4/clock_time.m4: Remove trailing blank.
35774         * m4/intmax_t.m4: Likewise.
35775
35776 2003-07-10  Jim Meyering  <jim@meyering.net>
35777
35778         * lib/vasnprintf.c: Remove trailing blanks.
35779         Make cpp indentation consistent.
35780
35781 2003-07-09  Paul Eggert  <eggert@twinsun.com>
35782
35783         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
35784         posixver.c, strftime.c, strnlen.c, strverscmp.c:
35785         Switch from LGPL to GPL.
35786
35787 2003-07-09  Paul Eggert  <eggert@twinsun.com>
35788
35789         * config/srclist.txt: Sort sublists.  Add
35790         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
35791         that differ from gnulib for one reason or another; we'd like this list
35792         to be smaller but for now let's document what we have.
35793
35794 2003-07-08  Paul Eggert  <eggert@twinsun.com>
35795
35796         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
35797         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
35798         and sweeter "eval x=$x".
35799         * config/srclist.txt: Get lib/argp* from glibc.
35800
35801 2003-07-07  Paul Eggert  <eggert@twinsun.com>
35802
35803         * lib/mktime.c: Fix some boundary cases and remove need for floating
35804         point.
35805
35806         Issue a compile-time diagnostic if time_t is floating point, or if
35807         two's complement arithmetic is not in effect, or if arithmetic
35808         right shift does not propagate the sign.  These assumptions were
35809         all in the original code but they weren't checked.
35810
35811         (TIME_T_MIDPOINT, verify): New macros.
35812         (__isleap): Remove; it has integer overflow problems.
35813         (leapyear): New function, without those problems.
35814         (ydhms_tm_diff): Remove; splitting into two parts.
35815         (ydhms_diff): New function, containing the arithmetic part of
35816         the old ydhms_tm_diff function.  Issue a compile-time
35817         diagnostic if we are not using C99 integer division.
35818         Avoid casts when possible.
35819         (guess_time_tm): New function, containing the checking part of
35820         the old ydhms_tm_diff function.  Return the new value, rather than
35821         the difference between it and the old.  Accept a new argument T
35822         so that *T specifies the old value.  Check for overflow in the result.
35823
35824         (__mktime_internal): Use a time_t offset, not a long int offset.
35825         This undoes the 2003-06-04 change, which is no longer needed now
35826         that we have better overflow checking.
35827         (localtime_offset): Likewise.
35828
35829         (__mktime_internal): Avoid harmful overflow on hosts where time_t
35830         and long are 64-bit but int is only 32-bit.
35831         (ydhms_diff): Use long int to store year1 and yday1.
35832         Issue a compile-time diagnostic if long int is not wide enough.
35833
35834         (__mktime_internal): Use long int to store adjusted year and yday.
35835         Use plain C rather than preprocessor commands, if that doesn't
35836         affect efficiency.
35837         Check for overflow (and try to repair) after each probe
35838         rather than checking only at the very end.  This avoids some bugs
35839         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
35840         does not equal GMT offset at maximum time).
35841         Use integer to check for overflow rather than floating point; this
35842         is more portable to non-IEEE hosts, and is a tad faster.
35843         When we detect that we are oscillating between two values,
35844         don't check whether tm_isdst has the requested value, since
35845         we already know the answer.  When tm_isdst has the wrong value,
35846         use a different heuristic to find the right one, based on the
35847         extreme values actually observed in practice in tz2003a,
35848         rather than the (overly optimistic) "previous 3 calendar quarters".
35849
35850         (not_equal_tm, print_tm, check_result): Use "const T" rather than
35851         "T const" to accommodate glibc style.
35852         (check_result): Use less-confusing report format.  "long" -> "long int.
35853         (main): Likewise.
35854         Don't loop if the iteration overflows time_t.
35855         Allow a negative step in the iteration.
35856
35857 2003-07-06  Karl Berry  <karl@gnu.org>
35858
35859         * config/depcomp: update from automake.
35860         * config/config.sub: update from prep.
35861
35862 2003-07-03  Karl Berry  <karl@gnu.org>
35863
35864         * config/config.guess: update from prep.
35865
35866 2003-07-01  Paul Eggert  <eggert@twinsun.com>
35867
35868         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
35869         xreadlink.c now includes it unconditionally.
35870
35871 2003-07-01  Paul Eggert  <eggert@twinsun.com>
35872
35873         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
35874         having it depend on HAVE_SYS_TYPES_H.
35875
35876 2003-07-01  Bruno Haible  <bruno@clisp.org>
35877
35878         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
35879         <sys/types.h> should be sufficient.
35880         Reported by Paul Eggert.
35881
35882 2003-06-26  Karl Berry  <karl@gnu.org>
35883
35884         * config/depcomp: update from automake.
35885
35886 2003-06-26  Bruno Haible  <bruno@clisp.org>
35887
35888         * modules/human: Depend on module stdbool.
35889
35890 2003-06-25  Bruno Haible  <bruno@clisp.org>
35891
35892         * modules/readlink: New file.
35893         * modules/xreadlink: Depend on it.
35894         * MODULES.html.sh (func_all_modules): Add readlink.
35895
35896 2003-06-25  Bruno Haible  <bruno@clisp.org>
35897
35898         * m4/readlink.m4: New file.
35899
35900 2003-06-25  Bruno Haible  <bruno@clisp.org>
35901
35902         * lib/readlink.c: New file.
35903
35904 2003-06-22  Karl Berry  <karl@gnu.org>
35905
35906         * config/srclist.txt: update mkinstalldirs from automake.
35907         * config/mkinstalldirs: update.
35908
35909 2003-06-22  Bruno Haible  <bruno@clisp.org>
35910
35911         Portability to mingw32.
35912         * m4/ssize_t.m4: New file, from GNU gettext.
35913         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
35914         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
35915
35916 2003-06-22  Bruno Haible  <bruno@clisp.org>
35917
35918         * modules/safe-read: Add m4/ssize_t.m4.
35919         * modules/xreadlink: Add m4/ssize_t.m4.
35920
35921 2003-06-20  Bruno Haible  <bruno@clisp.org>
35922
35923         Assume C89, so PARAMS isn't needed.
35924         * lib/unicodeio.h (PARAMS): Remove.
35925         * lib/unicodeio.c: Don't use PARAMS.
35926
35927 2003-06-18  Karl Berry  <karl@gnu.org>
35928
35929         * config/config.{guess,sub}: update from prep.
35930
35931 2003-06-18  Jim Meyering  <jim@meyering.net>
35932
35933         Merge changes from coreutils.
35934         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
35935         Remove explicit declarations of xmalloc and realloc.
35936         Include xalloc.h.
35937         (read_utmp): Remove anachronistic cast of xmalloc.
35938
35939 2003-06-17  Paul Eggert  <eggert@twinsun.com>
35940
35941         Assume C89, so PARAMS isn't needed.
35942         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
35943         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
35944         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
35945         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
35946         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
35947         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
35948         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
35949         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
35950         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
35951         lib/xstrtod.h, lib/xstrtol.h: Likewise.
35952         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
35953         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
35954         no longer needed. Anyway, config.h should always be included before any
35955         other file.
35956
35957 2003-06-11  Simon Josefsson  <jas@extundo.com>
35958
35959         * modules/sysexits: New file.
35960         * MODULES.html.sh (func_all_modules): Add sysexits.
35961
35962 2003-06-11  Simon Josefsson  <jas@extundo.com>
35963
35964         * lib/sysexit_.h: New file.
35965
35966 2003-06-11  Derek Price  <derek@ximbiot.com>
35967
35968         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
35969         necessary.
35970
35971 2003-06-11  Bruno Haible  <bruno@clisp.org>
35972
35973         * m4/sysexits.m4: New file.
35974
35975 2003-06-10  Simon Josefsson  <jas@extundo.com>
35976
35977         * lib/argp.h: New file, from glibc.
35978         * lib/argp-ba.c: New file, from glibc.
35979         * lib/argp-eexst.c: New file, from glibc.
35980         * lib/argp-fmtstream.c: New file, from glibc.
35981         * lib/argp-fmtstream.h: New file, from glibc.
35982         * lib/argp-fs-xinl.c: New file, from glibc.
35983         * lib/argp-help.c: New file, from glibc.
35984         * lib/argp-namefrob.h: New file, from glibc.
35985         * lib/argp-parse.c: New file, from glibc.
35986         * lib/argp-pv.c: New file, from glibc.
35987         * lib/argp-pvh.c: New file, from glibc.
35988         * lib/argp-xinl.c: New file, from glibc.
35989
35990 2003-06-10  Simon Josefsson  <jas@extundo.com>
35991
35992         * modules/strchrnul: New file.
35993
35994 2003-06-10  Simon Josefsson  <jas@extundo.com>
35995
35996         * modules/argp: New file.
35997
35998 2003-06-10  Simon Josefsson  <jas@extundo.com>
35999
36000         * m4/strchrnul.m4: New file.
36001
36002 2003-06-10  Simon Josefsson  <jas@extundo.com>
36003
36004         * lib/strchrnul.h: New file.
36005         * lib/strchrnul.c: New file.
36006
36007 2003-06-10  Bruno Haible  <bruno@clisp.org>
36008
36009         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
36010
36011 2003-06-07  Karl Berry  <karl@gnu.org>
36012
36013         * config/config.{guess,sub}: update from prep.
36014
36015 2003-06-07  Jim Meyering  <jim@meyering.net>
36016
36017         * modules/strtod: Use $(...) notation, not @...@ for
36018         AC_REPLACE'd variables.
36019         * modules/localcharset: Likewise.
36020
36021 2003-06-07  Jim Meyering  <jim@meyering.net>
36022
36023         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
36024         in place of my name in the copyright comment.
36025         Remove definition and uses of __P.
36026
36027         From coreutils.
36028         * lib/stat.c: Don't declare xmalloc explicitly.
36029         Instead, include "xalloc.h".
36030         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
36031         xrealloc, and xcalloc return values.
36032         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
36033         Improve comment.
36034         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
36035
36036 2003-06-07  Bruno Haible  <bruno@clisp.org>
36037
36038         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
36039         avoid AC_CONFIG_LINKS.
36040         * modules/fnmatch (Makefile.am): Use explicit creation rule for
36041         fnmatch.h, to avoid AC_CONFIG_LINKS.
36042         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
36043
36044 2003-06-07  Bruno Haible  <bruno@clisp.org>
36045
36046         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
36047         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
36048         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
36049         directory.
36050         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
36051         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
36052         directory.
36053
36054 2003-06-06  Jim Meyering  <jim@meyering.net>
36055
36056         Merge from coreutils.
36057         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
36058         Consolidate declarations and initializations of *_base* locals.
36059
36060         Merge from coreutils.
36061         This avoids a core dump on systems without GNU putenv,
36062         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
36063         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
36064         (unsetenv): New static function, from GNU libc.
36065         (rpl_putenv): Use it.
36066
36067         * lib/modechange.c: Remove trailing blanks.
36068
36069         Merge from coreutils.
36070         * lib/fsusage.c: Remove declaration of statfs.
36071         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
36072
36073         * lib/posixtm.c: Include <stdbool.h> unconditionally.
36074
36075 2003-06-06  Jim Meyering  <jim@meyering.net>
36076
36077         * lib/stdbool_.h: Renamed from stdbool.h.in.
36078
36079 2003-06-06  Jim Meyering  <jim@meyering.net>
36080             Bruno Haible  <bruno@clisp.org>
36081
36082         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
36083         Adjust Makefile.am snippet not to redirect directly to target.
36084         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
36085
36086 2003-06-05  Paul Eggert  <eggert@twinsun.com>
36087
36088         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
36089         mismatch, look in future quarters as well as past.  This fixes a
36090         bug when processing fall-backwards gaps immediately after a long
36091         period of daylight-saving time.
36092
36093         * lib/mktime.c: Assume freestanding C89 or better.
36094         (HAVE_LIMITS_H): Remove.  Assume it's 1.
36095         (__P): Remove; not used.
36096         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
36097         (mktime, not_equal_tm, print_tm, check_result,
36098         main): Use prototypes.  Use const * where appropriate.
36099         (main): Fix typo in testing code that uncovered by above changes.
36100         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
36101
36102 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36103
36104         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
36105         locale.h, localeconv.  This merges changes from coreutils.
36106
36107         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
36108         It can be removed after the next Autoconf is released.
36109         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
36110         needed.
36111
36112 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36113
36114         * lib/mktime.c: Fix Debian bug 177940
36115         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
36116         (localtime_offset): Now long int, not time_t, because we want it
36117         to be guaranteed to be signed.  All uses changed.
36118         (__mktime_internal): If overflow would occur when adding offset,
36119         don't add it.
36120
36121         Merge 'human' changes from coreutils.  Rewrite to support
36122         locale-specific notations like thousands separators.
36123         * lib/human.c: Simplify authorship notice.
36124         Include human.h immediately after config.h.
36125         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
36126         <limits.h>: Do not include, since human.h does.
36127         (SIZE_MAX, UINTMAX_MAX): New macros.
36128         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
36129         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
36130         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
36131         (power_letter): Renamed from suffixes.
36132         (generate_suffix_backwards): Remove.
36133         (adjust_value): Now takes int style (because of human.h changes)
36134         and long double value (for greater precision on some platforms).
36135         (group_number): New function.
36136         (human_readable): Use it.  Use integer options, not enum.
36137         Put the options before the sizes in the arg list.
36138         Support all the new options.
36139         The old human_readable function has been removed;
36140         use inttostr.h instead.
36141         (human_readable, default_block_size, humblock):
36142         Use uintmax_t, not int, for block sizes.
36143         (human_readable_inexact, block_size_types): Remove.
36144         (block_size_opts): New constant.
36145         (human_options): Renamed from human_block_size, with new signature
36146         that allows block sizes up to UINTMAX_MAX.  All callers changed.
36147         * lib/human.h: Add copyright and authorship notice.
36148         Include <limits.h> and <stdbool.h> unconditionally.
36149         (PARAMS): Remove.  All uses removed.
36150         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
36151         (enum human_inexact_style): Remove tag; now a nameless enum.
36152         (human_floor, human_ceiling, human_round_to_even): Now have
36153         values 2, 0, 1 rather than -1, 1, 0.
36154         (human_group_digits, human_suppress_point_zero, human_autoscale,
36155         human_base_1024, human_SI, human_B): New constants.
36156         (human_readable_inexact, human_block_size): Remove.
36157         (human_readable): Size args are now uintmax_t, not int.
36158         (human_options): New decl.
36159
36160         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
36161         unnecessary now that we assume C89 or better.  This change
36162         imported from coreutils.
36163
36164         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
36165         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
36166         in the 2003-05-30 sync from glibc.
36167
36168         .h files should stand alone, but we shouldn't include <sys/types.h>
36169         if we can get away with just <stddef.h>.
36170
36171         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
36172         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
36173         rather than <sys/types.h>, as we merely need size_t.
36174         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
36175         to get size_t.
36176         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
36177         Include <stdio.h>, to get FILE.
36178         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
36179         memcasecmp.h has included <stddef.h> and all we need is size_t.
36180         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
36181         our interface, instead of including <sys/types.h>
36182
36183 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36184
36185         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
36186         now, as glibc mktime is buggy on non-glibc systems.
36187
36188 2003-06-03  Karl Berry  <karl@gnu.org>
36189
36190         * config/config.sub: update from prep.
36191
36192 2003-06-02  Paul Eggert  <eggert@twinsun.com>
36193
36194         [from coreutils]
36195         Fix some minor time-related bugs with POSIX time arguments.
36196         Some valid time stamps were being rejected (notably -1, and
36197         time stamps before 1900 on 64-bit hosts).  And some invalid
36198         time stamps were being accepted, e.g. September 31.
36199
36200         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
36201         that we can return (time_t) -1 successfully.
36202         * lib/posixtm.c: Likewise.
36203         [HAVE_STDBOOL_H]: Include <stdbool.h>.
36204         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
36205         (t): Remove static var.
36206         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
36207         of static var.  All uses changed.
36208         (year): Do not reject years before 1900; they can occur with
36209         64-bit time_t.
36210         (posix_time_parse): Do not check for out-of-range components;
36211         that is now the caller's responsibility, since our checks were
36212         only approximations.
36213         (posixtime): Use mktime to check for out-of-range components,
36214         since it knows them exactly.
36215         If mktime returns (time_t) -1, check whether an error actually occurred
36216         by invoking localtime on -1.
36217         (main) [TEST_POSIXTIME]: Check for input data errors, and report
36218         posixtime failures better.
36219         Improve the test data (in comments only).
36220
36221 2003-06-02  Karl Berry  <karl@gnu.org>
36222
36223         * config/mkinstalldirs (version): new variable.
36224         (--version): new option.
36225         (usage): improve message.
36226
36227 2003-05-30  Karl Berry  <karl@gnu.org>
36228
36229         * lib/mktime.c: update from libc.
36230
36231 2003-05-30  Bruno Haible  <bruno@clisp.org>
36232
36233         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
36234         * config/config.rpath: Upgrade to gettext-0.12.1.
36235
36236 2003-05-30  Bruno Haible  <bruno@clisp.org>
36237
36238         * m4/gettext.m4: Upgrade to gettext-0.12.1.
36239         * m4/nls.m4: New file, from gettext-0.12.1.
36240         * m4/po.m4: New file, from gettext-0.12.1.
36241         * m4/progtest.m4: Upgrade to gettext-0.12.1.
36242
36243 2003-05-30  Bruno Haible  <bruno@clisp.org>
36244
36245         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
36246         * lib/localcharset.h: Likewise.
36247         * lib/localcharset.c: Likewise.
36248
36249 2003-05-29  Karl Berry  <karl@gnu.org>
36250
36251         * config/config.rpath: update from gettext.
36252
36253 2003-05-28  Paul Eggert  <eggert@twinsun.com>
36254
36255         Assume the headers required for C89 freestanding compilers.
36256         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
36257         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
36258         * m4/human.m4 (gl_HUMAN): Likewise.
36259         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
36260         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
36261         * m4/userspec.m4 (gl_USERSPEC): Likewise.
36262         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
36263         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36264         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
36265
36266 2003-05-28  Paul Eggert  <eggert@twinsun.com>
36267
36268         Assume the headers required for C89 freestanding compilers.
36269         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
36270         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
36271         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
36272         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
36273         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
36274         define, since <limits.h> is guaranteed to do that.
36275         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
36276         * lib/exclude.c: Include <stdbool.h> unconditionally.
36277         * lib/tempname.c: Include <stddef.h> unconditionally.
36278         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
36279         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
36280         <stddef.h> does that.
36281         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
36282         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
36283         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
36284         needed.
36285         * lib/xstrtol.c: Likewise.
36286         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
36287         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
36288
36289         * lib/addext.c (addext): Use assignment rather than cast, to avoid
36290         warnings on some platforms.
36291
36292         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
36293         arbitrarily.
36294
36295 2003-05-26  Jim Meyering  <jim@meyering.net>
36296
36297         Merge in a change from coreutils:
36298         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
36299         that is guaranteed to be `no'.  Use `no_such_member' to indicate
36300         that condition, rather than `-1' which is slightly misleading.
36301         Change the name of the cache variable to have the gl_ prefix.
36302         Prompted by a patch from Richard Dawe for DJGPP.
36303
36304 2003-05-24  Karl Berry  <karl@gnu.org>
36305
36306         * config/config.guess: update from prep.
36307
36308 2003-05-22  Karl Berry  <karl@gnu.org>
36309
36310         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
36311
36312 2003-05-20  Karl Berry  <karl@gnu.org>
36313
36314         * config/config.guess: update from prep.
36315
36316 2003-05-18  Karl Berry  <karl@gnu.org>
36317
36318         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
36319         might actually be set by the user.
36320
36321         * config/depcomp, install-sh, mdate-sh: update from automake.
36322
36323 2003-05-17  Bruno Haible  <bruno@clisp.org>
36324
36325         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
36326         invalid expansion for AC_EGREP_CPP.
36327         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
36328         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
36329         Suggested by Akim Demaille <akim@epita.fr> in
36330         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
36331
36332 2003-05-12  Jim Meyering  <jim@meyering.net>
36333
36334         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
36335         the space-padded-by-default conversion specifiers, %e, %k, %l.
36336
36337 2003-05-12  Bruno Haible  <bruno@clisp.org>
36338
36339         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
36340         the string is longer than 4 KB.
36341
36342 2003-05-11  Karl Berry  <karl@gnu.org>
36343
36344         * config/config.{guess,sub}: update from prep.
36345
36346 2003-05-09  Bruno Haible  <bruno@clisp.org>
36347
36348         * modules/error: Add m4/strerror_r.m4 to file list.
36349
36350 2003-05-03  Bruno Haible  <bruno@clisp.org>
36351
36352         Upgrade to Unicode-4.0.
36353         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
36354         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
36355         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
36356         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
36357         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
36358         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
36359         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
36360         Change width of U+E0100..U+E01EF from 1 to 0.
36361
36362 2003-04-25  Jim Meyering  <jim@meyering.net>
36363
36364         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
36365         of type size_t, not int.
36366
36367 2003-04-25  Bruno Haible  <bruno@clisp.org>
36368
36369         * lib/copy-file.c: Include <stddef.h>, for size_t.
36370
36371 2003-04-21  Paul Eggert  <eggert@twinsun.com>
36372
36373         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
36374         code which expansion is under static control.  Patch imported from
36375         Akim Demaille's patch to Bison; see
36376         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
36377
36378 2003-04-14  Bruno Haible  <bruno@clisp.org>
36379
36380         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
36381
36382 2003-04-11  Jim Meyering  <jim@meyering.net>
36383
36384         Merge changes from Coreutils.
36385
36386         2003-03-22  Jim Meyering  <jim@meyering.net>
36387
36388         * lib/strftime.c (widen): Cast alloca return value to proper type.
36389
36390         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
36391
36392         From GNU libc.
36393         * lib/strftime.c (my_strftime): Handle very large width
36394         specifications for numeric values correctly.  Improve checks for
36395         overflow.
36396
36397         2003-01-19  Jim Meyering  <jim@meyering.net>
36398
36399         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
36400         definitions.
36401         (nl_get_alt_digit) [! defined my_strftime]: Define.
36402         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
36403         _nl_get_alt_digit and _nl_get_walt_digit.
36404
36405         * lib/strftime.c (my_strftime): Merge in locale-related changes from
36406         libc. These changes have no effect outside of _LIBC.
36407
36408 2003-04-10  Bruno Haible  <bruno@clisp.org>
36409
36410         * modules/findprog: New file.
36411         * MODULES.html.sh (func_all_modules): Add it.
36412
36413 2003-04-10  Bruno Haible  <bruno@clisp.org>
36414
36415         * m4/findprog.m4: New file.
36416         * m4/eaccess.m4: New file.
36417
36418 2003-04-10  Bruno Haible  <bruno@clisp.org>
36419
36420         * lib/findprog.h: New file, from GNU gettext.
36421         * lib/findprog.c: New file, from GNU gettext.
36422
36423 2003-04-05  Jim Meyering  <jim@meyering.net>
36424
36425         Merge changes from Coreutils.
36426
36427         * lib/exclude.h (PARAMS): Remove definition and uses.
36428         * lib/exclude.c: Remove uses of `PARAMS'.
36429
36430         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
36431         Add test-cases for DOS filenames. Declare program_name.
36432         (main): Set up program_name.  Patch by Rich Dawe.
36433
36434         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
36435         error from mntctl.
36436         Use mntctl's return value to drive the entry-processing loop, since
36437         we can't rely on the value of the vmt_length member in the last
36438         entry.  On some systems doing so could result in exhausting
36439         virtual memory.  Based in part on a patch from Mike Jetzer.
36440
36441 2003-04-04  Bruno Haible  <bruno@clisp.org>
36442
36443         * modules/linebreak: New file.
36444         * MODULES.html.sh (func_all_modules): Add it.
36445
36446 2003-04-04  Bruno Haible  <bruno@clisp.org>
36447
36448         * m4/linebreak.m4: New file.
36449
36450 2003-04-04  Bruno Haible  <bruno@clisp.org>
36451
36452         * lib/linebreak.h: New file, from GNU gettext.
36453         * lib/linebreak.c: New file, from GNU gettext with slight
36454         modifications.
36455         * lib/lbrkprop.h: New file, from GNU gettext.
36456
36457 2003-04-03  Bruno Haible  <bruno@clisp.org>
36458
36459         * modules/utf8-ucs4: New file.
36460         * modules/utf16-ucs4: New file.
36461         * modules/ucs4-utf8: New file.
36462         * modules/ucs4-utf16: New file.
36463         * MODULES.html.sh (func_all_modules): Add them.
36464
36465 2003-04-03  Bruno Haible  <bruno@clisp.org>
36466
36467         * m4/utf-ucs4.m4: New file.
36468         * m4/ucs4-utf.m4: New file.
36469
36470 2003-04-03  Bruno Haible  <bruno@clisp.org>
36471
36472         * lib/utf8-ucs4.h: New file, from GNU gettext.
36473         * lib/utf16-ucs4.h: New file, from GNU gettext.
36474         * lib/ucs4-utf8.h: New file, from GNU gettext.
36475         * lib/ucs4-utf16.h: New file, from GNU gettext.
36476
36477 2003-04-02  Bruno Haible  <bruno@clisp.org>
36478
36479         * modules/binary-io: New file.
36480         * MODULES.html.sh (func_all_modules): Add it.
36481
36482 2003-04-02  Bruno Haible  <bruno@clisp.org>
36483
36484         * lib/binary-io.h: New file, from GNU gettext.
36485
36486 2003-04-01  Bruno Haible  <bruno@clisp.org>
36487
36488         * modules/pathname: New file.
36489         * MODULES.html.sh (func_all_modules): Add it.
36490
36491 2003-04-01  Bruno Haible  <bruno@clisp.org>
36492
36493         * lib/pathname.h: New file, from GNU gettext.
36494         * lib/concatpath.c: New file, from GNU gettext.
36495
36496 2003-03-30  Bruno Haible  <bruno@clisp.org>
36497
36498         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
36499
36500 2003-03-30  Bruno Haible  <bruno@clisp.org>
36501
36502         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
36503         function chown() doesn't exist.
36504
36505 2003-03-28  Bruno Haible  <bruno@clisp.org>
36506
36507         * modules/copy-file: New file.
36508         * MODULES.html.sh (func_all_modules): Add it.
36509
36510 2003-03-28  Bruno Haible  <bruno@clisp.org>
36511
36512         * m4/copy-file.m4: New file.
36513
36514 2003-03-28  Bruno Haible  <bruno@clisp.org>
36515
36516         * lib/copy-file.h: New file, from GNU gettext.
36517         * lib/copy-file.c: New file, from GNU gettext.
36518
36519 2003-03-18  Jim Meyering  <jim@meyering.net>
36520
36521         * lib/quote.c (quote_n): Fix typo in comment.
36522
36523 2003-03-18  Bruno Haible  <bruno@clisp.org>
36524
36525         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
36526         checking.
36527         * m4/onceonly_2_57.m4: Likewise.
36528
36529 2003-03-17  Bruno Haible  <bruno@clisp.org>
36530
36531         * m4/onceonly.m4: Require autoconf 2.54 or newer.
36532         (m4_quote): Remove macro.
36533         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
36534
36535 2003-03-14  Jim Meyering  <jim@meyering.net>
36536
36537         Merge changes from Coreutils.
36538         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
36539         to be const, in order to avoid warnings.
36540         (obstack_room): Likewise.
36541         (obstack_empty_p): Likewise.
36542
36543 2003-03-14  Bruno Haible  <bruno@clisp.org>
36544
36545         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
36546         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
36547
36548 2003-03-13  Paul Eggert  <eggert@twinsun.com>
36549
36550         Merge changes from Bison.
36551         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
36552         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
36553         when compiling Bison 1.875's `bitset bset = obstack_alloc
36554         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
36555         * lib/hash.c: Include <stdbool.h> unconditionally.
36556
36557 2003-03-13  Paul Eggert  <eggert@twinsun.com>
36558
36559         * m4/onceonly.m4 (m4_quote): New macro.
36560         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
36561         Quote AC_FOREACH variable-expansions properly.
36562
36563 2003-03-13  Paul Eggert  <eggert@twinsun.com>
36564
36565         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
36566
36567 2003-03-09  Paul Eggert  <eggert@twinsun.com>
36568
36569         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
36570         Reported by Bruce Becker; see:
36571         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
36572
36573 2003-03-03  Paul Eggert  <eggert@twinsun.com>
36574             Bruno Haible  <bruno@clisp.org>
36575
36576         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
36577         Reported by John Hughes, see
36578         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
36579
36580 2003-02-20  Bruno Haible  <bruno@clisp.org>
36581
36582         * MODULES.html.sh (func_all_modules): Add poll.
36583
36584 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
36585
36586         * modules/poll: New file.
36587
36588 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
36589
36590         * lib/poll_.h: New file.
36591         * lib/poll.c: New file.
36592
36593 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
36594
36595         * m4/poll.m4: New file.
36596
36597 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
36598
36599         * modules/mathl: New file.
36600
36601 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
36602
36603         * lib/mathl.h: New file.
36604         * lib/acosl.c: New file.
36605         * lib/asinl.c: New file.
36606         * lib/atanl.c: New file.
36607         * lib/ceill.c: New file.
36608         * lib/cosl.c: New file.
36609         * lib/expl.c: New file.
36610         * lib/floorl.c: New file.
36611         * lib/frexpl.c: New file.
36612         * lib/ldexpl.c: New file.
36613         * lib/logl.c: New file.
36614         * lib/sincosl.c: New file.
36615         * lib/sinl.c: New file.
36616         * lib/sqrtl.c: New file.
36617         * lib/tanl.c: New file.
36618         * lib/trigl.c: New file.
36619         * lib/trigl.h: New file.
36620
36621 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
36622
36623         * m4/mathl.m4: New file.
36624
36625 2003-02-18  Bruno Haible  <bruno@clisp.org>
36626
36627         * MODULES.html.sh (func_all_modules): Add mathl.
36628
36629 2003-02-17  Bruno Haible  <bruno@clisp.org>
36630
36631         * modules/mkdtemp: New module.
36632         * MODULES.html.sh (func_all_modules): Add it.
36633
36634 2003-02-17  Bruno Haible  <bruno@clisp.org>
36635
36636         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
36637
36638 2003-02-17  Bruno Haible  <bruno@clisp.org>
36639
36640         * lib/mkdtemp.h: New file, from GNU gettext.
36641         * lib/mkdtemp.c: New file, from GNU gettext.
36642
36643 2003-02-02  Jim Meyering  <jim@meyering.net>
36644
36645         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
36646         e.g. glibc-2.2.93.
36647
36648 2003-01-31  Bruno Haible  <bruno@clisp.org>
36649
36650         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
36651         'rpl_rename'.
36652         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
36653         'rpl_strnlen'.
36654         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
36655         'rpl_strtod'.
36656         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
36657         'rpl_utime'.
36658
36659 2003-01-31  Bruno Haible  <bruno@clisp.org>
36660
36661         * lib/rename.c: #undef rename before defining rpl_rename.
36662         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
36663
36664 2003-01-30  Bruno Haible  <bruno@clisp.org>
36665
36666         * modules/vasnprintf, modules/vasprintf: New modules.
36667         * MODULES.html.sh (func_all_modules): Add them.
36668
36669 2003-01-30  Bruno Haible  <bruno@clisp.org>
36670
36671         * m4/signed.m4: New file, from GNU gettext.
36672         * m4/longdouble.m4: New file, from GNU gettext.
36673         * m4/wchar_t.m4: New file, from GNU gettext.
36674         * m4/wint_t.m4: New file, from GNU gettext.
36675         * m4/vasnprintf.m4: New file.
36676         * m4/vasprintf.m4: New file.
36677
36678 2003-01-30  Bruno Haible  <bruno@clisp.org>
36679
36680         * lib/printf-args.h: New file, from GNU gettext.
36681         * lib/printf-args.c: New file, from GNU gettext.
36682         * lib/printf-parse.h: New file, from GNU gettext.
36683         * lib/printf-parse.c: New file, from GNU gettext.
36684         * lib/vasnprintf.h: New file, from GNU gettext.
36685         * lib/vasnprintf.c: New file, from GNU gettext.
36686         * lib/asnprintf.c: New file, from GNU gettext.
36687         * lib/vasprintf.h: New file, from GNU gettext with modifications.
36688         * lib/vasprintf.c: New file, from GNU gettext.
36689         * lib/asprintf.c: New file, from GNU gettext.
36690
36691 2003-01-29  Bruno Haible  <bruno@clisp.org>
36692
36693         * modules/stpncpy: New module.
36694         * MODULES.html.sh (func_all_modules): Add it.
36695
36696 2003-01-29  Bruno Haible  <bruno@clisp.org>
36697
36698         * m4/stpncpy.m4: New file.
36699
36700 2003-01-29  Bruno Haible  <bruno@clisp.org>
36701
36702         * lib/stpncpy.h: New file, from GNU gettext with modifications.
36703         * lib/stpncpy.c: New file, from GNU gettext with modifications.
36704
36705 2003-01-28  Bruno Haible  <bruno@clisp.org>
36706
36707         * modules/c-ctype: New module.
36708         * MODULES.html.sh (func_all_modules): Add it.
36709
36710 2003-01-28  Bruno Haible  <bruno@clisp.org>
36711
36712         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
36713         Paul Eggert.
36714         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
36715         Paul Eggert.
36716
36717 2003-01-27  Bruno Haible  <bruno@clisp.org>
36718
36719         * modules/xsetenv: New module.
36720         * MODULES.html.sh (func_all_modules): Add it.
36721
36722 2003-01-27  Bruno Haible  <bruno@clisp.org>
36723
36724         * lib/xsetenv.h: New file, from GNU gettext.
36725         * lib/xsetenv.c: New file, from GNU gettext.
36726
36727 2003-01-23  Jim Meyering  <jim@meyering.net>
36728
36729         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
36730         from working on systems without dirfd (at least Irix and OSF1/Tru64).
36731
36732 2003-01-23  Bruno Haible  <bruno@clisp.org>
36733
36734         * modules/minmax: New module.
36735         * MODULES.html.sh (func_all_modules): Add it.
36736
36737 2003-01-23  Bruno Haible  <bruno@clisp.org>
36738
36739         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
36740         Eggert.
36741
36742 2003-01-22  Bruno Haible  <bruno@clisp.org>
36743
36744         * modules/exit: New module.
36745         * MODULES.html.sh (func_all_modules): Add it.
36746
36747 2003-01-22  Bruno Haible  <bruno@clisp.org>
36748
36749         * lib/exit.h: New file, from GNU gettext.
36750
36751 2003-01-19  Bruno Haible  <bruno@clisp.org>
36752
36753         * gnulib-tool: Recognize option --extract-maintainer.
36754         (func_get_maintainer): New function.
36755         * modules/*: Add Maintainer entry.
36756
36757 2003-01-16  Jim Meyering  <jim@meyering.net>
36758
36759         * m4/regex.m4: The `regex' struct is both input and output.
36760         Initialize it before each use.  Patch by Tim Waugh.
36761
36762 2003-01-16  Bruno Haible  <bruno@clisp.org>
36763
36764         * MODULES.html.sh: Add a table of contents. Add the module name as
36765         leftmost column. Add hyperlinks.
36766
36767 2003-01-15  Bruno Haible  <bruno@clisp.org>
36768
36769         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
36770
36771 2003-01-15  Bruno Haible  <bruno@clisp.org>
36772
36773         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
36774         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
36775         suffix.
36776
36777 2003-01-15  Bruno Haible  <bruno@clisp.org>
36778
36779         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
36780
36781 2003-01-15  Bruno Haible  <bruno@clisp.org>
36782
36783         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
36784         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
36785
36786 2003-01-14  Jim Meyering  <jim@meyering.net>
36787
36788         * lib/same.c (same_name): Tweak a comment.
36789
36790 2003-01-14  Bruno Haible  <bruno@clisp.org>
36791
36792         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
36793         when a string comparison is sufficient.
36794
36795 2003-01-14  Bruno Haible  <bruno@clisp.org>
36796
36797         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
36798         'unsigned int'.
36799
36800 2003-01-14  Bruno Haible  <bruno@clisp.org>
36801
36802         * lib/hash-pjw.c: Add comment about low quality of this function.
36803
36804 2003-01-13  Bruno Haible  <bruno@clisp.org>
36805
36806         * modules/stpcpy: Distribute lib/stpcpy.h.
36807         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
36808
36809 2003-01-13  Bruno Haible  <bruno@clisp.org>
36810
36811         * modules/*: Add a description.
36812         * modules/strpbrk: Fix Makefile.am snippet.
36813         * modules/strtoimax: Fix dependencies.
36814         * modules/strtoumax: Likewise.
36815
36816 2003-01-13  Bruno Haible  <bruno@clisp.org>
36817
36818         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
36819         * modules/alloca (Makefile.am): All object files depend on alloca.h.
36820         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
36821
36822 2003-01-13  Bruno Haible  <bruno@clisp.org>
36823
36824         * gnulib-tool (func_create_testdir): Store config/* files in the main
36825         directory.
36826         * config.rpath: Move to ...
36827         * config/config.rpath: ... here.
36828         * modules/gettext: Contains config/config.rpath, not config.rpath.
36829         * modules/iconv: Likewise.
36830
36831 2003-01-12  Paul Eggert  <eggert@twinsun.com>
36832
36833         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
36834         to avoid collisions with libcurses and libreadline.
36835
36836         * m4/getstr.m4: Remove.
36837         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
36838
36839 2003-01-12  Paul Eggert  <eggert@twinsun.com>
36840
36841         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
36842         to avoid collisions with libcurses and libreadline.
36843
36844         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
36845         * lib/getstr.h, getstr.c: Remove.
36846         * lib/getline.c: Include "getline.h", to check interface.
36847         Move body of old getstr.c here: this defines MIN_CHUNK and
36848         declares getdelim2, which is renamed from getstr.
36849         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
36850
36851         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
36852         All uses changed.
36853         * lib/linebuffer.h: Likewise.
36854         (readline): Remove backward-compatibility macro.
36855
36856 2003-01-12  Paul Eggert  <eggert@twinsun.com>
36857
36858         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
36859         to avoid collisions with libcurses and libreadline.
36860         * getstr: Remove.
36861         * MODULES.html.sh: Remove getstr.
36862         * modules/getline: Depend on unlocked-io, not getstr.
36863
36864 2003-01-12  Jim Meyering  <jim@meyering.net>
36865
36866         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
36867
36868 2003-01-10  Bruno Haible  <bruno@clisp.org>
36869
36870         * modules/alloca: Change Makefile.am requirements. Simplify Include
36871         requirements. Add lib/alloca_.h to file list.
36872
36873 2003-01-10  Bruno Haible  <bruno@clisp.org>
36874
36875         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
36876
36877 2003-01-10  Bruno Haible  <bruno@clisp.org>
36878
36879         * lib/alloca_.h: New file.
36880         * lib/getdate.y: Unconditionally include alloca.h.
36881         * lib/makepath.c: Likewise.
36882         * lib/setenv.c: Likewise.
36883         * lib/userspec.c: Likewise.
36884
36885 2003-01-09  Karl Berry  <karl@gnu.org>
36886
36887         * MODULES.html.sh: include `dirname $0` in PATH, to find
36888         gnulib-tool.
36889
36890 2003-01-09  Bruno Haible  <bruno@clisp.org>
36891
36892         * modules/stdbool: Change configure.ac, Makefile.am requirements.
36893         Simplify Include requirements. Add lib/stdbool.h.in to file list.
36894
36895 2003-01-09  Bruno Haible  <bruno@clisp.org>
36896
36897         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
36898
36899 2003-01-09  Bruno Haible  <bruno@clisp.org>
36900
36901         * lib/stdbool.h.in: New file.
36902
36903 2003-01-09  Bruno Haible  <bruno@clisp.org>
36904
36905         * gnulib-tool (func_all_modules): Ignore files ending in ~.
36906         * MODULES.html.sh: Likewise.
36907
36908 2003-01-08  Jim Meyering  <jim@meyering.net>
36909
36910         * lib/full-write.c: Undefine and define-away `const' after inclusion
36911         of errno.h, not before.  Suggestion from Bruno Haible.
36912
36913 2003-01-08  Bruno Haible  <bruno@clisp.org>
36914
36915         * modules/full-read: Depend on full-write.
36916
36917 2003-01-08  Bruno Haible  <bruno@clisp.org>
36918
36919         * lib/safe-read.c: Include specification header first, to ensure its
36920         selfcontainedness.
36921         * lib/full-write.c: Likewise.
36922
36923 2003-01-07  Jim Meyering  <jim@meyering.net>
36924
36925         * lib/full-write.c: Rework so that it may serve to define full_read,
36926         too.
36927         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
36928
36929 2003-01-07  Bruno Haible  <bruno@clisp.org>
36930
36931         * lib/strtoimax.c: Include <stdint.h> as an alternative to
36932         <inttypes.h>.
36933         * lib/xstrtol.h: Likewise.
36934         * lib/xstrtoimax.c: Likewise.
36935         * lib/xstrtoumax.c: Likewise.
36936         * lib/human.h: Likewise.
36937
36938         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
36939         on systems that have <inttypes.h> but not <stdint.h>.
36940
36941 2003-01-07  Bruno Haible  <bruno@clisp.org>
36942
36943         * MODULES.html.sh: Add copyright notice.
36944         (missed_files): Omit CVS directory entries.
36945         (func_module): Make it work with sed-3.02.
36946         * MODULES.txt: Remove file.
36947
36948 2003-01-06  Jim Meyering  <jim@meyering.net>
36949
36950         * lib/version-etc.c: Update year in translatable copyright string.
36951
36952 2003-01-03  Karl Berry  <karl@gnu.org>
36953
36954         * config/config.{guess,sub}: update from prep.
36955
36956 2003-01-02  Karl Berry  <karl@gnu.org>
36957
36958         * doc/COPYING.DOC: belatedly updated to 1.2.
36959
36960 2003-01-01  Karl Berry  <karl@gnu.org>
36961
36962         * gnulib-tool (func_verify_module): report module name $module in
36963         error message, not $1.
36964         * gnulib-tool (create-testdir): don't complain if destdir couldn't
36965         be created, only if it doesn't exist.
36966         * gnulib-tool (last_checkin_date): don't expand the $Date here.
36967
36968 2002-12-31  Paul Eggert  <eggert@twinsun.com>
36969
36970         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
36971
36972 2002-12-31  Paul Eggert  <eggert@twinsun.com>
36973
36974         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
36975         memcmp if strcoll doesn't work.
36976
36977 2002-12-31  Bruno Haible  <bruno@clisp.org>
36978
36979         * lib/utime.c (utime_null): No need to call ftruncate if the file was
36980         nonempty.
36981
36982 2002-12-31  Bruno Haible  <bruno@clisp.org>
36983
36984         * lib/memcoll.c (STRCOLL): New macro.
36985         (memcoll): Use it.
36986
36987 2002-12-31  Bruno Haible  <bruno@clisp.org>
36988
36989         * lib/localcharset.h: New file.
36990         * lib/localcharset.c: Include it.
36991         * lib/unicodeio.c: Likewise.
36992
36993 2002-12-31  Bruno Haible  <bruno@clisp.org>
36994
36995         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
36996         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
36997
36998 2002-12-31  Bruno Haible  <bruno@clisp.org>
36999
37000         * lib/getline.h: Include <stddef.h>, for size_t.
37001
37002         * lib/unicodeio.h: Include <stddef.h>, for size_t.
37003         * lib/unicodeio.c: Don't include <stddef.h>.
37004
37005 2002-12-31  Bruno Haible  <bruno@clisp.org>
37006
37007         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
37008         HAVE_TM_ZONE.
37009
37010 2002-12-24  Karl Berry  <karl@gnu.org>
37011
37012         * config/config.guess: update from prep.
37013
37014 2002-12-24  Bruno Haible  <bruno@clisp.org>
37015
37016         General infrasructure.
37017         * m4/README: Rewritten.
37018         * m4/onceonly.m4: New file.
37019         * m4/onceonly_2_57.m4: New file.
37020
37021         Module atexit.
37022         * m4/atexit.m4: New file.
37023
37024         Module strtod.
37025         * m4/strtod.m4: New file.
37026
37027         Module strtol.
37028         * m4/strtol.m4: New file.
37029
37030         Module strtoul.
37031         * m4/strtoul.m4: New file.
37032
37033         Module memchr.
37034         * m4/memchr.m4: New file.
37035
37036         Module memcmp.
37037         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
37038         (jm_FUNC_MEMCMP): Invoke it.
37039
37040         Module memcpy.
37041         * m4/memcpy.m4: New file.
37042
37043         Module memmove.
37044         * m4/memmove.m4: New file.
37045
37046         Module memset.
37047         * m4/memset.m4: New file.
37048
37049         Module strcspn.
37050         * m4/strcspn.m4: New file.
37051
37052         Module strpbrk.
37053         * m4/strpbrk.m4: New file.
37054
37055         Module strstr.
37056         * m4/strstr.m4: New file.
37057
37058         Module strerror.
37059         * m4/strerror.m4: New file.
37060
37061         Module mktime.
37062         * m4/mktime.m4: Renamed from jm-mktime.m4.
37063         (gl_PREREQ_MKTIME): New macro.
37064         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
37065
37066         Module malloc.
37067         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
37068         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
37069         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
37070
37071         Module realloc.
37072         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
37073         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
37074         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
37075
37076         Module strftime.
37077         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
37078         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
37079         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
37080         gl_TM_GMTOFF.
37081         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
37082
37083         Module xalloc.
37084         * m4/xalloc.m4: New file.
37085
37086         Module alloca.
37087         * m4/alloca.m4: New file.
37088
37089         Module putenv.
37090         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
37091         (jm_FUNC_PUTENV): Invoke it.
37092
37093         Module setenv.
37094         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
37095         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
37096         when invoked twice.
37097         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
37098         gt_FUNC_SETENV.
37099
37100         Module memrchr.
37101         * m4/memrchr.m4: New file.
37102
37103         Module stpcpy.
37104         * m4/stpcpy.m4: New file.
37105
37106         Module strcase.
37107         * m4/strcase.m4: New file.
37108
37109         Module strdup.
37110         * m4/strdup.m4: New file.
37111
37112         Module strnlen.
37113         * m4/strnlen.m4: New file.
37114
37115         Module strndup.
37116         * m4/strndup.m4: New file.
37117
37118         Module xstrtod.
37119         * m4/xstrtod.m4: New file.
37120
37121         Module xstrtol.
37122         * m4/xstrtol.m4: New file.
37123
37124         Module getdate.
37125         * m4/getdate.m4: New file.
37126
37127         Module unlocked-io.
37128         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
37129         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
37130         * m4/jm-glibc-io.m4n: Remove file.
37131
37132         Module long-options.
37133         * m4/long-options.m4: New file.
37134
37135         Module md5.
37136         * m4/md5.m4: New file.
37137
37138         Module sha.
37139         * m4/sha.m4: New file.
37140
37141         Module getstr.
37142         * m4/getstr.m4: New file.
37143
37144         Module getline.
37145         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
37146         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
37147         <sys/types.h>, for size_t. Use the function name gnu_getline, not
37148         simply getline. Infoke gl_PREREQ_GETLINE.
37149
37150         Module obstack.
37151         * m4/obstack.m4: New file.
37152
37153         Module hash.
37154         * m4/hash.m4: New file.
37155
37156         Module readtokens.
37157         * m4/readtokens.m4: New file.
37158
37159         Module strverscmp.
37160         * m4/strverscmp.m4: New file.
37161
37162         Module stdbool.
37163         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
37164         OSF/1.
37165
37166         Module strtoll.
37167         * m4/strtoll.m4: New file.
37168
37169         Module strtoull.
37170         * m4/strtoull.m4: New file.
37171
37172         Module strtoimax.
37173         * m4/strtoimax.m4: New file.
37174
37175         Module strtoumax.
37176         * m4/strtoumax.m4: New file.
37177
37178         Module xstrtoimax.
37179         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
37180         jm_AC_PREREQ_XSTRTOIMAX.
37181         Moved the strtol prerequisites to strtol.m4.
37182         Moved the strtoll prerequisites to strtoll.m4.
37183         Moved the strtoimax prerequisites to strtoimax.m4.
37184
37185         Module xstrtoumax.
37186         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
37187         jm_AC_PREREQ_XSTRTOUMAX.
37188         Moved the strtoul prerequisites to strtoul.m4.
37189         Moved the strtoull prerequisites to strtoull.m4.
37190         Moved the strtoumax prerequisites to strtoumax.m4.
37191
37192         Module chown.
37193         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
37194         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
37195
37196         Module dup2.
37197         * m4/dup2.m4: New file.
37198
37199         Module ftruncate.
37200         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
37201         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
37202
37203         Module getgroups.
37204         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
37205         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
37206
37207         Module gettimeofday.
37208         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
37209         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
37210         gl_PREREQ_GETTIMEOFDAY.
37211
37212         Module mkdir.
37213         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
37214         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
37215
37216         Module mkstemp.
37217         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
37218         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
37219         jm_AC_TYPE_UINTMAX_T.
37220         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
37221
37222         Module stat.
37223         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
37224         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
37225
37226         Module lstat.
37227         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
37228         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
37229
37230         Module timespec.
37231         * m4/timespec.m4 (gl_TIMESPEC): New macro.
37232         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
37233         * m4/st_mtim.m4: Indentation.
37234
37235         Module nanosleep.
37236         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
37237         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
37238         gl_PREREQ_NANOSLEEP.
37239
37240         Module regex.
37241         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
37242         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
37243         (gl_REGEX): New macro.
37244
37245         Module rename.
37246         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
37247         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
37248
37249         Module rmdir.
37250         * m4/rmdir.m4: New file.
37251
37252         Module utime.
37253         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
37254         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
37255         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
37256
37257         Module dirname.
37258         * m4/dirname.m4: New file.
37259
37260         Module getopt.
37261         * m4/getopt.m4: New file.
37262
37263         Module unistd-safer.
37264         * m4/unistd-safer.m4: New file.
37265
37266         Module fnmatch.
37267         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
37268         declaration.
37269         (gl_PREREQ_FNMATCH_EXTRA): New macro.
37270         (gl_FUNC_FNMATCH_POSIX): New macro.
37271         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
37272         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
37273         simply fnmatch.
37274
37275         Module exclude.
37276         * m4/exclude.m4: New file.
37277
37278         Module human.
37279         * m4/human.m4: New file.
37280
37281         Module acl.
37282         * m4/acl.m4: Nop.
37283
37284         Module backupfile.
37285         * m4/backupfile.m4: New file.
37286         * m4/d-ino.m4: Indentation.
37287
37288         Module fsusage.
37289         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
37290         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
37291         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
37292
37293         Module dirfd.
37294         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
37295         requirements.
37296
37297         Module euidaccess.
37298         * m4/euidaccess.m4: New file.
37299
37300         Module file-type.
37301         * m4/file-type.m4: New file.
37302
37303         Module fileblocks.
37304         * m4/fileblocks.m4: New file.
37305
37306         Module filemode.
37307         * m4/filemode.m4: New file.
37308
37309         Module isdir.
37310         * m4/isdir.m4: New file.
37311
37312         Module lchown.
37313         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
37314         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
37315
37316         Module makepath.
37317         * m4/makepath.m4: New file.
37318
37319         Module modechange.
37320         * m4/modechange.m4: New file.
37321
37322         Module mountlist.
37323         * m4/mountlist.m4: New file.
37324         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
37325         Indentation.
37326
37327         Module path-concat.
37328         * m4/path-concat.m4: New file.
37329
37330         Module pathmax.
37331         * m4/pathmax.m4: New file.
37332
37333         Module same.
37334         * m4/same.m4: New file.
37335
37336         Module save-cwd.
37337         * m4/save-cwd.m4: New file.
37338
37339         Module savedir.
37340         * m4/savedir.m4: New file.
37341
37342         Module xgetcwd.
37343         * m4/xgetcwd.m4: New file.
37344         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
37345
37346         Module xreadlink.
37347         * m4/xreadlink.m4: New file.
37348
37349         Module safe-read.
37350         * m4/safe-read.m4: New file.
37351
37352         Module safe-write.
37353         * m4/safe-write.m4: New file.
37354
37355         Module closeout.
37356         * m4/closeout.m4: New file.
37357
37358         Module stdio-safer.
37359         * m4/stdio-safer.m4: New file.
37360
37361         Module getpass.
37362         * m4/getpass.m4: New file.
37363
37364         Module getugroups.
37365         * m4/getugroups.m4: New file.
37366
37367         Module group-member.
37368         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
37369         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
37370
37371         Module idcache.
37372         * m4/idcache.m4: New file.
37373
37374         Module userspec.
37375         * m4/userspec.m4: New file.
37376
37377         Module gettime.
37378         * m4/clock_time.m4: New file.
37379         * m4/gettime.m4: New file.
37380
37381         Module settime.
37382         * m4/settime.m4: New file.
37383
37384         Module posixtm.
37385         * m4/posixtm.m4: New file.
37386
37387         Module gethostname.
37388         * m4/gethostname.m4: New file.
37389
37390         Module canon-host.
37391         * m4/canon-host.m4: New file.
37392
37393         Module gettext.
37394         * m4/codeset.m4: New file, from gettext-0.11.5.
37395         * m4/gettext.m4: New file, from gettext-0.11.5.
37396         * m4/glibc21.m4: New file, from gettext-0.11.5.
37397         * m4/iconv.m4: New file, from gettext-0.11.5.
37398         * m4/intdiv0.m4: New file, from gettext-0.11.5.
37399         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
37400         * m4/inttypes.m4: New file, from gettext-0.11.5.
37401         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
37402         * m4/isc-posix.m4: New file, from gettext-0.11.5.
37403         * m4/lcmessage.m4: New file, from gettext-0.11.5.
37404         * m4/lib-ld.m4: New file, from gettext-0.11.5.
37405         * m4/lib-link.m4: New file, from gettext-0.11.5.
37406         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
37407         * m4/progtest.m4: New file, from gettext-0.11.5.
37408         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
37409         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
37410         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
37411
37412         Module localcharset.
37413         * m4/localcharset.m4: New file.
37414
37415         Module hard-locale.
37416         * m4/hard-locale.m4: New file.
37417
37418         Module mbswidth.
37419         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
37420         onceonly macros.
37421         * m4/mbrtowc.m4: Add comment.
37422
37423         Module memcasecmp.
37424         * m4/memcasecmp.m4: New file.
37425
37426         Module memcoll.
37427         * m4/memcoll.m4: New file.
37428
37429         Module unicodeio.
37430         * m4/unicodeio.m4: New file.
37431
37432         Module rpmatch.
37433         * m4/rpmatch.m4: New file.
37434
37435         Module yesno.
37436         * m4/yesno.m4: New file.
37437
37438         Module exitfail.
37439         * m4/exitfail.m4: New file.
37440
37441         Module c-stack.
37442         * m4/c-stack.m4 (gl_C_STACK): New macro.
37443         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
37444
37445         Module error.
37446         * m4/error.m4 (gl_ERROR): New macro.
37447         (jm_PREREQ_ERROR): Use onceonly macros.
37448
37449         Module fatal.
37450         * m4/fatal.m4: New file.
37451
37452         Module getloadavg.
37453         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
37454         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
37455
37456         Module getpagesize.
37457         * m4/getpagesize.m4: New file.
37458
37459         Module getusershell.
37460         * m4/getusershell.m4: New file.
37461
37462         Module physmem.
37463         * m4/physmem.m4: New file.
37464
37465         Module posixver.
37466         * m4/posixver.m4: New file.
37467
37468         Module quotearg.
37469         * m4/quotearg.m4: New file.
37470
37471         Module quote.
37472         * m4/quote.m4: New file.
37473
37474         Module readutmp.
37475         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
37476
37477         Module sig2str.
37478         * m4/sig2str.m4: New file.
37479
37480         Other.
37481         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
37482         ulonglong.m4.
37483         * m4/intmax_t.m4: New file.
37484         * m4/d-type.m4: Indentation.
37485         * m4/jm-macros.m4: Update.
37486         * m4/prereq.m4 (jm_PREREQ): Update.
37487         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
37488         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
37489         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
37490         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
37491         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
37492         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
37493         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
37494         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
37495         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
37496         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
37497         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
37498         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
37499         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
37500         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
37501         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
37502         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
37503         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
37504         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
37505         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
37506
37507 2002-12-24  Bruno Haible  <bruno@clisp.org>
37508
37509         * MODULES.txt: Update according to m4/ changes.
37510
37511         Module gettext.
37512         * config.rpath: New file, from gettext-0.11.5.
37513
37514         * modules/*: New module descriptions.
37515         * gnulib-tool: New file.
37516         * MODULES.html.sh: New file.
37517
37518 2002-12-21  Karl Berry  <karl@gnu.org>
37519
37520         * doc/fdl.texi: update to version 1.2.
37521
37522 2002-12-19  Karl Berry  <karl@gnu.org>
37523
37524         * config/config.guess: update from prep.
37525
37526 2002-12-18  Bruno Haible  <bruno@clisp.org>
37527
37528         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
37529         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
37530
37531 2002-12-17  Bruno Haible  <bruno@clisp.org>
37532
37533         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
37534         stdlib.h, string.h.
37535
37536 2002-12-17  Bruno Haible  <bruno@clisp.org>
37537
37538         * lib/canon-host.c (strdup): Remove unused declaration.
37539
37540         * lib/fsusage.c: Include full_read.h.
37541         (get_fs_usage): Use full_read instead of safe_read.
37542
37543         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
37544
37545 2002-12-12  Karl Berry  <karl@gnu.org>
37546
37547         * config/config.guess: update from prep.
37548
37549 2002-12-11  Bruno Haible  <bruno@clisp.org>
37550
37551         * m4/setenv.m4: New file, from gettext-0.11.5.
37552
37553 2002-12-11  Bruno Haible  <bruno@clisp.org>
37554
37555         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
37556         not unsetenv().
37557         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
37558         modifications:
37559
37560         2002-12-11  Bruno Haible  <bruno@clisp.org>
37561
37562                 * setenv.c (alloca): Fall back to malloc.
37563                 (freea): New macro.
37564                 (setenv): Use freea() to free memory allocated with alloca().
37565
37566         2002-11-13  Bruno Haible  <bruno@clisp.org>
37567
37568                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
37569                 function declarations.
37570                 * unsetenv.c (unsetenv): Likewise.
37571
37572         2002-03-04  Bruno Haible  <bruno@clisp.org>
37573
37574                 Portability to AIX 4.3.3.
37575                 * unsetenv.c: New file, extracted from setenv.c.
37576                 * setenv.c: Move the unsetenv() function to unsetenv.c.
37577
37578         2001-12-20  Bruno Haible  <bruno@clisp.org>
37579
37580                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
37581                 use malloc instead. For SunOS 4.
37582
37583         2001-12-11  Bruno Haible  <bruno@clisp.org>
37584
37585                 * setenv.c: Declare alloca.
37586                 (compar_fn_t): New typedef.
37587                 (KNOWN_VALUE, STORE_VALUE): Use it.
37588
37589         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
37590         setenv.h.
37591
37592 2002-12-10  Paul Eggert  <eggert@twinsun.com>
37593
37594         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
37595         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
37596         Choose values that are less likely to collide with system fnmatch
37597         options.
37598         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
37599         defined (e.g., a pure POSIX system).
37600         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
37601         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
37602
37603 2002-12-06  Paul Eggert  <eggert@twinsun.com>
37604
37605         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
37606         a pain in practice to deal with generated m4 files.  This change
37607         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
37608
37609         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
37610         and jm-glibc-io.m4, as they are no longer a special case.
37611         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
37612         kludge and the auto-generation stuff.  Check only whether the
37613         functions are declared, not whether they exist, since older hosts
37614         that don't declare the functions can't use the optimization anyway.
37615
37616 2002-12-06  Jim Meyering  <jim@meyering.net>
37617
37618         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
37619
37620         Merge in changes from libc's misc/error.c, in preparation
37621         for the merge of gnulib's changes back into libc.
37622
37623         * lib/error.c (_): Define only if not already defined.
37624         Move definition to follow all #include directives.
37625         Include unlocked-io.h only if !_LIBC.
37626         [_LIBC]: Include <libio/libioP.h>.
37627         [USE_IN_LIBIO]: Include <libio/iolibio.h>
37628         (fflush): Tweak definition to use INTUSE.
37629         (putc): Define.
37630
37631 2002-12-05  Paul Eggert  <eggert@twinsun.com>
37632
37633         * lib/alloca.c [defined emacs]: Include "lisp.h".
37634         (xalloc_die) [defined emacs]: New macro.
37635         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
37636         [! defined emacs]: Include <xalloc.h>.
37637         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
37638         (pointer): Typedef to POINTER_TYPE *.
37639         (malloc): Remove decl; we now always use xmalloc.
37640         (alloca): Use old-style definition, since Emacs needs this.
37641         Check for arithmetic overflow when computing combined size.
37642
37643 2002-12-04  Paul Eggert  <eggert@twinsun.com>
37644
37645         Do not generate unlocked-io.h automatically, since it's easier to
37646         maintain it by hand.
37647
37648         * lib/unlocked-io.h: New file, from GNU diffutils,
37649         but with proper copyright notice and attribution.
37650         * lib/gen-uio: Remove.
37651         * lib/Makefile.am: Add copyright notice.
37652         (libfetish_a_SOURCES): Add unlocked-io.h.
37653         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
37654         (DISTCLEANFILES, io_functions): Remove macros.
37655         (EXTRA_DIST): Remove gen_uio.
37656         (unlocked-io.h): Remove rule.
37657
37658 2002-12-04  Jim Meyering  <jim@meyering.net>
37659
37660         Reflect the fact that stat.c and lstat.c are no longer generated.
37661         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
37662         (DISTCLEANFILES): Likewise.
37663         (EXTRA_DIST): Likewise.
37664         (all_local): Don't depend on stat.c or lstat.c.
37665         (stat.c, lstat.c): Remove rules.
37666         (EXTRA_DIST): Remove xstat.in.
37667
37668         * lib/xstat.in: Remove file.  Contents moved into stat.c.
37669         * lib/stat.c: New file.  Contents mostly from xstat.in.
37670         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
37671         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
37672
37673         * lib/safe-read.c: Rework so that it may serve to define safe_write,
37674         too.
37675         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
37676
37677 2002-12-03  Jim Meyering  <jim@meyering.net>
37678
37679         * lib/safe-read.c, safe-write.c: Change variable names and comments,
37680         but not semantics, to minimize the differences between these two files.
37681         (safe_read): Change comment to mention SAFE_READ_ERROR.
37682
37683         * lib/safe-read.c (IS_EINTR): Define.
37684         (safe_read): Use IS_EINTR in place of in-function cpp directives.
37685
37686 2002-12-02  Jim Meyering  <jim@meyering.net>
37687
37688         * lib/safe-read.c (EINTR): Define.
37689         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
37690         (INT_MAX): Provide fallback.
37691         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
37692
37693         * lib/safe-read.h (SAFE_READ_ERROR): Define.
37694
37695 2002-12-02  Bruno Haible  <bruno@clisp.org>
37696
37697         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
37698         Define, taken from safe-read.c.
37699         (INT_MAX): Provide fallback.
37700         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
37701         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
37702
37703         * lib/safe-read.c (EINTR): Remove definition.
37704         (safe_read): Don't use EINTR if it is absent.
37705
37706 2002-12-01  Jim Meyering  <jim@meyering.net>
37707
37708         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
37709         zero.
37710         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
37711
37712 2002-11-27  Paul Eggert  <eggert@twinsun.com>
37713
37714         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
37715         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
37716         with `if (! (value < limit)) abort ();', for readability.
37717
37718 2002-11-26  Karl Berry  <karl@gnu.org>
37719
37720         * lib/strdup.c: copy from libc again, with jim's ok.
37721         * lib/.cppi-disable: re-add strdup.c
37722
37723 2002-11-25  Karl Berry  <karl@gnu.org>
37724
37725         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
37726         instead of "strtol.c".
37727
37728 2002-11-25  Karl Berry  <karl@gnu.org>
37729
37730         * config/install-sh: update from automake for variable quoting, $0 in
37731         error msgs, etc.
37732
37733         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
37734         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
37735         entry.
37736
37737 2002-11-25  Jim Meyering  <jim@meyering.net>
37738
37739         * lib/mktime.c: Sync from libc, now that it has the latest fix.
37740
37741 2002-11-24  Karl Berry  <karl@gnu.org>
37742
37743         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
37744         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
37745
37746 2002-11-24  Jim Meyering  <jim@meyering.net>
37747
37748         Update from coreutils:
37749
37750         * lib/mktime.c: Merge in changes from libc.
37751
37752         Avoid a link-time failure on some Linux systems.
37753         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
37754         (otherwise).
37755         (__mon_yday): Declare with the STATIC attribute.
37756         (__mktime_internal): Likewise.
37757         Based on a report from Greg Schafer.
37758
37759 2002-11-23  Jim Meyering  <jim@meyering.net>
37760
37761         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
37762         Use `unsigned', not `int', as type of index.
37763
37764         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
37765
37766         * lib/fsusage.c: Remove unneeded parentheses around operands of
37767         `defined'.
37768
37769 2002-11-22  Paul Eggert  <eggert@twinsun.com>
37770
37771         * lib/quotearg.h: Allow multiple inclusion by surrounding with
37772         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
37773         so that we can be included first.
37774         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
37775         * lib/quotearg.c: Include quotearg.h immediately after config.h.
37776         No need to include stddef.h or sys/types.h any more.
37777         Surround local include files with "", not "<>".
37778         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
37779         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
37780         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
37781         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
37782         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
37783         (ISPRINT): Remove; no longer needed now that we assume C89.
37784
37785         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
37786         Preserve errno.
37787
37788         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
37789         quotearg_char): Use SIZE_MAX rather than
37790         (size_t) -1 when we are talking about "infinity".
37791
37792         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
37793
37794 2002-11-22  Paul Eggert  <eggert@twinsun.com>
37795
37796         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
37797         hint that one should use `if (! x) abort ();' rather than `assert
37798         (x);', and anyway it's one less thing to worry about configuring.
37799         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
37800         hash_rehash, hash_insert): Use abort rather than assert.
37801
37802 2002-11-22  Bruno Haible  <bruno@clisp.org>
37803
37804         * lib/safe-read.h: Assume C89. Add comments.
37805         (safe_read): Change return type to size_t.
37806         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
37807         byte counts > SSIZE_MAX correctly.
37808         * lib/safe-write.h: New file.
37809         * lib/safe-write.c: New file.
37810         * lib/full-read.h: New file.
37811         * lib/full-read.c: New file.
37812         * lib/full-write.h: Assume C89. Add comments.
37813         * lib/full-write.c: Include safe-write.h.
37814         (full_write): Rewritten to use safe_write.
37815         Suggested by Jim Meyering and Paul Eggert.
37816
37817 2002-11-21  Jim Meyering  <jim@meyering.net>
37818
37819         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
37820
37821         Merge in changes from the coreutils.
37822
37823         2002-09-25  Paul Eggert  <eggert@twinsun.com>
37824         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
37825         <stdint.h>.
37826         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
37827         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
37828         int.  Work more efficiently if X is the same width as uintmax_t.
37829         Do not compare X to -1, to avoid bogus compiler warning.
37830         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
37831         Don't assume that f_frsize and f_bsize are the same type.
37832
37833         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
37834         warning on FreeBSD.
37835
37836         * lib/makepath.c (make_path): Restore umask *before* creating the final
37837         component.
37838         (make_path): Minor reformatting.
37839
37840         * lib/xmalloc.c: Adjust to work with new autoconf macros,
37841         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
37842         HAVE_MALLOC/HAVE_REALLOC.
37843
37844         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
37845         dummy ones.  At least on GNU/Linux systems, `auto' means something
37846         else.
37847         From Michael Stone.
37848
37849 2002-11-21  Bruno Haible  <bruno@clisp.org>
37850
37851         Remove case insensitive option matching.
37852         * lib/argmatch.h (argcasematch): Remove declaration.
37853         (ARGCASEMATCH): Remove macro.
37854         (__xargmatch_internal): Remove case_sensitive argument.
37855         (XARGMATCH): Update.
37856         (XARGCASEMATCH): Remove macro.
37857         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
37858         case_sensitive argument.
37859         (argcasematch): Remove function.
37860         (__xargmatch_internal): Remove case_sensitive argument.
37861         (main): Use XARGMATCH instead of XARGCASEMATCH.
37862
37863         * lib/xmalloc.c: Change compile-time error message. Add comment about
37864         required autoconf version.
37865
37866 2002-11-20  Paul Eggert  <eggert@twinsun.com>
37867
37868         Merge argmatch cleanups from Bison.  Assume C89.
37869
37870         * lib/argmatch.c: Include config.h here, not in argmatch.h.
37871         Include stdlib.h, for EXIT_FAILURE.
37872         Always include <string.h>, since we assume C89.
37873         (EXIT_FAILURE): Remove pre-C89 bug workaround.
37874         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
37875         Include <stddef.h> instead, since it's all we need for size_t.
37876         (PARAMS): Remove.  All uses removed.
37877         (ARRAY_CARDINALITY): Do not bother to #undef.
37878         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
37879         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
37880         Remove unnecessary parentheses.
37881         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
37882         Insert necessary parentheses.
37883         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
37884         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
37885
37886 2002-11-19  Bruno Haible  <bruno@clisp.org>
37887
37888         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
37889         * lib/mbswidth.h: Include <stddef.h>, for size_t.
37890
37891         * lib/mbswidth.h (PARAMS): Remove macro.
37892         (mbswidth, mbsnwidth): Use ANSI C function declarations.
37893         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
37894
37895         * lib/gcd.h (PARAMS): Remove macro.
37896         (gcd): Use ANSI C function declarations.
37897         * lib/gcd.c (gcd): Likewise.
37898
37899 2002-11-15  Bruno Haible  <bruno@clisp.org>
37900
37901         * lib/strcspn.c: Include <stddef.h>.
37902         (strcspn): Use ANSI C function declaration. Change return type to
37903         size_t. Use NULL.
37904         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
37905         (strpbrk): Use NULL.
37906         * lib/strpbrk.h (PARAMS): Remove macro.
37907         (strpbrk): Use ANSI C function declaration.
37908         * lib/strstr.c: Don't include <sys/types.h>.
37909         * lib/strstr.h (PARAMS): Remove macro.
37910         (strstr): Use ANSI C function declarations.
37911
37912 2002-11-14  Karl Berry  <karl@gnu.org>
37913
37914         * config/mkinstalldirs: `do' on separate line, instead of
37915         `for var; do'.
37916
37917 2002-11-06  Bruno Haible  <bruno@clisp.org>
37918
37919         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
37920         * lib/gcd.c (gcd): Likewise.
37921
37922 2002-11-05  Bruno Haible  <bruno@clisp.org>
37923
37924         * lib/gcd.h: New file, from gettext-0.11.5.
37925         * lib/gcd.c: New file, from gettext-0.11.5.
37926
37927 2002-11-05  Bruno Haible  <bruno@clisp.org>
37928
37929         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
37930         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
37931         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
37932         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
37933
37934         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
37935         <libintl.h>.
37936         * lib/makepath.c: Include gettext.h instead of <locale.h> and
37937         <libintl.h>.
37938
37939         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
37940         * lib/human.c: Include gettext.h instead of <libintl.h>.
37941         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
37942         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
37943         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
37944         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
37945         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
37946         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
37947         (textdomain): Remove definition.
37948         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
37949
37950         * lib/long-options.c: Remove include of <libintl.h> and definition of
37951         _.
37952         * lib/same.c: Remove include of <libintl.h> and definition of _.
37953
37954 2002-11-04  Owen Taylor  <otaylor@redhat.com>
37955
37956         * lib/config.charset: A few additions for Solaris.
37957
37958 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
37959
37960         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
37961         * lib/localcharset.c (locale_charset): Declare as extern "C".
37962
37963 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
37964
37965         * lib/config.charset: msdos in uk_UA uses CP1125.
37966
37967 2002-11-04  Bruno Haible  <bruno@clisp.org>
37968
37969         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
37970         * lib/strcase.h: New file, from GNU gettext-0.11.5.
37971         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
37972         * lib/strstr.h: New file, from GNU gettext-0.11.5.
37973         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
37974
37975 2002-11-04  Bruno Haible  <bruno@clisp.org>
37976
37977         * lib/localcharset.c (locale_charset): Don't return an empty string.
37978
37979 2002-11-04  Bruno Haible  <bruno@clisp.org>
37980
37981         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
37982         aliases.
37983
37984 2002-11-04  Bruno Haible  <bruno@clisp.org>
37985
37986         * lib/config.charset: Update for newest glibc. Add canonical names
37987         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
37988
37989 2002-11-04  Bruno Haible  <bruno@clisp.org>
37990
37991         * lib/config.charset: Add support for NetBSD.
37992
37993 2002-11-04  Bruno Haible  <bruno@clisp.org>
37994
37995         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
37996
37997 2002-11-01  Bruno Haible  <bruno@clisp.org>
37998
37999         * configure.in: Add AC_CONFIG_AUX_DIR call.
38000         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
38001         test/Makefile.
38002         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
38003
38004 2002-09-28  Karl Berry  <karl@gnu.org>
38005
38006         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
38007         installed automake until the next release, since changes have been
38008         made.
38009
38010 2002-09-25  Karl Berry  <karl@gnu.org>
38011
38012         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
38013         * lib/getopt*: copy from libc/posix.
38014         * lib/gettext.h: copy from gettext.
38015         * lib/.cppi-disable: add strdup.c, gettext.h.
38016
38017 2002-09-25  Karl Berry  <karl@gnu.org>
38018
38019         * config/srclist.txt: enable gettext.h check.
38020         * config/config.{guess,sub}: update from prep.
38021         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
38022                 from automake 1.6.3.
38023         See srclist*.
38024
38025 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
38026
38027         * regex.c (PATFETCH): Remove the translating fetch.
38028         (PATFETCH_RAW): Rename to PATFETCH.
38029         (set_image_of_range): New fun.
38030         (SET_RANGE_TABLE_WORK_AREA): Use it.
38031         (regex_compile): Don't translate the pattern chars so eagerly.
38032         Only do it when inserting an `exactn' bytecode or when handling
38033         a char-range.
38034         (mutually_exclusive_p): Avoid empty statement.
38035
38036 2002-07-06  Jim Meyering  <meyering@lucent.com>
38037
38038         * m4/README: Don't mention Makefile.am.in.
38039         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
38040
38041 2002-07-01  Jim Meyering  <meyering@lucent.com>
38042
38043         * lib/c-stack.c: Include sys/time.h.
38044         From Volker Borchert.
38045
38046 2002-06-26  Paul Eggert  <eggert@twinsun.com>
38047
38048         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
38049
38050 2002-06-26  Paul Eggert  <eggert@twinsun.com>
38051
38052         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
38053         New macro.  Use it uniformly instead of
38054         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
38055         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
38056         reported by Vin Shelton.
38057
38058 2002-06-22  Paul Eggert  <eggert@twinsun.com>
38059
38060         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
38061         Do not assume SA_SIGINFO behavior.
38062         Bug reported by Jim Meyering on NetBSD 1.5.2.
38063
38064 2002-06-22  Jim Meyering  <meyering@lucent.com>
38065
38066         * m4/c-stack.m4: New file, from diffutils-2.8.2.
38067         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
38068
38069         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
38070         now that configure.ac uses AC_GNU_SOURCE.
38071         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
38072         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
38073
38074         Update to latest tools.  Suggestions from Paul Eggert.
38075         * m4/stdbool.m4: New file, from diffutils-2.8.2.
38076         * m4/gnu-source.m4: Update from diffutils-2.8.2.
38077         * m4/fnmatch.m4: Likewise.
38078         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
38079         to AC_HEADER_STDBOOL
38080
38081 2002-06-22  Jim Meyering  <meyering@lucent.com>
38082
38083         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
38084         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
38085
38086 2002-06-22  Jim Meyering  <meyering@lucent.com>
38087
38088         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
38089
38090         * lib/exitfail.c, exitfail.h: Likewise.
38091         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
38092
38093         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
38094         of fnmatch.h.
38095         (EXTRA_DIST): Add fnmatch_loop.c.
38096         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
38097
38098         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
38099         * lib/fnmatch.c: Update from diffutils-2.8.2.
38100         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
38101         * lib/fnmatch.h: Remove file.
38102
38103 2002-06-21  Jim Meyering  <meyering@lucent.com>
38104
38105         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
38106         * m4/mbrtowc.m4: Likewise.
38107
38108         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
38109         * m4/mbswidth.m4: Reflect name change:
38110         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
38111         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
38112
38113         * m4/lib-link.m4: Update from gettext-0.11.2.
38114         * m4/gettext.m4: Likewise.
38115
38116         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
38117         From Alfred M. Szmidt.
38118
38119 2002-06-18  Paul Eggert  <eggert@twinsun.com>
38120
38121         * lib/file-type.h: Report an error if neither S_ISREG nor
38122         S_IFREG is defined, instead of using a test specific to glibc
38123         2.2.  This should be safe, since POSIX requires S_ISREG and
38124         Unix Version 7 had S_IFREG.  We don't need to check for
38125         <sys/types.h> since we don't use any symbols that it defines.
38126
38127 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
38128
38129         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
38130         $@-t, so that each temporary file name is unique and valid in the first
38131         8 characters, for operation under DOS.
38132
38133 2002-06-15  Paul Eggert  <eggert@twinsun.com>
38134
38135         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
38136
38137 2002-06-15  Jim Meyering  <meyering@lucent.com>
38138
38139         Work even with DJGPP 2.03, which lacks support for symlinks.
38140         From Richard Dawe.
38141         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
38142         is defined.
38143         * lib/lchown.c (S_ISLNK): Likewise.
38144
38145 2002-06-15  Jim Meyering  <meyering@lucent.com>
38146
38147         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
38148         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
38149         have been included before this file.
38150
38151 2002-06-14  Jim Meyering  <meyering@lucent.com>
38152
38153         * lib/file-type.h: Use the version from diffutils-2.8.2.
38154         * lib/file-type.c: Likewise.
38155
38156 2002-06-07  Jim Meyering  <meyering@lucent.com>
38157
38158         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
38159         They're needed at least for NetBSD 1.5.2.
38160         ($statxfs_includes): Include those same headers.
38161         ($statxfs_includes): Include sys/vfs.h if available.
38162         ($statxfs_includes): Likewise for sys/statvfs.h.
38163         Check for the following members in both structs statfs and statvfs:
38164         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
38165
38166 2002-06-01  Jim Meyering  <meyering@lucent.com>
38167
38168         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
38169         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
38170
38171 2002-05-28  Jim Meyering  <meyering@lucent.com>
38172
38173         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
38174         Reported by Volker Borchert.
38175
38176 2002-05-27  Jim Meyering  <meyering@lucent.com>
38177
38178         Fix a problem seen only on nonconforming systems whereby ls.c's
38179         use of localtime, and then of gettimeofday would cause trouble:
38180         the localtime call used to initialize rpl_gettimeofday's save
38181         mechanism would clobber ls's current local time information so
38182         that in any long listing the first file would always be listed
38183         with date 1970-01-01.  Analysis by Volker Borchert.
38184
38185         * lib/gettimeofday.c (localtime): Undefine.
38186         (rpl_localtime): New function.
38187
38188 2002-05-27  Jim Meyering  <meyering@lucent.com>
38189
38190         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
38191         localtime.
38192
38193         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
38194         use the replacement function; it wouldn't resolve at link time.
38195         Reported by Volker Borchert.
38196
38197 2002-05-22  Jim Meyering  <meyering@lucent.com>
38198
38199         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
38200         file-type.h.
38201         * lib/file-type.h: New file.
38202         * lib/file-type.c (file_type): New file/function.  Extracted from
38203         diffutils.
38204
38205 2002-04-30  Jim Meyering  <meyering@lucent.com>
38206
38207         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
38208
38209 2002-04-29  Paul Eggert  <eggert@twinsun.com>
38210
38211         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
38212
38213 2002-04-29  Paul Eggert  <eggert@twinsun.com>
38214
38215         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
38216         Do not check for alloca.h (no longer used) or stdbool.h (was never
38217         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
38218
38219 2002-04-29  Paul Eggert  <eggert@twinsun.com>
38220
38221         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
38222
38223 2002-04-29  Jim Meyering  <meyering@lucent.com>
38224
38225         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
38226         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
38227         Use AC_FUNC_STRNLEN here instead.
38228
38229         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
38230         With autoconf-2.53a, it's part of AC_PROG_CC.
38231
38232 2002-04-28  Paul Eggert  <eggert@twinsun.com>
38233
38234         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
38235         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
38236
38237 2002-04-28  Paul Eggert  <eggert@twinsun.com>
38238
38239         * lib/sig2str.h, lib/sig2str.c: New files.
38240         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
38241
38242 2002-04-28  Paul Eggert  <eggert@twinsun.com>
38243
38244         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
38245         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
38246         of 127, since 64 is the largest conceivable number for ancient
38247         nonstandard hosts.
38248         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
38249
38250 2002-04-28  Jim Meyering  <meyering@lucent.com>
38251
38252         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
38253
38254 2002-04-24  Jim Meyering  <meyering@lucent.com>
38255
38256         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
38257         (jm_PREREQ): Use it.
38258
38259         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
38260         mach/mach.h fcntl.h.
38261         Check for this function: setlocale.
38262
38263 2002-04-24  Jim Meyering  <meyering@lucent.com>
38264
38265         * lib/gettext.h: New file, from Gettext.
38266         * lib/Makefile.am (INCLUDES): Remove -I../intl.
38267         (libfetish_a_SOURCES): Add gettext.h.
38268
38269 2002-04-16  Jim Meyering  <meyering@lucent.com>
38270
38271         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
38272         ut_pid, ut_id, ut_exit.
38273
38274 2002-04-16  Jim Meyering  <meyering@lucent.com>
38275
38276         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
38277         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
38278         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
38279
38280 2002-04-12  Jim Meyering  <meyering@lucent.com>
38281
38282         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
38283         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
38284         existence of the getmntinfo function.  Needed for Darwin 5.3.
38285
38286         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
38287         This is necessary at least on Darwin 5.3.
38288
38289         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
38290         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
38291         strnlen.o in the library, and that makes some versions of ranlib
38292         object.
38293
38294 2002-04-12  Jim Meyering  <meyering@lucent.com>
38295
38296         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
38297
38298 2002-04-09  Jim Meyering  <meyering@lucent.com>
38299
38300         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
38301         to be more precise.  Rather than saying we're checking whether the
38302         function `works', say what we're testing.
38303         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
38304         Reported by Bruno Haible.
38305
38306 2002-03-10  Jim Meyering  <meyering@lucent.com>
38307
38308         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
38309         Suggestion from Santiago Vila.
38310
38311 2002-03-08  Jim Meyering  <meyering@lucent.com>
38312
38313         * lib/rename.c: Mention that this wrapper is needed also on
38314         mips-dec-ultrix4.4 systems.
38315
38316 2002-03-02  Jim Meyering  <meyering@lucent.com>
38317
38318         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
38319         not HAVE_CLOCK_SETTIME.
38320
38321 2002-02-27  Paul Eggert  <eggert@twinsun.com>
38322
38323         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
38324         Check for clock_settime.
38325
38326 2002-02-27  Paul Eggert  <eggert@twinsun.com>
38327
38328         * lib/nanosleep.h: Rename to....
38329         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
38330
38331         * lib/gettime.c: New file.
38332         * lib/settime.c: New file.
38333         * lib/stime.c: Remove.
38334
38335         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
38336         timespec.h.  Remove nanosleep.h.
38337
38338 2002-02-25  Paul Eggert  <eggert@twinsun.com>
38339
38340         * m4/acl.m4: New file.
38341         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
38342         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
38343
38344 2002-02-25  Paul Eggert  <eggert@twinsun.com>
38345
38346         * lib/acl.c, lib/acl.h: New files.
38347         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
38348
38349 2002-02-24  Jim Meyering  <meyering@lucent.com>
38350
38351         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
38352         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
38353         cause trouble.  Reported by Nelson Beebe.
38354
38355 2002-02-23  Paul Eggert  <eggert@twinsun.com>
38356
38357         * lib/path-concat.c (xpath_concat): Reorder code to pacify
38358         compilers that don't know that xalloc_die never returns.
38359
38360 2002-02-20  Jim Meyering  <meyering@lucent.com>
38361
38362         * lib/getdate.c: Regenerate using bison-1.33.
38363
38364 2002-02-17  Jim Meyering  <meyering@lucent.com>
38365
38366         * config/config.guess (main): Don't use `head -1'; it's no longer
38367         portable. Use `sed 1q' instead.
38368
38369 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
38370
38371         * m4/codeset.m4: Upgrade to gettext-0.11.
38372         * m4/gettext.m4: Upgrade to gettext-0.11.
38373         * m4/glibc21.m4: Upgrade to gettext-0.11.
38374         * m4/iconv.m4: Upgrade to gettext-0.11.
38375         * m4/isc-posix.m4: Upgrade to gettext-0.11.
38376         * m4/lcmessage.m4: Upgrade to gettext-0.11.
38377         * m4/lib-ld.m4: New file, from gettext-0.11.
38378         * m4/lib-link.m4: New file, from gettext-0.11.
38379         * m4/lib-prefix.m4: New file, from gettext-0.11.
38380         * m4/progtest.m4: Upgrade to gettext-0.11.
38381
38382 2002-02-15  Paul Eggert  <eggert@twinsun.com>
38383
38384         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
38385         (jm_PREREQ): Use it.
38386
38387 2002-02-15  Paul Eggert  <eggert@twinsun.com>
38388
38389         * lib/posixver.c, lib/posixver.h: New files.
38390         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
38391
38392 2002-02-02  Paul Eggert  <eggert@twinsun.com>
38393             Bruno Haible  <bruno@clisp.org>
38394
38395         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
38396         (fwrite_success_callback): New declaration.
38397         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
38398         print_unicode_char. Call failure callback instead of error.
38399         (fwrite_success_callback): New function.
38400         (exit_failure_callback): New function.
38401         (fallback_failure_callback): New function.
38402         (print_unicode_char): Call unicode_to_mb.
38403
38404 2002-01-26  Jim Meyering  <meyering@lucent.com>
38405
38406         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
38407         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
38408
38409 2002-01-26  Jim Meyering  <meyering@lucent.com>
38410
38411         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
38412
38413 2002-01-22  Paul Eggert  <eggert@twinsun.com>
38414
38415         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
38416
38417 2002-01-22  Jim Meyering  <meyering@lucent.com>
38418
38419         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
38420         Otherwise, some versions of automake would omit the rule that makes
38421         Makefile from Makefile.in.
38422
38423 2002-01-21  Paul Eggert  <eggert@twinsun.com>
38424
38425         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
38426         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
38427         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
38428         (memcoll): Set errno to zero if there is no error.
38429
38430         * lib/quotearg.c (quotearg_buffer_restyled):
38431         Fix bug with quoting buffers containing NUL when backslashing escapes.
38432         This bug was exposed by the other changes in this patch.
38433         (quotearg_n_options): New arg ARGSIZE.
38434         All callers changed.
38435         (quoting_options_from_style): New function.
38436         (quotearg_n_style): Use it.
38437         (quotearg_n_style_mem): New function.
38438
38439         * lib/quotearg.h (quotearg_n_style_mem): New function.
38440
38441 2002-01-19  Jim Meyering  <meyering@lucent.com>
38442
38443         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
38444         Remove useless quotes: DF_PROG="df".
38445         * m4/strnlen.m4: New file.
38446
38447 2002-01-16  Paul Eggert  <eggert@twinsun.com>
38448
38449         * lib/backupfile.c (ISDIGIT): Comment fix.
38450         * lib/getdate.y (ISDIGIT): Likewise.
38451         * lib/posixtm.c (ISDIGIT, year): Likewise.
38452         * lib/strverscmp.c (ISDIGIT): Likewise.
38453         * lib/userspec.c (ISDIGIT): Likewise.
38454
38455 2002-01-16  Jim Meyering  <meyering@lucent.com>
38456
38457         * lib/getdate.y: Add three semicolons, each just before a closing
38458         brace. Bison (as of version 1.31) no longer papers over that mistake.
38459
38460 2002-01-05  Jim Meyering  <meyering@lucent.com>
38461
38462         * lib/version-etc.c (version_etc_copyright): Update copyright year.
38463
38464 2001-12-19  Paul Eggert  <eggert@twinsun.com>
38465
38466         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
38467         not silently exit merely because the output buffer happens to
38468         have nothing pending.
38469
38470 2001-12-18  Paul Eggert  <eggert@twinsun.com>
38471
38472         See the big note in ../ChangeLog.
38473         * lib/human.c (suffixes): Prefer K to k for 1024.
38474         (generate_suffix_backwards): New function.
38475         (human_readable_inexact): Use it.
38476         * lib/xstrtol.c (__xstrtol): If there is no number but there
38477         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
38478         Accept 'K' as well as 'k'.
38479
38480 2001-12-15  Jim Meyering  <meyering@lucent.com>
38481
38482         * lib/regex.h (__restrict_arr): Update from libc.
38483
38484         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
38485         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
38486         (STREQ): Define.
38487
38488 2001-12-14  Jim Meyering  <meyering@lucent.com>
38489
38490         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
38491         Suggestion from Bruno Haible.
38492
38493 2001-12-10  Jim Meyering  <meyering@lucent.com>
38494
38495         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
38496         xrealloc, Instead, include "xalloc.h".
38497         (initbuffer): Don't cast xmalloc return value to char*.
38498         (readline): Reword comment.
38499         Don't cast xrealloc return value to char*
38500         Return NULL, not 0.
38501
38502 2001-12-09  Jim Meyering  <meyering@lucent.com>
38503
38504         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
38505         about `signed and unsigned type in conditional expression'.
38506         * lib/posixtm.c (posix_time_parse): Likewise.
38507
38508         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
38509
38510         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
38511         to avoid a pedantic warning.
38512
38513         * lib/getstr.c: Don't include assert.h.
38514         (getstr): Remove warning-evoking assertions.
38515         Return -1 if offset parameter is out of bounds.
38516         Change the type of a local from int to size_t.
38517
38518         * lib/strftime.c (my_strftime_localtime_r): Include this function
38519         definition in the `#if ! HAVE_TM_GMTOFF' block.
38520
38521         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
38522         Include xalloc.h instead.
38523
38524 2001-12-02  Jim Meyering  <meyering@lucent.com>
38525
38526         * lib/tempname.c: Don't declare getenv, thus reverting the change of
38527         2001-11-18.  It's no longer necessary, now that stdlib.h is always
38528         included.
38529
38530         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
38531         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
38532
38533 2001-11-30  Akim Demaille  <akim@epita.fr>
38534
38535         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
38536         before being defined.
38537
38538 2001-11-27  Paul Eggert  <eggert@twinsun.com>
38539
38540         * lib/quotearg.h (quotearg_n, quotearg_n_style):
38541         First arg is int, not unsigned.
38542         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
38543         (SIZE_MAX, UINT_MAX): New macros.
38544         (quotearg_n_options): Abort if N is negative.
38545         Avoid overflow check on hosts where size_t is 64 bits and int
38546         is 32 bits, as overflow is impossible there.
38547         Fix off-by-one typo that caused unnecessary reallocation.
38548
38549 2001-11-27  Jim Meyering  <meyering@lucent.com>
38550
38551         * lib/tempname.c: Merge with version from libc.
38552         * lib/regex.c: Likewise.
38553
38554         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
38555         systems for which STDC_HEADERS is 0, it was not included, resulting in
38556         a warning about an integer-to-pointer conversion problem with getenv.
38557         Reported by Volker Borchert.
38558
38559 2001-11-26  Jim Meyering  <meyering@lucent.com>
38560
38561         * lib/gtod.h: Remove file.
38562         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
38563         * lib/gettimeofday.c: Don't include gtod.h.
38564         (GTOD_init): Remove function.
38565         (rpl_gettimeofday): Do its job here instead, rather than aborting.
38566         Suggestion from Volker Borchert.
38567
38568 2001-11-23  Jim Meyering  <meyering@lucent.com>
38569
38570         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
38571         it.
38572         * lib/hash.c (struct hash_table): Define it here instead.
38573
38574 2001-11-22  Jim Meyering  <meyering@lucent.com>
38575
38576         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
38577
38578 2001-11-20  Jim Meyering  <meyering@lucent.com>
38579
38580         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
38581         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
38582
38583 2001-11-19  Jim Meyering  <meyering@lucent.com>
38584
38585         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
38586         directory.  Use "conftestXXXXXX" as the template.
38587         Suggestion from Paul Eggert.
38588
38589         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
38590         immediately, so the test doesn't mistakenly hit the max-open-files
38591         limit.
38592
38593 2001-11-18  Paul Eggert  <eggert@twinsun.com>
38594
38595         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
38596         (TEMPORARIES): New macro.
38597         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
38598         removes an artificial limitation (e.g. HP-UX 10.20, where
38599         TMP_MAX is 17576).
38600
38601 2001-11-18  Jim Meyering  <meyering@lucent.com>
38602
38603         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
38604
38605 2001-11-18  Jim Meyering  <meyering@lucent.com>
38606
38607         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
38608         on SunOS 4.
38609
38610         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
38611         files will be created before anything else.
38612
38613 2001-11-17  Paul Eggert  <eggert@twinsun.com>
38614
38615         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
38616         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
38617
38618 2001-11-17  Jim Meyering  <meyering@lucent.com>
38619
38620         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
38621         Prompted by a report from Bob Proulx.
38622
38623         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
38624         Instead, require UTILS_FUNC_MKSTEMP.
38625
38626 2001-11-17  Jim Meyering  <meyering@lucent.com>
38627
38628         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
38629         Now, that's done as part of AC_FUNC_STRTOD.
38630
38631 2001-11-17  Jim Meyering  <meyering@lucent.com>
38632
38633         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
38634         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
38635         rather than group writable.  Patch by Juan F. Codagnone.
38636
38637         * lib/readtokens.c: Remove explicit declarations of xmalloc and
38638         xrealloc, Instead, include "xalloc.h".
38639
38640         * lib/mountlist.c: Include unlocked-io.h after all system headers.
38641         Remove explicit declarations of xmalloc, xrealloc,
38642         and xstrdup.  Instead, include "xalloc.h".
38643
38644         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
38645         unlocked-io.h.
38646         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
38647         Likewise.
38648         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
38649
38650         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
38651         Reported by Padraig Brady.
38652
38653         * lib/mkstemp.c: #undef mkstemp.
38654         Include config.h.
38655         (rpl_mkstemp): Rename from mkstemp.
38656         Protoize.
38657
38658 2001-11-16  Jim Meyering  <meyering@lucent.com>
38659
38660         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
38661         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
38662         determine the amount of total physical memory, use pstat_getstatic.
38663         HPUX-11 doesn't define _SC_PHYS_PAGES.
38664         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
38665         If sysconf couldn't be used to determine the amount of available
38666         physical memory, use both pstat_getstatic and pstat_getdynamic.
38667         Based on a patch from Bob Proulx.
38668
38669 2001-11-10  Jim Meyering  <meyering@lucent.com>
38670
38671         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
38672         (jm_PREREQ): Use it.
38673
38674 2001-11-09  Jim Meyering  <meyering@lucent.com>
38675
38676         * m4/jm-macros.m4: Require autoconf-2.52f.
38677         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
38678         Use these AC_-prefixed names, not the AM_-prefixed ones.
38679
38680         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
38681
38682 2001-11-05  Jim Meyering  <meyering@lucent.com>
38683
38684         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
38685
38686 2001-11-04  Jim Meyering  <meyering@lucent.com>
38687
38688         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
38689         $DEFS.
38690
38691 2001-11-03  Jim Meyering  <meyering@lucent.com>
38692
38693         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
38694         of AC_DEFUN.
38695
38696         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
38697         know the name of the variable in the macro definition.
38698
38699 2001-11-03  Jim Meyering  <meyering@lucent.com>
38700
38701         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
38702         in argmatch_to_argument call.
38703
38704         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
38705         argument.
38706
38707         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
38708         e.g., a fault due to an attempt to free a NULL pointer.
38709
38710 2001-11-01  Jim Meyering  <meyering@lucent.com>
38711
38712         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
38713         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
38714
38715 2001-11-01  Jim Meyering  <meyering@lucent.com>
38716
38717         * lib/dirfd.c, lib/dirfd.h: New files.
38718         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
38719
38720         * lib/hash.c (hash_print) [TESTING]: Clean up.
38721
38722 2001-10-22  Paul Eggert  <eggert@twinsun.com>
38723
38724         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
38725         to avoid a warning if -Wall.
38726
38727 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
38728
38729         * README: New file
38730         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
38731         (per RMS's instructions, this is now the canonical source)
38732         * lgpl/, gpl/: New directories.
38733
38734 2001-10-21  Paul Eggert  <eggert@twinsun.com>
38735
38736         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
38737
38738 2001-10-21  Jim Meyering  <meyering@lucent.com>
38739
38740         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
38741         this code would end up calling gettext even in packages built
38742         with --disable-nls.
38743         * lib/getopt.c (_): Likewise.
38744         * lib/regex.c (_): Likewise.
38745
38746 2001-10-20  Paul Eggert  <eggert@twinsun.com>
38747
38748         * m4/error.m4 (jm_PREREQ_ERROR):
38749         Do not invoke AC_CHECK_FUNCS with strerror_r, as
38750         AC_FUNC_STRERROR_R does that.
38751         Check for strerror declaration.
38752
38753         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
38754         are supposed to have them these days.
38755         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
38756         Merge changes from latest Autoconf CVS.
38757         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
38758         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
38759         POSIX decided to standardize on the int flavor of strerror_r.
38760
38761 2001-10-20  Paul Eggert  <eggert@twinsun.com>
38762
38763         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
38764         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
38765         Use strerror_r that is only a macro, even if it is not a function.
38766         (strerror): Check for HAVE_DECL_STRERROR before declaring.
38767         (private_strerror): Use prototypes, not old-style function definition.
38768         (print_errno_message): New function.
38769         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
38770         char*-flavored one.
38771         (error_tail, error, error_at_line): Use it.
38772
38773 2001-10-11  Jim Meyering  <meyering@lucent.com>
38774
38775         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
38776         and quote_n (1, ... to avoid clobbering a buffer.
38777
38778 2001-10-05  Jim Meyering  <meyering@lucent.com>
38779
38780         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
38781         hash-pjw.h.
38782         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
38783         * lib/hash-pjw.h: New file.
38784
38785 2001-09-30  Jim Meyering  <meyering@lucent.com>
38786
38787         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
38788         `struct fsstat' has the `f_fstypename' member.
38789         Use that to define FS_TYPE, which is now used to make
38790         the getfsstat link test tighter.
38791
38792 2001-09-30  Jim Meyering  <meyering@lucent.com>
38793
38794         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
38795         Include <sys/ucred.h>, for Apple Darwin.
38796         Include sys/mount.h and sys/fs_types.h only if available.
38797         (FS_TYPE): Define.
38798         (read_filesystem_list): Use FS_TYPE.
38799
38800 2001-09-29  Paul Eggert  <eggert@twinsun.com>
38801
38802         * lib/exclude.c (excluded_filename): 0 -> false, since it's
38803         a boolean context.
38804
38805 2001-09-29  Jim Meyering  <meyering@lucent.com>
38806
38807         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
38808         [one-argument getmntent function]): Include stdio.h before mntent.h.
38809         SunOS 4.1.x needs it for the declaration of `FILE'.
38810         Patch by Volker Borchert.
38811
38812         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
38813         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
38814         sys/fs_types.h, and make the link-test for getfsstat guard #include
38815         directives with appropriate #if HAVE_*_H tests so that we can
38816         detect getfsstat on Apple Darwin1.3.7 systems.
38817         Reported by Nelson Beebe.
38818         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
38819
38820 2001-09-28  Paul Eggert  <eggert@twinsun.com>
38821
38822         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
38823         #defines strtoimax.  Also treat the other strto* functions
38824         like strtoimax.
38825
38826         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
38827         Check for strtoul and strtoumax,
38828         as those declarations are made even in the signed case.
38829         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
38830         Likewise, for strtol and strtoimax.
38831
38832 2001-09-28  Paul Eggert  <eggert@twinsun.com>
38833
38834         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
38835         #defines strtoimax.  Also treat the other strto* functions
38836         like strtoimax.
38837
38838         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
38839         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
38840         (strtoimax, strtoumax): Do not declare if already defined as a macro.
38841
38842 2001-09-26  Jim Meyering  <meyering@lucent.com>
38843
38844         Most macros in unlocked-io.h had the wrong number of arguments.
38845         * lib/gen-uio: New script.
38846         (USE_UNLOCKED_IO): Define to 1 if not already defined.
38847         * lib/unlocked-io.hin: Remove file.
38848         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
38849         rather than trying to embed it here.
38850         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
38851         Reported by Padraig Brady.
38852
38853 2001-09-25  Volker Borchert  <bt@teknon.de>
38854
38855         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
38856         `result'.
38857
38858 2001-09-24  Jim Meyering  <meyering@lucent.com>
38859
38860         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
38861
38862 2001-09-23  Jim Meyering  <meyering@lucent.com>
38863
38864         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
38865         instead of the mere test for existence of mntent.h.  The latter
38866         would get a false-positive on AIX 3.4 systems.
38867         In the outer getmntent if-block, don't die if neither of the getmntent
38868         tests succeeds.  Instead, just fall through and continue with the
38869         remaining tests.
38870
38871 2001-09-23  Jim Meyering  <meyering@lucent.com>
38872
38873         * lib/mountlist.c: Remove useless parentheses in #if directives.
38874         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
38875         the deprecated MOUNTED symbol is no longer defined in mntent.h.
38876
38877 2001-09-22  Jim Meyering  <meyering@lucent.com>
38878
38879         * m4/gettext.m4: New file.  From gettext.
38880         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
38881         * m4/progtest.m4: Likewise
38882         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
38883         * m4/glibc21.m4: Likewise.
38884
38885         * m4/libintl.m4: Remove.  No longer used.
38886
38887 2001-09-22  Jim Meyering  <meyering@lucent.com>
38888
38889         * lib/localcharset.c: Update from latest gettext.
38890         * lib/config.charset: Likewise.
38891
38892 2001-09-20  Jim Meyering  <meyering@lucent.com>
38893
38894         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
38895         strtoimax.
38896         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
38897         strtoumax.
38898
38899 2001-09-20  Jim Meyering  <meyering@lucent.com>
38900
38901         * lib/xstrtol.c (strtoimax): Guard declaration with
38902         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
38903         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
38904         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
38905         (strtoumax): Likewise, for completeness (it wasn't necessary).
38906
38907 2001-09-17  Paul Eggert  <eggert@twinsun.com>
38908
38909         * lib/strtoimax.c (HAVE_LONG_LONG):
38910         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
38911         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
38912         to work around bug in IBM C compiler.
38913
38914 2001-09-17  Jim Meyering  <meyering@lucent.com>
38915
38916         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
38917         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
38918         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
38919         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
38920         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
38921         whenever the right hand side need not be expanded by the shell.
38922
38923 2001-09-16  Paul Eggert  <eggert@twinsun.com>
38924
38925         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
38926         library.  It's not correct, as some older glibcs are buggy.
38927         fnmatch wasn't fixed until glibc 2.2.
38928
38929         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
38930         special shell magic here.
38931
38932 2001-09-16  Jim Meyering  <meyering@lucent.com>
38933
38934         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
38935         * m4/jm-macros.m4: Require it.
38936
38937 2001-09-16  Jim Meyering  <meyering@lucent.com>
38938
38939         * lib/mkdir.c: New file.
38940
38941 2001-09-15  Jim Meyering  <meyering@lucent.com>
38942
38943         * m4/jm-macros.m4: Check for help2man.
38944
38945 2001-09-11  Jim Meyering  <meyering@lucent.com>
38946
38947         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
38948         The body, by Paul Eggert, was moved here from configure.in.
38949         * m4/jm-macros.m4: Require UTILS_HOST_OS.
38950
38951 2001-09-04  Paul Eggert  <eggert@twinsun.com>
38952
38953         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
38954         (jm_PREREQ): Use it.
38955
38956 2001-09-04  Paul Eggert  <eggert@twinsun.com>
38957
38958         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
38959         Use ssize_t, not int, to store result of readlink.
38960         Check for ssize_t overflow as well as size_t overflow,
38961         as POSIX says the result of readlink is implementation-defined
38962         when ssize_t overflows.
38963         Remove unnecessary cast to char*.
38964         Use free+malloc instead of realloc, as the storage doesn't need
38965         to be preserved and it's clearer and can be more efficient that way.
38966         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
38967         * lib/xreadlink.h (xreadlink): Update prototype.
38968
38969 2001-09-04  Paul Eggert  <eggert@twinsun.com>
38970
38971         * lib/xgetcwd.c: Revert some of the previous change; intead,
38972         fix the HAVE_GETCWD_NULL code to behave more like the
38973         !HAVE_GETCWD_NULL code used to.
38974
38975         Include "xalloc.h".
38976         (xgetcwd): Do not return NULL when memory is exhausted; instead,
38977         invoke xalloc_die.
38978
38979 2001-09-03  Paul Eggert  <eggert@twinsun.com>
38980
38981         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
38982         sys/param.h, as pathmax.h includes them.
38983
38984 2001-09-03  Paul Eggert  <eggert@twinsun.com>
38985
38986         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
38987         (jm_PREREQ_XGETCWD): New macro.
38988
38989         * m4/getcwd.m4: New file.
38990
38991 2001-09-03  Paul Eggert  <eggert@twinsun.com>
38992
38993         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
38994         like the HAVE_GETCWD_NULL code.
38995         Include pathmax.h if not HAVE_GETCWD.
38996         Do not include xalloc.h.
38997         (INITIAL_BUFFER_SIZE): New symbol.
38998         Do not use xmalloc / xrealloc, since the caller is responsible for
38999         handling errors.  Preserve errno around `free' during failure.
39000         Do not overrun buffer when using getwd.
39001
39002 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39003
39004         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
39005         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
39006         getcwd (NULL, 0).
39007
39008 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39009
39010         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
39011         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
39012         spotted by Jim Meyering.
39013
39014 2001-09-03  Jim Meyering  <meyering@lucent.com>
39015
39016         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
39017         failure.
39018
39019 2001-09-02  Jim Meyering  <meyering@lucent.com>
39020
39021         * lib/error.c: Update from GNU libc.
39022
39023 2001-09-01  Jim Meyering  <meyering@lucent.com>
39024
39025         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
39026         Used by df.
39027
39028 2001-09-01  Jim Meyering  <meyering@lucent.com>
39029
39030         * lib/xreadlink.c: New file.
39031         * lib/xreadlink.h: New file.
39032         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
39033         xreadlink.h.
39034
39035         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
39036         doesn't conflict with sparc Solaris 7's definition in
39037         /usr/include/sys/int_types.h.
39038
39039         * lib/exclude.c: Use `""', not `<>' to #include non-system header
39040         files.
39041         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
39042         and strncasecmp as r-values.  Unixware didn't have declarations.
39043
39044 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39045
39046         * lib/xstrtol.h: Add copyright notice.
39047         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
39048         LONGINT_INVALID_SUFFIX_CHAR.
39049
39050 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39051
39052         * lib/xstrtol.c (strtoimax): New decl.
39053
39054 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39055
39056         * lib/xgetcwd.c: Don't include pathmax.h.
39057         Include stdlib.h and unistd.h if available.
39058         Include xalloc.h.
39059         (xmalloc, xstrdup, free): Remove decls.
39060         (xgetcwd): Don't assume sizes fit in unsigned.
39061         Check for overflow when computing sizes.
39062         Simplify reallocation code.
39063
39064 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39065
39066         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
39067         a directory's st_size can have an arbitrary value, so the old
39068         usage could waste an arbitrary amount of memory.  All uses
39069         changed.
39070         * lib/savedir.h: Update prototype.
39071
39072 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39073
39074         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
39075
39076         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
39077         old strtoimax.c.
39078
39079         Also, make the following further changes to make this file's
39080         configuration more similar to that of strtol.c:
39081         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
39082         (strtoumax, uintmax_t, strtoull, strtol): Remove.
39083         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
39084         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
39085         changed to signed values.
39086
39087         And make the following changes as well:
39088         Fix copyright notice, as 1999 was missing.
39089         (verify): New macro.
39090         (strtoimax): Check sizes at compile-time, not run-time.
39091         Prefer strtol to strtoll if both work.
39092         (main): Remove; it was not that useful and was a pain to maintain.
39093
39094         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
39095
39096 2001-08-31  Jim Meyering  <meyering@lucent.com>
39097
39098         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
39099         Use an initial, malloc'd, buffer of length 128 rather than
39100         a statically allocated one of length 1024.
39101
39102 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39103
39104         Simplify code, partly by assuming autoconf 2.52 semantics.
39105
39106         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
39107
39108         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
39109         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
39110         All uses removed.
39111         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
39112         Move AC_REQUIRE to next-to-top level, to avoid confusion.
39113         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
39114         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
39115         jm_AC_HEADER_INTTYPES_H.
39116         * m4/jm-macros.m4 (jm_MACROS): Likewise.
39117
39118         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
39119
39120         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
39121         Quote first arg of AC_DEFUN.
39122         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
39123         since they are needed to parse the include file even if we need
39124         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
39125         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
39126         but with opposite signedness.
39127
39128 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39129
39130         Merge 'exclude' changes from tar 1.13.22.
39131         This fixes one or two unlikely storage allocation overflow bugs,
39132         but doesn't change user-visible behavior otherwise.
39133
39134 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39135
39136         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
39137         (jm_PREREQ_EXCLUDE): New macro.
39138
39139 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39140
39141         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
39142         tm to be declared.
39143
39144 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39145
39146         * lib/hash.c: Remove '2001' from copyright notice.
39147
39148 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39149
39150         * lib/full-write.h: New file.
39151         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
39152         * lib/full-write.c: Correct credits, as cccp.c no longer
39153         exists and anyway it was so heavily changed from the old cccp
39154         code as to be unrecognizable.  Include full-write.h.
39155         (full_write) Return size_t, with short writes meaning failure.
39156         All callers changed.  This fixes a bug with large buffers
39157         on 64-bit hosts.
39158         * lib/utime.c: Include full-write.h.
39159
39160 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39161
39162         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
39163         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
39164         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
39165         Include if available.
39166         (<xalloc.h>): Include
39167         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
39168         (verify): New macro.  Use it to verify that EXCLUDE macros do not
39169         collide with FNM macros.
39170         (struct patopts): New struct.
39171         (struct exclude): Use it, as exclude patterns now come with options.
39172         (new_exclude): Support above changes.
39173         (new_exclude, add_exclude_file):
39174         Initial size must now be a power of two to simplify overflow checking.
39175         (free_exclude, fnmatch_no_wildcards): New function.
39176         (excluded_filename): No longer requires options arg, as the options
39177         are determined by add_exclude.  Now returns bool, not int.
39178         (excluded_filename, add_exclude):
39179         Add support for the fancy new exclusion options.
39180         (add_exclude, add_exclude_file): Now takes int options arg.
39181         Check for arithmetic overflow when computing sizes.
39182         (add_exclude_file): xrealloc might modify errno, so don't
39183         realloc until after errno might be used.
39184
39185         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
39186         New macros.
39187         (free_exclude): New decl.
39188         (add_exclude, add_exclude_file): Now takes int options arg.
39189         (excluded_filename): No longer requires options arg, as the options
39190         are determined by add_exclude.  Now returns bool, not int.
39191
39192 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39193
39194         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
39195
39196 2001-08-27  Jim Meyering  <meyering@lucent.com>
39197
39198         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
39199
39200         * lib/version-etc.c (N_): Remove definition.
39201         Revert most of last change.
39202         Instead, simply don't mark the `Copyright...' string for translation.
39203         Based on advice from Paul Eggert.
39204
39205         * lib/strtoxmax.c: Tweak comment.
39206
39207 2001-08-26  Jim Meyering  <meyering@lucent.com>
39208
39209         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
39210
39211         * m4/xstrtoimax.m4: New file.
39212         * m4/xstrtoumax.m4: Add comments explaining why we
39213         AC_REPLACE_FUNCS(strtol).
39214
39215 2001-08-26  Jim Meyering  <meyering@lucent.com>
39216
39217         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
39218         of copyright with `%s' so translators don't get an untranslated
39219         message in 2002.
39220         (COPYRIGHT_YEAR): Define.
39221         (version_etc): Use fprintf rather than fputs.
39222         Suggestion from Ulrich Drepper.
39223
39224         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
39225
39226         * lib/strtoll.c: New file, from GNU libc.
39227         * lib/xstrtoimax.c: New file.
39228
39229         * lib/xstrtol.h: Add xstrtoimax.
39230         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
39231         * lib/strtoimax.c: New file.  Likewise, but first define
39232         STRTOUXMAX_SIGNED.
39233
39234         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
39235         ...
39236         * lib/strtoxmax.c: ... then renamed to this.
39237
39238 2001-08-18  Paul Eggert  <eggert@twinsun.com>
39239
39240         * m4/inttypes.m4: Add AC_PREREQ(2.13).
39241         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
39242         (jm_AC_TYPE_INTMAX_T): New macro.
39243         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
39244
39245         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
39246
39247         * m4/longlong.m4: Renamed from ulonglong.m4.
39248         * m4/inttypes.m4: Renamed from inttypes_h.m4.
39249         * m4/uintmax_t.m4: Removed.
39250
39251 2001-08-13  Paul Eggert  <eggert@twinsun.com>
39252
39253         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
39254         Port to Solaris 8, where 'sed' requires a space after the 'r'
39255         command, and where sh dislikes "$/".  Clean up the spacing a bit.
39256         Redirect output to $tmp just once.
39257
39258 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
39259
39260         * lib/addext.c (<errno.h>): Include.
39261         (errno): Declare if not defined.
39262         (addext): Work correctly when pathconf returns -1 and leaves
39263         errno alone because there is no limit.  Also, work even if
39264         pathconf returns a value greater than SIZE_MAX.
39265
39266 2001-08-12  Jim Meyering  <meyering@lucent.com>
39267
39268         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
39269         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
39270         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
39271         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
39272         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
39273         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
39274         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
39275         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
39276         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
39277         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
39278         utime.m4, utimes.m4, xstrtoumax.m4:
39279         Quote the first argument in each use of AC_DEFUN.
39280
39281 2001-08-12  Jim Meyering  <meyering@lucent.com>
39282
39283         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
39284         Simply `return getcwd (NULL, 0);'.
39285         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
39286         Use 1300 as initial value for length, not PATH_MAX.
39287
39288         * lib/pathmax.h: Clean up cpp syntax.
39289
39290 2001-08-12  Jim Meyering  <meyering@lucent.com>
39291
39292         * lib/gettimeofday.c: New file.
39293         * lib/gtod.h: New file.
39294         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
39295
39296 2001-08-05  Jim Meyering  <meyering@lucent.com>
39297
39298         * m4/jm-macros.m4: Require autoconf-2.52.
39299
39300 2001-08-04  Jim Meyering  <meyering@lucent.com>
39301
39302         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
39303         stmt, to get in sync with glibc.
39304
39305 2001-08-03  Paul Eggert  <eggert@twinsun.com>
39306
39307         The following changes are from gettext 0.10.39 as maintained by
39308         Bruno Haible.
39309
39310         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
39311         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
39312         with inverted sense.  All uses changed.
39313
39314         * lib/mbswidth.c: Don't include <limits.h>.
39315         Include <stdlib.h> and <string.h> unconditionally.
39316         (iswcntrl, mbsinit, ISCNTRL): New macros.
39317         (mbsnwidth): Use K&R style function declarations.
39318         Don't bother checking for MB_LEN_MAX == 1, since the compiler
39319         can optimize it when MB_CUR_MAX == 1.
39320         The width of control characters is zero, not 1.
39321
39322 2001-08-03  Paul Eggert  <eggert@twinsun.com>
39323
39324         The following changes are from gettext 0.10.39 as maintained by
39325         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
39326
39327         * m4/codeset.m4: Upgrade to serial AM1.
39328         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
39329         all uses changed.  Quote first arg of AC_DEFUN.
39330         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
39331
39332         * m4/iconv.m4: Upgrade to serial AM2.
39333         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
39334         Add --with-libconv-prefix.
39335         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
39336         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
39337         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
39338         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
39339         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
39340
39341         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
39342         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
39343         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
39344         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
39345         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
39346         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
39347         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39348         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
39349         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
39350
39351         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
39352         string.h any more.
39353
39354         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
39355         not the default value.
39356
39357         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
39358         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
39359         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
39360         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
39361         Also check for iswcntrl, used for wcwidth fallback.
39362         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
39363         to Autoconf 2.13.
39364
39365 2001-08-03  Jim Meyering  <meyering@lucent.com>
39366
39367         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
39368         as it was in the original.  Reported by Paul Eggert.
39369
39370 2001-07-16  Jim Meyering  <meyering@lucent.com>
39371
39372         * m4/gettimeofday.m4: New file.
39373         Prompted by a report from Bernhard Baehr.
39374
39375 2001-07-15  Jim Meyering  <meyering@lucent.com>
39376
39377         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
39378         stuff. Now it's in ../Makefile.cfg.
39379
39380 2001-07-15  Jim Meyering  <meyering@lucent.com>
39381
39382         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
39383         (BUILT_SOURCES): Add unlocked-io.h.
39384         (io_functions): Define.
39385         (unlocked-io.h): New rule.
39386         (DISTCLEANFILES): Add unlocked-io.h.
39387         (all-local): Depend on unlocked-io.h, to ensure it is created.
39388
39389         * lib/unlocked-io.hin: New file
39390
39391         * lib/regex.c: Update from glibc.
39392
39393 2001-07-05  Jim Meyering  <meyering@lucent.com>
39394
39395         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
39396         recommendation.
39397         (libfetish_a_SOURCES): Put all .h files here instead.
39398         Remove a thus-exposed (better checks in automake) duplicate and
39399         two unnecessary .h files.
39400
39401 2001-07-04  Jim Meyering  <meyering@lucent.com>
39402
39403         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
39404         that generates jm-glibc-io.m4 so that it doesn't trigger any make
39405         distcheck failure.
39406
39407 2001-07-02  Jim Meyering  <meyering@lucent.com>
39408
39409         The following changes were prompted by suggestions from Bruno Haible.
39410
39411         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
39412         is now generated.
39413         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
39414         definition of EXTRA_DIST.
39415         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
39416         ensure that the generated file is created/updated whenever the list
39417         of $(unlocked_functions) is changed.
39418         (jm-glibc-io.m4): New rule.
39419         (unlocked-io.h): New rule -- currently unused.
39420
39421 2001-06-24  Jim Meyering  <meyering@lucent.com>
39422
39423         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
39424         unmatched right bracket, rather than kludging it with an extra,
39425         falsely-matching quote in a comment.  Patch by Akim Demaille.
39426
39427 2001-06-11  Jim Meyering  <meyering@lucent.com>
39428
39429         * lib/regex.c: Update from GNU libc.
39430
39431 2001-05-27  Jim Meyering  <meyering@lucent.com>
39432
39433         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
39434         Check for ut_type in struct utmp.
39435
39436 2001-05-27  Jim Meyering  <meyering@lucent.com>
39437
39438         * lib/readutmp.h (UT_TYPE): Define.
39439
39440 2001-05-24  Jim Meyering  <meyering@lucent.com>
39441
39442         * lib/argmatch.c: Include "quote.h".
39443         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
39444         quote function.  Reported by Göran Uddeborg.
39445
39446 2001-05-22  Jim Meyering  <meyering@lucent.com>
39447
39448         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
39449         now that we use the package-supplied version unconditionally.
39450         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
39451
39452 2001-05-21  Jim Meyering  <meyering@lucent.com>
39453
39454         * m4/regex.m4: Change a couple backticks to single quotes to avoid
39455         shell syntax errors.
39456
39457 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
39458
39459         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
39460
39461 2001-05-20  Paul Eggert  <eggert@twinsun.com>
39462
39463         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
39464         Don't bother to check library strftime, since
39465         we'll be using our own my_strftime function anyway.
39466         Define my_strftime instead of strftime.
39467
39468 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
39469
39470         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
39471         which is not yet declared.
39472
39473 2001-05-15  Jim Meyering  <meyering@lucent.com>
39474
39475         * m4/regex.m4: Use proper quoting so brackets appear in the test
39476         program.
39477         Reported by, and with help from, Bruno Haible.
39478
39479 2001-05-13  Jim Meyering  <meyering@lucent.com>
39480
39481         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
39482         undefined.
39483
39484 2001-05-11  Paul Eggert  <eggert@twinsun.com>
39485
39486         dirname code cleanup.  base_name now behaves more compatibly
39487         with POSIX basename when given file names that have trailing
39488         slashes, and similarly for dir_name.  Add new primitives
39489         base_len and dir_len.  Put the directory-name-related decls
39490         into dirname.h.
39491
39492         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
39493         * lib/backupfile.c (base_name): Likewise.
39494         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
39495         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
39496         * lib/makepath.c (strip_trailing_slashes): Likewise.
39497         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
39498         ISSLASH): Likewise.
39499         * lib/rename.c (strip_trailing_slashes): Likewise.
39500         * lib/same.c (base_name): Likewise.
39501         * lib/stripslash.c (ISSLASH): Likewise.
39502
39503         * lib/addext.c: Include <dirname.h> after size_t is defined.
39504         * lib/backupfile.c: Likewise.
39505
39506         * lib/addext.c (addext): Use base_len to trim redundant
39507         trailing slashes instead of doing it ourselves.
39508         But do not trim the last slash if it is not redundant.
39509
39510         * lib/backupfile.c (find_backup_file_name,
39511         max_backup_version): Use base_len instead of rolling it ourselves.
39512         Handle the case of "" and (on DOS) "C:" correctly.
39513
39514         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
39515         needed. Include <string.h>, <dirname.h>.
39516         (base_name): Allow file names ending in slashes, other than names
39517         that are all slashes.  In this case, return the basename followed
39518         by the slashes.  This is more general, and can be used in places
39519         where the original base_name purposely had an assertion failure.
39520         (base_len): New function.
39521
39522         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
39523         Do not include <assert.h>; no longer needed.
39524         Include xalloc.h.
39525         (memrchr): Remove decl.
39526         (dir_name_r): Remove.
39527         (dir_len): Renamed from dirlen.  All callers changed.
39528         Rewrite in terms of base_name, for simplicity and consistency.
39529         (dir_name): Never return NULL.  All callers changed.
39530         Do not include <stdlib.h> in test program; no longer needed.
39531         return 0; is fine for test program.
39532
39533         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
39534         New macros.
39535         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
39536
39537         * lib/path-concat.c (path_concat): Use base_len to compute
39538         base length, not strlen; this means we cannot rely on memcpy
39539         to null-terminate.
39540
39541         * lib/same.c (STREQ): Remove.
39542         (same_name): Handle the case where the basename ends in trailing '/'.
39543
39544         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
39545         a slash was stripped.  Do not strip the last slash after a
39546         file system prefix.
39547
39548 2001-05-11  Paul Eggert  <eggert@twinsun.com>
39549
39550         * lib/Makefile.am (libfetish_a_SOURCES):
39551         Add strftime.c, since we now compile it on all hosts.
39552
39553         * lib/strftime.c (my_strftime):
39554         Define to nstrftime if emacs, but only if my_strftime is not defined.
39555         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
39556         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
39557         Add one more extra argument: a nanoseconds value.
39558         All uses changed.
39559         (ns): New macro.
39560         (my_strftime function): Add %N format.
39561         (emacs_strftimeu): Renamed from emacs_strftime,
39562         with extra ut argument.
39563
39564 2001-05-09  Paul Eggert  <eggert@twinsun.com>
39565
39566         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
39567
39568 2001-04-21  Jim Meyering  <meyering@lucent.com>
39569
39570         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
39571         doesn't interfere.
39572
39573 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
39574
39575         * m4/ftruncate.m4: Check for chsize.
39576         Link with ftruncate.o unconditionally if ftruncate is missing.
39577         This was required when cross-compiling to i586-mingw32msvc.
39578
39579 2001-04-08  Jim Meyering  <meyering@lucent.com>
39580
39581         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
39582         recomputed; that's necessary when the offset spans a DST transition.
39583         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
39584
39585 2001-04-02  Jim Meyering  <meyering@lucent.com>
39586
39587         * lib/regex.h, regex.c: Update from GNU libc.
39588
39589 2001-03-24  Jim Meyering  <meyering@lucent.com>
39590
39591         * m4/jm-macros.m4: Require autoconf-2.49d.
39592
39593 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
39594
39595         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
39596
39597 2001-03-19  Paul Eggert  <eggert@twinsun.com>
39598
39599         * lib/version-etc.c (version_etc_copyright): Update to 2001.
39600
39601 2001-03-17  Jim Meyering  <meyering@lucent.com>
39602
39603         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
39604         now that the version in autoconf is equivalent.
39605         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
39606
39607         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
39608         Suggestion from Akim Demaille.
39609
39610         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
39611         (jm_PREREQ_TEMPNAME): New function.
39612
39613 2001-03-16  Paul Eggert  <eggert@twinsun.com>
39614
39615         * lib/tempname.c (uint64_t): Define to uintmax_t if
39616         not defined, and if UINT64_MAX is not defined.
39617         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
39618         Reported by John David Anglin.
39619
39620 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
39621
39622         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
39623         resolve alias if codeset is empty.
39624         * lib/config.charset (BeOS): Use wildcard syntax.
39625
39626 2001-03-13  Jim Meyering  <meyering@lucent.com>
39627
39628         * lib/path-concat.c (path_concat)
39629         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
39630         concatenating e.g., `C:' and `foo'.
39631         From Bruno Haible.
39632
39633 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
39634
39635         * lib/localcharset.c (locale_charset): Don't use
39636         setlocale(LC_CTYPE,NULL). Don't return NULL.
39637         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
39638
39639 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
39640
39641         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
39642         support for DOS/DJGPP.
39643
39644 2001-03-01  Paul Eggert  <eggert@twinsun.com>
39645
39646         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
39647         lacks mkstemp.  Compile our own tempname.c if we compile our own
39648         mkstemp.c, as mkstemp relies on tempname.
39649
39650 2001-03-01  Jim Meyering  <meyering@lucent.com>
39651
39652         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
39653         AH_VERBATIM really does output its argument verbatim.
39654
39655 2001-02-28  Paul Eggert  <eggert@twinsun.com>
39656
39657         * lib/Makefile.am (libfetish_a_SOURCES):
39658         Add dup-safer.c, fopen-safer.c.
39659         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
39660
39661         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
39662         * lib/unistd-safer.h: New files.
39663
39664 2001-02-25  Paul Eggert  <eggert@twinsun.com>
39665
39666         The mkstemp replacement is taken from glibc 2.2.2, with some
39667         portability fixes for use outside glibc, as follows:
39668
39669         * lib/tempname.c (struct_stat64): New macro.
39670         (direxists, __gen_tempname): Use it.
39671         This avoids a portability problem with Solaris 8.
39672
39673         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
39674         (<stddef.h>, <stdint.h>, <string.h>):
39675         Include only if STDC_HEADERS || _LIBC.
39676         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
39677         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
39678         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
39679         (__set_errno): Define this macro if <errno.h> doesn't.
39680         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
39681         Define these macros if <stdio.h> doesn't.
39682         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
39683         Define these macros if <sys/stat.h>
39684         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
39685         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
39686         __xstat64): Define if not _LIBC.
39687         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
39688         (__gen_tempname): Invoke gettimeofday only if
39689         HAVE_GETTIMEOFDAY || _LIBC;
39690         otherwise, fall back on plain "time".
39691         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
39692
39693         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
39694
39695         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
39696
39697 2001-02-18  Paul Eggert  <eggert@twinsun.com>
39698
39699         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
39700
39701 2001-02-17  Paul Eggert  <eggert@twinsun.com>
39702
39703         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
39704         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
39705         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
39706         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
39707
39708 2001-02-17  Paul Eggert  <eggert@twinsun.com>
39709
39710         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
39711         Remove workaround macros for hosts that have mbrtowc but not
39712         mbstate_t, as we now insist on proper declarations for both
39713         before using mbrtowc.
39714
39715 2001-02-17  Jim Meyering  <meyering@lucent.com>
39716
39717         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
39718         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
39719         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
39720         UnixWare 7.1.1.
39721
39722         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
39723         rather than AC_CACHE_VAL.
39724
39725 2001-02-17  Jim Meyering  <meyering@lucent.com>
39726
39727         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
39728         around included file name.
39729
39730         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
39731
39732         * lib/strftime.c: Update from GNU libc (the only changes were to
39733         comments).
39734
39735 2001-02-17  Jim Meyering  <meyering@lucent.com>
39736
39737         * lib/regex.c: Update from libc.
39738
39739 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
39740
39741         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
39742         clash.
39743
39744 2001-02-16  Paul Eggert  <eggert@twinsun.com>
39745
39746         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
39747         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
39748         Reported by Mark Hounschell via Paul Eggert.
39749
39750 2001-02-07  Jim Meyering  <meyering@lucent.com>
39751
39752         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
39753
39754 2001-02-05  Jim Meyering  <meyering@lucent.com>
39755
39756         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
39757         it includes the patch required for `large file' support with at least
39758         HP-UX's 10.20 /bin/cc.
39759
39760 2001-02-03  Jim Meyering  <meyering@lucent.com>
39761
39762         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
39763         AS_IF, now that it works once again (mysteriously).
39764         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
39765
39766 2001-01-30  Jim Meyering  <meyering@lucent.com>
39767
39768         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
39769         * m4/chown.m4: Rename conftestchown to conftest.chown.
39770         * m4/rename.m4: s/conftestdir/conftest.d1/ and
39771         s/conftestdir2/conftest.d2/.
39772         * m4/utimes.m4: s/conftestdata/conftest.data/
39773         Inspired by Pavel Roskin's change in autoconf.
39774
39775 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
39776
39777         * lib/config.charset: Update for FreeBSD 4.2.
39778
39779 2001-01-27  Jim Meyering  <meyering@lucent.com>
39780
39781         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
39782         a use of AS_IF.
39783         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
39784
39785 2001-01-26  Jim Meyering  <meyering@lucent.com>
39786
39787         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
39788         quotearg.c includes it.
39789
39790 2001-01-26  Jim Meyering  <meyering@lucent.com>
39791
39792         * lib/quotearg.c: Include stddef.h.
39793         * lib/quote.c: Include stddef.h.
39794         Reported by Axel Kittenberger.
39795
39796         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
39797         line in double quotes so that it evokes a better diagnostic.
39798         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
39799         Reported by Axel Kittenberger.
39800
39801 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
39802
39803         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
39804         as if it was a `charset'.
39805
39806 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
39807
39808         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
39809         has const.
39810
39811 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
39812
39813         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
39814         to avoid a warning.  Add back 'const' to inptr.
39815
39816 2001-01-20  Jim Meyering  <meyering@lucent.com>
39817
39818         Be sure that headers are checked before used in code compiled
39819         for the type checks.
39820         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
39821         In place of that, invoke jm_CHECK_ALL_TYPES.
39822         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
39823         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
39824         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
39825         The check for ssize_t was mistakenly run before the test for unistd.h.
39826
39827         The configure-time check for stdbool.h was missing.
39828         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
39829         (jm_PREREQ_HASH): New function.
39830
39831 2001-01-17  Jim Meyering  <meyering@lucent.com>
39832
39833         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
39834         for autoconf-2.49c.
39835         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
39836
39837 2001-01-16  Jim Meyering  <meyering@lucent.com>
39838
39839         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
39840         From Bruno Haible.
39841
39842 2001-01-14  Jim Meyering  <meyering@lucent.com>
39843
39844         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
39845         foo and bar.  Create conftestdir/ in the script, not in the C code.
39846         Remove directories in the script, not in the C code.
39847         Remove conftestdir{,2} before trying to create the directory.
39848         Make the entire configure script fail if the mkdir fails.
39849
39850 2001-01-14  Jim Meyering  <meyering@lucent.com>
39851
39852         * lib/rename.c: New file.  From Volker Borchert.
39853         Include stdlib.h, string.h or strings.h, and xalloc.h.
39854         Use strip_trailing_slashes rather than open-coding it.
39855
39856 2001-01-03  Paul Eggert  <eggert@twinsun.com>
39857
39858         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
39859
39860 2001-01-03  Jim Meyering  <meyering@lucent.com>
39861
39862         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
39863         of local `inptr' to avoid warning with some system declarations of
39864         iconv.
39865
39866 2001-01-02  Volker Borchert  <bt@teknon.de>
39867
39868         * m4/rename.m4: New file.
39869         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
39870
39871 2001-01-01  Jim Meyering  <meyering@lucent.com>
39872
39873         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
39874         even on systems with utmpx.h.  It's necessary for the declaration of
39875         utmp's ut_user member.  Reported by Andreas Jaeger.
39876
39877         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
39878         available. They are required for the declarations of getgrgid and
39879         getpwuid resp.
39880         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
39881         Reported by Andreas Jaeger.
39882
39883 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
39884
39885         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
39886         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
39887         so `make install' also works in VPATH builds.
39888
39889 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
39890
39891         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
39892         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
39893         can be used in subdirectories.
39894
39895 2000-12-29  Paul Eggert  <eggert@twinsun.com>
39896
39897         * lib/modechange.c: Do not assume that mode_t uses the
39898         traditional octal encoding.  E.g. "chmod 1 FOO" should set
39899         the other-execute bit of FOO even if S_IXOTH != 1.
39900
39901         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
39902         WOTH, XOTH, ALLM): New macros.
39903         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
39904          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
39905         Use them.
39906         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
39907         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
39908         (mode_compile):
39909         No need to use uintmax_t; unsigned long is long enough.
39910         Don't bother to get suffix since we don't use it.
39911
39912 2000-12-26  Jim Meyering  <meyering@lucent.com>
39913
39914         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
39915         better with autoheader.
39916
39917 2000-12-24  Jim Meyering  <meyering@lucent.com>
39918
39919         * lib/hash.c (is_prime): Return explicit boolean values.
39920         (hash_get_first): Return NULL to appease Irix5.6's 89.
39921         Reported by Nelson Beebe.
39922
39923 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
39924
39925         * lib/localcharset.c (locale_charset): Add support for Win32.
39926
39927 2000-12-18  Paul Eggert  <eggert@twinsun.com>
39928
39929         * lib/physmem.h, lib/physmem.c: New files.
39930
39931         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
39932         (noinst_HEADERS): Add physmem.h.
39933
39934         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
39935         't' for compatibility with Solaris 8 sort.
39936
39937 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
39938
39939         * lib/config.charset: Add support for BeOS.
39940
39941 2000-12-17  Jim Meyering  <meyering@lucent.com>
39942
39943         * m4/dos.m4 (jm_AC_DOS): New file and macro.
39944         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
39945
39946 2000-12-16  Jim Meyering  <meyering@lucent.com>
39947
39948         This bug had a serious impact on chown: `chown N:M FILE' (for integer
39949         N and M) would have treated it like `chown N:N FILE'.
39950
39951         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
39952
39953 2000-12-16  Jim Meyering  <meyering@lucent.com>
39954
39955         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
39956         SHELLS_FILE to a file name that's useful on djgpp systems.
39957         Include stdlib.h.
39958         (ADDITIONAL_DEFAULT_SHELLS): Define.
39959         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
39960         Based mostly on a patch from Prashant TR.
39961
39962 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
39963
39964         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
39965         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
39966         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
39967
39968 2000-12-08  Andreas Schwab  <schwab@suse.de>
39969
39970         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
39971         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
39972
39973 2000-12-07  Jim Meyering  <meyering@lucent.com>
39974
39975         * lib/stripslash.c (ISSLASH): Define.
39976         (strip_trailing_slashes): Use ISSLASH rather than comparing against
39977         `/'.
39978         From Prashant TR.
39979
39980         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
39981         (dir_name_r): Declare this function as static.
39982         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
39983         manifest itself on a name containing a mix of slashes and
39984         backslashes.
39985         Make this function work with names starting with a DOS-style
39986         drive letter and colon prefix.
39987         (dir_name): Append `.' if necessary.
39988         Based mostly on patches from Prashant TR and Eli Zaretskii.
39989
39990         * lib/dirname.h (dir_name_r): Remove prototype.
39991
39992 2000-12-06  Paul Eggert  <eggert@twinsun.com>
39993
39994         * m4/off_t-format.m4: Remove this file.
39995         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
39996
39997 2000-12-06  Jim Meyering  <meyering@lucent.com>
39998
39999         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
40000         replacement strtoull, we may well need the replacement strtoul, too.
40001         Check for declarations of strtoul and strtoull.
40002         Check for strtol.  Mainly as a cue to cause automake to include
40003         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
40004         Check for limits.h -- strtol.c needs it.
40005
40006 2000-12-05  Jim Meyering  <meyering@lucent.com>
40007
40008         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
40009
40010 2000-12-04  Jim Meyering  <meyering@lucent.com>
40011
40012         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
40013         Also include memory.h, stdlib.h, unistd.h if appropriate.
40014         Reported by Andreas Jaeger (conflicting declaration of malloc).
40015
40016 2000-12-02  Jim Meyering  <meyering@lucent.com>
40017
40018         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
40019         * m4/jm-macros.m4 (jm_MACROS): require it.
40020
40021 2000-12-02  Jim Meyering  <meyering@lucent.com>
40022
40023         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
40024
40025 2000-12-01  Paul Eggert  <eggert@twinsun.com>
40026
40027         * lib/memrchr.c: Include <config.h> before any system include file.
40028
40029 2000-11-30  Jim Meyering  <meyering@lucent.com>
40030
40031         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
40032
40033 2000-11-30  Jim Meyering  <meyering@lucent.com>
40034
40035         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
40036
40037 2000-11-29  Paul Eggert  <eggert@twinsun.com>
40038
40039         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
40040
40041 2000-11-26  Jim Meyering  <meyering@lucent.com>
40042
40043         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
40044
40045 2000-11-22  Paul Eggert  <eggert@twinsun.com>
40046
40047         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
40048         size of (size_t) -1; it's not portable.
40049
40050 2000-11-17  Jim Meyering  <meyering@lucent.com>
40051
40052         * lib/strstr.c: Update from GNU libc.
40053
40054 2000-11-17  Akim Demaille  <akim@epita.fr>
40055
40056         * lib/obstack.h: Formatting changes.
40057         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
40058         prevent type checking.
40059         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
40060         cast the value to (void *): assigning a `foo *' to a `void *'
40061         variable is valid.
40062         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
40063
40064 2000-11-16  Jim Meyering  <meyering@lucent.com>
40065
40066         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
40067
40068 2000-11-11  Jim Meyering  <meyering@lucent.com>
40069
40070         * lib/error.c: Add a couple #includes, merging from GNU libc version.
40071
40072 2000-11-10  Jim Meyering  <meyering@lucent.com>
40073
40074         * lib/obstack.h: Update from GNU libc.
40075         * lib/obstack.c: Likewise.
40076
40077 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
40078
40079         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
40080
40081 2000-11-06  Paul Eggert  <eggert@twinsun.com>
40082
40083         * lib/getusershell.c (setusershell): Use rewind rather than
40084         fseek/fseeko, to avoid configuration hassles with fseeko.
40085         Don't bother opening SHELLS_FILE if shellstream is NULL;
40086         it's not necessary.
40087
40088 2000-11-05  Jim Meyering  <meyering@lucent.com>
40089
40090         * lib/makepath.h (make_dir): Declare.
40091         * lib/makepath.c (make_dir): Remove `static' attribute.
40092         Tweak a comment.
40093
40094 2000-11-04  Jim Meyering  <meyering@lucent.com>
40095
40096         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
40097
40098 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
40099
40100         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
40101         last one in a bucket, advance to the next bucket.
40102
40103 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
40104
40105         * lib/fnmatch.c: Do not comment out all the code if we are using
40106         the GNU C library, because in some cases we are replacing buggy
40107         code in the GNU C library itself.
40108
40109 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
40110
40111         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
40112         (regex_compile): Catch bogus \(\1\).
40113
40114 2000-10-30  Paul Eggert  <eggert@twinsun.com>
40115
40116         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
40117         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
40118         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
40119
40120 2000-10-30  Paul Eggert  <eggert@twinsun.com>
40121
40122         * lib/error.h, getline.h, modechange.h:
40123         Remove "2000" from Copyright line, as the file hasn't been
40124         changed this year other than in the copyright notice.
40125
40126         * lib/xalloc.h: Add "2000" to Copyright line, as this file
40127         was changed this year.
40128
40129 2000-10-29  Jim Meyering  <meyering@lucent.com>
40130
40131         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
40132         renaming.
40133         * m4/ls-mntd-fs.m4: Likewise
40134
40135 2000-10-29  Jim Meyering  <meyering@lucent.com>
40136
40137         * lib/xstat.in: Fix grammar in comment.
40138
40139 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
40140
40141         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
40142         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
40143         doesn't define __restrict_arr.
40144
40145 2000-10-28  Jim Meyering  <meyering@lucent.com>
40146
40147         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
40148         (jm_PREREQ_MEMCHR): New function.
40149
40150 2000-10-28  Jim Meyering  <meyering@lucent.com>
40151
40152         * lib/memchr.c: Update from libc.
40153         Adjust for portability:
40154         [HAVE_STDLIB_H]: Include stdlib.h.
40155         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
40156         Undef __memchr, too.
40157         [!weak_alias]: Define __memchr to memchr.
40158
40159         * lib/regex.c: Update from libc.
40160         * lib/regex.h: Likewise.
40161         * lib/getopt1.c: Likewise.
40162         * lib/memcmp.c: Likewise.
40163
40164         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
40165         Avoid using fseek, when possible -- it's broken by design.
40166         Patch by Ulrich Drepper.
40167
40168 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
40169
40170         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
40171         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
40172         Giving in to popular pressure to shut up the compiler with casts.
40173
40174 2000-10-26  Jim Meyering  <meyering@lucent.com>
40175
40176         * lib/strftime.c: Update from libc.
40177
40178 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
40179
40180         * regex.c: More `unsigned char' -> `re_char' changes.
40181         Also change several `int' into `re_wchar_t'.
40182         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
40183         (PUSH_FAILURE_POINTER): Don't cast any more.
40184         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
40185         We want GCC to complain, since this piece of code makes
40186         re_match non-reentrant, which *should* be fixed.
40187         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
40188         (EXTEND_BUFFER): Use RETALLOC.
40189         (SET_LIST_BIT): Don't cast.
40190         (re_wchar_t): New type.
40191         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
40192         that those two functions will always properly return.
40193         (IMMEDIATE_QUIT_CHECK): Cast to void.
40194         (analyse_first): Use recursion rather than an explicit stack.
40195         (re_compile_fastmap): Can't fail anymore.
40196         (re_search_2): Don't check re_compile_fastmap for failure.
40197         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
40198         Now also sets the new value (passed in a new argument).
40199         (re_match_2_internal): Use it.
40200         Also, use a new var `reg' of type size_t when looping through regs
40201         rather than reuse the inappropriate `mcnt'.
40202
40203 2000-10-25  Jim Meyering  <meyering@lucent.com>
40204
40205         * lib/obstack.c: Update from libc.
40206
40207 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
40208
40209         * regex.c (regex_compile): Change the way of handling a range from
40210         a char less than 256 to a char not less than 256.
40211
40212 2000-10-24  Andrew Innes  <andrewi@gnu.org>
40213
40214         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
40215         NT-Emacs only.
40216         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
40217         so that re_search functions only quit when callers expect them to.
40218
40219 2000-10-23  Jim Meyering  <meyering@lucent.com>
40220
40221         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
40222         wrong.  That set_locale call must not have any side effects.
40223         From Paul Eggert.
40224
40225 2000-10-22  Jim Meyering  <meyering@lucent.com>
40226
40227         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
40228         [CYCLIC]: Remove now-unused definition.
40229
40230         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
40231         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
40232         Suggestion from Ulrich Drepper.
40233
40234 2000-10-21  Jim Meyering  <meyering@lucent.com>
40235
40236         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
40237         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
40238         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
40239
40240 2000-10-21  Jim Meyering  <meyering@lucent.com>
40241
40242         * lib/dirname.c (memrchr): Declare if necessary.
40243         (dir_name): Remove the restriction that there be no
40244         trailing slashes.  Now, this code skips past them, effectively
40245         ignoring them.
40246         [TEST_DIRNAME] (main): New unit tests.
40247
40248         * lib/memrchr.c: New file from GNU libc.
40249         Undef __memrchr, too.
40250         [!weak_alias]: Define __memrchr to memrchr.
40251         Guard weak_alias use with `#ifdef weak_alias'.
40252
40253 2000-10-21  Jim Meyering  <meyering@lucent.com>
40254
40255         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
40256         (dir_name): Use dir_name_r.
40257         * lib/dirname.h (dir_name_r): Declare it.
40258
40259 2000-10-17  Jim Meyering  <meyering@lucent.com>
40260
40261         * lib/quote.h (PARAMS): Define and use.
40262         Reported by Akim Demaille.
40263
40264         * lib/getopt.c: Update from libc.
40265
40266 2000-10-16  Jim Meyering  <meyering@lucent.com>
40267
40268         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
40269         setlocale.
40270         From Jan Fedak.
40271
40272 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
40273
40274         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
40275
40276 2000-09-25  Jim Meyering  <meyering@lucent.com>
40277
40278         * lib/md5.h (rol): Define (from GnuPG).
40279
40280         * lib/sha.c: Give credit (GnuPG) where due.
40281         (M): Use rol rather than open-coding it.
40282         Add a FIXME comment.
40283
40284 2000-09-21  Jim Meyering  <meyering@lucent.com>
40285
40286         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
40287         Reported by Michael Stone.
40288
40289 2000-09-20  Jim Meyering  <meyering@lucent.com>
40290
40291         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
40292         (noinst_HEADERS): Add sha.h.
40293         Based on code from Scott G. Miller and from GnuPG.
40294
40295 2000-09-18  Jim Meyering  <meyering@lucent.com>
40296
40297         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
40298         LIBS. Otherwise, everyone ends up linking with -lelf for some
40299         configurations.
40300         Reported by Mike Stone.
40301
40302 2000-09-15  Jim Meyering  <meyering@lucent.com>
40303
40304         * lib/regex.c: Update from libc.
40305
40306 2000-09-10  Jim Meyering  <meyering@lucent.com>
40307
40308         * lib/getopt.c (_getopt_internal): Update from glibc.
40309
40310 2000-09-09  Jim Meyering  <meyering@lucent.com>
40311
40312         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
40313         think it should be used as a general replacement for isascii.
40314         * lib/fnmatch.c: Likewise.
40315         * lib/mbswidth.c: Likewise
40316         * lib/regex.c: Likewise.
40317
40318         Don't use atoi.
40319         * lib/userspec.c: Include sys/param.h and limits.h.
40320         Include xstrtol.h.
40321         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
40322         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
40323         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
40324         UID, GID.  Check range.
40325
40326 2000-09-06  Jim Meyering  <meyering@lucent.com>
40327
40328         * lib/getopt.c (_getopt_internal): Update from glibc.
40329
40330 2000-08-30  Jim Meyering  <meyering@lucent.com>
40331
40332         * lib/strftime.c: Merge in changes from GNU libc.
40333
40334 2000-08-26  Jim Meyering  <meyering@lucent.com>
40335
40336         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
40337         * m4/fpending.m4: New file.
40338
40339 2000-08-26  Jim Meyering  <meyering@lucent.com>
40340
40341         * lib/closeout.c: Include "__fpending.h".
40342         (close_stdout_status): Return right away if there's nothing to flush.
40343
40344         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
40345         * lib/__fpending.c: New file.
40346         * lib/__fpending.h: New file.
40347
40348 2000-08-20  Jim Meyering  <meyering@lucent.com>
40349
40350         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
40351         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
40352         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
40353
40354 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
40355
40356         Improve fileutils installation on systems where running
40357         programs (like install) can't be unlinked.
40358         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
40359         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
40360
40361 2000-08-07  Paul Eggert  <eggert@twinsun.com>
40362
40363         Standardize on "memory exhausted" instead of "Memory exhausted"
40364         or "virtual memory exhausted".
40365         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
40366         "virtual memory exhausted".
40367         * lib/same.c (same_name): Invoke xalloc_die instead of printing
40368         our own message.
40369         * lib/userspec.c (parse_user_spec): Likewise.
40370         * lib/bumpalloc.h: comment fix
40371         * lib/same.c, userspec.c: Include xalloc.h.
40372
40373         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
40374         not char *const and pointing to a constant array.
40375         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
40376         (xrealloc): Comment fix.
40377
40378         * lib/userspec.c (parse_user_spec):
40379         Don't translate a message until just before returning,
40380         to avoid unnecessary translation.
40381
40382 2000-08-07  Jim Meyering  <meyering@lucent.com>
40383
40384         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
40385         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
40386         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
40387         getgroups.c, gethostname.c, getopt.h, group-member.c,
40388         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
40389         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
40390         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
40391         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
40392         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
40393         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
40394         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
40395         yesno.c: Back out Copyright date changes for each file with no change
40396         this year.  This eases coordination with other programs using the same
40397         source code modules.  From Paul Eggert.
40398
40399 2000-08-06  Paul Eggert  <eggert@twinsun.com>
40400
40401         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
40402         not char, for compatibility with glibc 2.1.3 strftime.c.
40403
40404 2000-08-03  Greg McGary  <greg@mcgary.org>
40405
40406         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
40407         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
40408         (EXTEND_BUFFER): Use them.
40409
40410 2000-08-01  Jim Meyering  <meyering@lucent.com>
40411
40412         * lib/dirname.c (ISSLASH): Define.
40413         (BACKSLASH_IS_PATH_SEPARATOR): Define.
40414         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
40415         both `\' and `/' may be use as path separators.
40416         Based on a patch from Prashant TR.
40417
40418 2000-07-31  Paul Eggert  <eggert@twinsun.com>
40419
40420         * lib/quotearg.c (quotearg_n_options): Don't make the initial
40421         slot vector a constant, since it might get modified.
40422
40423 2000-07-31  Jim Meyering  <meyering@lucent.com>
40424
40425         * lib/xmalloc.c: Use `virtual memory exhausted', not
40426         `Memory exhausted'.
40427         * lib/obstack.c (print_and_abort): Likewise.
40428
40429 2000-07-30  Paul Eggert  <eggert@twinsun.com>
40430
40431         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
40432         buffer, so that the caller can always quote one small
40433         component of a "memory exhausted" message in slot 0.
40434         From a suggestion by Jim Meyering.
40435
40436 2000-07-30  Jim Meyering  <meyering@lucent.com>
40437
40438         * lib/makepath.c (make_path): Quote the other instance, too.
40439
40440         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
40441         (STATIC_BUF_SIZE): Define.
40442         (quotearg_n_options): Use only statically allocated storage when
40443         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
40444         than STATIC_BUF_SIZE.
40445
40446 2000-07-29  Jim Meyering  <meyering@lucent.com>
40447
40448         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
40449         * lib/dirname.c (dir_name): Likewise.
40450
40451         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
40452         `/'.
40453
40454         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
40455         (dir_name): Assert that there are no trailing slashes.
40456
40457 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
40458
40459         * lib/mbswidth.h (mbswidth): Add a flags argument.
40460         (mbswidth): New declaration.
40461         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
40462         * lib/mbswidth.c (mbswidth): Add a flags argument.
40463         (mbsnwidth): New function.
40464
40465 2000-07-24  Jim Meyering  <meyering@lucent.com>
40466
40467         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
40468
40469 2000-07-23  Paul Eggert  <eggert@twinsun.com>
40470
40471         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
40472
40473 2000-07-23  Paul Eggert  <eggert@twinsun.com>
40474
40475         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
40476         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
40477         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
40478         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
40479         invoke multibyte primitives.
40480
40481 2000-07-23  Paul Eggert  <eggert@twinsun.com>
40482
40483         * lib/quotearg.c:
40484         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
40485         so that mbstate_t is always defined.
40486
40487         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
40488         be 1 in at least one GCC installation, and this configuration
40489         error is likely to be common.  Ignoring MB_LEN_MAX hurts
40490         performance on hosts that have mbrtowc but have only unibyte
40491         locales, but I assume these hosts are rare.
40492
40493 2000-07-23  Paul Eggert  <eggert@twinsun.com>
40494
40495         * lib/mbswidth.c (_XOPEN_SOURCE):
40496         Don't define; this causes problems on Solaris 7.
40497         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
40498
40499 2000-07-23  Jim Meyering  <meyering@lucent.com>
40500
40501         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
40502         too: getgrgid, getpwuid, getuid.
40503
40504 2000-07-23  Jim Meyering  <meyering@lucent.com>
40505
40506         * lib/basename.c (base_name): Add an assertion.
40507
40508 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
40509
40510         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
40511         shadow its mbsinit function.
40512
40513 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
40514
40515         * lib/mbswidth.h: New file.
40516         * lib/mbswidth.c: New file.
40517         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
40518         (noinst_HEADERS): Add mbswidth.h.
40519
40520 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
40521
40522         * lib/config.charset: Add support for FreeBSD. Improve support for
40523         HP-UX and IRIX 6.
40524
40525 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
40526
40527         * m4/mbswidth.m4: New file.
40528         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
40529
40530 2000-07-15  Jim Meyering  <meyering@lucent.com>
40531
40532         * lib/makepath.c: Include quote.h.
40533         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
40534         corresponding argument in a `quote (...)' call.
40535         Give better diagnostics.
40536
40537         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
40538         (noinst_HEADERS): Add quote.h.
40539
40540         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
40541         from tar's src/misc.c.
40542         * lib/quote.h: New file.  Prototypes for same.
40543
40544 2000-07-14  Paul Eggert  <eggert@twinsun.com>
40545
40546         From a suggestion by Bruno Haible.
40547         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
40548         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
40549         to decide whether to define the BeOS workaround macro;
40550         this adjusts to the change to AC_MBSTATE_T.
40551
40552 2000-07-14  Jim Meyering  <meyering@lucent.com>
40553
40554         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
40555         jm_AC_TYPE_UINTMAX_T.
40556
40557 2000-07-13  Paul Eggert  <eggert@twinsun.com>
40558
40559         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
40560
40561         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
40562         quotearg_buffer_restyled): Add support for
40563         clocale_quoting_style.  Undo previous change to
40564         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
40565         and "{RIGHT QUOTATION MARK}" msgids.
40566
40567 2000-07-10  Paul Eggert  <eggert@twinsun.com>
40568
40569         From a suggestion by Bruno Haible.
40570         * m4/mbstate_t.m4 (AC_MBSTATE_T):
40571         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
40572         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
40573         and mbstate_t, to a single-part test that simply defines mbstate_t.
40574         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
40575         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
40576
40577 2000-07-10  Jim Meyering  <meyering@lucent.com>
40578
40579         * m4/strerror_r.m4: Mirror the correction made in autoconf.
40580
40581         * m4/gnu-source.m4: Output to confdefs.h directly.
40582         Suggestion from Akim Demaille.
40583
40584 2000-07-09  Paul Eggert  <eggert@twinsun.com>
40585
40586         The old behavior of quoting `like this' doesn't look good with
40587         newer, ISO-style fonts.  See:
40588         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
40589
40590         Instead, quote "like this" by default.  Let the translator
40591         tailor the locale-specific quoting behavior by providing
40592         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
40593
40594         * lib/quotearg.c (N_): New macro.
40595         (gettext_default): New function.
40596         (quotearg_buffer_restyled): Use
40597         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
40598         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
40599
40600 2000-07-09  Jim Meyering  <meyering@lucent.com>
40601
40602         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
40603         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
40604
40605         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
40606         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
40607
40608 2000-07-09  Jim Meyering  <meyering@lucent.com>
40609
40610         * lib/Most files: Update copyright dates to include 2000.
40611
40612 2000-07-08  Jim Meyering  <meyering@lucent.com>
40613
40614         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
40615         if not defined.
40616         (xgethostname): Remove now-unnecessary #ifdef.
40617         Move declaration of `err' into loop where it's used.
40618
40619 2000-07-05  Paul Eggert  <eggert@twinsun.com>
40620         and Bruno Haible  <haible@clisp.cons.org>
40621
40622         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
40623         only if the test for an object-type mbstate_t fails.  This
40624         prevents us from mistakenly reporting that mbstate_t is a
40625         system object type after we "#define mbstate_t int" to work
40626         around its lack.
40627
40628 2000-07-05  Paul Eggert  <eggert@twinsun.com>
40629         and Bruno Haible  <haible@clisp.cons.org>
40630
40631         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
40632
40633 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
40634
40635         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
40636         to strerror_r.
40637         Include <ctype.h> for use of isalpha.
40638
40639 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
40640
40641         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
40642         by allocating a larger buffer. Test the gethostname return value for
40643         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
40644         returns an error and ENAMETOOLONG isn't defined.
40645
40646 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
40647
40648         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
40649         dimension.
40650
40651 2000-07-04  Jim Meyering  <meyering@lucent.com>
40652
40653         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
40654         of the deprecated AC_CHECKING.
40655
40656 2000-07-04  Jim Meyering  <meyering@lucent.com>
40657
40658         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
40659         Reported by Bruno Haible.
40660
40661 2000-07-04  Jim Meyering  <meyering@lucent.com>
40662
40663         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
40664         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
40665         lacks mbrtowc.
40666
40667 2000-07-03  Paul Eggert  <eggert@twinsun.com>
40668
40669         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
40670         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
40671
40672 2000-07-03  Paul Eggert  <eggert@twinsun.com>
40673         and Bruno Haible  <haible@clisp.cons.org>
40674
40675         * lib/quotearg.c (mbrtowc):
40676         Assign to *pwc, and return 1 only if result is nonzero.
40677         (iswprint): Use ISPRINT when substituting our own mbrtowc.
40678
40679 2000-07-03  Jim Meyering  <meyering@lucent.com>
40680
40681         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
40682
40683 2000-07-03  Jim Meyering  <meyering@lucent.com>
40684
40685         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
40686         This is necessary to get a definition of e.g., UTMP_FILE on
40687         HP-UX 10.20.
40688         From Bob Proulx.
40689
40690 2000-07-02  Jim Meyering  <meyering@lucent.com>
40691
40692         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
40693
40694         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
40695         AC_LIBOBJ(function_name).
40696         * m4/chown.m4: Likewise.
40697         * m4/fnmatch.m4: Likewise.
40698         * m4/ftruncate.m4: Likewise.
40699         * m4/getgroups.m4: Likewise.
40700         * m4/getline.m4: Likewise.
40701         * m4/group-member.m4: Likewise.
40702         * m4/jm-macros.m4: Likewise.
40703         * m4/lstat.m4: Likewise.
40704         * m4/malloc.m4: Likewise.
40705         * m4/memcmp.m4: Likewise.
40706         * m4/nanosleep.m4: Likewise.
40707         * m4/putenv.m4: Likewise.
40708         * m4/realloc.m4: Likewise.
40709         * m4/regex.m4: Likewise.
40710         * m4/stat.m4: Likewise.
40711         * m4/strftime.m4: Likewise.
40712
40713 2000-07-02  Jim Meyering  <meyering@lucent.com>
40714
40715         * lib/quotearg.c (mbstate_t): Don't define here.
40716
40717 2000-07-02  Jim Meyering  <meyering@lucent.com>
40718
40719         * lib/nanosleep.c (SIGCONT): Define if not already defined.
40720
40721 2000-07-01  Jim Meyering  <meyering@lucent.com>
40722
40723         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
40724
40725 2000-07-01  Jim Meyering  <meyering@lucent.com>
40726
40727         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
40728         problem.
40729
40730 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
40731
40732         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
40733         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
40734
40735 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
40736
40737         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
40738         per change in ../m4/ls-mntd-fs.m4.
40739         (read_filesystem_list): Ignore symbolic links.
40740
40741 2000-06-29  Jim Meyering  <meyering@lucent.com>
40742
40743         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
40744         for declaration of strcmp.
40745
40746         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
40747
40748         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
40749         Avoid warning by casting result to `char *' to remove `const'.
40750
40751 2000-06-28  Jim Meyering  <meyering@lucent.com>
40752
40753         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
40754         included by quotearg.c, for which we perform this test.  From
40755         Bruno Haible.
40756
40757 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
40758
40759         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
40760         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
40761         <utmpx.h> exists, put readutmp.o into LIBOBJS.
40762
40763 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
40764
40765         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
40766
40767 2000-06-26  Paul Eggert  <eggert@twinsun.com>
40768
40769         savedir now sets errno on failure and invokes xmalloc to get memory.
40770         Fix a couple of other minor bugs while we're at it.
40771
40772         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
40773         (NAMLEN): Remove macro.
40774         (malloc, realloc): Remove decls.
40775         (stpcpy): Likewise.
40776         ("xalloc.h"): Include.
40777         (NAME_SIZE_DEFAULT): New macro.
40778         (savedir): Use xmalloc / xrealloc to allocate memory.
40779         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
40780         Skip "" directory entries.
40781         Use strlen to calculate directory entry length, since the old method
40782         is rarely used these days and isn't worth supporting.
40783         Don't use a pointer after freeing it.
40784         Check for integer overflow when calculating allocation size.
40785         Use memcpy to copy entries, instead of stpcpy.
40786         Set errno properly when returning NULL.
40787         Check for readdir error.
40788
40789 2000-06-26  Jim Meyering  <meyering@lucent.com>
40790
40791         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
40792
40793 2000-06-25  Jim Meyering  <meyering@lucent.com>
40794
40795         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
40796         Linux header bug when _XOPEN_SOURCE is defined to 500.
40797
40798 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
40799
40800         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
40801         deficiency.
40802
40803 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
40804
40805         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
40806         Include xalloc.h.
40807         Don't include <stdlib.h>.  Don't declare malloc, realloc.
40808
40809 2000-06-24  Jim Meyering  <meyering@lucent.com>
40810
40811         * m4/strerror_r.m4: Revive this file -- to try out an experimental
40812         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
40813         for which strerror does return char*, but which lacks a conveniently
40814         accessible declaration of the function.  If the compile-test says
40815         strerror_r doesn't work, then resort to a `run'-test that works on
40816         BeOS and segfaults on DEC Unix.
40817
40818 2000-06-24  Jim Meyering  <meyering@lucent.com>
40819
40820         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
40821
40822 2000-06-23  Paul Eggert  <eggert@twinsun.com>
40823
40824         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
40825         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
40826
40827 2000-06-23  Paul Eggert  <eggert@twinsun.com>
40828
40829         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
40830         (mbrtowc, mbstate_t): Define substitutes if
40831         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
40832         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
40833         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
40834
40835 2000-06-23  Jim Meyering  <meyering@lucent.com>
40836
40837         * m4/afs.m4: Add missing AC_MSG_RESULT.
40838         Reported by Bruno Haible.
40839
40840         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
40841         Suggestion from Bruno Haible.
40842
40843 2000-06-23  Jim Meyering  <meyering@lucent.com>
40844
40845         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
40846
40847 2000-06-21  Jim Meyering  <meyering@lucent.com>
40848
40849         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
40850
40851 2000-06-21  Jim Meyering  <meyering@lucent.com>
40852
40853         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
40854         (noinst_HEADERS): Add getstr.h.
40855
40856         * lib/getline.c (getstr): Move into a separate file.
40857         * lib/getstr.c (getstr): New file, extracted from getline.c, with
40858         the following changes: new parameter, delim2; both delim[12]
40859         parameters have type `int', not `char'.  The latter would lose
40860         with 8-bit delimiters.
40861         * lib/getstr.h: New file.
40862
40863 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
40864
40865         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
40866         than 1024, return a memory chunk of least possible size, instead
40867         of size PATH_MAX + 2. In the loop, increment the size proportionally.
40868         Use free/xmalloc instead of xrealloc to avoid copying for very long
40869         paths.
40870
40871 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
40872
40873         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
40874         the empty string.
40875
40876 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
40877
40878         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
40879         address, not strdup.  Include <stdlib.h> and don't declare free().
40880
40881 2000-06-19  Jim Meyering  <meyering@lucent.com>
40882
40883         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
40884
40885 2000-06-18  Jim Meyering  <meyering@lucent.com>
40886
40887         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
40888
40889         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
40890         `checking whether...' message to be consistent with that of the
40891         lstat test.
40892
40893 2000-06-18  Jim Meyering  <meyering@lucent.com>
40894
40895         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
40896         Besides, these days every porting target provides a mkdir function.
40897
40898         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
40899         needed. (this snippet comes from src/system.h).
40900
40901 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
40902
40903         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
40904
40905 2000-06-15  Paul Eggert  <eggert@twinsun.com>
40906
40907         * lib/human.c (adjust_value): New function.
40908         (human_readable_inexact): Apply rounding style even when
40909         printing approximate values.
40910
40911 2000-06-14  Paul Eggert  <eggert@twinsun.com>
40912
40913         * lib/human.c (human_readable_inexact): Allow an input block
40914         size that is not a multiple of the output block size, and vice versa.
40915         Reported by Piergiorgio Sartor.
40916
40917 2000-06-14  Paul Eggert  <eggert@twinsun.com>
40918
40919         * lib/getdate.y (get_date): Apply relative times after time
40920         zone indicator, not before.  Reported by Todd A. Jacobs.
40921
40922 2000-06-13  Jim Meyering  <meyering@lucent.com>
40923
40924         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
40925
40926         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
40927
40928 2000-06-12  Paul Eggert  <eggert@twinsun.com>
40929
40930         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
40931
40932 2000-06-12  Jim Meyering  <meyering@lucent.com>
40933
40934         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
40935         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
40936         optional argument.
40937         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
40938         the optional argument, `lib'.
40939
40940 2000-06-08  Jim Meyering  <meyering@lucent.com>
40941
40942         * m4/largefile.m4: Remove file (now that it's part of autoconf).
40943
40944 2000-06-04  Paul Eggert  <eggert@twinsun.com>
40945
40946         Rewrite largefile configuration so that we don't need to run
40947         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
40948         AC_CANONICAL_HOST in configure.in -- jmm]
40949
40950         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
40951         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
40952         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
40953         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
40954         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
40955         All uses changed.
40956         Instead of inspecting the output of getconf, try to compile the
40957         test program without and with the macro definition.
40958         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
40959         for getconf.  Instead, check for the needed flags by compiling
40960         test programs.
40961
40962 2000-06-04  Paul Eggert  <eggert@twinsun.com>
40963
40964         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
40965
40966 2000-06-04  Jim Meyering  <meyering@lucent.com>
40967
40968         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
40969         SunOS 4.1.4 for which gid_t is an unsigned type.
40970
40971 2000-06-03  Jim Meyering  <meyering@lucent.com>
40972
40973         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
40974         now that autoconf requires that.
40975
40976         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
40977         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
40978         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
40979
40980 2000-06-03  Jim Meyering  <meyering@lucent.com>
40981
40982         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
40983
40984 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
40985
40986         * m4/glibc21.m4: New file.
40987         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
40988
40989 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
40990
40991         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
40992         newer, don't install charset.alias.
40993         * lib/config.charset: Change the Linux/glibc rules so they become empty
40994         on glibc-2.1 or newer.
40995
40996 2000-06-02  Jim Meyering  <meyering@lucent.com>
40997
40998         * lib/mountlist.c: Back out last change.  Instead, do this...
40999         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
41000         me_dummy member using the same `ignore'-testing code.
41001         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
41002         fs_type strings.
41003         From Mark D. Roth.
41004
41005 2000-05-29  Jim Meyering  <meyering@lucent.com>
41006
41007         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
41008         mounts with the `ignore' attribute.  Based on a patch from
41009         Mark D. Roth.
41010
41011 2000-05-28  Jim Meyering  <meyering@lucent.com>
41012
41013         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
41014         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41015         * m4/stat.m4: Likewise.
41016         * m4/lstat.m4: Likewise.
41017         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
41018
41019         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
41020         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
41021
41022 2000-05-26  Jim Meyering  <meyering@lucent.com>
41023
41024         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
41025
41026 2000-05-24  Jim Meyering  <meyering@lucent.com>
41027
41028         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
41029         autoconf requires that.
41030         * m4/lib-check.m4: Likewise.
41031         * m4/jm-macros.m4: Likewise.
41032         * m4/strftime.m4: Likewise.
41033
41034         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
41035         AC_CHECK_DECLS, now that autoconf requires that.
41036
41037 2000-05-22  Jim Meyering  <meyering@lucent.com>
41038
41039         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41040         * m4/lstat.m4: Likewise.
41041
41042 2000-05-22  Jim Meyering  <meyering@lucent.com>
41043
41044         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
41045
41046 2000-05-20  Jim Meyering  <meyering@lucent.com>
41047
41048         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
41049         (jm_PREREQ): Use it.
41050
41051 2000-05-18  Jim Meyering  <meyering@lucent.com>
41052
41053         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
41054         back, too, since it may have been modified by allocate_entry.
41055         (hash_delete): Rewrite to use neither the assignment operator
41056         nor the comma operator in an if-expression.
41057
41058 2000-05-15  Paul Eggert  <eggert@twinsun.com>
41059
41060         * lib/closeout.c:
41061         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
41062         Remove; no longer needed.
41063         "quotearg.h": Add include.
41064         (file_name): Do not bother to explicitly initialize to NULL; it's less
41065         efficient on some hosts.
41066         (close_stdout_status): Remove test as to whether stdout was already
41067         closed; it breaks for the case "echo x | sort >&-".
41068         Quote file name colons.
41069         Do not assume that _("write error") lacks format strings.
41070
41071 2000-05-15  Jim Meyering  <meyering@lucent.com>
41072
41073         * lib/version-etc.c (version_etc_copyright): Update the copyright
41074         string used in all --version output.
41075
41076 2000-05-14  Jim Meyering  <meyering@lucent.com>
41077
41078         * lib/closeout.c (close_stdout_set_file_name): New function.
41079         (close_stdout_status): Use new file-scoped global.
41080         Return right away if fstat says the stdout file descriptor is invalid.
41081         * lib/closeout.h (close_stdout_set_file_name): Declare.
41082
41083 2000-05-10  Jim Meyering  <meyering@lucent.com>
41084
41085         * lib/closeout.c [default_exit_status]: New file-scoped variable.
41086         (close_stdout_set_status): New function.
41087         * lib/closeout.h (close_stdout_set_status): Declare.
41088
41089 2000-05-09  Jim Meyering  <meyering@lucent.com>
41090
41091         * m4/gettext.m4: Rename this...
41092         * m4/libintl.m4: ...to this.
41093
41094 2000-05-08  Jim Meyering  <meyering@lucent.com>
41095
41096         * lib/long-options.c: Don't include closeout.h.
41097         (parse_long_options): Don't call close_stdout for --version.
41098
41099 2000-05-06  Paul Eggert  <eggert@twinsun.com>
41100
41101         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
41102         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
41103         2.1.3 bug.  This avoids a clash when files like regex.c define
41104         _GNU_SOURCE.
41105
41106 2000-05-06  Jim Meyering  <meyering@lucent.com>
41107
41108         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
41109         (AC_REPLACE_FUNCS): Add strnlen.
41110
41111         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
41112         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
41113
41114         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
41115         AC_SEARCH_LIBS call for nanosleep.
41116         (LIB_NANOSLEEP): Set and AC_SUBST.
41117
41118 2000-05-06  Jim Meyering  <meyering@lucent.com>
41119
41120         * lib/strnlen.c: Undefine __strnlen and strnlen.
41121         [!weak_alias]: Define __strnlen to strnlen.
41122
41123         * lib/atexit.c: New file, from libiberty.
41124
41125 2000-05-06  Jim Meyering  <meyering@lucent.com>
41126
41127         * lib/closeout.c (close_stdout_status): Also check for errors on the
41128         stderr stream.
41129
41130 2000-05-05  Jim Meyering  <meyering@lucent.com>
41131
41132         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
41133         AC_SEARCH_LIBS call for clock_gettime.
41134         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
41135
41136         * m4/search-libs.m4: Update from autoconf.
41137
41138         su doesn't work on Solaris 2.6.
41139         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
41140         <shadow.h>.  Reported by Dragos Harabor.
41141
41142 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
41143
41144         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
41145         memcpy instead of xmalloc, xrealloc, path_concat.
41146         (locale_charset): Treat empty environment variables as absent.
41147         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
41148
41149 2000-05-04  Jim Meyering  <meyering@lucent.com>
41150
41151         * lib/getopt.c: Update from glibc.
41152         * lib/obstack.c: Likewise.
41153         * lib/obstack.h: Likewise.
41154         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
41155         file
41156
41157         * lib/regex.h: Likewise.
41158         * lib/strndup.c: Likewise.
41159         * lib/strnlen.c: New file, from glibc.
41160
41161 2000-05-03  Jim Meyering  <meyering@lucent.com>
41162
41163         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
41164
41165 2000-05-02  Paul Eggert  <eggert@twinsun.com>
41166
41167         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
41168         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
41169         compile-time test, rather than inspecting host and OS, to
41170         decide whether to define _LARGEFILE_SOURCE.
41171
41172 2000-05-01  Jim Meyering  <meyering@lucent.com>
41173
41174         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
41175
41176         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
41177         Based on a patch from Bruno Haible.
41178
41179 2000-05-01  Jim Meyering  <meyering@lucent.com>
41180
41181         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
41182
41183 2000-04-29  Jim Meyering  <meyering@lucent.com>
41184
41185         * lib/path-concat.c: Declare strdup only if it's not defined.
41186         * lib/canon-host.c: Likewise.
41187
41188 2000-04-28  Jim Meyering  <meyering@lucent.com>
41189
41190         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
41191         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
41192         is included first, then limits.h is included by locale.h by libintl.h.
41193         From John David Anglin.
41194
41195 2000-04-25  Jim Meyering  <meyering@lucent.com>
41196
41197         * lib/makepath.c (S_IRWXUGO): Define.
41198         (make_path): Always perform explicit chmod if MODE specifies any
41199         of the `special' permission bits.  Prompted by a bug report against
41200         install from Mate Wierdl and Joost van Baal.
41201
41202 2000-04-18  Jim Meyering  <meyering@lucent.com>
41203
41204         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
41205         (jm_PREREQ): Use it.
41206
41207 2000-04-18  Jim Meyering  <meyering@lucent.com>
41208
41209         * lib/README: New file.
41210
41211         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
41212         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
41213
41214 2000-04-17  Jim Meyering  <meyering@lucent.com>
41215
41216         Get it right :-)
41217         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
41218         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
41219         Suggestion from Akim Demaille.
41220
41221 2000-04-17  Jim Meyering  <meyering@lucent.com>
41222
41223         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
41224         the definition of it to rpl_strftime also defined-away the system's
41225         declaration.
41226
41227 2000-04-15  Jim Meyering  <meyering@lucent.com>
41228
41229         Use `C' to denote so-called `contiguous' files, the same way
41230         that tar does.
41231         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
41232         (ftypelet): Use S_ISCTG.
41233         From Michael Deutschmann.
41234
41235 2000-04-14  Jim Meyering  <meyering@lucent.com>
41236
41237         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
41238         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
41239         clobbered.
41240
41241 2000-04-14  Jim Meyering  <meyering@lucent.com>
41242
41243         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
41244
41245 2000-04-13  Jim Meyering  <meyering@lucent.com>
41246
41247         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
41248         AH_VERBATIM to insert required #ifndef into config.h.in.
41249         Suggestion from Akim Demaille.
41250
41251 2000-04-12  Jim Meyering  <meyering@lucent.com>
41252
41253         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
41254         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
41255         Christian Krackowizer.
41256
41257         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
41258         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
41259         (AC_SYS_LARGEFILE): Require.
41260         (AM_C_PROTOTYPES): Require.
41261
41262 2000-04-08  Jim Meyering  <meyering@lucent.com>
41263
41264         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
41265         names don't conflict.  Reported by Eli Zaretskii.
41266
41267 2000-04-07  Jim Meyering  <meyering@lucent.com>
41268
41269         * lib/putenv.c: Move inclusion of errno.h so it follows that of
41270         sys/types.h, to work around system header problems on AIX 3.2.5.
41271         From Bruno Haible.
41272
41273 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
41274
41275         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
41276         bug.  Deal with the different error behavior of Irix iconv.
41277
41278 2000-04-05  Paul Eggert  <eggert@twinsun.com>
41279
41280         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
41281         IRIX if the installer said otherwise.
41282
41283 2000-04-05  Jim Meyering  <meyering@lucent.com>
41284
41285         Portability tweaks required for ultrix4.3.
41286         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
41287         (jm_CHECK_DECLS): Add getutent to the list of functions.
41288         (_jm_DECL_HEADERS): Add utmpx.h.
41289         From John David Anglin.
41290
41291         * m4/strftime.m4: Back out the 2000-04-02 change.
41292         Instead of that change, simply undefine putenv in the test program.
41293
41294 2000-04-05  Jim Meyering  <meyering@lucent.com>
41295
41296         Portability tweaks required for ultrix4.3.
41297         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
41298         getutent.
41299         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
41300         * lib/canon-host.c: Declare strdup.
41301         * lib/path-concat.c: Likewise.
41302         From John David Anglin.
41303
41304 2000-04-04  Jim Meyering  <meyering@lucent.com>
41305
41306         Be more DOS 8.3-friendly.
41307         * lib/ref-add.sin: Renamed from ref-add.sed.in.
41308         * lib/ref-del.sin: Renamed from ref-del.sed.in.
41309         * lib/Makefile.am: Reflect renaming.
41310         Reported by Eli Zaretskii.
41311
41312         Use a temporary file name that won't clash with `charset.alias'
41313         in the DOS 8.3 name space.
41314         * lib/Makefile.am (charset_tmp): Define.
41315         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
41316         (uninstall-local): Likewise.
41317         Reported by Eli Zaretskii.
41318
41319 2000-04-03  Jim Meyering  <meyering@lucent.com>
41320
41321         * m4/gettext.m4: Fix typo in comment.
41322
41323         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
41324         textutils/configure.in).  Suggestion from Paul Eggert.
41325         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
41326
41327 2000-04-02  Paul Eggert  <eggert@twinsun.com>
41328
41329         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
41330         variable in the shell rather than using putenv, which isn't
41331         portable.  This avoids the configure-time inter-test dependency
41332         on the potentially-renamed putenv function.
41333
41334 2000-03-30  Paul Eggert  <eggert@twinsun.com>
41335
41336         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
41337         before checking struct stat.st_blksize, so that
41338         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
41339
41340 2000-03-29  Paul Eggert  <eggert@twinsun.com>
41341
41342         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
41343         since strftime.c uses HAVE_STRFTIME to decide whether to use
41344         the underlying strftime.
41345
41346 2000-03-29  Paul Eggert  <eggert@twinsun.com>
41347
41348         * lib/time/strftime.c (my_strftime): Make sure we call the system
41349         strftime, not ourselves, when invoking the underlying strftime.
41350
41351 2000-03-24  Jim Meyering  <meyering@lucent.com>
41352
41353         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
41354         (charset_alias): Define.
41355         (install-exec-local): Factor out common code.
41356         (uninstall-local): Split lines longer than 80.
41357         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
41358         (SUFFIXES): Define.
41359         (.sed.in.sed): New rule.  Don't redirect directly to $@.
41360         (CLEANFILES): Add ref-add.sed and ref-del.sed.
41361
41362 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
41363
41364         * lib/config.charset: Output a line containing "Packages using this
41365         file".
41366         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
41367         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
41368         ref-del.sed): New rules.
41369
41370 2000-03-17  Jim Meyering  <meyering@lucent.com>
41371
41372         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
41373         Otherwise, include <strings.h>
41374
41375 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
41376
41377         * lib/unicodeio.c (utf8_wctomb): New function.
41378         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
41379         format instead of in UCS-4 with platform dependent endianness.
41380
41381 2000-03-10  Jim Meyering  <meyering@lucent.com>
41382
41383         * m4/lib-check.m4: Look for getspnam in -lgen, too.
41384         From Marco Franzen.
41385
41386 2000-03-07  Paul Eggert  <eggert@twinsun.com>
41387
41388         * lib/savedir.c (savedir): Work even if directory size is
41389         negative; this can happen with some screwy NFS configurations.
41390
41391 2000-03-06  Jim Meyering  <meyering@lucent.com>
41392
41393         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
41394         if it's NULL (because we ran out of memory).  From Bruno Haible.
41395
41396 2000-03-05  Jim Meyering  <meyering@lucent.com>
41397
41398         * lib/localcharset.c ("path-concat.h"): Include.
41399         (get_charset_aliases): Use path_concat instead of ANSI string
41400         concatenation.
41401
41402         * lib/unicodeio.h (PARAMS): Define.
41403         Use it to guard prototype.
41404
41405 2000-03-04  Jim Meyering  <meyering@lucent.com>
41406
41407         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
41408         for lib/localcharset.c.
41409
41410 2000-03-04  Jim Meyering  <meyering@lucent.com>
41411
41412         * lib/Makefile.am (install-exec-local): Create $(libdir) before
41413         installing into it.
41414         (uninstall-local): Uncomment this rule so `make distcheck' works
41415         once again.
41416
41417         * lib/unicodeio.c (<errno.h>): Include it.
41418         (errno): Declare if not defined.
41419
41420         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
41421
41422         * lib/config.charset: New version, incorporating remarks from a linux
41423         i18n mailing list.  From Bruno Haible.
41424
41425 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
41426
41427         * m4/codeset.m4: New file.
41428         * m4/iconv.m4: New file.
41429         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
41430
41431 2000-03-03  Jim Meyering  <meyering@lucent.com>
41432
41433         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
41434
41435 2000-03-02  Jim Meyering  <meyering@lucent.com>
41436
41437         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
41438         the messages come out on separate lines.
41439
41440         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
41441         rather than jm_CHECK_DECLARATIONS.
41442         * m4/decl.m4: Remove now-unused file.
41443
41444         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
41445         geteuid.
41446
41447 2000-03-02  Jim Meyering  <meyering@lucent.com>
41448
41449         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
41450
41451 2000-03-01  Jim Meyering  <meyering@lucent.com>
41452
41453         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
41454         * lib/unicodeio.c: Likewise.
41455
41456 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
41457
41458         * lib/config.charset: New file.
41459         * lib/localcharset.c: New file.
41460         * lib/unicodeio.h, lib/unicodeio.c: New files.
41461         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
41462         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
41463         (noinst_HEADERS): Add unicodeio.h.
41464         (all-local, install-exec-local, charset.alias): New targets.
41465
41466 2000-02-28  Paul Eggert  <eggert@twinsun.com>
41467
41468         * lib/quotearg.c (ALERT_CHAR): New macro.
41469         (quotearg_buffer_restyled): Use it.
41470
41471 2000-02-27  Jim Meyering  <meyering@lucent.com>
41472
41473         * m4/check-decl.m4: Add getenv to the list.
41474
41475 2000-02-27  Jim Meyering  <meyering@lucent.com>
41476
41477         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
41478         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
41479
41480         * lib/backupfile.c: Guard inclusion of stdlib.h with
41481         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
41482         Declare malloc if needed.
41483
41484         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
41485         `#ifndef HAVE_DECL..'
41486         now that autoconf always defines the HAVE_DECL_ symbols.
41487         * lib/human.c: Likewise.
41488         * lib/same.c: Likewise.
41489         * lib/strtoumax.c: Likewise.
41490
41491         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
41492         declaration check was not run.
41493         * lib/hash.c: Likewise.
41494         * lib/human.c: Likewise.
41495         * lib/same.c: Likewise.
41496         * lib/strtoumax.c: Likewise.
41497
41498         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
41499         `.', then first look up the entire `.'-containing string as a login
41500         name.
41501
41502 2000-02-23  Jim Meyering  <meyering@lucent.com>
41503
41504         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
41505         in place of my hack.
41506
41507 2000-02-18  Paul Eggert  <eggert@twinsun.com>
41508
41509         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
41510         (textint): New typedef.
41511         (parser_control): Member year changed from int to textint.
41512         All uses changed.
41513         (YYSTYPE): Removed; replaced by %union with int and textint members.
41514         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
41515         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
41516         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
41517         (tSNUMBER, tUNUMBER): Now of type <textintval>.
41518         (date, number, to_year): Use width of number in digits, not its value,
41519         to determine whether it's a 2-digit year, or a 2-digit time.
41520         (yylex): Store number of digits of numeric tokens.
41521         Reported by John Kendall.
41522
41523         (parser_control): Changed from struct parser_control to typedef (for
41524         consistency).  All uses changed.
41525
41526         (tID): Removed; not used.
41527         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
41528
41529 2000-02-14  Paul Eggert  <eggert@twinsun.com>
41530
41531         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
41532         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
41533
41534 2000-02-12  Jim Meyering  <meyering@lucent.com>
41535
41536         * lib/userspec.c (ISDIGIT): Define it.
41537         (isdigit): Remove definition.
41538         (is_number): Use ISDIGIT, not isdigit.
41539         <libintl.h>: Include.
41540         (_ and N_): Define.
41541         (parse_user_spec): Mark translatable strings.
41542
41543 2000-02-10  Jim Meyering  <meyering@lucent.com>
41544
41545         With these changes, nanosleep.[ch] are finally enough like the other
41546         lib/* replacement files to compile on a few more losing systems.
41547
41548         * lib/nanosleep.h: Don't include config.h.
41549         Remove prototype from declaration of nanosleep.
41550         (PARAMS): Remove now-unneeded definition.
41551         * lib/nanosleep.c: #undef nanosleep.
41552         (rpl_nanosleep): Rename from nanosleep.
41553
41554 2000-02-10  Jim Meyering  <meyering@lucent.com>
41555
41556         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
41557         gnu_nanosleep to rpl_nanosleep.
41558
41559 2000-02-09  Jim Meyering  <meyering@lucent.com>
41560
41561         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
41562         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
41563
41564 2000-02-08  Akim Demaille  <akim@epita.fr>
41565
41566         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
41567         `[' and `]' and remove uses of `changequote'.
41568         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
41569         (AC_SYS_LARGEFILE): Likewise.
41570         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
41571         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
41572         of changequote.
41573         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
41574         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
41575         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
41576         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
41577
41578 2000-02-05  Jim Meyering  <meyering@lucent.com>
41579
41580         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
41581         Remove explicit use of AC_HEADER_TIME.  It is required by
41582         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
41583         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
41584         in autoconf whereby the expansion of the latter ended up preceding
41585         the expansion of its prerequisite, AC_HEADER_TIME.
41586         Reported by Volker Borchert.
41587
41588 2000-02-03  Jim Meyering  <meyering@lucent.com>
41589
41590         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
41591
41592 2000-02-03  Jim Meyering  <meyering@lucent.com>
41593
41594         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
41595         rather than with `#if HAVE_UTMPNAME'.
41596
41597 2000-02-02  Jim Meyering  <meyering@lucent.com>
41598
41599         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
41600         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
41601         Reported by Eli Zaretskii.
41602
41603 2000-02-01  Jim Meyering  <meyering@lucent.com>
41604
41605         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
41606
41607 2000-01-31  Jim Meyering  <meyering@lucent.com>
41608
41609         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
41610         functions.  Add the time.h and sys/time.h headers along with the
41611         AC_REQUIRE'ment of AC_HEADER_TIME.
41612
41613 2000-01-31  Jim Meyering  <meyering@lucent.com>
41614
41615         * lib/nanosleep.h (nanosleep): Guard declaration with
41616         `#if ! HAVE_DECL_NANOSLEEP'.
41617         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
41618         the declaration in that vendor's sys/timers.h.
41619         Reported by Christian Krackowizer.
41620
41621         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
41622         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
41623         (ISPRINT): Likewise.
41624         Reported by Tom Tromey.
41625
41626 2000-01-30  Jim Meyering  <meyering@lucent.com>
41627
41628         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
41629
41630         * m4/prereq.m4 (utmp_includes): Define.
41631         Check for ut_user and ut_name members in both struct utmpx
41632         and struct utmp.
41633
41634 2000-01-30  Jim Meyering  <meyering@lucent.com>
41635
41636         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
41637         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
41638         header files where only utmpx.ut_user is declared.
41639
41640         * lib/readutmp.h (UT_USER): Define.
41641
41642 2000-01-29  Jim Meyering  <meyering@lucent.com>
41643
41644         * m4/lib-check.m4: New file containing library-related checks from
41645         fileutils and sh-utils (textutils had none).
41646
41647 2000-01-28  Jim Meyering  <meyering@lucent.com>
41648
41649         * m4/perl.m4: Change format of warning message to look more like that
41650         from the missing script.  Suggestion from François Pinard.
41651
41652 2000-01-25  Jim Meyering  <meyering@lucent.com>
41653
41654         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
41655         well as time.h in the compile check.
41656         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
41657         Fix typo in cross-compiling case: s/yes/no/.
41658
41659 2000-01-23  Jim Meyering  <meyering@lucent.com>
41660
41661         * m4/jm-macros.m4: Move df-related tests here from
41662         fileutils/configure.in
41663
41664         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
41665         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
41666
41667         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
41668         s/space/ac_fsusage_space/.
41669         (jm_FILE_SYSTEM_USAGE): Take two parameters.
41670
41671         * m4/ftruncate.m4: New file (derived from part of
41672         fileutils/configure.in).
41673         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
41674         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
41675
41676         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
41677         AC_SUBST these here, rather than just in sh-util/configure.in, so
41678         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
41679         all the same.
41680         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
41681         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
41682         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
41683         (AC_SUBST(POW_LIBM)): Likewise.
41684         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
41685
41686 2000-01-23  Jim Meyering  <meyering@lucent.com>
41687
41688         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
41689         obstack.c.
41690
41691 2000-01-22  Jim Meyering  <meyering@lucent.com>
41692
41693         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
41694
41695         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
41696
41697         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
41698         configure.in
41699         (AC_CHECK_HEADERS): Likewise for sh-utils.
41700         (AC_CHECK_HEADERS): Likewise for textutils.
41701         Merge the three lists of headers.
41702
41703         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
41704         from fileutils' configure.in.
41705
41706         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
41707         code. Moved tests into their own function (_jm_DECL_HEADERS) in
41708         check-decl.m4.
41709
41710         * m4/check-decl.m4: Use #if rather than #ifdef.
41711         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
41712         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
41713         (_jm_DECL_HEADERS): Define new function.
41714         (jm_CHECK_DECLARATIONS): Require it.
41715
41716 2000-01-22  Jim Meyering  <meyering@lucent.com>
41717
41718         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
41719         [! HAVE_DECL_STRTOULL]: Declare strtoull.
41720         Required for some AIX systems.  Reported by Christian Krackowizer.
41721         [TESTING] (main): New function.
41722
41723         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
41724         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
41725         letters.
41726
41727         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
41728         iswprint.
41729
41730         * lib/strverscmp.c (ISDIGIT): Define.
41731         (strverscmp): Use ISDIGIT, not isdigit.
41732
41733 2000-01-19  Jim Meyering  <meyering@lucent.com>
41734
41735         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
41736         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
41737         defines `struct timespec' in <sys/time.h>
41738
41739         * m4/c-bs-a.m4: Remove uses of changequote altogether.
41740         Thanks to Akim for explaining.
41741
41742 2000-01-17  Paul Eggert  <eggert@twinsun.com>
41743
41744         * lib/nanosleep.c (nanosleep):
41745         Don't use SA_INTERRUPT to decide whether to call sigaction, as
41746         POSIX.1 doesn't require SA_INTERRUPT and some systems
41747         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
41748         it's been part of POSIX.1 since day 1 (in 1988).
41749
41750 2000-01-17  Jim Meyering  <meyering@lucent.com>
41751
41752         * lib/interlock: Remove unused file.  Reported by François Pinard.
41753
41754 2000-01-16  Paul Eggert  <eggert@twinsun.com>
41755
41756         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
41757         alert, backslash, formfeed, and vertical tab unnecessarily in
41758         shell quoting style.
41759
41760 2000-01-16  Jim Meyering  <meyering@lucent.com>
41761
41762         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
41763         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
41764         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
41765         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
41766
41767 2000-01-16  Jim Meyering  <meyering@lucent.com>
41768
41769         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
41770         because the latter didn't work.
41771
41772 2000-01-15  Jim Meyering  <meyering@lucent.com>
41773
41774         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
41775         (AC_REPLACE_FUNCS): Add memcpy and memset.
41776         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
41777         Add strpbrk.
41778         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
41779
41780 2000-01-12  Jim Meyering  <meyering@lucent.com>
41781
41782         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
41783         (jm_PREREQ): Use it.
41784         (jm_PREREQ_READUTMP): New macro.
41785         (jm_PREREQ): Use it.
41786
41787 2000-01-11  Paul Eggert  <eggert@twinsun.com>
41788
41789         Quote multibyte characters correctly.
41790         * m4/c-bs-a.m4: New file.
41791         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
41792         (jm_PREREQ): Use it.
41793
41794 2000-01-11  Paul Eggert  <eggert@twinsun.com>
41795
41796         * m4/uintmax_t.m4: Port to autoconf 2.13.
41797
41798 2000-01-08  Jim Meyering  <meyering@ascend.com>
41799
41800         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
41801         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
41802
41803 2000-01-04  Jim Meyering  <meyering@ascend.com>
41804
41805         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
41806         jm_STRUCT_DIRENT_D_TYPE.
41807         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
41808         jm_STRUCT_DIRENT_D_INO.
41809         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
41810         jm_STRUCT_UTIMBUF.
41811         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
41812         renamings.
41813         * m4/utime.m4: Likewise.
41814
41815         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
41816         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
41817
41818 2000-01-03  Paul Eggert  <eggert@twinsun.com>
41819
41820         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
41821         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
41822
41823 2000-01-02  Jim Meyering  <meyering@ascend.com>
41824
41825         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
41826         remember if this is necessary.
41827
41828 1999-12-26  Jim Meyering  <meyering@ascend.com>
41829
41830         * m4/jm-macros.m4: Use it here.
41831         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
41832
41833 1999-12-23  Jim Meyering  <meyering@ascend.com>
41834
41835         * m4/jm-macros.m4: Check for clock_gettime (moved from
41836         fileutils/configure.in)
41837         Check for gettimeofday.
41838
41839 1999-12-20  Jim Meyering  <meyering@ascend.com>
41840
41841         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
41842         autoconf-2.14a-1999-12-20.
41843
41844 1999-12-19  Jim Meyering  <meyering@ascend.com>
41845
41846         * m4/lstat-slash.m4: New file.
41847         * m4/jm-macros.m4: Use the new macro:
41848         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41849
41850 1999-12-07  Jim Meyering  <meyering@ascend.com>
41851
41852         * m4/perl.m4: Require that File::Compare be available, too.
41853         Too many systems seem to lack it.
41854
41855         * m4/strftime.m4: Add checks for most of the cpp macros tested in
41856         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
41857
41858 1999-11-18  Paul Eggert  <eggert@twinsun.com>
41859
41860         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
41861         problem with the QNX 4.25 shell, which doesn't propagate exit
41862         status of failed commands inside shell assignments.
41863
41864 1999-11-17  Jim Meyering  <meyering@ascend.com>
41865
41866         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
41867
41868 1999-11-07  Jim Meyering  <meyering@ascend.com>
41869
41870         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
41871
41872 1999-11-06  Jim Meyering  <meyering@ascend.com>
41873
41874         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
41875         * m4/jm-macros.m4 (jm_MACROS): Use it here.
41876
41877 1999-11-05  Jim Meyering  <meyering@ascend.com>
41878
41879         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
41880         configure.in of textutils, fileutils, and sh-utils into this one
41881         (shared between those packages) file.
41882         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
41883         AC_STRUCT_ST_BLKSIZE.
41884
41885 1999-11-03  Jim Meyering  <meyering@ascend.com>
41886
41887         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
41888         of AC_CHECK_TYPE checks includes unistd.h.
41889         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
41890         Suggestion from Akim Demaille.
41891
41892 1999-10-30  Jim Meyering  <meyering@ascend.com>
41893
41894         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
41895         m4-quoted string.
41896         * m4/ls-mntd-fs.m4: Likewise.
41897         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
41898         * m4/jm-winsz1.m4: Likewise.
41899
41900         * m4/const.m4: Remove file, since the fix made it into the experimental
41901         version of autoconf.
41902         * m4/mktime.m4: Likewise.
41903
41904         * m4/check-type.m4: Remove file, now that the latest version of
41905         AC_CHECK_TYPE takes a third arg to specify additional #includes.
41906
41907         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
41908         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
41909         AC_CHECK_TYPE.
41910
41911 1999-10-04  Jim Meyering  <meyering@ascend.com>
41912
41913         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
41914
41915 1999-09-22  Paul Eggert  <eggert@twinsun.com>
41916
41917         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
41918         2.95.1 bug with HP-UX 10.20.
41919
41920 1999-09-17  Jim Meyering  <meyering@ascend.com>
41921
41922         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
41923         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
41924         due to missing strdup (against sh-utils-2.0).
41925
41926 1999-08-29  Jim Meyering  <meyering@ascend.com>
41927
41928         * m4/jm-macros.m4: Require jm_BISON.
41929         * m4/bison.m4: New file.
41930
41931 1999-08-17  Paul Eggert  <eggert@twinsun.com>
41932
41933         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
41934         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
41935
41936 1999-08-05  Jim Meyering  <meyering@ascend.com>
41937
41938         * m4/getline.m4: Rename test file from conftestdata to conftest.data
41939         to avoid conflicts with `conftest' on 8+3 filesystems.
41940         Suggestion from Eli Zaretskii.
41941
41942 1999-08-04  Jim Meyering  <meyering@ascend.com>
41943
41944         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
41945         fileutils and sh-utils (textutils's getline test was inadequate).
41946         (AM_FUNC_GETLINE): Run this test.
41947         (AC_CHECK_FUNCS): Check for getdelim.
41948         Reported by Bob Proulx.
41949
41950 1999-08-02  Jim Meyering  <meyering@ascend.com>
41951
41952         * m4/jm-macros.m4: Add a comment.
41953
41954 1999-08-01  Paul Eggert  <eggert@twinsun.com>
41955
41956         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
41957         <inttypes.h> defines strtoumax as a macro (and not as a
41958         function).
41959
41960 1999-08-01  Paul Eggert  <eggert@twinsun.com>
41961
41962         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
41963         that we can shift, multiply and divide unsigned long long
41964         values; Ultrix cc can't do it.
41965
41966 1999-08-01  Paul Eggert  <eggert@twinsun.com>
41967
41968         * m4/mktime.m4: New file, which is a preview of what should appear
41969         in the next public autoconf release.
41970
41971 1999-08-01  Paul Eggert  <eggert@twinsun.com>
41972
41973         * m4/lfs.m4: Remove this file.
41974         * m4/largefile.m4: New file.  It contains the old contents of
41975         lfs.m4, except that all names with prefix AC_LFS have been
41976         changed to use the prefix AC_SYS_LARGEFILE instead, to be
41977         compatible with future autoconf versions.  Also, some minor m4
41978         quoting problems have been fixed.
41979
41980 1999-08-01  Paul Eggert  <eggert@twinsun.com>
41981
41982         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
41983         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
41984         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
41985         and simplify the shell code.
41986
41987 1999-08-01  Jim Meyering  <meyering@ascend.com>
41988
41989         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
41990         m4.
41991
41992 1999-07-20  Jim Meyering  <meyering@ascend.com>
41993
41994         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
41995
41996 1999-07-15  Jim Meyering  <meyering@ascend.com>
41997
41998         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
41999
42000 1999-05-22  Jim Meyering  <meyering@ascend.com>
42001
42002         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
42003
42004 1999-05-20  Jim Meyering  <meyering@ascend.com>
42005
42006         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
42007         Add a colon after each `then' in case $4 is empty.
42008
42009 1999-05-16  Jim Meyering  <meyering@ascend.com>
42010
42011         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
42012
42013 1999-05-10  Jim Meyering  <meyering@ascend.com>
42014
42015         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
42016
42017         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
42018         AC_FUNC_MKTIME.
42019
42020 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
42021
42022         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
42023
42024 1999-05-04  Paul Eggert  <eggert@twinsun.com>
42025
42026         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
42027         not CPPFLAGS, so that linking works correctly in IRIX.
42028
42029 1999-04-30  Paul Eggert  <eggert@twinsun.com>
42030
42031         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
42032
42033 1999-04-20  Paul Eggert  <eggert@twinsun.com>
42034
42035         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
42036         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
42037         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
42038         jm_AC_TYPE_UNSIGNED_LONG_LONG.
42039         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
42040
42041         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
42042
42043 1999-04-20  Jim Meyering  <meyering@ascend.com>
42044
42045         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
42046         AC_REPLACE xstroull if necessary.  From Paul Eggert.
42047         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
42048
42049 1999-04-18  Jim Meyering  <meyering@ascend.com>
42050
42051         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
42052         * m4/jm-macros.m4: Use it.
42053
42054 1999-04-06  Jim Meyering  <meyering@ascend.com>
42055
42056         * m4/strftime.m4: Remove test for %f.
42057
42058 1999-03-29  Jim Meyering  <meyering@ascend.com>
42059
42060         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
42061         superset of the AC_TYPE_* checks in the textutils, fileutils,
42062         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
42063         AC_TYPE_PID_T.
42064
42065 1999-03-28  Jim Meyering  <meyering@ascend.com>
42066
42067         * m4/jm-macros.m4: Define GNU_PACKAGE here.
42068         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
42069         replaced e.g., in the *.sh files of the sh-utils.
42070
42071 1999-03-20  Jim Meyering  <meyering@ascend.com>
42072
42073         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
42074         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
42075         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
42076
42077 1999-03-19  Jim Meyering  <meyering@ascend.com>
42078
42079         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
42080
42081 1999-03-12  Jim Meyering  <meyering@ascend.com>
42082
42083         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
42084
42085 1999-03-07  Jim Meyering  <meyering@ascend.com>
42086
42087         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
42088         declared.
42089
42090 1999-02-17  Jim Meyering  <meyering@ascend.com>
42091
42092         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
42093         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
42094
42095 1999-02-07  Jim Meyering  <meyering@ascend.com>
42096
42097         * m4/group-member.m4: New file -- extracted from sh-utils'
42098         configure.in.
42099
42100         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
42101         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
42102
42103 1999-02-06  Jim Meyering  <meyering@ascend.com>
42104
42105         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
42106         * m4/fnmatch.m4: Likewise.
42107         * m4/getgroups.m4: Likewise.
42108         * m4/lstat.m4: Likewise.
42109         * m4/malloc.m4: Likewise.
42110         * m4/putenv.m4: Likewise.
42111         * m4/realloc.m4: Likewise.
42112         * m4/regex.m4: Likewise.
42113         * m4/stat.m4: Likewise.
42114         * m4/strftime.m4: Likewise.
42115         Suggestion from Alain Magloire.
42116
42117         * m4/chown.m4: Use `.$ac_objext', not `.o'.
42118         * m4/fnmatch.m4: Likewise.
42119         * m4/getgroups.m4: Likewise.
42120         * m4/getline.m4: Likewise.
42121         * m4/lstat.m4: Likewise.
42122         * m4/malloc.m4: Likewise.
42123         * m4/memcmp.m4: Likewise.
42124         * m4/putenv.m4: Likewise.
42125         * m4/realloc.m4: Likewise.
42126         * m4/regex.m4: Likewise.
42127         * m4/stat.m4: Likewise.
42128         * m4/strftime.m4: Likewise.
42129         Suggestion from Alain Magloire.
42130
42131         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
42132         an argument.
42133
42134         * m4/regex.m4: Add a run-time Test for proper operation of
42135         re_compile_pattern.
42136
42137 1999-01-31  Jim Meyering  <meyering@ascend.com>
42138
42139         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
42140
42141 1999-01-30  Jim Meyering  <meyering@ascend.com>
42142
42143         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
42144
42145         * m4/jm-mktime.m4: Make this a wrapper around the official
42146         AM_FUNC_MKTIME rather than my private copy, now that the official one
42147         is up to date.
42148         * m4/mktime.m4: Remove file.
42149
42150         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
42151         * m4/uptime.m4: Likewise.
42152         * m4/uintmax_t.m4: Likewise.
42153
42154 1999-01-28  Jim Meyering  <meyering@ascend.com>
42155
42156         * m4/jm-macros.m4: Use jm_AFS.
42157         * m4/afs.m4: New file (from fileutils' configure.in).
42158
42159         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
42160         * m4/chown.m4: Likewise.
42161         * m4/d-ino.m4: Likewise.
42162         * m4/d-type.m4: Likewise.
42163         * m4/fnmatch.m4: Likewise.
42164         * m4/getgroups.m4: Likewise.
42165         * m4/gettext.m4: Likewise.
42166         * m4/jm-mktime.m4: Likewise.
42167         * m4/jm-winsz2.m4: Likewise.
42168         * m4/lcmessage.m4: Likewise.
42169         * m4/ls-mntd-fs.m4: Likewise.
42170         * m4/malloc.m4: Likewise.
42171         * m4/memcmp.m4: Likewise.
42172         * m4/putenv.m4: Likewise.
42173         * m4/realloc.m4: Likewise.
42174         * m4/st_mtim.m4: Likewise.
42175         * m4/strftime.m4: Likewise.
42176
42177 1999-01-16  Jim Meyering  <meyering@ascend.com>
42178
42179         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
42180         (ARGMATCH_DIE_DECL): Define.
42181
42182 1999-01-12  Jim Meyering  <meyering@ascend.com>
42183
42184         * m4/Makefile.am.in: Rewrite to avoid using fmt.
42185         Reported by Lars Hecking.
42186
42187 1999-01-10  Jim Meyering  <meyering@ascend.com>
42188
42189         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
42190         gross kludge.
42191         * m4/inttypes_h.m4: Likewise.
42192         * m4/lstat.m4: Likewise.
42193         * m4/malloc.m4: Likewise.
42194         * m4/readdir.m4: Likewise.
42195         * m4/realloc.m4: Likewise.
42196         * m4/st_dm_mode.m4: Likewise.
42197         * m4/stat.m4: Likewise.
42198         * m4/utimbuf.m4: Likewise.
42199         * m4/utimes.m4: Likewise.
42200
42201         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
42202         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
42203         comments in config.h.in are meaningful.
42204
42205         * m4/jm-macros.m4: Require autoconf-2.13 here.
42206
42207         * m4/regex.m4: By default, don't use the included regex.c on systems
42208         with glibc 2.  Suggestion from Uli Drepper.
42209
42210 1999-01-02  Jim Meyering  <meyering@ascend.com>
42211
42212         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
42213
42214 1998-12-18  Jim Meyering  <meyering@ascend.com>
42215
42216         * m4/Makefile.am.in (Makefile.am): Simplify rule.
42217         Based on a suggestion from Lars Hecking.
42218
42219 1998-11-16  Paul Eggert  <eggert@twinsun.com>
42220
42221         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
42222
42223 1998-11-16  Jim Meyering  <meyering@ascend.com>
42224
42225         * m4/lfs.m4: Double-quote the `uname...` expression.
42226
42227 1998-11-14  Jim Meyering  <meyering@ascend.com>
42228
42229         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
42230         * m4/stat.m4: Likewise.
42231
42232 1998-11-03  Jim Meyering  <meyering@ascend.com>
42233
42234         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
42235         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
42236
42237 1998-10-18  Jim Meyering  <meyering@ascend.com>
42238
42239         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
42240
42241 1998-10-17  Jim Meyering  <meyering@ascend.com>
42242
42243         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
42244         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
42245         calls for those previously hard-coded headers.  Instead, take a new
42246         parameter.
42247         (jm_CHECK_DECLARATIONS): Reflect interface change.
42248         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
42249         (jm_CHECK_DECL_LOCALTIME_R): New macro.
42250
42251         * m4/mktime.m4: Test for spring-forward gap before long-running test.
42252
42253 1998-10-14  Jim Meyering  <meyering@ascend.com>
42254
42255         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
42256         instead of "TZ=America/Vancouver".  From Paul Eggert.
42257
42258 1998-10-11  Jim Meyering  <meyering@ascend.com>
42259
42260         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
42261         This adds a test for a recently added compatibility fix for mktime.c.
42262         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
42263
42264 1998-09-27  Jim Meyering  <meyering@ascend.com>
42265
42266         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
42267
42268         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
42269         ../configure.in, including a change from Gordon Matzigkeit to allow
42270         cross-compiling for the Hurd.
42271
42272         * m4/glibc.m4: New file/macro to test for the GNU C Library
42273         versions 1 and 2.  From Gordon Matzigkeit.
42274         Indent.
42275
42276 1998-09-21  Jim Meyering  <meyering@ascend.com>
42277
42278         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
42279
42280 1998-08-18  Paul Eggert  <eggert@twinsun.com>
42281
42282         Port nanosecond-resolution times to UnixWare 2.1.2 and
42283         pedantic Solaris 2.6.
42284
42285         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
42286         AC_STRUCT_ST_MTIM.
42287         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
42288         Generate name of ns member, instead of just 1 or undef.
42289         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
42290
42291 1998-08-15  Jim Meyering  <meyering@ascend.com>
42292
42293         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
42294         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
42295         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
42296         instead of jm_TYPE_SSIZE_T.
42297
42298 1998-08-12  Jim Meyering  <meyering@ascend.com>
42299
42300         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
42301
42302 1998-08-02  Jim Meyering  <meyering@ascend.com>
42303
42304         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
42305         in acconfig.h manually.
42306
42307 1998-07-31  Paul Eggert  <eggert@twinsun.com>
42308
42309         * m4/st_mtim.m4: New file.
42310
42311 1998-07-28  Jim Meyering  <meyering@ascend.com>
42312
42313         * m4/utimes.m4: Undef stat.
42314
42315 1998-07-25  Jim Meyering  <meyering@ascend.com>
42316
42317         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
42318         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
42319
42320 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
42321
42322         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
42323         uid and gid actually remain unchanged.
42324
42325 1998-07-07  Jim Meyering  <meyering@ascend.com>
42326
42327         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
42328
42329 1998-07-04  Jim Meyering  <meyering@ascend.com>
42330
42331         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
42332         to prove that this macro can be used in packages without regex.c.
42333
42334 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
42335
42336         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
42337         is to be used.
42338
42339 1998-07-03  Jim Meyering  <meyering@ascend.com>
42340
42341         * m4/gettext.m4: Add -lintl if it's found to be necessary.
42342
42343         * m4/gettext.m4: New file -- from gettext-0.10.35.
42344         * m4/lcmessage.m4: Likewise.
42345         * m4/progtest.m4: Likewise.
42346
42347         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
42348         * m4/jm-macros.m4: Require the new macro.
42349
42350 1998-06-29  Jim Meyering  <meyering@ascend.com>
42351
42352         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
42353         for the definition of NGROUPS (used in a system header included
42354         by sys/mount.h).
42355
42356 1998-06-28  Jim Meyering  <meyering@ascend.com>
42357
42358         * m4/ls-mntd-fs.m4: New file.
42359         * m4/fstypename.m4: New file.
42360
42361         * m4/jm-macros.m4: Require the new macro.
42362         * m4/jm-glibc-io.m4: New file.
42363
42364 1998-05-19  Jim Meyering  <meyering@ascend.com>
42365
42366         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
42367         * m4/lchown.m4: New file.
42368
42369         * m4/Makefile.am.in: New file.
42370         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
42371
42372 1998-05-14  Jim Meyering  <meyering@ascend.com>
42373
42374         * m4/Makefile.am (EXTRA_DIST): Add them.
42375         * m4/jm-macros.m4: New file.
42376         * m4/utimbuf.m4: New file.
42377
42378 1998-05-12  Jim Meyering  <meyering@ascend.com>
42379
42380         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
42381
42382 1998-05-11  Jim Meyering  <meyering@ascend.com>
42383
42384         * m4/isc-posix.m4: New file.
42385
42386 1998-05-10  Jim Meyering  <meyering@ascend.com>
42387
42388         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
42389
42390 1998-05-09  Jim Meyering  <meyering@ascend.com>
42391
42392         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
42393         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
42394         with automake.
42395
42396         * m4/ssize_t.m4: New file.
42397         * m4/mktime.m4: Remove file -- the new automake has this now.
42398
42399 1998-04-26  Jim Meyering  <meyering@ascend.com>
42400
42401         * m4/assert.m4: New file.
42402         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
42403
42404 1998-04-05  Jim Meyering  <meyering@ascend.com>
42405
42406         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
42407         (jm_PREREQ): Use it here.
42408
42409 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
42410
42411         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
42412         in acconfig.h.
42413
42414 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
42415
42416         * m4/prereq.m4: New file.
42417         * m4/error.m4: New file.
42418         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
42419
42420 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
42421
42422         * m4/getline.m4: Don't set am_cv_func_working_getline before the
42423         cache-check for the same variable -- that defeated the purpose of
42424         the test; the test program was never run.  This was a problem only
42425         on systems with losing getline functions -- HP-UX 10.20 is one.
42426         Reported by Bjorn Helgaas.
42427
42428 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
42429
42430         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
42431
42432 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
42433
42434         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
42435
42436         * m4/const.m4: New file.  Use an initializer in this declaration
42437         typedef int charset[2]; const charset x;
42438         Reported by Bob Glickstein.
42439
42440 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
42441
42442         * m4/chown.m4: Fix reversed types on -1 args to chown.
42443         From Kaveh Ghazi.
42444
42445 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
42446
42447         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
42448         Add lseek and memchr.
42449
42450         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
42451         T.E.Dickey <dickey@clark.net> said that some older preprocessors
42452         have a 20-character limit on names.
42453
42454 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
42455
42456         * m4/inttypes_h.m4: New file.
42457         * m4/uintmax_t.m4: New file.
42458         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
42459
42460
42461         -----
42462
42463         Local Variables:
42464         coding: utf-8
42465         End:
42466
42467         Copyright (C) 1997-2008 Free Software Foundation, Inc.
42468
42469         Copying and distribution of this file, with or without
42470         modification, are permitted provided the copyright notice
42471         and this notice are preserved.