770a8228db44b95cffb92c74215db62563f6327e
[gnulib.git] / ChangeLog
1 2008-08-29  Bruno Haible  <bruno@clisp.org>
2
3         Avoid some "gcc -pedantic" warnings.
4         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
5         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
6         * lib/dirent.in.h: Likewise.
7         * lib/fcntl.in.h: Likewise.
8         * lib/float.in.h: Likewise.
9         * lib/iconv.in.h: Likewise.
10         * lib/inttypes.in.h: Likewise.
11         * lib/locale.in.h: Likewise.
12         * lib/math.in.h: Likewise.
13         * lib/netinet_in.in.h: Likewise.
14         * lib/search.in.h: Likewise.
15         * lib/signal.in.h: Likewise.
16         * lib/stdarg.in.h: Likewise.
17         * lib/stdint.in.h: Likewise.
18         * lib/stdio.in.h: Likewise.
19         * lib/stdlib.in.h: Likewise.
20         * lib/string.in.h: Likewise.
21         * lib/strings.in.h: Likewise.
22         * lib/sys_select.in.h: Likewise.
23         * lib/sys_socket.in.h: Likewise.
24         * lib/sys_stat.in.h: Likewise.
25         * lib/sys_time.in.h: Likewise.
26         * lib/sysexits.in.h: Likewise.
27         * lib/time.in.h: Likewise.
28         * lib/unistd.in.h: Likewise.
29         * lib/wchar.in.h: Likewise.
30         * lib/wctype.in.h: Likewise.
31         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
32         * modules/fchdir (Makefile.am): Likewise.
33         * modules/fcntl (Makefile.am): Likewise.
34         * modules/float (Makefile.am): Likewise.
35         * modules/iconv_open (Makefile.am): Likewise.
36         * modules/inttypes (Makefile.am): Likewise.
37         * modules/locale (Makefile.am): Likewise.
38         * modules/math (Makefile.am): Likewise.
39         * modules/netinet_in (Makefile.am): Likewise.
40         * modules/search (Makefile.am): Likewise.
41         * modules/signal (Makefile.am): Likewise.
42         * modules/stdarg (Makefile.am): Likewise.
43         * modules/stdint (Makefile.am): Likewise.
44         * modules/stdio (Makefile.am): Likewise.
45         * modules/stdlib (Makefile.am): Likewise.
46         * modules/string (Makefile.am): Likewise.
47         * modules/strings (Makefile.am): Likewise.
48         * modules/sys_select (Makefile.am): Likewise.
49         * modules/sys_socket (Makefile.am): Likewise.
50         * modules/sys_stat (Makefile.am): Likewise.
51         * modules/sys_time (Makefile.am): Likewise.
52         * modules/sysexits (Makefile.am): Likewise.
53         * modules/time (Makefile.am): Likewise.
54         * modules/unistd (Makefile.am): Likewise.
55         * modules/wchar (Makefile.am): Likewise.
56         * modules/wctype (Makefile.am): Likewise.
57         Reported by Reuben Thomas <rrt@sc3d.org>.
58
59 2008-08-29  Bruno Haible  <bruno@clisp.org>
60
61         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
62         any more.
63
64 2008-08-29  Simon Josefsson  <simon@josefsson.org>
65
66         * MODULES.html.sh (Misc): Add bitrotate.
67
68         * modules/bitrotate: New file.
69
70         * lib/bitrotate.h: New file.
71
72         * modules/bitrotate-tests: New file.
73
74         * tests/test-bitrotate.c: New file.
75
76         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
77         on the bitrotate module.
78
79         * lib/arctwo.c: Use new bitrotate module.
80
81 2008-08-29  Jim Meyering  <meyering@redhat.com>
82
83         bootstrap: merge changes from coreutils
84         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
85         of copied files.  Remove a kludge, now that this is fixed.
86         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
87         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
88         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
89
90 2008-08-29  Bruno Haible  <bruno@clisp.org>
91
92         * MODULES.html.sh: Remove --cvs-urls option.
93
94 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
95
96         maint.mk: adjust to file name change
97         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
98
99 2008-08-28  Jim Meyering  <meyering@redhat.com>
100
101         * modules/getndelim2 (License): Relicense to LGPLv2+.
102
103 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
104
105         * lib/getdelim.c (flockfile, funlockfile): Make all of them
106         dummy if one is not available.  Do not touch them if
107         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
108         (getc_maybe_unlocked): New.
109         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
110
111 2008-08-26  Eric Blake  <ebb9@byu.net>
112
113         doc/INSTALL: resync from autoconf
114         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
115         (INSTALL_PRELUDE): Delete; this is done more efficiently by
116         moving...
117         * install.texi [!autoconf]: ...here.  Resync from autoconf.
118         * INSTALL: Regenerate.
119         * INSTALL.ISO: New file.
120         * INSTALL.UTF-8: Likewise.
121
122 2008-08-26  Jim Meyering  <meyering@redhat.com>
123
124         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
125         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
126         these definitions conditional, so that they may be overridden, too.
127
128 2008-08-26  Bruno Haible  <bruno@clisp.org>
129
130         Generate INSTALL file variants with prettier quotes.
131         * doc/Makefile (INSTALL_PRELUDE): New macro.
132         (INSTALL): Use it.
133         (INSTALL.ISO, INSTALL.UTF-8): New rules.
134
135 2008-08-26  Bruno Haible  <bruno@clisp.org>
136
137         Run makeinfo in an English locale.
138         * doc/Makefile (MAKEINFO): New variable.
139
140 2008-08-26  Bruno Haible  <bruno@clisp.org>
141
142         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
143         Suggested by Eric Blake.
144
145 2008-08-25  Bruno Haible  <bruno@clisp.org>
146
147         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
148
149 2008-08-25  Eric Blake  <ebb9@byu.net>
150
151         c-stack: test that stack overflow can be caught
152         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
153         that platform allows handling stack overflow; at least OS/2 EMX
154         has sigaltstack, but crashes before transferring control to
155         handler on stack overflow.
156         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
157         check for HAVE_STACK_OVERFLOW_HANDLING.
158         Reported by Elbert Pol.
159
160 2008-08-25  Bruno Haible  <bruno@clisp.org>
161
162         * doc/posix-functions/strftime.texi: Fix description of strftime
163         module.
164
165 2008-08-24  Bruno Haible  <bruno@clisp.org>
166
167         * tests/uniwidth/test-uc_width2.c: New file.
168         * tests/uniwidth/test-uc_width2.sh: New file.
169         * modules/uniwidth/width-tests (Files): Add the new files.
170         (TESTS): Add uniwidth/test-uc_width2.sh.
171         (TESTS_ENVIRONMENT): New variable.
172         (check_PROGRAMS): Add test-uc_width2.
173         (test_uc_width2_SOURCES): New variable.
174
175         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
176         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
177         not 0x00AB.
178         Reported by Alexander V. Lukyanov <lav@netis.ru>.
179
180 2008-08-22  Eric Blake  <ebb9@byu.net>
181
182         test-lock, test-tls: mention why a test is skipped
183         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
184         skipped.
185         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
186
187         count-one-bits: relax license
188         * modules/count-one-bits (License): Relicense to LGPLv2+.
189         Suggested by Ludovic Courtès, approved by Ben Pfaff.
190
191 2008-08-22  Andreas Schwab  <schwab@suse.de>
192
193         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
194         Remove spurious space in assignment.
195
196 2008-08-21  Simon Josefsson  <simon@josefsson.org>
197
198         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
199         Paul Eggert <eggert@CS.UCLA.EDU>.
200
201 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
202
203         * modules/gettext: Add m4/threadlib.m4.
204
205 2008-08-19  Eric Blake  <ebb9@byu.net>
206
207         test-c-stack: fix compilation failure on FreeBSD 5.0
208         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
209         headers before <sys/resource.h>.
210         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
211         the bug.
212         Reported by Nelson H. F. Beebe.
213
214         strverscmp: migrate from "strverscmp.h" to <string.h>
215         * modules/string (Makefile.am): Add new hooks.
216         * modules/strverscmp (Files): Remove strverscmp.h.
217         (Depends-on): Add string.
218         (configure.ac): Add indicator.
219         (Include): Mention new header.
220         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
221         defaults.
222         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
223         results.
224         * lib/strverscmp.h: Delete.
225         * lib/string.in.h (strverscmp): Provide declaration, when needed.
226         * tests/test-strverscmp.c (includes): Adjust client.
227         * lib/check-version.c (includes): Likewise.
228         * NEWS: Document the change.
229
230         strverscmp: add unit test
231         * modules/strverscmp-tests: New file.
232         * tests/test-strverscmp.c: Likewise.
233
234 2008-08-19  Simon Josefsson  <simon@josefsson.org>
235
236         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
237         regarding Windows crypto stuff, from Mono.
238
239 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
240
241         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
242         if present, for intel RND.  Return error on failures.
243
244 2008-08-18  Ben Pfaff  <blp@gnu.org>
245
246         gitlog-to-changelog: give better diagnostic for failed pipe-open
247         * build-aux/gitlog-to-changelog: Improve error message: suggest
248         that the version of Git may be too old.
249
250 2008-08-18  Simon Josefsson  <simon@josefsson.org>
251
252         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
253         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
254
255 2008-08-18  Bruno Haible  <bruno@clisp.org>
256
257         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
258         pthread_in_use().
259
260 2008-08-18  Bruno Haible  <bruno@clisp.org>
261
262         * lib/glthread/threadlib.c: Include <pthread.h>.
263
264 2008-08-18  Bruno Haible  <bruno@clisp.org>
265
266         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
267         glthread_recursive_lock_* macros.
268         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
269         Fix syntax error.
270
271 2008-08-18  Bruno Haible  <bruno@clisp.org>
272
273         * lib/glthread/thread.c: Avoid forcing a context switch right after
274         thread creation.
275
276 2008-08-17  Bruno Haible  <bruno@clisp.org>
277
278         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
279         * lib/glthread/thread.h: Provide Win32 specific implementation.
280         * modules/thread (Files): Add lib/glthread/thread.c.
281         (Depends-on): Add lock.
282         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
283
284 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
285
286         New module 'yield'.
287         * modules/yield: New file.
288         * lib/glthread/yield.h: New file.
289         * m4/yield.m4: New file.
290         * MODULES.html.sh (Multithreading): Add yield.
291
292 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
293
294         New module 'thread'.
295         * modules/thread: New file.
296         * lib/glthread/thread.h: New file.
297         * m4/thread.m4: New file.
298         * MODULES.html.sh (Multithreading): Add thread.
299
300 2008-08-17  Bruno Haible  <bruno@clisp.org>
301
302         * lib/glthread/lock.h: Include <stdlib.h> always.
303         * lib/glthread/tls.h: Likewise.
304         * lib/glthread/cond.h: Likewise.
305
306 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
307
308         New module 'cond'.
309         * modules/cond: New file.
310         * lib/glthread/cond.h: New file.
311         * lib/glthread/cond.c: New file.
312         * m4/cond.m4: New file.
313         * MODULES.html.sh (Multithreading): Add cond.
314
315 2008-08-16  Eric Blake  <ebb9@byu.net>
316
317         c-stack: fix regression on Irix 5.3 from 2008-06-21
318         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
319         sa_sigaction...
320         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
321         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
322         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
323         * modules/signal (Makefile.am): Use the value.
324         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
325         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
326         * doc/posix-headers/signal.texi (signal.h): Document this
327         portability issue.
328         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
329         Reported by Tom G. Christensen.
330
331 2008-08-17  Bruno Haible  <bruno@clisp.org>
332
333         New module 'threadlib'.
334         * modules/threadlib: New file.
335         * lib/glthread/threadlib.c: New file, extracted from
336         lib/glthread/lock.c.
337         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
338         functions.
339         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
340         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
341         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
342         macros.
343         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
344         (gl_DISABLE_THREADS): Remove macro.
345         * modules/lock (Files): Remove build-aux/config.rpath.
346         (Depends-on): Remove havelib. Add threadlib.
347         (configure.ac-early): Remove section.
348         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
349         * modules/tls (Depends-on): Remove lock. Add threadlib.
350         (Link): New section, copied from threadlib.
351         * MODULES.html.sh (Multithreading): Add threadlib.
352
353 2008-08-14  Bruno Haible  <bruno@clisp.org>
354
355         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
356         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
357         glthread_rwlock_unlock, glthread_rwlock_destroy,
358         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
359         glthread_recursive_lock_destroy): Define as macros always.
360         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
361         glthread_lock_lock.
362         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
363         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
364         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
365         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
366         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
367         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
368         (glthread_recursive_lock_lock_func): Renamed from
369         glthread_recursive_lock_lock.
370         (glthread_recursive_lock_unlock_func): Renamed from
371         glthread_recursive_lock_unlock.
372         (glthread_recursive_lock_destroy_func): Renamed from
373         glthread_recursive_lock_destroy.
374
375 2008-08-14  Bruno Haible  <bruno@clisp.org>
376
377         * lib/glthread/lock.h: Renamed from lib/lock.h.
378         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
379         * lib/glthread/tls.h: Renamed from lib/tls.h.
380         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
381         * lib/fstrcmp.c: Update includes.
382         * lib/strsignal.c: Update includes.
383         * modules/lock (Files, Makefile.am): Update.
384         (Include): Change to "glthread/lock.h".
385         * modules/tls (Files, Makefile.am): Update.
386         (Include): Change to "glthread/tls.h".
387         * tests/test-lock.c: Update includes.
388         * tests/test-tls.c: Update includes.
389         * NEWS: Mention the renamed header files.
390
391 2008-08-11  Jim Meyering  <meyering@redhat.com>
392
393         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
394
395 2008-08-11  Eric Blake  <ebb9@byu.net>
396
397         test-c-stack: avoid C99-ism
398         * tests/test-c-stack.c (main): Fix whitespace, move declaration
399         before statement.
400         Reported by Alain Guibert.
401
402 2008-08-10  Jim Meyering  <meyering@redhat.com>
403
404         ensure that return value of uinttostr et al are not ignored
405         * lib/inttostr.h (__GNUC_PREREQ): Define.
406         (__attribute_warn_unused_result__): Define.
407         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
408
409 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
410
411         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
412         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
413
414 2008-08-07  Jim Meyering  <meyering@redhat.com>
415
416         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
417
418         * modules/mkstemp (License): Relicense under LGPLv2+.
419         * modules/tempname (License): Likewise.
420
421 2008-08-06  Bruno Haible  <bruno@clisp.org>
422
423         * lib/poll.c (poll): Further micro-optimization.
424
425 2008-08-06  Jim Meyering  <meyering@redhat.com>
426
427         inet_pton.c: use locale-independent tolower
428         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
429         (inet_pton6): Use c_tolower rather than tolower.
430         * modules/inet_pton (Depends-on): Add c-ctype.
431
432 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
433
434         * lib/poll.c (poll): Avoid division when timeout is 0, cache
435         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
436
437 2008-08-06  Jim Meyering  <meyering@redhat.com>
438
439         * modules/inet_pton (License): Relicense under LGPLv2+.
440
441 2008-08-03  Bruno Haible  <bruno@clisp.org>
442
443         Additional non-aborting API for lock and tls.
444         * lib/lock.h: Include <errno.h>.
445         (glthread_lock_init): New macro/function.
446         (gl_lock_init): Define as wrapper around glthread_lock_init.
447         (glthread_lock_lock): New macro/function.
448         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
449         (glthread_lock_unlock): New macro/function.
450         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
451         (glthread_lock_destroy): New macro/function.
452         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
453         (glthread_rwlock_init): New macro/function.
454         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
455         (glthread_rwlock_rdlock): New macro/function.
456         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
457         (glthread_rwlock_wrlock): New macro/function.
458         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
459         (glthread_rwlock_unlock): New macro/function.
460         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
461         (glthread_rwlock_destroy): New macro/function.
462         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
463         (glthread_recursive_lock_init): New macro/function.
464         (gl_recursive_lock_init): Define as wrapper around
465         glthread_recursive_lock_init.
466         (glthread_recursive_lock_lock): New macro/function.
467         (gl_recursive_lock_lock): Define as wrapper around
468         glthread_recursive_lock_lock.
469         (glthread_recursive_lock_unlock): New macro/function.
470         (gl_recursive_lock_unlock): Define as wrapper around
471         glthread_recursive_lock_unlock.
472         (glthread_recursive_lock_destroy): New macro/function.
473         (gl_recursive_lock_destroy): Define as wrapper around
474         glthread_recursive_lock_destroy.
475         (glthread_once): New macro/function.
476         (gl_once): Define as wrapper around glthread_once.
477         Update function declarations.
478         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
479         glthread_rwlock_init. Return error code.
480         (glthread_rwlock_rdlock_multithreaded): Renamed from
481         glthread_rwlock_rdlock. Return error code.
482         (glthread_rwlock_wrlock_multithreaded): Renamed from
483         glthread_rwlock_wrlock. Return error code.
484         (glthread_rwlock_unlock_multithreaded): Renamed from
485         glthread_rwlock_unlock. Return error code.
486         (glthread_rwlock_destroy_multithreaded): Renamed from
487         glthread_rwlock_destroy. Return error code.
488         (glthread_recursive_lock_init_multithreaded): Renamed from
489         glthread_recursive_lock_init. Return error code.
490         (glthread_recursive_lock_lock_multithreaded): Renamed from
491         glthread_recursive_lock_lock. Return error code.
492         (glthread_recursive_lock_unlock_multithreaded): Renamed from
493         glthread_recursive_lock_unlock. Return error code.
494         (glthread_recursive_lock_destroy_multithreaded): Renamed from
495         glthread_recursive_lock_destroy. Return error code.
496         (glthread_once_call): Make static.
497         (glthread_once_multithreaded): Renamed from glthread_once.
498         * lib/tls.h: Include <errno.h>.
499         (glthread_tls_key_init): New macro/function.
500         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
501         (glthread_tls_set): New macro/function.
502         (gl_tls_set): Define as wrapper around glthread_tls_set.
503         (glthread_tls_key_destroy): New macro/function.
504         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
505         Update function declarations.
506         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
507         glthread_tls_get.
508         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
509
510 2008-08-04  Eric Blake  <ebb9@byu.net>
511
512         gnumakefile: use space, not TAB, outside of targets
513         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
514
515 2008-08-02  Jim Meyering  <meyering@redhat.com>
516
517         getdate.y: avoid locale-dependent date parsing failure
518         In Turkish locales, getdate would fail to recognize keywords
519         containing a lowercase "i".  The solution is not to rely on
520         locale-sensitive case-conversion.
521         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
522         (lookup_word): Use c_toupper in place of toupper.
523         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
524         Reported by Vefa Bicakci <bicave@superonline.com> in
525         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
526         * modules/getdate (Depends-on): Add c-ctype.
527
528 2008-08-02  Bruno Haible  <bruno@clisp.org>
529
530         * gnulib-tool (func_import): When updating or creating a .gitignore
531         file, prepend each added line with a slash, and ignore leading slashes
532         from the existing lines.
533         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
534
535 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
536
537         Portability fix for GNU make 3.79.1.
538         * top/GNUmakefile: Avoid 'else COND', which older GNU make
539         versions do not understand.
540
541 2008-08-01  Bruno Haible  <bruno@clisp.org>
542
543         Work around bug of HP-UX 10.20 cc with -0.0 literal.
544         * tests/test-isnanf.h (zero): New variable.
545         (main): Avoid literal -0.0f.
546         * tests/test-isnand.h (zero): New variable.
547         (main): Avoid literal -0.0.
548         * tests/test-isnanl.h (zero): New variable.
549         (main): Avoid literal -0.0L.
550         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
551         (test_float, test_double, test_long_double): Avoid literals -0.0f,
552         -0.0, -0.0L.
553         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
554         (test_signbitd): Avoid literal -0.0.
555         (test_signbitl): Avoid literal -0.0L.
556         * tests/test-ceilf1.c (zero): New variable.
557         (main): Avoid literal -0.0f.
558         * tests/test-ceill.c (zero): New variable.
559         (main): Avoid literal -0.0L.
560         * tests/test-floorf1.c (zero): New variable.
561         (main): Avoid literal -0.0f.
562         * tests/test-floorl.c (zero): New variable.
563         (main): Avoid literal -0.0L.
564         * tests/test-roundf1.c (zero): New variable.
565         (main): Avoid literal -0.0f.
566         * tests/test-round1.c (zero): New variable.
567         (main): Avoid literal -0.0.
568         * tests/test-roundl.c (zero): New variable.
569         (main): Avoid literal -0.0L.
570         * tests/test-truncf1.c (zero): New variable.
571         (main): Avoid literal -0.0f.
572         * tests/test-trunc1.c (zero): New variable.
573         (main): Avoid literal -0.0.
574         * tests/test-truncl.c (zero): New variable.
575         (main): Avoid literal -0.0L.
576         * tests/test-frexp.c (zero): New variable.
577         (main): Avoid literal -0.0.
578         * tests/test-frexpl.c (zero): New variable.
579         (main): Avoid literal -0.0L.
580         * tests/test-ldexpl.c (zero): New variable.
581         (main): Avoid literal -0.0L.
582         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
583         (zerod, zerol): New variables.
584         (test_function): Avoid literals -0.0, -0.0L.
585         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
586         (zerod, zerol): New variables.
587         (test_function): Avoid literals -0.0, -0.0L.
588         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
589         (zerod, zerol): New variables.
590         (test_function): Avoid literals -0.0, -0.0L.
591         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
592         (zerod, zerol): New variables.
593         (test_function): Avoid literals -0.0, -0.0L.
594         * tests/test-strtod.c (zero): New variable.
595         (main): Avoid literal -0.0.
596         Reported by Jonathan C. Patschke <jp@centtech.com>.
597
598 2008-07-31  Jim Meyering  <meyering@redhat.com>
599
600         sha256.h: correct definition of SHA224_DIGEST_SIZE
601         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
602         Reported by Paulie Pena IV <paulie4@gmail.com>.
603         Define as 224 / 8, rather than as a literal.
604         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
605         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
606         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
607
608 2008-07-31  Bruno Haible  <bruno@clisp.org>
609
610         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
611         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
612         Reported by Jonathan Patschke <jp@centtech.com>.
613
614 2008-07-31  Bruno Haible  <bruno@clisp.org>
615
616         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
617         Reported by Paolo Bonzini <bonzini@gnu.org>.
618
619 2008-07-30  Eric Blake  <ebb9@byu.net>
620
621         test-strtod: allow compilation without -lm
622         * tests/test-strtod.c (main): Avoid link dependence on fabs.
623         Reported by Dennis Clarke <blastwave@gmail.com>.
624
625 2008-07-28  Jim Meyering  <meyering@redhat.com>
626
627         bootstrap: work also when there are no .po files in po/
628         * build-aux/bootstrap (update_po_files): Complete the change
629         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
630
631 2008-07-27  Jim Meyering  <meyering@redhat.com>
632
633         * users.txt: Add zile.
634
635 2008-07-26  Ben Pfaff  <blp@gnu.org>
636
637         Add missing dependencies on new m4/exponent[fdl].m4 files.
638         * modules/isnanf-nolibm: Add m4/exponentf.m4.
639         * modules/isnand-nolibm: Add m4/exponentd.m4.
640         * modules/isnanl-nolibm: Add m4/exponentl.m4.
641         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
642         m4/isnan[fdl].m4, because the macros actually used moved.
643         Reported by Jim Meyering.
644
645 2008-07-14  Ben Pfaff  <blp@gnu.org>
646
647         Add isinf module.
648         * lib/isinf.c: New file.
649         * lib/math.in.h: Define isinf macro if we have decided to replace
650         it.
651         * m4/isinf.m4: New file.
652         * m4/math_h.m4: Initialize and substitute variables for isinf
653         module.
654         * modules/isinf: New file.
655         * modules/isinf-tests: New file.
656         * modules/math: Add substitutions for new module.
657         * tests/test-isinf.c: New file.
658         * doc/posix-functions/isinf.texi: Mention new module.
659         * MODULES.html.sh: Mention new module.
660
661 2008-07-14  Ben Pfaff  <blp@gnu.org>
662
663         Factor out some macros for use by additional modules.
664         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
665         exponentf.m4.
666         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
667         exponentd.m4.
668         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
669         file exponentl.m4.
670         * m4/exponentf.m4: New file.
671         * m4/exponentd.m4: New file.
672         * m4/exponentl.m4: New file.
673         * modules/isnanf: Use new file m4/exponentf.m4.
674         * modules/isnand: Use new file m4/exponentd.m4.
675         * modules/isnanl: Use new file m4/exponentl.m4.
676
677 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
678
679         mktime.c: normalize tp->tm_isdst value to -1/0/1.
680         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
681         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
682         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
683
684         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
685         readlink on platforms without PATH_MAX.
686
687 2008-07-21  Eric Blake  <ebb9@byu.net>
688
689         Warn, not fail, on stale version.
690         * top/GNUmakefile (_curr-ver): Tone down previous patch.
691
692         Don't allow installation with stale devel version number.
693         * top/GNUmakefile (_is-install-target): New macro.
694         (_curr-ver): Forbid installation with stale version number.
695
696 2008-07-20  Bruno Haible  <bruno@clisp.org>
697
698         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
699         TESTS_ENVIRONMENT.
700         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
701
702 2008-07-20  Bruno Haible  <bruno@clisp.org>
703
704         * lib/c-stack.h (c_stack_action): Add documentation.
705         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
706
707 2008-07-20  Bruno Haible  <bruno@clisp.org>
708
709         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
710         * modules/readlink (License): Likewise.
711
712 2008-07-17  Eric Blake  <ebb9@byu.net>
713
714         * modules/c-stack (Link): Fix typo.
715
716         Make c-stack use libsigsegv, when available.
717         * modules/c-stack (Depends-on): Add libsigsegv.
718         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
719         needed.
720         * lib/c-stack.c (SIGSTKSZ): Define fallback.
721         (segv_handler, overflow_handler, c_stack_action)
722         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
723         implementation when libsigsegv is available, but only when using
724         the library is necessary.
725         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
726         comment, explaining why XSI check fails on Linux.
727         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
728         * tests/test-c-stack2.sh: Tweak skip message.
729         * NEWS: Document new link-time requirements.
730
731 2008-07-16  Eric Blake  <ebb9@byu.net>
732
733         c-stack: Expose false positives when not using libsigsegv.
734         * modules/c-stack-tests (Files): Expand test.
735         * tests/test-c-stack.c (main): Add means to conditionally trigger
736         non-overflow SIGSEGV.
737         * tests/test-c-stack2.sh: New file.
738
739 2008-07-14  Bruno Haible  <bruno@clisp.org>
740
741         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
742         Reported by Eric Blake.
743
744 2008-07-14  Sam Steingold  <sds@gnu.org>
745             Bruno Haible  <bruno@clisp.org>
746
747         New module libsigsegv.
748         * modules/libsigsegv: New file.
749         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
750         modifications.
751         * MODULES.html.sh (Signal handling): New section.
752
753 2008-07-14  Bruno Haible  <bruno@clisp.org>
754
755         * modules/unictype/ctype-* (Description): Add the word "function".
756         Improves the resulting doc in MODULES.html.
757
758 2008-07-12  Ben Pfaff  <blp@gnu.org>
759
760         Add longlong module.
761         * modules/longlong: New file.
762
763 2008-07-12  Bruno Haible  <bruno@clisp.org>
764
765         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
766         to empty.
767
768 2008-07-10  Ben Pfaff  <blp@gnu.org>
769
770         Add isnan module.
771         * doc/posix-functions/isnan.texi: Mention new module.
772         * lib/math.in.h: Define isnan macro if we have decided to replace
773         it.
774         * m4/isnan.m4: New file.
775         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
776         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
777         also.
778         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
779         redundancy.
780         * m4/math_h.m4: Initialize and substitute variables for isnan
781         module.
782         * modules/isnan: New file.
783         * modules/isnan-tests: New file.
784         * modules/math: Add substitutions for new module.
785         * tests/test-isnan.c: New file.
786         * MODULES.html.sh: Mention new module.
787
788 2008-07-10  Ben Pfaff  <blp@gnu.org>
789
790         Add isnanf module.
791         * lib/isnanf.m4: New file.
792         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
793         (gl_HAVE_ISNANF_IN_LIBM): New macro.
794         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
795         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
796         * modules/isnanf: New file.
797         * modules/isnanf-tests: New file.
798         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
799         files.
800         * tests/test-isnanf-nolibm.c: factored most of its contents into
801         new file tests/test-isnanf.h.
802         * tests/test-isnanf.h: New file.
803         * tests/test-isnanf.c: New file.
804         * MODULES.html.sh: Mention new module.
805         * doc/glibc-functions/isnanf.texi: Mention new module.
806
807 2008-07-10  Ben Pfaff  <blp@gnu.org>
808
809         Add isnand module.
810         * lib/isnand.h: New file.
811         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
812         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
813         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
814         functionality also.
815         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
816         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
817         (gl_HAVE_ISNAND_IN_LIBM): New macro.
818         * modules/isnand: New file.
819         * modules/isnand-tests: New file.
820         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
821         files.
822         * tests/test-isnand-nolibm.c: factored most of its contents into
823         new file tests/test-isnand.h.
824         * tests/test-isnand.h: New file.
825         * tests/test-isnand.c: New file.
826         * MODULES.html.sh: Mention new module.
827
828 2008-07-10  Ben Pfaff  <blp@gnu.org>
829
830         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
831         * lib/isnand.h: Rename lib/isnand-nolibm.h.
832         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
833         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
834         * modules/isnanf-nolibm: Update references to renamed files.
835         * modules/isnand-nolibm: Likewise.
836         * modules/isnanf-nolibm-tests: Likewise.
837         * modules/isnand-nolibm-tests: Likewise.
838         * lib/frexp.c: Likewise.
839         * lib/isfinite.c: Likewise.
840         * lib/signbitd.c: Likewise.
841         * lib/signbitf.c: Likewise.
842         * lib/vasnprintf.c: Likewise.
843         * tests/test-ceilf1.c: Likewise.
844         * tests/test-ceilf2.c: Likewise.
845         * tests/test-floorf1.c: Likewise.
846         * tests/test-floorf2.c: Likewise.
847         * tests/test-frexp.c: Likewise.
848         * tests/test-round1.c: Likewise.
849         * tests/test-round2.c: Likewise.
850         * tests/test-roundf1.c: Likewise.
851         * tests/test-strtod.c: Likewise.
852         * tests/test-trunc1.c: Likewise.
853         * tests/test-trunc2.c: Likewise.
854         * tests/test-truncf1.c: Likewise.
855         * tests/test-truncf2.c: Likewise.
856         * NEWS: Mention the renamed header files.
857
858 2008-07-11  Jim Meyering  <meyering@redhat.com>
859
860         vc-list-files: make the last-resort awk code more portable
861         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
862         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
863         does not support it.
864
865 2008-07-10  Eric Blake  <ebb9@byu.net>
866
867         Work with tar's bootstrap.
868         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
869         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
870         an m4 comment.
871
872 2008-07-09  Jim Meyering  <meyering@redhat.com>
873
874         posix-shell.m4: fix typo that made this test malfunction
875         * m4/posix-shell.m4: Remove capitalization in variable name.
876
877 2008-07-08  Bruno Haible  <bruno@clisp.org>
878
879         * m4/onceonly.m4: Update comments.
880         Reported by Ben Pfaff <blp@cs.stanford.edu>.
881
882 2008-07-04  Jim Meyering  <meyering@redhat.com>
883
884         * users.txt: Add vc-dwim.
885         (bison, coreutils): Use the gitweb URL.
886
887 2008-07-03  Jim Meyering  <meyering@redhat.com>
888
889         * users.txt: Add libffcall.  From Sam Steingold.
890
891 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
892
893         getdate.y: do not ignore TZ with relative day, month or year offset
894         * lib/getdate.y (get_date): Move the tz-handling block to follow the
895         relative-date-handling, since otherwise, the latter would clobber the
896         sole output (an updated Start value) of the tz-handling block.
897         * tests/test-getdate.c: Tests for the fix
898
899 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
900
901         Recognize 'foo_LIBRARIES += libgnu.a'.
902         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
903         makefile snippet has already specified an installation location,
904         also using '+='.
905
906 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
907
908         getdate.y: factor out common actions
909         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
910         Use them in place of open-coded actions.
911
912 2008-07-01  Simon Josefsson  <simon@josefsson.org>
913
914         Add self-test for getdate module.
915         * modules/getdate-tests: New file.
916         * tests/test-getdate.c: New file.
917
918 2008-06-29  Bruno Haible  <bruno@clisp.org>
919
920         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
921         .gitignore.
922         Reported by Sylvain Beucler <beuc@beuc.net>.
923
924 2008-06-29  Bruno Haible  <bruno@clisp.org>
925
926         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
927         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
928
929 2008-06-29  Bruno Haible  <bruno@clisp.org>
930
931         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
932         EXTRA_DIST.
933         Reported by Sylvain Beucler <beuc@beuc.net>.
934
935 2008-06-26  Jim Meyering  <meyering@redhat.com>
936
937         make several modules depend on the "open" module
938         This provides slightly increased consistency when opening-for-write
939         the name of a non-directory spelled with a trailing slash.
940         * modules/chdir-safer: Likewise.
941         * modules/chown: Likewise.
942         * modules/clean-temp: Likewise.
943         * modules/copy-file: Likewise.
944         * modules/fchdir: Likewise.
945         * modules/fcntl-safer: Likewise.
946         * modules/pipe: Likewise.
947         * modules/utime: Likewise.
948         Prompted by Eric Blake and Bruno Haible.
949
950 2008-06-24  Andreas Schwab  <schwab@suse.de>
951
952         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
953         literals can be used as initializers for global variables.
954
955 2008-06-23  Eric Blake  <ebb9@byu.net>
956
957         Make gnulib-cache.m4 easier to diff.
958         * gnulib-tool (func_import): Allow newlines when reading cached
959         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
960
961 2008-06-23  Bruno Haible  <bruno@clisp.org>
962
963         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
964         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
965         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
966         m4/signalblocking.m4.
967         (gl_PREREQ_SIGACTION): Don't invoke it.
968         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
969         gl_PREREQ_SIG_HANDLER_H.
970         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
971         Don't check for sigaction here.
972
973 2008-06-23  Bruno Haible  <bruno@clisp.org>
974
975         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
976         (install_handlers): Don't set the SA_RESETHAND flag.
977
978 2008-06-23  Bruno Haible  <bruno@clisp.org>
979
980         * m4/sigaction.m4: Comment fixes.
981         * lib/signal.in.h: Likewise.
982
983 2008-06-23  Eric Blake  <ebb9@byu.net>
984
985         Fix typo.
986         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
987
988         Avoid SA_ namespace.
989         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
990         Reported by Ralf Wildenhues.
991
992         Avoid test failure due to SA_RESTORER.
993         * tests/test-sigaction.c (SA_MASK): New macro.
994         (main): Avoid failing due to extension flags being set.
995         Reported by Jim Meyering.
996
997         Revert use of sig-handler.h in sigprocmask.c.
998         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
999         it requires the existence of struct sigaction.
1000         * lib/sigprocmask.c (handler_t): Restore typedef.
1001         (rpl_signal, old_handlers): Use local type.
1002
1003 2008-06-22  Bruno Haible  <bruno@clisp.org>
1004
1005         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
1006         conditionally.
1007         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1008
1009 2008-06-22  Bruno Haible  <bruno@clisp.org>
1010
1011         * doc/posix-functions/siginterrupt.texi: Move note.
1012
1013         * lib/signal.in.h (SA_RESTART): New macro.
1014         * lib/sigaction.c: Update comment.
1015
1016         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
1017
1018         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
1019         (gl_PREREQ_SIGPROCMASK): Invoke it.
1020         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
1021
1022         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
1023
1024         * lib/sigprocmask.c: Update a comment.
1025
1026 2008-06-21  Eric Blake  <ebb9@byu.net>
1027
1028         Use sigaction module rather than signal().
1029         * modules/c-stack (Depends-on): Add sigaction.
1030         * modules/fatal-signal (Depends-on): Likewise.
1031         * modules/nanosleep (Depends-on): Likewise.
1032         * modules/sigprocmask (Files): Add sig-handler.h.
1033         * modules/sigaction (Files): Likewise.
1034         * lib/sig-handler.h (get_handler): New file, suggested by Paul
1035         Eggert.
1036         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
1037         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
1038         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
1039         (init_fatal_signals): Likewise.
1040         * lib/nanosleep.c (rpl_nanosleep): Likewise.
1041         (siginterrupt): Delete fallback.
1042         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
1043         instead.
1044         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
1045         siginterrupt.
1046
1047         New module sigaction, for mingw.
1048         * modules/sigaction: New module...
1049         * modules/sigaction-tests: ...and its test.
1050         * m4/sigaction.m4: New file.
1051         * lib/sigaction.c: Likewise.
1052         * tests/test-sigaction.c: Likewise.
1053         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
1054         * modules/signal (Makefile.am): Likewise.
1055         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
1056         needed.
1057         * doc/posix-headers/signal.texi (signal.h): Mention provided
1058         types.
1059         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
1060         that sigaction is preferable.
1061         * doc/posix-functions/sigaction.texi (sigaction): Mention new
1062         module.
1063         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1064         sigaction.
1065
1066         Improve robustness of sigprocmask by overriding signal.
1067         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
1068         is in use.
1069         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
1070         (SIGKILL, SIGSTOP): Provide fallbacks.
1071         (rpl_signal): Implement.
1072         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
1073         signal can be called inside handlers.
1074
1075         Fix nanosleep module on mingw.
1076         * modules/nanosleep (Depends-on): Add sys_select.
1077         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
1078
1079         Fix licensing of sigprocmask.
1080         * modules/raise (License): Relicense as LGPL.
1081
1082 2008-06-21  Bruno Haible  <bruno@clisp.org>
1083
1084         * lib/propername.c (proper_name_utf8): Don't use the transliterated
1085         result if it contains question marks.
1086         Reported by Michael Geng <linux@michaelgeng.de>.
1087
1088 2008-06-19  Bruno Haible  <bruno@clisp.org>
1089
1090         Fix CVS-ism.
1091         * doc/gnulib.texi: Include updated-stamp.texi.
1092         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
1093         (updated-stamp.texi): New rule.
1094         (gnulib.info): Depend on it.
1095         * doc/.gitignore: Add updated-stamp.texi.
1096         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
1097
1098 2008-06-19  Bruno Haible  <bruno@clisp.org>
1099
1100         * doc/Makefile (gnulib.info): Update and simplify dependencies.
1101         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1102
1103 2008-06-19  Eric Blake  <ebb9@byu.net>
1104
1105         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
1106         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
1107         Reported by Stepan Kasal.
1108
1109 2008-06-18  Bruno Haible  <bruno@clisp.org>
1110
1111         * lib/fatal-signal.c (init_fatal_signals): Add comment.
1112         Reported by Eric Blake.
1113
1114 2008-06-18  Eric Blake  <ebb9@byu.net>
1115
1116         Work around cygwin 1.5.25 strsignal bug.
1117         * tests/test-strsignal.c: Allow for const char *.
1118         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
1119
1120 2008-06-18  Simon Josefsson  <simon@josefsson.org>
1121
1122         * users.txt: Update URL to article and add author/date
1123         information.
1124
1125 2008-06-17  Bruno Haible  <bruno@clisp.org>
1126
1127         New macro gl_DISABLE_THREADS.
1128         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
1129         if the user did not pass --enable-threads or --disable-threads option.
1130         (gl_DISABLE_THREADS): New macro.
1131         Reported by Eric Blake <ebb9@byu.net>.
1132
1133 2008-06-17  Bruno Haible  <bruno@clisp.org>
1134
1135         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
1136         when the macro ignores it.
1137         Based on a patch by Eric Blake <ebb9@byu.net>.
1138
1139 2008-06-17  Bruno Haible  <bruno@clisp.org>
1140
1141         * modules/tls (License): Change to LGPLv2+.
1142         Reported by Eric Blake.
1143
1144 2008-06-17  Eric Blake  <ebb9@byu.net>
1145
1146         Simplify c-stack prerequisites.
1147         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
1148         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
1149         no longer requires <ucontext.h> to exist.  Optimize setrlimit
1150         check.
1151         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
1152         <sys/resource.h>.
1153
1154         Move c-stack test into testsuite.
1155         * modules/c-stack-tests: New file.
1156         * lib/c-stack.c [DEBUG]: Move test program...
1157         * tests/test-c-stack.c: ...into this new file.  Skip rather than
1158         fail test if sigaltstack is lacking.
1159         * tests/test-c-stack.sh: New driver file.
1160
1161 2008-06-16  Eric Blake  <ebb9@byu.net>
1162
1163         Use raise module consistently.
1164         * modules/fatal-signal (Depends-on): Add raise.
1165         * modules/sigprocmask (Depends-on): Likewise.
1166         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
1167         * lib/sigprocmask.c (sigprocmask): Likewise.
1168         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1169         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
1170
1171         Fix compliance bug in sigpending.
1172         * lib/sigprocmask.c (sigpending): Return pending array via
1173         parameter, not return value.
1174
1175 2008-06-14  Eric Blake  <ebb9@byu.net>
1176
1177         Improve obstack-printf test code.
1178         * tests/test-obstack-printf.c (test_function): Fix comment, and
1179         simplify usage of obstack_* in macros.  Add a test for coverage.
1180         Reported by Bruno Haible.
1181
1182 2008-06-14  Bruno Haible  <bruno@clisp.org>
1183
1184         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
1185         array size as a constant, not as a const variable.
1186         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
1187         AC_USE_SYSTEM_EXTENSIONS.
1188         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
1189         Test whether the obstack_printf function actually exists.
1190         * modules/obstack-printf (Depends-on): Add extensions.
1191         (Include): Remove obstack.h.
1192         * modules/obstack-printf-posix (Depends-on): Add extensions.
1193         (Include): Remove obstack.h.
1194
1195 2008-06-13  Eric Blake  <ebb9@byu.net>
1196
1197         Add obstack-printf and obstack-printf-posix modules.
1198         * modules/obstack-printf: New file.
1199         * modules/obstack-printf-posix: Likewise.
1200         * MODULES.html.sh (Misc): Mention them.
1201         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
1202         Likewise.
1203         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
1204         Likewise.
1205         * modules/stdio (Makefile.am): Accomodate new modules.
1206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1207         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
1208         Declare.
1209         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
1210         functions.
1211         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
1212         (gl_REPLACE_OBSTACK_PRINTF): New macros
1213         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
1214         * tests/test-obstack-printf.c: New file.
1215         * modules/obstack-printf-tests: Likewise.
1216         * modules/obstack-printf-posix-tests: Likewise.
1217
1218 2008-06-11  Bruno Haible  <bruno@clisp.org>
1219
1220         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
1221         * lib/open.c: Include errno.h.
1222         (open): Fail when attempting to write to a file that has a trailing
1223         slash.
1224         * tests/test-open.c (main): Test against trailing slash bug.
1225         * doc/posix-functions/open.texi: Mention the trailing slash bug.
1226
1227 2008-06-10  Bruno Haible  <bruno@clisp.org>
1228
1229         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
1230         for $? to work inside the trap command, with various /bin/sh-s.
1231         * tests/test-vc-list-files-cvs.sh: Likewise.
1232
1233 2008-06-10  Bruno Haible  <bruno@clisp.org>
1234
1235         * lib/acl-internal.h: Don't include gettext.h here.
1236         * lib/set-mode-acl.c: Include gettext.h here.
1237         * lib/copy-acl.c: Likewise.
1238
1239 2008-06-10  Bruno Haible  <bruno@clisp.org>
1240
1241         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
1242         * lib/wait-process.c (wait_subprocess): Likewise.
1243         * lib/execute.h (execute): Add termsigp argument.
1244         * lib/execute.c (execute): Likewise.
1245         * lib/csharpcomp.c (compile_csharp_using_pnet,
1246         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
1247         * lib/csharpexec.c (execute_csharp_using_pnet,
1248         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
1249         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1250         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
1251         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
1252         is_jikes_present): Update.
1253         * lib/javaexec.c (execute_java_class): Update.
1254         * lib/javaversion.c (execute_and_read_line): Update.
1255         * NEWS: Document the changes.
1256         Reported by Eric Blake.
1257
1258 2008-06-10  Eric Blake  <ebb9@byu.net>
1259
1260         Add missing include.
1261         * tests/test-strstr.c (includes): Add <signal.h>.
1262         * tests/test-strcasestr.c (includes): Likewise.
1263         * tests/test-memmem.c (includes): Likewise.
1264
1265 2008-06-10  Bruno Haible  <bruno@clisp.org>
1266
1267         * lib/wait-process.c (wait_subprocess): Add an assertion.
1268
1269 2008-06-10  Bruno Haible  <bruno@clisp.org>
1270
1271         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
1272
1273 2008-06-10  Bruno Haible  <bruno@clisp.org>
1274
1275         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
1276         using alarm().
1277         * tests/test-strcasestr.c (main): Likewise.
1278         * tests/test-strstr.c (main): Likewise.
1279
1280 2008-06-09  Bruno Haible  <bruno@clisp.org>
1281
1282         Work around the Solaris 10 ACE ACLs ABI change.
1283         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
1284         declare if ACL_NO_TRIVIAL is present.
1285         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
1286         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
1287         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
1288         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
1289         define if ACL_NO_TRIVIAL is present.
1290         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
1291         and use the current ABI.
1292         (file_has_acl): Use same #if condition as elsewhere.
1293         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
1294         in use, and use the current ABI.
1295         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
1296         Reported by Jim Meyering.
1297
1298 2008-06-09  Eric Blake  <ebb9@byu.net>
1299
1300         Work around environments that (stupidly) ignore SIGALRM.
1301         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
1302         before using alarm().
1303         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1304         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1305         Reported by Ian Beckwith <ianb@erislabs.net>.
1306
1307         Produce autobuild blurb earlier in log.
1308         * modules/autobuild (configure.ac-early): Move AB_INIT here.
1309
1310 2008-06-09  Jim Meyering  <meyering@redhat.com>
1311         and Ondřej Vašík  <ovasik@redhat.com>
1312
1313         utimens.c: correct kernel bug work-around
1314         Ondřej Vašík found that the invalid return value of 280 indicates
1315         failure, not success, and the kernel bug we're trying to work
1316         around affects not just the utimensat call, but also the fallback
1317         futimens call.
1318         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
1319         not success.
1320         [HAVE_FUTIMENS]: Use the same work-around, here.
1321
1322 2008-06-09  Jim Meyering  <meyering@redhat.com>
1323
1324         add more guards around definition of ACE_-related code
1325         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
1326         ALLOW and ACE_OWNER are also defined.
1327
1328 2008-06-08  Bruno Haible  <bruno@clisp.org>
1329
1330         * lib/acl-internal.h: Add me as co-author.
1331         * lib/file-has-acl.c: Likewise.
1332         * lib/set-mode-acl.c: Likewise.
1333         * lib/copy-acl.c: Likewise.
1334
1335 2008-06-08  Bruno Haible  <bruno@clisp.org>
1336
1337         Add support for AIX ACLs.
1338         * lib/acl-internal.h (acl_nontrivial): New declaration.
1339         * lib/file-has-acl.c (acl_nontrivial): New function.
1340         (file_has_acl): Add implementation using AIX 4 ACL API.
1341         * lib/set-mode-acl.c (qset_acl): Likewise.
1342         * lib/copy-acl.c (qcopy_acl): Likewise.
1343
1344 2008-06-08  Bruno Haible  <bruno@clisp.org>
1345
1346         Add support for HP-UX ACLs.
1347         * lib/acl-internal.h (acl_nontrivial): New declaration.
1348         * lib/file-has-acl.c (acl_nontrivial): New function.
1349         (file_has_acl): Add implementation using HP-UX 11 ACL API.
1350         * lib/set-mode-acl.c (qset_acl): Likewise.
1351         * lib/copy-acl.c (qcopy_acl): Likewise.
1352
1353 2008-06-08  Bruno Haible  <bruno@clisp.org>
1354
1355         Add support for Cygwin ACLs.
1356         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
1357         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
1358         the chmod_or_fchmod call.
1359         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
1360
1361 2008-06-08  Bruno Haible  <bruno@clisp.org>
1362
1363         Fix bug with setuid modes in Solaris 10+ code.
1364         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
1365         succeeded, when the mode contains some special bits.
1366
1367 2008-06-08  Bruno Haible  <bruno@clisp.org>
1368
1369         Add support for Solaris 7..10 ACLs.
1370         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
1371         declarations.
1372         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
1373         functions.
1374         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
1375         * lib/set-mode-acl.c (qset_acl): Likewise.
1376         * lib/copy-acl.c (qcopy_acl): Likewise.
1377
1378 2008-06-08  Bruno Haible  <bruno@clisp.org>
1379
1380         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
1381         declaration.
1382         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
1383         (acl_access_nontrivial): Remove MacOS X case.
1384         (file_has_acl): Use acl_extended_nontrivial.
1385         * lib/copy-acl.c (qcopy_acl): Likewise.
1386
1387 2008-06-08  Bruno Haible  <bruno@clisp.org>
1388
1389         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
1390
1391 2008-06-08  Jim Meyering  <meyering@redhat.com>
1392
1393         * modules/acl (Maintainer): Add Bruno Haible.
1394
1395 2008-06-07  Bruno Haible  <bruno@clisp.org>
1396
1397         Improve support for Tru64 ACLs.
1398         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
1399         ACL on OSF/1.
1400
1401 2008-06-07  Bruno Haible  <bruno@clisp.org>
1402
1403         Add support for MacOS X ACLs.
1404         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
1405         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
1406         * lib/set-mode-acl.c (qset_acl): Likewise.
1407         * lib/copy-acl.c (qcopy_acl): Likewise.
1408
1409 2008-06-07  Bruno Haible  <bruno@clisp.org>
1410
1411         Fix memory leak introduced on 2008-05-22.
1412         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
1413         use.
1414
1415 2008-06-07  Bruno Haible  <bruno@clisp.org>
1416
1417         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
1418         to construct an empty ACL.
1419
1420 2008-06-07  Bruno Haible  <bruno@clisp.org>
1421
1422         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
1423         precisely.
1424         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
1425
1426 2008-06-07  Bruno Haible  <bruno@clisp.org>
1427
1428         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
1429         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
1430
1431 2008-06-07  Bruno Haible  <bruno@clisp.org>
1432
1433         * doc/posix-functions/_setjmp.texi: Explain the use of this function
1434         regardless of POSIX.
1435         * doc/posix-functions/_longjmp.texi: Likewise.
1436         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
1437         SystemV platform in this case.
1438
1439 2008-06-06  Eric Blake  <ebb9@byu.net>
1440
1441         Document abort() bugs.
1442         * doc/posix-functions/abort.texi (abort): Mention anomalies.
1443
1444         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
1445         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
1446         sigsetjmp.
1447         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
1448         siglongjmp, but only as a macro.
1449         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
1450         is obsolete.
1451         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
1452
1453         Tweak documentation to cover cygwin argz bugs.
1454         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
1455         argz bug fix; no code change needed since no cygwin releases
1456         occurred between the last fix and the bug being tested.
1457         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
1458         module and recently fixed cygwin bugs.
1459         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
1460         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
1461         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
1462         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
1463         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
1464         Likewise.
1465         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
1466         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
1467         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
1468         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
1469         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
1470         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
1471         Likewise.
1472
1473         Avoid gcc warning on cygwin.
1474         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
1475         !ACL_NO_TRIVIAL]: Avoid unused variable.
1476
1477 2008-06-05  Eric Blake  <ebb9@byu.net>
1478
1479         Be tolerant of UNKNOWN version in gnulib-tool test dir.
1480         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
1481         git-version-gen fails to come up with a version.
1482         Reported by Simon Josefsson.
1483
1484 2008-06-05  Jim Meyering  <meyering@redhat.com>
1485             Paul Eggert  <eggert@cs.ucla.edu>
1486
1487         utimens.c: work around a probable Linux kernel bug
1488         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
1489         appears to be a kernel bug that causes utimensat to return 280
1490         instead of 0, indicating success.
1491
1492 2008-06-04  Bruno Haible  <bruno@clisp.org>
1493
1494         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
1495         2008-06-01 commit.
1496
1497 2008-06-04  Bruno Haible  <bruno@clisp.org>
1498
1499         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
1500         * lib/file-has-acl.c (acl_access_nontrivial): New function.
1501         (file_has_acl): Use it. Save errno afterwards.
1502         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
1503
1504 2008-06-03  Bruno Haible  <bruno@clisp.org>
1505
1506         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
1507         draft code. Simplify #ifs.
1508         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
1509         Put Solaris code after POSIX-draft code. Fix comments regarding
1510         Solaris 10, HP-UX. Mention Cygwin.
1511         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
1512
1513 2008-06-03  Eric Blake  <ebb9@byu.net>
1514
1515         Provide fallback for older kernels.
1516         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
1517         Provide runtime fallback if kernel lacks support.
1518         Reported by Mike Frysinger.
1519
1520 2008-06-02  Bruno Haible  <bruno@clisp.org>
1521
1522         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
1523         it exists.
1524
1525 2008-06-02  Bruno Haible  <bruno@clisp.org>
1526
1527         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
1528         * lib/copy-acl.c (qcopy_acl): Update comment.
1529
1530 2008-06-02  Bruno Haible  <bruno@clisp.org>
1531
1532         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
1533         like ACL APIs.
1534
1535 2008-06-02  Bruno Haible  <bruno@clisp.org>
1536
1537         * tests/test-file-has-acl.sh: Use different code for Cygwin.
1538         * tests/test-set-mode-acl.sh: Likewise.
1539         * tests/test-copy-acl.sh: Likewise.
1540         * tests/test-copy-file.sh: Likewise.
1541
1542 2008-06-02  Bruno Haible  <bruno@clisp.org>
1543
1544         * tests/test-file-has-acl.sh: Remove unused code.
1545
1546 2008-06-01  Bruno Haible  <bruno@clisp.org>
1547
1548         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
1549         (copy_acl): Just a wrapper around qcopy_acl that emits the error
1550         messages.
1551         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
1552
1553 2008-06-01  Bruno Haible  <bruno@clisp.org>
1554
1555         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
1556         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
1557         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
1558         APIs.
1559         * modules/acl-tests (configure.ac): Remove tests now contained in
1560         m4/acl.m4.
1561
1562 2008-06-02  Jim Meyering  <meyering@redhat.com>
1563
1564         announce-gen: use a better key-server host name
1565         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
1566         it may be more consistently reliable.  Suggested by Werner Koch
1567         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
1568
1569 2008-06-01  Bruno Haible  <bruno@clisp.org>
1570
1571         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
1572         Reported by Voroskoi Andras <voroskoi@gmail.com>.
1573
1574 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
1575
1576         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
1577
1578 2008-06-01  Bruno Haible  <bruno@clisp.org>
1579
1580         New ACL tests.
1581         * tests/test-file-has-acl.sh: New file.
1582         * tests/test-file-has-acl.c: New file.
1583         * tests/test-set-mode-acl.sh: New file.
1584         * tests/test-set-mode-acl.c: New file.
1585         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
1586         * tests/test-copy-acl.c: New file.
1587         * modules/acl-tests: New file, based on modules/copy-file-tests.
1588         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
1589         (Depends-on): Add acl-tests.
1590         (configure.ac): Remove checks.
1591         (Makefile.am): Don't create test-sameacls program here any more.
1592
1593 2008-06-01  Bruno Haible  <bruno@clisp.org>
1594
1595         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
1596         * tests/test-sameacls.c: Include progname.h.
1597         (main): Invoke set_program_name. Portability fixes for MacOS X,
1598         Solaris, HP-UX.
1599
1600 2008-06-01  Bruno Haible  <bruno@clisp.org>
1601
1602         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
1603         function.
1604         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
1605
1606 2008-06-01  Bruno Haible  <bruno@clisp.org>
1607
1608         * modules/rpmatch (Depends-on): Add strdup.
1609
1610 2008-06-01  Bruno Haible  <bruno@clisp.org>
1611
1612         * lib/pipe.c: Include unistd-safer.h.
1613         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
1614         * modules/pipe (Depends-on): Add unistd-safer.
1615
1616 2008-05-30  Simon Josefsson  <simon@josefsson.org>
1617
1618         * modules/autobuild (configure.ac): Call AB_INIT.
1619
1620 2008-05-30  Simon Josefsson  <simon@josefsson.org>
1621
1622         * tests/test-getaddrinfo.c: Don't print debug messages by default.
1623         Suggested by Bruno Haible <bruno@clisp.org>.
1624
1625 2008-05-30  Simon Josefsson  <simon@josefsson.org>
1626
1627         * tests/test-base64.c: Cast size_t to unsigned long when invoking
1628         printf.  Use %lu instead of %d.  Reported by Bruno Haible
1629         <bruno@clisp.org>.
1630
1631 2008-05-29  Eric Blake  <ebb9@byu.net>
1632
1633         Prefer new POSIX 200x interfaces over futimesat.
1634         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
1635         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
1636         when available.
1637         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
1638
1639 2008-05-28  Bruno Haible  <bruno@clisp.org>
1640
1641         * modules/stpcpy (License): Change to LGPLv2+.
1642         Requested by David Lutterkort <dlutter@redhat.com>.
1643
1644 2008-05-27  Bruno Haible  <bruno@clisp.org>
1645
1646         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
1647         current mingw.
1648         Reported by Jose E. Marchesi <jemarch@gnu.org>.
1649
1650 2008-05-27  Bruno Haible  <bruno@clisp.org>
1651
1652         * modules/iconv_open (Link): New section, from module 'iconv'.
1653         * modules/striconv (Link): Likewise.
1654         * modules/striconveh (Link): Likewise.
1655         * modules/xstriconv (Link): Likewise.
1656         * modules/unicodeio (Link): Likewise.
1657         * modules/propername (Link): Likewise.
1658         Reported by Jim Meyering.
1659
1660 2008-05-26  Jim Meyering  <meyering@redhat.com>
1661
1662         sha256: do not artificially restrict buffer length to be < 2^32
1663         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
1664         uint32_t to size_t.
1665         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
1666         to match.
1667
1668         avoid unaligned access errors, e.g., on sparc
1669         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
1670         direct access through a possibly-unaligned uint64* pointer.
1671         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
1672         direct access through a possibly-unaligned uint32* pointer.
1673         Prompted by this patch from Tom "spot" Callaway:
1674         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
1675
1676         sha512.c: fix typo in comment
1677         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
1678
1679 2008-05-25  Bruno Haible  <bruno@clisp.org>
1680
1681         * lib/set-mode-acl.c: Renamed from lib/acl.c.
1682         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
1683         (Makefile.am): Update lib_SOURCES.
1684
1685 2008-05-25  Bruno Haible  <bruno@clisp.org>
1686
1687         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
1688
1689 2008-05-25  Jim Meyering  <meyering@redhat.com>
1690
1691         useless-if-before-free: freed expr may have white-space differences
1692         * build-aux/useless-if-before-free: Recognize cases in which the
1693         freed expression differs from the tested one in embedded white
1694         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
1695         $1 was used, so we can't make any regexp shy.  Improved tests now
1696         detect this.
1697
1698         useless-if-before-free: accept white space in the expression.
1699         * build-aux/useless-if-before-free: For now, any white space
1700         in the expression must be identical in the free argument.
1701
1702         useless-if-before-free: efficiency tweak
1703         * build-aux/useless-if-before-free: Make the expression-matching
1704         regexp "shy".
1705         Make the *outer* regexp shy, not the expr-matching one.
1706
1707         update code-in-comment to accept cast of free arg
1708         * build-aux/useless-if-before-free: Update regexp.
1709
1710 2008-05-25  Bruno Haible  <bruno@clisp.org>
1711
1712         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
1713         * modules/copy-file-tests (Files, Makefile.am): Update.
1714         * tests/test-copy-file.c (func_test_copy): Update.
1715
1716 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
1717
1718         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
1719
1720 2008-05-23  Bruno Haible  <bruno@clisp.org>
1721
1722         Improve support for ACLs on OSF/1.
1723         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
1724         Remove fallback for unknown flavors of ACLs.
1725
1726 2008-05-22  Bruno Haible  <bruno@clisp.org>
1727
1728         Add support for ACLs on OSF/1.
1729         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
1730         replacements.
1731         (acl_free_text): New macro fallback.
1732         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
1733         acl_free.
1734         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
1735         acl_free_text function. Require AC_C_INLINE.
1736
1737 2008-05-22  Bruno Haible  <bruno@clisp.org>
1738
1739         Make copy_acl work on MacOS X 10.5.
1740         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
1741         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
1742         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
1743         If MODE_INSIDE_ACL, don't assume that every system has the same text
1744         representation for ACLs as FreeBSD.
1745         * lib/copy-acl.c (copy_acl): Add support for platforms with
1746         !MODE_INSIDE_ACL.
1747         * lib/file-has-acl.c (file_has_acl): Likewise.
1748         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
1749         FreeBSD, MacOS X, or IRIX, respectively.
1750
1751 2008-05-22  Bruno Haible  <bruno@clisp.org>
1752
1753         * lib/acl.h: Don't include <sys/acl.h>.
1754         (GETACLCNT): Move fallback to lib/acl-internal.h.
1755         * lib/acl-internal.h: Include <sys/acl.h> here.
1756         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
1757
1758 2008-05-22  Bruno Haible  <bruno@clisp.org>
1759
1760         Split off copy_acl function to separate file.
1761         * lib/copy-acl.c: New file, extracted from lib/acl.c.
1762         * lib/acl.c (copy_acl): Moved function to separate file.
1763         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
1764         * modules/acl (Files): Add lib/copy-acl.c.
1765         (Makefiles.am): Augment lib_SOURCES.
1766
1767 2008-05-22  Bruno Haible  <bruno@clisp.org>
1768
1769         * modules/copy-file-tests: New file.
1770         * tests/test-copy-file.sh: New file.
1771         * tests/test-copy-file.c: New file.
1772         * tests/test-copy-file-sameacls.c: New file.
1773
1774 2008-05-22  Eric Blake  <ebb9@byu.net>
1775
1776         Avoid gcc warning.
1777         * tests/test-memcmp.c (main): Pass NULL indirectly.
1778
1779 2008-05-21  Bruno Haible  <bruno@clisp.org>
1780
1781         Add reference doc about ACLs.
1782         * doc/acl-resources.txt: New file.
1783         * doc/acl-cygwin.txt: New file.
1784
1785 2008-05-21  Bruno Haible  <bruno@clisp.org>
1786
1787         Avoid one more warning from gcc.
1788         * lib/vasnprintf.c (IF_LINT): Update comments.
1789         (VASNPRINTF): Use it also for the 'prefix' array initializer.
1790
1791 2008-05-21  Jim Meyering  <meyering@redhat.com>
1792
1793         avoid a warning from gcc
1794         * lib/vasnprintf.c (IF_LINT): Define.
1795         (scale10_round_decimal_long_double):
1796         Use it to avoid a "may be used uninitialized" warning.
1797         (scale10_round_decimal_double): Likewise.
1798
1799 2008-05-21  Simon Josefsson  <simon@josefsson.org>
1800
1801         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
1802         declared.
1803
1804 2008-05-20  Bruno Haible  <bruno@clisp.org>
1805
1806         * tests/test-memcmp.c (main): Test also the sign of the result. Test
1807         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
1808
1809 2008-05-20  Simon Josefsson  <simon@josefsson.org>
1810
1811         * modules/memcmp-tests: New file.
1812         * tests/test-memcmp.c: New file.
1813
1814 2008-05-19  Bruno Haible  <bruno@clisp.org>
1815
1816         * modules/propername (Notice, configure.ac): Put quoted "..." into
1817         --keyword option.
1818         * lib/propername.h: Update comments accordingly.
1819         Reported by Eric Blake.
1820
1821 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
1822
1823         * modules/getpass-gnu (Depends-on): Add fseeko.
1824
1825 2008-05-19  Simon Josefsson  <simon@josefsson.org>
1826
1827         * modules/base64-tests: New file.
1828
1829 2008-05-19  Bo Borgerson <gigabo@gmail.com>
1830
1831         * lib/base64.c (base64_decode_ctx): If a decode context structure
1832         was passed in use it to ignore newlines.  If a context structure
1833         was _not_ passed in, continue to treat newlines as garbage (this
1834         is the historical behavior).  Formerly base64_decode.
1835         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
1836         takes a decode context structure.
1837         * lib/base64.h (base64_decode): Macro for four-argument calls.
1838         (base64_decode_alloc): Likewise.
1839         * lib/base64.c (base64_decode_ctx): If a decode context structure
1840         was passed in use it to ignore newlines.  If a context structure
1841         was _not_ passed in, continue to treat newlines as garbage (this
1842         is the historical behavior).  Formerly base64_decode.
1843         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
1844         takes a decode context structure.
1845         * lib/base64.h (base64_decode): Macro for four-argument calls.
1846         (base64_decode_alloc): Likewise.
1847
1848 2008-05-19  Jim Meyering  <meyering@redhat.com>
1849
1850         avoid a warning from gcc
1851         * lib/trim.c (IF_LINT): Define.
1852         (trim2): Use it to avoid a "may be used uninitialized" warning.
1853
1854         Fix doc typo.
1855         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
1856
1857 2008-05-19  Bruno Haible  <bruno@clisp.org>
1858
1859         * doc/glibc-functions/getpass.texi: Document limits of other
1860         implementations.
1861
1862 2008-05-19  Simon Josefsson  <simon@josefsson.org>
1863             Bruno Haible <bruno@clisp.org>
1864
1865         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
1866
1867 2008-05-18  Bruno Haible  <bruno@clisp.org>
1868
1869         * modules/propername: New file, from GNU gettext.
1870         * lib/propername.h: New file, from GNU gettext.
1871         * lib/propername.c: New file, from GNU gettext.
1872         * MODULES.html.sh (Internationalization functions): Add propername.
1873
1874 2008-05-16  Jim Meyering  <meyering@redhat.com>
1875             Bruno Haible  <bruno@clisp.org>
1876
1877         Avoid some warnings from "gcc -Wshadow".
1878         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
1879
1880 2008-05-15  Eric Blake  <ebb9@byu.net>
1881
1882         Extend previous patch to cygwin 1.7.0.
1883         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
1884         fast implementation in cygwin >= 1.7.0.
1885         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1886         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1887
1888 2008-05-15  Bruno Haible  <bruno@clisp.org>
1889
1890         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
1891         implementation in glibc >= 2.9.
1892         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1893         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1894
1895 2008-05-15  Bruno Haible  <bruno@clisp.org>
1896
1897         * MODULES.html.sh (Internationalization functions): Remove linebreak.
1898         (Unicode string functions): Add unilbrk/*.
1899         Reported by Karl Berry.
1900
1901 2008-05-15  Eric Blake  <ebb9@byu.net>
1902
1903         Fix violation of <stdbool.h> replacement in regex.
1904         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
1905         * lib/regexec.c (re_search_internal): Likewise.
1906         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
1907
1908 2008-05-15  Jim Meyering  <meyering@redhat.com>
1909
1910         avoid distracting test output when git or cvs is not found
1911         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
1912         * tests/test-vc-list-files-git.sh: Likewise.
1913
1914 2008-05-15  Eric Blake  <ebb9@byu.net>
1915
1916         Glibc finally accepted the memmem speedup code, bugzilla #5514.
1917         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
1918         glibc version.
1919         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
1920         * doc/posix-functions/strstr.texi (strstr): Likewise.
1921         * lib/str-two-way.h (MAX): Sychronize with glibc.
1922
1923 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
1924
1925         * lib/regcomp.c (optimize_utf8): Add a note on why we test
1926         opr.ctx_type.
1927         (calc_first): Initialize constraint field.
1928         (duplicate_node_closure): Use it instead of special casing ANCHORS.
1929         Fix grammar.
1930         (duplicate_node): Merge constraint field for all node types.
1931         (calc_eclosure_iter): Look at constraint field for all node types.
1932         * lib/regex_internal.c (create_cd_newstate): Don't look at
1933         opr.ctx_type.
1934
1935 2008-05-14  Bruno Haible  <bruno@clisp.org>
1936
1937         Help GCC to do better code generation.
1938         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
1939         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
1940         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
1941         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
1942         Declare with attribute 'malloc' if supported.
1943
1944 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
1945
1946         use "echo STR|wc -c" rather than unportable "expr length STR"
1947         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
1948         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
1949
1950 2008-05-14  Jim Meyering  <meyering@redhat.com>
1951
1952         use dd ibs=$n count=1 ... rather than less-portable head -c$n
1953         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
1954         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
1955         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
1956         via Collin Lasse.
1957
1958 2008-05-14  Eric Blake  <ebb9@byu.net>
1959
1960         Avoid quadratic growth in gl_LIBSOURCES.
1961         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
1962         Suggested by Bruno Haible.
1963
1964         Test xmemdup0.
1965         * modules/xmemdup0-tests: New file.
1966         * tests/test-xmemdup0.c: Likewise.
1967
1968 2008-05-13  Eric Blake  <ebb9@byu.net>
1969
1970         Split xmemdup0 into its own module.
1971         * modules/xmemdup0: New file.
1972         * lib/xmemdup0.h: Likewise.
1973         * lib/xmemdup0.c: Likewise.
1974         * MODULES.html.sh (Memory management functions): Add xmemdup0.
1975         * lib/xalloc.h (xmemdup0): Remove.
1976         * lib/xmalloc.c (xmemdup0): Likewise.
1977
1978 2008-05-13  Eric Blake  <ebb9@byu.net>
1979             Bruno Haible  <bruno@clisp.org>
1980
1981         Reduce number of forks required during autoconf.
1982         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
1983         and gl_LIBSOURCES_DIR.
1984         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
1985         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
1986         m4_syscmd per file.
1987         <m4_foreach_w>: Move...
1988         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
1989
1990 2008-05-13  Eric Blake  <ebb9@byu.net>
1991
1992         * gnulib-tool: Fix various comment typos.
1993
1994 2008-05-12  Bruno Haible  <bruno@clisp.org>
1995
1996         Tailor the linebreaking algorithm.
1997         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
1998
1999 2008-05-12  Bruno Haible  <bruno@clisp.org>
2000
2001         Update to Unicode 5.0.0.
2002         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2003         LBP_JV, LBP_JT. Redistribute values.
2004         (unilbrk_table): Change size.
2005         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
2006         Unicode TR#14 rev. 22.
2007         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2008         LBP_JV, LBP_JT. Redistribute values.
2009         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
2010         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
2011         Update.
2012         * lib/unilbrk/lbrkprop1.h: Regenerated.
2013         * lib/unilbrk/lbrkprop2.h: Regenerated.
2014         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
2015         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
2016         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
2017         Likewise.
2018         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
2019         Likewise.
2020         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
2021         result.
2022         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2023         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2024         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
2025         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
2026         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
2027         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
2028
2029 2008-05-11  Bruno Haible  <bruno@clisp.org>
2030
2031         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
2032
2033 2008-05-11  Bruno Haible  <bruno@clisp.org>
2034
2035         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
2036         * modules/unilbrk/gen-lbrk: New file.
2037
2038 2008-05-11  Bruno Haible  <bruno@clisp.org>
2039
2040         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
2041         * m4/sha512.m4 (gl_SHA512): Likewise.
2042
2043 2008-05-11  Jim Meyering  <meyering@redhat.com>
2044
2045         New modules: crypto/sha256, crypto/sha512 (from coreutils)
2046         * modules/crypto/sha256: New file.
2047         * modules/crypto/sha512: Likewise.
2048         * lib/sha256.c: Likewise.
2049         * lib/sha256.h: Likewise.
2050         * lib/sha512.c: Likewise.
2051         * lib/sha512.h: Likewise.
2052         * lib/u64.h: Likewise.
2053         * m4/sha256.m4: Likewise.
2054         * m4/sha512.m4: Likewise.
2055         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
2056
2057 2008-05-10  Bruno Haible  <bruno@clisp.org>
2058
2059         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
2060         (Input/Output <stdio.h>): Add xprintf.
2061         (Signal handling <signal.h>): Add strsignal.
2062         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
2063         (Core language properties): Add func.
2064         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
2065         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
2066         strings.
2067         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
2068         (Input/output): New section.
2069         (File system functions): Add openat-die, stat-macros.
2070         (Networking functions): Add sockets.
2071         (Unicode string functions): Add unictype/*.
2072         (Support for building libraries and executables): Add gperf.
2073         (Support for building documentation): Add agpl-3.0.
2074         (Misc): Add nocrash.
2075
2076 2008-05-10  Bruno Haible  <bruno@clisp.org>
2077
2078         * modules/unictype/gen-ctype: New file.
2079
2080 2008-05-10  Jim Meyering  <meyering@redhat.com>
2081
2082         Make chdir-safer.c more efficient on a system with no symlinks.
2083         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
2084         also if ELOOP is zero.  Suggested by Bruno Haible.
2085
2086         Make chdir-safer.c slightly safer.
2087         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
2088         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
2089
2090         Avoid compile failure on systems without ELOOP (like mingw).
2091         * lib/chdir-safer.c (ELOOP): Define if not already defined.
2092         Reported by Bruno Haible.
2093
2094 2008-05-10  Bruno Haible  <bruno@clisp.org>
2095
2096         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
2097         (is_utf8_encoding): Use a case-insensitive comparison.
2098         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
2099         streq.
2100
2101 2008-05-10  Bruno Haible  <bruno@clisp.org>
2102
2103         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
2104         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
2105         * lib/unilbrk/ulc-common.h (iconv_string_length,
2106         iconv_string_keeping_offsets): Remove declarations.
2107         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
2108         Don't include <iconv.h>, streq.h, xsize.h.
2109         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
2110         conversion.
2111         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
2112         <iconv.h>, streq.h, xsize.h.
2113         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
2114         conversion.
2115         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
2116         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
2117         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
2118         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
2119
2120 2008-05-10  Bruno Haible  <bruno@clisp.org>
2121
2122         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
2123         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
2124
2125         * modules/unilbrk/u32-width-linebreaks-tests: New file.
2126         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
2127
2128         * modules/unilbrk/u16-width-linebreaks-tests: New file.
2129         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
2130
2131         * modules/unilbrk/u8-width-linebreaks-tests: New file.
2132         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
2133
2134         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
2135         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
2136
2137         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
2138         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
2139
2140         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
2141         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
2142
2143         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
2144         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
2145
2146 2008-05-10  Bruno Haible  <bruno@clisp.org>
2147
2148         Split up 'linebreak' module.
2149         * lib/unilbrk.h: New file, based on lib/linebreak.h.
2150         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
2151         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
2152         modifications.
2153         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
2154         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
2155         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
2156         lib/linebreak.c.
2157         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
2158         lib/linebreak.c.
2159         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
2160         lib/linebreak.c.
2161         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
2162         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
2163         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
2164         lib/linebreak.c.
2165         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
2166         lib/linebreak.c.
2167         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
2168         lib/linebreak.c.
2169         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
2170         lib/linebreak.c.
2171         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
2172         lib/linebreak.c.
2173         * modules/unilbrk/base: New file.
2174         * modules/unilbrk/tables: New file.
2175         * modules/unilbrk/u8-possible-linebreaks: New file.
2176         * modules/unilbrk/u16-possible-linebreaks: New file.
2177         * modules/unilbrk/u32-possible-linebreaks: New file.
2178         * modules/unilbrk/ulc-common: New file.
2179         * modules/unilbrk/ulc-possible-linebreaks: New file.
2180         * modules/unilbrk/u8-width-linebreaks: New file.
2181         * modules/unilbrk/u16-width-linebreaks: New file.
2182         * modules/unilbrk/u32-width-linebreaks: New file.
2183         * modules/unilbrk/ulc-width-linebreaks: New file.
2184         * lib/linebreak.h: Remove file.
2185         * lib/linebreak.c: Remove file.
2186         * m4/linebreak.m4: Remove file.
2187         * modules/linebreak: Remove file.
2188         * NEWS: Mention the changes.
2189
2190 2008-05-09  Eric Blake  <ebb9@byu.net>
2191
2192         Add xmemdup0.
2193         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
2194         implementation.
2195         * lib/xmalloc.c (xmemdup0): New C implementation.
2196
2197 2008-05-08  Bruno Haible  <bruno@clisp.org>
2198
2199         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
2200
2201 2008-05-07  Eric Blake  <ebb9@byu.net>
2202
2203         Support cross-compilation of <wctype.h>.
2204         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
2205         AC_CACHE_CHECK.
2206
2207 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
2208
2209         * build-aux/vc-list-files: Add support for bzr.
2210
2211 2008-05-03  Jim Meyering  <meyering@redhat.com>
2212
2213         avoid failed assertion with tight malloc
2214         * tests/test-getndelim2.c: Correct an off-by-one assertion.
2215
2216 2008-05-03  Simon Josefsson  <simon@josefsson.org>
2217
2218         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
2219         are needed from arpa/inet.h.
2220         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
2221         Reported by Bruno Haible.
2222
2223 2008-05-02  Jim Meyering  <meyering@redhat.com>
2224
2225         avoid compilation error on FreeBSD 6
2226         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
2227
2228 2008-05-01  Jim Meyering  <meyering@redhat.com>
2229
2230         useless-if-before-free: correct --help's exit status description
2231         * build-aux/useless-if-before-free (usage): Like grep, exit 0
2232         for one or more matches, etc.  Reported by Bruno Haible.
2233
2234         vc-list-files: make the stand-alone gnulib test work
2235         * modules/vc-list-files-tests (configure.ac):
2236         Define and AC_SUBST abs_aux_dir.
2237         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
2238         $(abs_top_srcdir) to each script and having each of them
2239         duplicate the work of setting PATH, set PATH here, using
2240         the new variable, abs_aux_dir instead.
2241         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
2242         * tests/test-vc-list-files-git.sh: Likewise.
2243         Reported by Bruno Haible.
2244
2245 2008-05-01  Bruno Haible  <bruno@clisp.org>
2246
2247         * lib/getndelim2.c (getndelim2): Fix newsize computation during
2248         reallocation. Rename 'done' to 'found_delimiter'.
2249
2250 2008-05-01  Jim Meyering  <meyering@redhat.com>
2251
2252         vc-list-files: accommodate /bin/sh like the one from Solaris 10
2253         * build-aux/vc-list-files: Use `...`, not $(...).
2254
2255 2008-04-30  Jim Meyering  <meyering@redhat.com>
2256
2257         add tests for vc-list-files
2258         * modules/vc-list-files-tests: New module.
2259         * tests/test-vc-list-files-cvs.sh: New file.
2260         * tests/test-vc-list-files-git.sh: New file.
2261
2262         avoid a warning from gcc
2263         * lib/getndelim2.c (IF_LINT): Define.
2264         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
2265
2266         vc-list-files: work properly with build-aux/cvsu, too
2267         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
2268         to all cvs-based clauses.
2269
2270         vc-list-files: work properly in the CVS+awk case, too
2271         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
2272
2273         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
2274         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
2275         take more than one file argument, so .  Add quotes, just in case $dir
2276         ever contains a shell meta-character.  Prompted by Soren Hansen in
2277         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
2278
2279 2008-04-29  Eric Blake  <ebb9@byu.net>
2280
2281         Optimize getndelim2 to use block operations when possible.
2282         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
2283         freadseek, and memchr2.
2284         * lib/getndelim2.c (getndelim2): Use them for block reads.
2285
2286 2008-04-29  Bruno Haible  <bruno@clisp.org>
2287
2288         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
2289         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2290         * modules/inet_ntop (Depends-on): Add extensions.
2291         * modules/inet_pton (Depends-on): Likewise.
2292         Reported by Simon Josefsson.
2293
2294 2008-04-29  Jim Meyering  <meyering@redhat.com>
2295
2296         When the is more than one match in a block, match all of them.
2297         * build-aux/useless-if-before-free: Iterate through each block
2298         until there are no more matches.
2299
2300         Fix broken useless-if-before-free script.
2301         * build-aux/useless-if-before-free: Fix typo: missing "?" after
2302         the expression to match cast of argument to free-like function.
2303
2304 2008-04-29  Eric Blake  <ebb9@byu.net>
2305
2306         Use new header.
2307         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
2308
2309 2008-04-29  Jim Meyering  <meyering@redhat.com>
2310
2311         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
2312         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
2313         by gnulib to exist and to declare e.g., inet_ntop.
2314         Don't include "inet_ntop.h", now removed.
2315
2316         * m4/arpa_inet_h.m4: Remove trailing blanks.
2317
2318 2008-04-29  Eric Blake  <ebb9@byu.net>
2319
2320         Silence valgrind on safe reads beyond potential array bounds.
2321         * lib/rawmemchr.valgrind: New file.
2322         * lib/strchrnul.valgrind: Likewise.
2323         * modules/rawmemchr (Files): Distribute new file.
2324         * modules/strchrnul (Files): Likewise.
2325         Suggested by Bruno Haible.
2326
2327 2008-04-29  Bruno Haible  <bruno@clisp.org>
2328
2329         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
2330         (inet_ntop, inet_pton): Change portability warning's wording.
2331         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
2332         Invoke gl_CHECK_NEXT_HEADERS.
2333         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
2334         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
2335         set ARPA_INET_H.
2336         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2337         * modules/arpa_inet (Description): No longer only for systems that
2338         lack it.
2339         (Depends-on): Add include_next.
2340         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
2341         HAVE_ARPA_INET_H.
2342
2343 2008-04-29  Jim Meyering  <meyering@redhat.com>
2344
2345         * modules/mkdir (License): Re-license as LGPLv2+.
2346
2347 2008-04-29  Bruno Haible  <bruno@clisp.org>
2348
2349         * modules/rawmemchr (Maintainer): Set to Eric.
2350         * modules/strchrnul (Maintainer): Likewise.
2351
2352 2008-04-29  Simon Josefsson  <simon@josefsson.org>
2353
2354         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
2355         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
2356
2357         * modules/arpa_inet (arpa/inet.h): Use them.
2358
2359 2008-04-28  Eric Blake  <ebb9@byu.net>
2360
2361         Test getndelim2.
2362         * modules/getndelim2-tests: New file.
2363         * tests/test-getndelim2.c: Likewise.
2364         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
2365         stream.
2366         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
2367
2368         * MODULES.html.sh: Document new module.
2369
2370 2008-04-20  Bruno Haible  <bruno@clisp.org>
2371
2372         * lib/c-stack.c (die): Use raise.
2373         * modules/c-stack (Depends-on): Add raise.
2374
2375 2008-04-28  Bruno Haible  <bruno@clisp.org>
2376
2377         Expect rpmatch to be declared.
2378         * lib/yesno.c (rpmatch): Remove declaration.
2379
2380         Declare rpmatch.
2381         * lib/stdlib.in.h (rpmatch): New declaration.
2382         * lib/rpmatch.c: Include <stdlib.h> first.
2383         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
2384         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
2385         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
2386         HAVE_RPMATCH.
2387         * modules/rpmatch (Depends-on): Add stdlib, extensions.
2388         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
2389         (Include): Set to <stdlib.h>.
2390         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
2391         HAVE_RPMATCH.
2392         * NEWS: Document the change.
2393
2394 2008-04-28  Bruno Haible  <bruno@clisp.org>
2395
2396         Change rpmatch to use nl_langinfo when appropriate.
2397         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
2398         (N_): New macro.
2399         (localized_pattern): New function/macro.
2400         (try): Remove match, nomatch arguments. Copy the pattern into safe
2401         memory before caching it.
2402         (rpmatch): Use localized_pattern. Add translator comments.
2403         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
2404         Suggested by Eric Blake.
2405         * modules/rpmatch (Depends-on): Add stdbool.
2406
2407 2008-04-28  Eric Blake  <ebb9@byu.net>
2408
2409         Add rawmemchr module, matching glibc.
2410         * modules/string (Makefile.am): New indicator.
2411         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
2412         * lib/string.in.h (rawmemchr): Declare when appropriate.
2413         * modules/rawmemchr: New file.
2414         * m4/rawmemchr.m4: Likewise.
2415         * lib/rawmemchr.c: Likewise.
2416         * modules/rawmemchr-tests: Likewise.
2417         * tests/test-rawmemchr.c: Likewise.
2418         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
2419         module.
2420         * modules/strchrnul (Depends-on): Add rawmemchr.
2421         * lib/strchrnul.c (strchrnul): Optimize a corner case.
2422
2423         Whitespace cleanup.
2424         * tests/test-strchrnul.c: Reindent.
2425         * lib/strchrnul.c: Likewise.
2426
2427         Optimize and test strchrnul.
2428         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
2429         * modules/strchrnul-tests: New file.
2430         * tests/test-strchrnul.c: Likewise.
2431
2432         Remove intprops dependency.
2433         * modules/memchr (Depends-on): Remove intprops.
2434         * modules/memrchr (Depends-on): Likewise.
2435         * modules/memchr2 (Depends-on): Likewise.
2436         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
2437         * lib/memrchr.c (__memrchr): Likewise.
2438         * lib/memrchr2.c (memchr2): Likewise.
2439         Reported by Simon Josefsson.
2440
2441 2008-04-28  Simon Josefsson  <simon@josefsson.org>
2442
2443         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
2444         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2445
2446 2008-04-28  Simon Josefsson  <simon@josefsson.org>
2447
2448         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
2449
2450         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
2451
2452         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
2453
2454         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
2455         declarations.
2456         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
2457
2458         * m4/inet_pton.m4: Don't check for header files.
2459
2460         * m4/inet_ntop.m4: Don't check for header files.
2461
2462 2008-04-28  Simon Josefsson  <simon@josefsson.org>
2463
2464         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
2465         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
2466         trigger for cygwin).
2467         Reported by Bruno Haible  <bruno@clisp.org>.
2468
2469 2008-04-28  Bruno Haible  <bruno@clisp.org>
2470
2471         * doc/posix-functions/strdup.texi: Mention mingw problem.
2472
2473 2008-04-27  Bruno Haible  <bruno@clisp.org>
2474
2475         * modules/stat-time-tests (Depends-on): Add sleep.
2476         * tests/test-stat-time.c (force_unlink): New function.
2477         (cleanup): Use it.
2478         (test_mtime): Remove the ctime related tests.
2479         (test_ctime): New function, containing the ctime related tests.
2480         (main): Call test_ctime, except on native Windows platforms.
2481
2482 2008-04-27  Bruno Haible  <bruno@clisp.org>
2483
2484         * lib/rpmatch.c (rpmatch): Add some comments.
2485         Reported by James Youngman <jay@gnu.org>.
2486
2487 2008-04-27  Bruno Haible  <bruno@clisp.org>
2488
2489         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
2490         quiet NaNs.
2491
2492 2008-04-27  Bruno Haible  <bruno@clisp.org>
2493
2494         Make test-yesno.sh work on mingw.
2495         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
2496         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
2497         (main): Set stdin to binary mode.
2498         * modules/yesno-tests (Depends-on): Add binary-io.
2499
2500 2008-04-27  Bruno Haible  <bruno@clisp.org>
2501
2502         Fix 'isfinite' on x86, x86_64, ia64 platforms.
2503         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
2504         argument that lie outside the IEEE 854 domain.
2505         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
2506         (gl_ISFINITE): Use it.
2507         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
2508
2509 2008-04-27  Bruno Haible  <bruno@clisp.org>
2510
2511         Allow local renaming in config.h.
2512         * lib/memrchr.c (memrchr): Don't undefine outside libc.
2513
2514 2008-04-27  Bruno Haible  <bruno@clisp.org>
2515
2516         * lib/memchr.c (__memchr): Change type of 'i'.
2517         * lib/memchr2.c (memchr2): Likewise.
2518
2519 2008-04-26  Eric Blake  <ebb9@byu.net>
2520         and Bruno Haible  <bruno@clisp.org>
2521
2522         Optimize and test memrchr.
2523         * modules/memrchr (Depends-on): Add intprops.
2524         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
2525         * modules/memrchr-tests: New file.
2526         * tests/test-memrchr.c: New file.
2527
2528 2008-04-26  Bruno Haible  <bruno@clisp.org>
2529
2530         Add tentative support for DragonFly BSD.
2531         * lib/stdio-impl.h: Add macros for DragonFly BSD.
2532         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
2533         fp.
2534         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
2535         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
2536         * lib/fpurge.c (fpurge): Likewise.
2537         * lib/freadable.c (freaadable): Likewise.
2538         * lib/freadahead.c (freadahead): Likewise.
2539         * lib/freading.c (freading): Likewise.
2540         * lib/freadptr.c (freadptr): Likewise.
2541         * lib/freadseek.c (freadptrinc): Likewise.
2542         * lib/fseeko.c (fseeko): Likewise.
2543         * lib/fseterr.c (fseterr): Likewise.
2544         * lib/fwritable.c (fwritable): Likewise.
2545         * lib/fwriting.c (fwriting): Likewise.
2546
2547 2008-04-26  Bruno Haible  <bruno@clisp.org>
2548
2549         * lib/stdio-impl.h: New file.
2550         * lib/fbufmode.c: Include stdio-impl.h.
2551         (fbufmode): Use fp_, remove redundant #defines.
2552         * lib/fflush.c: Include stdio-impl.h.
2553         (clear_ungetc_buffer): Remove redundant #defines.
2554         * lib/fpurge.c: Include stdio-impl.h.
2555         (fpurge): Remove redundant #defines.
2556         * lib/freadable.c: Include stdio-impl.h.
2557         (freadable): Remove redundant #defines.
2558         * lib/freadahead.c: Include stdio-impl.h.
2559         (freadahead): Remove redundant #defines.
2560         * lib/freading.c: Include stdio-impl.h.
2561         (freading): Remove redundant #defines.
2562         * lib/freadptr.c: Include stdio-impl.h.
2563         (freadptr): Remove redundant #defines.
2564         * lib/freadseek.c: Include stdio-impl.h.
2565         (freadptrinc): Remove redundant #defines.
2566         * lib/fseeko.c: Include stdio-impl.h.
2567         (rpl_fseeko): Remove redundant #defines.
2568         * lib/fseterr.c: Include stdio-impl.h.
2569         (fseterr): Remove redundant #defines.
2570         * lib/fwritable.c: Include stdio-impl.h.
2571         (fwritable: Remove redundant #defines.
2572         * lib/fwriting.c: Include stdio-impl.h.
2573         (fwriting): Remove redundant #defines.
2574         * modules/fbufmode (Files): Add lib/stdio-impl.h.
2575         * modules/fflush (Files): Likewise.
2576         * modules/fpurge (Files): Likewise.
2577         * modules/freadable (Files): Likewise.
2578         * modules/freadahead (Files): Likewise.
2579         * modules/freading (Files): Likewise.
2580         * modules/freadptr (Files): Likewise.
2581         * modules/freadseek (Files): Likewise.
2582         * modules/fseeko (Files): Likewise.
2583         * modules/fseterr (Files): Likewise.
2584         * modules/fwritable (Files): Likewise.
2585         * modules/fwriting (Files): Likewise.
2586
2587 2008-04-26  Bruno Haible  <bruno@clisp.org>
2588
2589         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
2590         restore_seek_optimization, update_fpos_cache): New functions, extracted
2591         from rpl_fflush.
2592         (rpl_fflush): Use them.
2593         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
2594         (gl_REPLACE_FFLUSH): Use it.
2595
2596 2008-04-26  Bruno Haible  <bruno@clisp.org>
2597
2598         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
2599         on Solaris.
2600         * tests/test-xstrtoimax.sh: Likewise.
2601         * tests/test-xstrtoumax.sh: Likewise.
2602         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2603
2604 2008-04-26  Bruno Haible  <bruno@clisp.org>
2605
2606         * modules/memchr-tests: New file.
2607         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
2608
2609 2008-04-26  Eric Blake  <ebb9@byu.net>
2610             Bruno Haible  <bruno@clisp.org>
2611
2612         * lib/memchr.c: Include intprops.h.
2613         (__memchr): Optimize parallel detection of matching bytes. Rename local
2614         variables. Add explanatory comments.
2615
2616 2008-04-26  Bruno Haible  <bruno@clisp.org>
2617
2618         Fix module 'memchr', broken since 2000-10-28.
2619         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
2620
2621 2008-04-26  Bruno Haible  <bruno@clisp.org>
2622
2623         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
2624         comments.
2625
2626 2008-04-25  Eric Blake  <ebb9@byu.net>
2627
2628         Use native fstatat on cygwin 1.7.0.
2629         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
2630         first.
2631
2632 2008-04-23  Eric Blake  <ebb9@byu.net>
2633
2634         Improve memchr2 performance.
2635         * lib/memchr2.c (memchr2): Further optimize parallel detection of
2636         NUL bytes.
2637         * modules/memchr2 (Depends-on): Use intprops.h.
2638
2639 2008-04-23  Simon Josefsson  <simon@josefsson.org>
2640
2641         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
2642         an inline function instead of a CPP macro.  Patch by Ben Pfaff
2643         <blp@cs.stanford.edu>.
2644
2645 2008-04-23  Simon Josefsson  <simon@josefsson.org>
2646
2647         * lib/arpa_inet.in.h: New file.
2648
2649         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
2650         (Makefile.am): Sed in substitute header file.
2651
2652         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
2653         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
2654
2655         * modules/inet_ntop (configure.ac): Use
2656         gl_ARPA_INET_MODULE_INDICATOR.
2657
2658         * modules/inet_pton (configure.ac): Use
2659         gl_ARPA_INET_MODULE_INDICATOR.
2660
2661 2008-04-22  Jim Meyering  <meyering@redhat.com>
2662
2663         * modules/verify (License): Re-license as LGPLv2+.
2664
2665 2008-04-22  Simon Josefsson  <simon@josefsson.org>
2666
2667         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
2668         parameter to void* as per POSIX standard (MinGW uses char*).
2669
2670 2008-04-21  Bruno Haible  <bruno@clisp.org>
2671
2672         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
2673         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
2674         Define to replacements if REPLACE_ISWCNTRL is 1.
2675         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
2676         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
2677         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
2678         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
2679         what it fixes.
2680         * doc/posix-functions/iswalpha.texi: Likewise.
2681         * doc/posix-functions/iswblank.texi: Likewise.
2682         * doc/posix-functions/iswcntrl.texi: Likewise.
2683         * doc/posix-functions/iswdigit.texi: Likewise.
2684         * doc/posix-functions/iswgraph.texi: Likewise.
2685         * doc/posix-functions/iswlower.texi: Likewise.
2686         * doc/posix-functions/iswprint.texi: Likewise.
2687         * doc/posix-functions/iswpunct.texi: Likewise.
2688         * doc/posix-functions/iswspace.texi: Likewise.
2689         * doc/posix-functions/iswupper.texi: Likewise.
2690         * doc/posix-functions/iswxdigit.texi: Likewise.
2691         Reported by Alain Guibert.
2692
2693 2008-04-21  Bruno Haible  <bruno@clisp.org>
2694
2695         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
2696         Patch by Alain Guibert.
2697
2698 2008-04-21  Bruno Haible  <bruno@clisp.org>
2699
2700         Fix test failures on mingw.
2701         * tests/test-xstrtol.c (print_no_progname): New function.
2702         (main): Install it in error_print_progname hook.
2703         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
2704         * tests/test-xstrtoimax.sh: Likewise.
2705         * tests/test-xstrtoumax.sh: Likewise.
2706
2707 2008-04-21  Bruno Haible  <bruno@clisp.org>
2708
2709         Fix test failure on mingw.
2710         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
2711
2712 2008-04-21  Bruno Haible  <bruno@clisp.org>
2713
2714         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
2715         Actually assign a value.
2716
2717 2008-04-20  Bruno Haible  <bruno@clisp.org>
2718
2719         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
2720         take 2.
2721         * lib/canonicalize.c (canonicalize_file_name): Elide if the
2722         'canonicalize-lgpl' module is also used.
2723         * lib/canonicalize-lgpl.c: Undo last change.
2724         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
2725
2726 2008-04-20  Bruno Haible  <bruno@clisp.org>
2727
2728         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
2729         config.h. Provide _mkdir based fallback for mingw.
2730         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
2731         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
2732         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
2733         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
2734         rather than defining mkdir in config.h.
2735         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
2736         (gl_SYS_STAT_H_DEFAULTS): New macro.
2737         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
2738         HAVE_IO_H any more.
2739         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
2740         HAVE_DECL_MKDIR and HAVE_IO_H.
2741
2742 2008-04-20  Bruno Haible  <bruno@clisp.org>
2743
2744         * lib/isapipe.c: Port to native Windows platforms.
2745
2746 2008-04-20  Bruno Haible  <bruno@clisp.org>
2747
2748         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
2749
2750 2008-04-21  Eric Blake  <ebb9@byu.net>
2751
2752         Work around preprocessors that don't handle UINTMAX_MAX.
2753         * lib/memchr2.c (memchr2): Avoid embedded #if.
2754         Reported by Alain Guibert, fix suggested by Bruno Haible.
2755
2756 2008-04-21  Simon Josefsson  <simon@josefsson.org>
2757
2758         * doc/posix-functions/strftime.texi (strftime): Explain better
2759         Windows incompatibility.  Suggested by Micah Cowan
2760         <micah@cowan.name>.
2761
2762 2008-04-20  Bruno Haible  <bruno@clisp.org>
2763
2764         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
2765         unistr/u8-mblen.
2766
2767 2008-04-20  Bruno Haible  <bruno@clisp.org>
2768
2769         Fix test failure on platforms with non-GNU iconv.
2770         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
2771         (U_TO_U8): Use it, rather than u16_to_u8.
2772         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
2773         units at the end of the input string.
2774         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
2775
2776 2008-04-20  Bruno Haible  <bruno@clisp.org>
2777
2778         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
2779         when the resulting length is 0.
2780         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
2781
2782 2008-04-20  Bruno Haible  <bruno@clisp.org>
2783
2784         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
2785         works.
2786         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
2787
2788 2008-04-20  Bruno Haible  <bruno@clisp.org>
2789
2790         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
2791         * modules/tsearch-tests (configure.ac): Test for initstate function.
2792
2793 2008-04-20  Bruno Haible  <bruno@clisp.org>
2794
2795         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
2796         for nlink_t if missing.
2797         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
2798
2799 2008-04-19  Bruno Haible  <bruno@clisp.org>
2800
2801         Work around snprintf bug on Linux libc5.
2802         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
2803         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2804         gl_SNPRINTF_SIZE1.
2805         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2806         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
2807         that test failed.
2808         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2809         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
2810         * modules/snprintf (Files): Add m4/printf.m4.
2811         * modules/vsnprintf (Files): Likewise.
2812         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
2813         * doc/posix-functions/vsnprintf.texi: Likewise.
2814
2815 2008-04-19  Bruno Haible  <bruno@clisp.org>
2816
2817         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
2818         from 0.0058 to less than 10^-7.
2819
2820 2008-04-19  Bruno Haible  <bruno@clisp.org>
2821
2822         Fix rounding when a precision is given.
2823         * lib/vasnprintf.c (is_borderline): New function.
2824         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
2825         9...9x.
2826         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
2827         %e, %g.
2828         * tests/test-vasprintf-posix.c (test_function): Likewise.
2829         * tests/test-snprintf-posix.h (test_function): Likewise.
2830         * tests/test-sprintf-posix.h (test_function): Likewise.
2831         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
2832         * tests/test-printf-posix.h (test_function): Likewise.
2833         * tests/test-printf-posix.output: Update.
2834         Reported by John Darrington <john@darrington.wattle.id.au> via
2835         Ben Pfaff <blp@cs.stanford.edu>.
2836
2837 2008-04-18  Simon Josefsson  <simon@josefsson.org>
2838
2839         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
2840         Suggested by Bruno Haible <bruno@clisp.org>.
2841
2842 2008-04-17  Bruno Haible  <bruno@clisp.org>
2843
2844         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
2845         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
2846         implementation.
2847         Patch by Bruce Merry <bmerry@gmail.com>.
2848
2849 2008-04-17  Simon Josefsson  <simon@josefsson.org>
2850
2851         * doc/posix-functions/strftime.texi (strftime): Mention that %e
2852         doesn't work under Windows.
2853
2854 2008-04-16  Bruno Haible  <bruno@clisp.org>
2855
2856         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
2857         New macros.
2858         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
2859         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
2860         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
2861         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
2862         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
2863         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
2864         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
2865         macros.
2866         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
2867         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
2868         Northern Sotho, Uighur.
2869
2870 2008-04-16  Bruno Haible  <bruno@clisp.org>
2871
2872         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
2873         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
2874         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
2875         Reported by Daniel Bergström <daniel@octocode.com>.
2876
2877 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
2878             Bruno Haible  <bruno@clisp.org>
2879
2880         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
2881         function.
2882         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
2883         New functions, mostly extracted from gl_locale_name_default.
2884         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
2885
2886 2008-04-16  Eric Blake  <ebb9@byu.net>
2887
2888         Adjust strtod detection to catch glibc 2.7 bug.
2889         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
2890         Reported by John Gatewood Ham.
2891
2892 2008-04-16  Bruno Haible  <bruno@clisp.org>
2893
2894         Add tentative support for Linux libc5.
2895         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
2896         * lib/fpurge.c (fpurge): Likewise.
2897         * lib/freadable.c (freadable): Likewise.
2898         * lib/freadahead.c (freadahead): Likewise.
2899         * lib/freading.c (freading): Likewise.
2900         * lib/freadptr.c (freadptr): Likewise.
2901         * lib/freadseek.c (freadptrinc): Likewise.
2902         * lib/fseeko.c (rpl_fseeko): Likewise.
2903         * lib/fseterr.c (fseterr): Likewise.
2904         * lib/fwritable.c (fwritable): Likewise.
2905         * lib/fwriting.c (fwriting): Likewise.
2906         Reported by Alain Guibert <alguibert+bts@free.fr>.
2907
2908 2008-04-15  Bruno Haible  <bruno@clisp.org>
2909
2910         * modules/mathl (configure.ac): Define module indicator.
2911
2912 2008-04-15  Bruno Haible  <bruno@clisp.org>
2913
2914         * lib/logl.c (logl): Remove unused variables.
2915
2916 2008-04-15  Bruno Haible  <bruno@clisp.org>
2917
2918         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
2919         fails.
2920
2921 2008-04-15  Bruno Haible  <bruno@clisp.org>
2922
2923         * lib/trim.c (trim2): Fix argument of isspace() macro.
2924
2925 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
2926
2927         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
2928         to 0.
2929         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
2930
2931 2008-04-14  Bruno Haible  <bruno@clisp.org>
2932
2933         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
2934         AC_LANG_PROGRAM argument.
2935         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
2936         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
2937         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
2938         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2939         * m4/math_h.m4 (gl_MATH_H): Likewise.
2940         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
2941         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2942         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
2943         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
2944         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
2945         * m4/regex.m4 (gl_REGEX): Likewise.
2946         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
2947         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
2948         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2949         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
2950         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
2951         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2952         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2953         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2954
2955 2008-04-14  Jim Meyering  <meyering@redhat.com>
2956
2957         test-strtod: fix typos: s/abs/fabs/
2958         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
2959
2960 2008-04-13  Bruno Haible  <bruno@clisp.org>
2961
2962         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
2963         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
2964         module is also used and while not building the reloc-wrapper.
2965
2966 2008-04-13  Bruno Haible  <bruno@clisp.org>
2967
2968         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
2969
2970 2008-04-13  Bruno Haible  <bruno@clisp.org>
2971
2972         Fix AIX compilation failure introduced on 2008-04-02.
2973         * tests/test-frexp.c (exp): Undefine before redefining.
2974         * tests/test-frexpl.c (exp): Likewise.
2975
2976 2008-04-13  Bruno Haible  <bruno@clisp.org>
2977
2978         Work around a HP-UX stdio bug.
2979         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
2980         * tests/test-ftello.c (main): Likewise.
2981         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
2982         * doc/posix-functions/ftello.texi: Likewise.
2983
2984 2008-04-13  Bruno Haible  <bruno@clisp.org>
2985
2986         Make test-signbit pass on HP-UX/hppa.
2987         * tests/test-signbit.c (minus_zerol): New variable.
2988         (test_signbitl): Use it.
2989
2990 2008-04-13  Bruno Haible  <bruno@clisp.org>
2991
2992         Make truncl work on OSF/1 4.0.
2993         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
2994         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
2995         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
2996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
2997         HAVE_DECL_TRUNCL.
2998         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
2999         HAVE_DECL_TRUNCL.
3000         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
3001
3002 2008-04-13  Bruno Haible  <bruno@clisp.org>
3003
3004         * lib/unictype.h: Remove trailing comma from enumeration definitions.
3005
3006 2008-04-13  Bruno Haible  <bruno@clisp.org>
3007
3008         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
3009         expression, so as to avoid HP-UX 11 cc compiler bug.
3010
3011 2008-04-13  Bruno Haible  <bruno@clisp.org>
3012
3013         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
3014
3015 2008-04-13  Bruno Haible  <bruno@clisp.org>
3016
3017         * lib/git-merge-changelog.c: Remove empty declaration outside of
3018         functions.
3019
3020 2008-04-13  Bruno Haible  <bruno@clisp.org>
3021
3022         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
3023
3024 2008-04-13  Bruno Haible  <bruno@clisp.org>
3025
3026         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
3027         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
3028         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
3029         also if it exists but lacks definitions of the SHUT_* macros.
3030         * modules/sys_socket (Description): Update.
3031         Reported by Elbert Pol <e.pol@chello.nl>.
3032
3033 2008-04-13  Bruno Haible  <bruno@clisp.org>
3034
3035         * lib/localcharset.c (OS2): Don't redefine if already defined.
3036         Reported by Elbert Pol <e.pol@chello.nl>.
3037
3038 2008-04-13  Bruno Haible  <bruno@clisp.org>
3039
3040         * lib/binary-io.h [__EMX__]: Include <io.h>.
3041         Reported by Elbert Pol <e.pol@chello.nl>.
3042
3043 2008-04-12  Bruno Haible  <bruno@clisp.org>
3044
3045         * lib/fpucw.h: Enable the definitions also for x86_64.
3046         Needed for NetBSD/x86_64.
3047         Reported by Thomas Klausner <tk@giga.or.at>.
3048
3049 2008-04-12  Bruno Haible  <bruno@clisp.org>
3050
3051         * tests/test-strtod.c: Include isnand.h.
3052         (main): Use isnand instead of isnan.
3053         Reported by Jim Meyering.
3054
3055 2008-04-12  Bruno Haible  <bruno@clisp.org>
3056
3057         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
3058         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3059
3060 2008-04-12  Jim Meyering  <meyering@redhat.com>
3061
3062         * m4/math_h.m4 (gl_MATH_H): Fix typos.
3063
3064 2008-04-12  Bruno Haible  <bruno@clisp.org>
3065
3066         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
3067         Reported by Elbert Pol <e.pol@chello.nl>.
3068
3069 2008-04-12  Eric Blake  <ebb9@byu.net>
3070
3071         Work around Solaris 10 math.h bug.
3072         * m4/math_h.m4 (gl_MATH_H): Check for bug.
3073         (gl_MATH_H_DEFAULTS): Set up default.
3074         * modules/math (Makefile.am): Replace new indicators.
3075         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
3076         * tests/test-math.c (main): Test this.
3077         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
3078         * doc/posix-headers/math.texi (math.h): Mention bug.
3079         Reported by Nelson H. F. Beebe and Jim Meyering.
3080
3081 2008-04-11  Bruno Haible  <bruno@clisp.org>
3082
3083         Adapt to future versions of Apple GCC.
3084         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
3085         Reported by Peter O'Gorman <peter@pogma.com>.
3086
3087 2008-04-11  Bruno Haible  <bruno@clisp.org>
3088
3089         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
3090
3091 2008-04-11  Bruno Haible  <bruno@clisp.org>
3092
3093         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
3094
3095         * modules/getaddrinfo-tests (Makefile.am): Define
3096         test_getaddrinfo_LDADD.
3097
3098 2008-04-11  Bruno Haible  <bruno@clisp.org>
3099
3100         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
3101         (init): Fix syntax error.
3102         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
3103         is declared.
3104
3105 2008-04-11  Bruno Haible  <bruno@clisp.org>
3106
3107         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
3108         * modules/glob (Depends-on): Add stdbool.
3109
3110 2008-04-11  Bruno Haible  <bruno@clisp.org>
3111
3112         * lib/trim.c: Include <string.h>.
3113
3114 2008-04-11  Eric Blake  <ebb9@byu.net>
3115
3116         Avoid compile failure on OS/2.
3117         * lib/regex_internal.h (internal_function): Disable optimization
3118         on OS/2 (__EMX__), where it caused compiler error.
3119         Reported by Elbert Pol.
3120
3121 2008-04-11  Bruno Haible  <bruno@clisp.org>
3122
3123         Flush the standard error stream before aborting. Needed on mingw.
3124         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
3125         * tests/test-array_list.c (ASSERT): Likewise.
3126         * tests/test-array_oset.c (ASSERT): Likewise.
3127         * tests/test-avltree_list.c (ASSERT): Likewise.
3128         * tests/test-avltree_oset.c (ASSERT): Likewise.
3129         * tests/test-avltreehash_list.c (ASSERT): Likewise.
3130         * tests/test-binary-io.c (ASSERT): Likewise.
3131         * tests/test-byteswap.c (ASSERT): Likewise.
3132         * tests/test-c-ctype.c (ASSERT): Likewise.
3133         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
3134         * tests/test-c-strcasestr.c (ASSERT): Likewise.
3135         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
3136         * tests/test-c-strstr.c (ASSERT): Likewise.
3137         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
3138         * tests/test-canonicalize.c (ASSERT): Likewise.
3139         * tests/test-carray_list.c (ASSERT): Likewise.
3140         * tests/test-ceilf1.c (ASSERT): Likewise.
3141         * tests/test-ceilf2.c (ASSERT): Likewise.
3142         * tests/test-ceill.c (ASSERT): Likewise.
3143         * tests/test-count-one-bits.c (ASSERT): Likewise.
3144         * tests/test-fbufmode.c (ASSERT): Likewise.
3145         * tests/test-fflush2.c (ASSERT): Likewise.
3146         * tests/test-floorf1.c (ASSERT): Likewise.
3147         * tests/test-floorf2.c (ASSERT): Likewise.
3148         * tests/test-floorl.c (ASSERT): Likewise.
3149         * tests/test-fopen.c (ASSERT): Likewise.
3150         * tests/test-fpending.c (ASSERT): Likewise.
3151         * tests/test-fprintf-posix.c (ASSERT): Likewise.
3152         * tests/test-fpurge.c (ASSERT): Likewise.
3153         * tests/test-freadable.c (ASSERT): Likewise.
3154         * tests/test-freadahead.c (ASSERT): Likewise.
3155         * tests/test-freading.c (ASSERT): Likewise.
3156         * tests/test-freadptr.c (ASSERT): Likewise.
3157         * tests/test-freadptr2.c (ASSERT): Likewise.
3158         * tests/test-freadseek.c (ASSERT): Likewise.
3159         * tests/test-freopen.c (ASSERT): Likewise.
3160         * tests/test-frexp.c (ASSERT): Likewise.
3161         * tests/test-frexpl.c (ASSERT): Likewise.
3162         * tests/test-fseek.c (ASSERT): Likewise.
3163         * tests/test-fseeko.c (ASSERT): Likewise.
3164         * tests/test-fstrcmp.c (ASSERT): Likewise.
3165         * tests/test-ftell.c (ASSERT): Likewise.
3166         * tests/test-ftello.c (ASSERT): Likewise.
3167         * tests/test-func.c (ASSERT): Likewise.
3168         * tests/test-fwritable.c (ASSERT): Likewise.
3169         * tests/test-fwriting.c (ASSERT): Likewise.
3170         * tests/test-getdelim.c (ASSERT): Likewise.
3171         * tests/test-getline.c (ASSERT): Likewise.
3172         * tests/test-i-ring.c (ASSERT): Likewise.
3173         * tests/test-iconv-utf.c (ASSERT): Likewise.
3174         * tests/test-iconv.c (ASSERT): Likewise.
3175         * tests/test-isfinite.c (ASSERT): Likewise.
3176         * tests/test-isnand.c (ASSERT): Likewise.
3177         * tests/test-isnanf.c (ASSERT): Likewise.
3178         * tests/test-isnanl.h (ASSERT): Likewise.
3179         * tests/test-ldexpl.c (ASSERT): Likewise.
3180         * tests/test-linked_list.c (ASSERT): Likewise.
3181         * tests/test-linkedhash_list.c (ASSERT): Likewise.
3182         * tests/test-localename.c (ASSERT): Likewise.
3183         * tests/test-lseek.c (ASSERT): Likewise.
3184         * tests/test-mbscasecmp.c (ASSERT): Likewise.
3185         * tests/test-mbscasestr1.c (ASSERT): Likewise.
3186         * tests/test-mbscasestr2.c (ASSERT): Likewise.
3187         * tests/test-mbscasestr3.c (ASSERT): Likewise.
3188         * tests/test-mbscasestr4.c (ASSERT): Likewise.
3189         * tests/test-mbschr.c (ASSERT): Likewise.
3190         * tests/test-mbscspn.c (ASSERT): Likewise.
3191         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
3192         * tests/test-mbspbrk.c (ASSERT): Likewise.
3193         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
3194         * tests/test-mbsrchr.c (ASSERT): Likewise.
3195         * tests/test-mbsspn.c (ASSERT): Likewise.
3196         * tests/test-mbsstr1.c (ASSERT): Likewise.
3197         * tests/test-mbsstr2.c (ASSERT): Likewise.
3198         * tests/test-mbsstr3.c (ASSERT): Likewise.
3199         * tests/test-memchr2.c (ASSERT): Likewise.
3200         * tests/test-memmem.c (ASSERT): Likewise.
3201         * tests/test-open.c (ASSERT): Likewise.
3202         * tests/test-printf-frexp.c (ASSERT): Likewise.
3203         * tests/test-printf-frexpl.c (ASSERT): Likewise.
3204         * tests/test-printf-posix.c (ASSERT): Likewise.
3205         * tests/test-quotearg.c (ASSERT): Likewise.
3206         * tests/test-rbtree_list.c (ASSERT): Likewise.
3207         * tests/test-rbtree_oset.c (ASSERT): Likewise.
3208         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
3209         * tests/test-round1.c (ASSERT): Likewise.
3210         * tests/test-roundf1.c (ASSERT): Likewise.
3211         * tests/test-roundl.c (ASSERT): Likewise.
3212         * tests/test-signbit.c (ASSERT): Likewise.
3213         * tests/test-sleep.c (ASSERT): Likewise.
3214         * tests/test-snprintf-posix.c (ASSERT): Likewise.
3215         * tests/test-snprintf.c (ASSERT): Likewise.
3216         * tests/test-sprintf-posix.c (ASSERT): Likewise.
3217         * tests/test-stat-time.c (ASSERT): Likewise.
3218         * tests/test-strcasestr.c (ASSERT): Likewise.
3219         * tests/test-strerror.c (ASSERT): Likewise.
3220         * tests/test-striconv.c (ASSERT): Likewise.
3221         * tests/test-striconveh.c (ASSERT): Likewise.
3222         * tests/test-striconveha.c (ASSERT): Likewise.
3223         * tests/test-strsignal.c (ASSERT): Likewise.
3224         * tests/test-strstr.c (ASSERT): Likewise.
3225         * tests/test-strtod.c (ASSERT): Likewise.
3226         * tests/test-trunc1.c (ASSERT): Likewise.
3227         * tests/test-trunc2.c (ASSERT): Likewise.
3228         * tests/test-truncf1.c (ASSERT): Likewise.
3229         * tests/test-truncf2.c (ASSERT): Likewise.
3230         * tests/test-truncl.c (ASSERT): Likewise.
3231         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
3232         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
3233         * tests/test-vasnprintf.c (ASSERT): Likewise.
3234         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
3235         * tests/test-vasprintf.c (ASSERT): Likewise.
3236         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
3237         * tests/test-vprintf-posix.c (ASSERT): Likewise.
3238         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
3239         * tests/test-vsnprintf.c (ASSERT): Likewise.
3240         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
3241         * tests/test-wcwidth.c (ASSERT): Likewise.
3242         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
3243         * tests/test-xprintf-posix.c (ASSERT): Likewise.
3244         * tests/test-xvasprintf.c (ASSERT): Likewise.
3245         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
3246         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
3247         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
3248         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
3249         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
3250         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
3251         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
3252         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
3253         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
3254         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
3255         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
3256         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
3257         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
3258         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
3259         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
3260         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
3261         * tests/unictype/test-block_list.c (ASSERT): Likewise.
3262         * tests/unictype/test-block_of.c (ASSERT): Likewise.
3263         * tests/unictype/test-block_test.c (ASSERT): Likewise.
3264         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
3265         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
3266         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
3267         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
3268         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
3269         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
3270         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
3271         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
3272         * tests/unictype/test-combining.c (ASSERT): Likewise.
3273         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
3274         * tests/unictype/test-digit.c (ASSERT): Likewise.
3275         * tests/unictype/test-mirror.c (ASSERT): Likewise.
3276         * tests/unictype/test-numeric.c (ASSERT): Likewise.
3277         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
3278         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
3279         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
3280         * tests/unictype/test-scripts.c (ASSERT): Likewise.
3281         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
3282         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
3283         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
3284         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
3285         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
3286         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
3287         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
3288         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
3289         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
3290         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
3291         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
3292         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
3293         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
3294         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
3295         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
3296         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
3297         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
3298         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
3299         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
3300         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
3301         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
3302         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
3303         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
3304         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
3305         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
3306         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
3307         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
3308         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
3309         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
3310         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
3311         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
3312         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
3313         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
3314         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
3315         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
3316         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
3317         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
3318         Reported by Eric Blake.
3319
3320 2008-04-11  Bruno Haible  <bruno@clisp.org>
3321
3322         * lib/wchar.in.h: Tweak comment.
3323
3324 2008-04-11  Bruno Haible  <bruno@clisp.org>
3325
3326         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
3327         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
3328         gl_COMMON.
3329         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
3330
3331 2008-04-11  Bruno Haible  <bruno@clisp.org>
3332
3333         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
3334
3335 2008-04-11  Simon Josefsson  <simon@josefsson.org>
3336
3337         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
3338         of attempting to use non-existing /dev/*random.  Based on patch
3339         from Adam Strzelecki <ono@java.pl> in
3340         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
3341
3342 2008-04-08  Bruno Haible  <bruno@clisp.org>
3343
3344         Add tentative support for emx+gcc.
3345         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
3346         * lib/fpurge.c (fpurge): Likewise.
3347         * lib/freadable.c (freadable): Likewise.
3348         * lib/freadahead.c (freadahead): Likewise.
3349         * lib/freading.c (freading): Likewise.
3350         * lib/freadptr.c (freadptr): Likewise.
3351         * lib/freadseek.c (freadptrinc): Likewise.
3352         * lib/fseeko.c (rpl_fseeko): Likewise.
3353         * lib/fseterr.c (fseterr): Likewise.
3354         * lib/fwritable.c (fwritable): Likewise.
3355         * lib/fwriting.c (fwriting): Likewise.
3356         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
3357
3358 2008-04-09  Eric Blake  <ebb9@byu.net>
3359
3360         Avoid some autoconf warnings.
3361         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
3362         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
3363         * m4/afs.m4 (gl_AFS): Likewise.
3364         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
3365         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
3366         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
3367         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
3368         (gl_INTEGER_TYPE_SUFFIX): Likewise.
3369         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
3370         (AC_CHECK_DECLS_ONCE): Likewise.
3371         Rename file...
3372         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
3373         gnulib-tool requires autoconf 2.59 or better.
3374         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
3375
3376 2008-04-08  Eric Blake  <ebb9@byu.net>
3377
3378         Use 'git describe --match' if present (added in git 1.5.5).
3379         * build-aux/git-version-gen: Limit result to tags that match 'v*'
3380         if possible.
3381
3382 2008-04-08  Bruno Haible  <bruno@clisp.org>
3383
3384         Add tentative support for OpenServer.
3385         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
3386         _ptr, _cnt.
3387         * lib/fpurge.c (fpurge): Likewise.
3388         * lib/freadable.c (freadable): Likewise.
3389         * lib/freadahead.c (freadahead): Likewise.
3390         * lib/freading.c (freading): Likewise.
3391         * lib/freadptr.c (freadptr): Likewise.
3392         * lib/freadseek.c (freadptrinc): Likewise.
3393         * lib/fseeko.c (rpl_fseeko): Likewise.
3394         * lib/fseterr.c (fseterr): Likewise.
3395         * lib/fwritable.c (fwritable): Likewise.
3396         * lib/fwriting.c (fwriting): Likewise.
3397         Reported by Roger Cornelius <rac@tenzing.org> and
3398         Brian K. White <brian@aljex.com>.
3399
3400 2008-04-06  Jim Meyering  <meyering@redhat.com>
3401
3402         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
3403
3404 2008-04-06  Bruno Haible  <bruno@clisp.org>
3405
3406         Avoid possible error with non-ASCII bytes in UTF-8 locales.
3407         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
3408         * tests/test-printf-posix.sh: Likewise.
3409         * tests/test-vfprintf-posix.sh: Likewise.
3410         * tests/test-vprintf-posix.sh: Likewise.
3411         * tests/test-xprintf-posix.sh: Likewise.
3412
3413 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3414
3415         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
3416         hide error from 'ls', needed on OS/2.
3417         Report by Elbert Pol <elbert.pol@gmail.com>.
3418
3419 2008-04-04  Eric Blake  <ebb9@byu.net>
3420
3421         Make test-fseeko.c failures meaningful.
3422         * tests/test-fseeko.c: Print line number on failure.
3423         * tests/test-fseek.c: Likewise.
3424         Reported by Nelson H. F. Beebe.
3425
3426         Improve strtod bug detection check.
3427         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
3428         required for Solaris 10.
3429         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
3430
3431 2008-04-04  Bruno Haible  <bruno@clisp.org>
3432
3433         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
3434         by m4/setenv.m4.
3435
3436 2008-04-03  Eric Blake  <ebb9@byu.net>
3437
3438         Ensure sane .version contents.
3439         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
3440         version string.
3441         * build-aux/git-version-gen: Improve documentation.
3442
3443         Make GNU make output nicer.
3444         * top/GNUmakefile [!_have-Makefile]: Add dependency on
3445         MAKECMDGOALS to enforce message for all command line targets.  Set
3446         srcdir for use in maint.mk.
3447
3448         Another maintainer tweak.
3449         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
3450         a target that regenerates version.
3451
3452 2008-04-03  Jim Meyering  <meyering@redhat.com>
3453
3454         vc-list-files: don't cause coreutils "make po-check" failure
3455         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
3456
3457 2008-04-03  Eric Blake  <ebb9@byu.net>
3458
3459         Allow VPATH usage of vc-list-files.
3460         * build-aux/vc-list-files (scriptversion): Add timestamp.
3461         (options): Add --help, --version, -C.
3462         (CVS): Support installed cvsu.
3463
3464 2008-04-02  Bruno Haible  <bruno@clisp.org>
3465
3466         Avoid some "statement with no effect" warnings from gcc.
3467         * tests/test-wctype.c (main): Explicitly ignore unused values.
3468         Reported by Jim Meyering.
3469
3470 2008-04-02  Jim Meyering  <meyering@redhat.com>
3471
3472         Avoid some warnings from "gcc -Wshadow".
3473         * tests/test-frexp.c (exp): Define to a different identifier.
3474         * tests/test-frexpl.c (exp): Likewise.
3475
3476 2008-04-03  Jim Meyering  <meyering@redhat.com>
3477
3478         bootstrap: remove dangling *.[ch] symlinks from lib
3479         * build-aux/bootstrap [dangling symlink removal]: Move find's
3480         -depth option to precede all others, to avoid a warning.
3481         Remove *.[ch] files too, and from "$source_base" (usually lib/).
3482
3483 2008-04-02  Bruno Haible  <bruno@clisp.org>
3484
3485         Avoid some warnings from "gcc -Wshadow".
3486         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
3487         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
3488         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
3489         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
3490         Reported by Jim Meyering.
3491
3492 2008-04-01  Bruno Haible  <bruno@clisp.org>
3493
3494         Fix test to work on IRIX 6.5 with cc.
3495         * tests/test-math.c (numeric_equal): New function.
3496         (main): Use it.
3497
3498 2008-04-01  Bruno Haible  <bruno@clisp.org>
3499
3500         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
3501
3502 2008-04-01  Bruno Haible  <bruno@clisp.org>
3503
3504         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
3505         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3506         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
3507         (Depends-on): Remove math.
3508
3509         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
3510         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3511         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
3512         (Depends-on): Remove math.
3513
3514         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
3515         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3516         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
3517         (Depends-on): Remove math.
3518         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
3519         (Depends-on): Remove math.
3520
3521         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
3522         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3523         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
3524         (Depends-on): Remove math.
3525         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
3526         (Depends-on): Remove math.
3527
3528         * tests/test-round1.c: Include nan.h.
3529         (main): Use NaNd instead of NAN.
3530         * modules/round-tests (Files): Add tests/nan.h.
3531
3532         * tests/test-trunc1.c: Include nan.h.
3533         (main): Use NaNd instead of NAN.
3534         * modules/trunc-tests (Files): Add tests/nan.h.
3535
3536         * tests/test-roundf1.c: Include nan.h.
3537         (main): Use NaNf instead of NAN.
3538         * modules/roundf-tests (Files): Add tests/nan.h.
3539
3540         * tests/test-truncf1.c: Include nan.h.
3541         (main): Use NaNf instead of NAN.
3542         * modules/truncf-tests (Files): Add tests/nan.h.
3543
3544         * tests/test-ceilf1.c: Include nan.h.
3545         (main): Use NaNf instead of NAN.
3546         * modules/ceilf-tests (Files): Add tests/nan.h.
3547
3548         * tests/test-floorf1.c: Include nan.h.
3549         (main): Use NaNf instead of NAN.
3550         * modules/floorf-tests (Files): Add tests/nan.h.
3551
3552         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
3553         (main): Use NaNf instead of NAN.
3554         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
3555
3556         * tests/test-isnand.c: Include nan.h instead of <math.h>.
3557         (main): Use NaNd instead of NAN.
3558         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
3559
3560         * tests/test-frexp.c: Include nan.h.
3561         (main): Use NaNd instead of NAN.
3562         * modules/frexp-tests (Files): Add tests/nan.h.
3563
3564         * lib/isnan.c: Don't include <math.h>.
3565         (FUNC): Don't use NAN macro.
3566         * modules/isnand-nolibm (Depends-on): Remove math.
3567         * modules/isnanf-nolibm (Depends-on): Remove math.
3568         * modules/isnanl (Depends-on): Remove math.
3569         * modules/isnanl-nolibm (Depends-on): Remove math.
3570
3571         * tests/nan.h: New file.
3572
3573 2008-04-01  Eric Blake  <ebb9@byu.net>
3574
3575         Fix typos.
3576         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
3577         values to be the right type.
3578
3579         For now, cater to gnulib strtod inaccuracies.
3580         * tests/test-strtod.c (main): Allow 1-ulp error on expected
3581         fractional results.  While not as nice from a QoI perspective, it
3582         is a quicker patch than correctly implementing decimal to binary
3583         rounding.
3584
3585 2008-03-31  Eric Blake  <ebb9@byu.net>
3586
3587         Guarantee a definition of NAN.
3588         * lib/math.in.h (NAN): Define if missing.
3589         * tests/test-math.c (main): Test it.
3590         * doc/posix-headers/math.texi (math.h): Document this.
3591         * lib/isnan.c (rpl_isnand): Use it.
3592         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
3593         * tests/test-floorf1.c (NaN): Likewise.
3594         * tests/test-frexp.c (NaN): Likewise.
3595         * tests/test-isnand.c (NaN): Likewise.
3596         * tests/test-isnanf.c (NaN): Likewise.
3597         * tests/test-round1.c (NaN): Likewise.
3598         * tests/test-roundf1.c (NaN): Likewise.
3599         * tests/test-snprintf-posix.h (NaN): Likewise.
3600         * tests/test-sprintf-posix.h (NaN): Likewise.
3601         * tests/test-trunc1.c (NaN): Likewise.
3602         * tests/test-truncf1.c (NaN): Likewise.
3603         * tests/test-vasnprintf-posix.c (NaN): Likewise.
3604         * tests/test-vasprintf-posix.c (NaN): Likewise.
3605         * modules/isnand-nolibm (Depends-on): Add math.
3606         * modules/isnanf-nolibm (Depends-on): Likewise.
3607         * modules/isnanl (Depends-on): Likewise.
3608         * modules/isnanl-nolibm (Depends-on): Likewise.
3609         * modules/snprintf-posix-tests (Depends-on): Likewise.
3610         * modules/sprintf-posix-tests (Depends-on): Likewise.
3611         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
3612         * modules/vsprintf-posix-tests (Depends-on): Likewise.
3613         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
3614         * modules/vasprintf-posix-tests (Depends-on): Likewise.
3615
3616 2008-03-31  Bruno Haible  <bruno@clisp.org>
3617
3618         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
3619         * doc/posix-functions/strtod.texi: Likewise.
3620
3621 2008-03-31  Bruno Haible  <bruno@clisp.org>
3622
3623         * tests/test-strtod.c (main): Don't use C99 syntax.
3624
3625 2008-03-31  Bruno Haible  <bruno@clisp.org>
3626
3627         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
3628         Reported by Eric Blake.
3629
3630 2008-03-31  Jim Meyering  <meyering@redhat.com>
3631
3632         Don't compare actual signbit return values.
3633         * tests/test-strtod.c (main): Rather, compare only their
3634         zero/non-zero nature.
3635
3636 2008-03-31  Eric Blake  <ebb9@byu.net>
3637
3638         More strtod documentation.
3639         * doc/posix-functions/strtod.texi (strtod): Interpret more test
3640         failures as distinct bugs.
3641
3642 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3643
3644         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
3645         Problem reported by Erik Benada in
3646         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
3647
3648 2008-03-30  Bruno Haible  <bruno@clisp.org>
3649
3650         * tests/test-strtod.c: Add comments about which assertion fails on which
3651         platform.
3652         * doc/posix-functions/strtod.texi: Add info about many more platforms.
3653
3654 2008-03-30  Eric Blake  <ebb9@byu.net>
3655
3656         Test signbit behavior on zeros.
3657         * tests/test-signbit.c (test_signbitf): Add tests for zero.
3658         (test_signbitd, test_signbitl): Likewise.
3659
3660         More strtod touchups.
3661         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
3662         sign of negative underflow, for now.  Use .5, not .1.
3663         * doc/posix-functions/strtod.texi (strtod): Mention these
3664         limitations.
3665         Reported by Jim Meyering.
3666
3667 2008-03-30  Bruno Haible  <bruno@clisp.org>
3668
3669         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
3670         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
3671
3672 2008-03-30  Bruno Haible  <bruno@clisp.org>
3673
3674         Avoid failure when attempting to return empty iconv results on some
3675         platforms.
3676         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
3677         allocation, don't report ENOMEM when the resulting string is empty.
3678
3679 2008-03-30  Bruno Haible  <bruno@clisp.org>
3680
3681         Fix buffer overrun.
3682         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
3683         Don't consider the width for tmp_length. Check count against tmp_length
3684         before doing the padding. Ensure enough allocation during padding.
3685
3686 2008-03-30  Eric Blake  <ebb9@byu.net>
3687
3688         strtod touchups.
3689         * lib/strtod.c (strtod): Avoid compiler warnings.
3690         Reported by Jim Meyering.
3691
3692 2008-03-30  Bruno Haible  <bruno@clisp.org>
3693
3694         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
3695         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
3696         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
3697         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
3698         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
3699         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
3700         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
3701         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
3702
3703         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
3704         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
3705         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
3706         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
3707         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
3708         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
3709         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
3710         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
3711
3712         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
3713         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
3714         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
3715         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
3716         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
3717         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
3718         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
3719         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
3720
3721         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
3722         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
3723
3724         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
3725         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
3726
3727         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
3728         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
3729
3730         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
3731         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
3732         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
3733
3734         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
3735         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
3736         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
3737
3738         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
3739         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
3740         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
3741
3742         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
3743         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
3744         * modules/vasprintf (Depends-on): Add EOVERFLOW.
3745
3746         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
3747         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
3748         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
3749         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
3750         (Depends-on): Add EOVERFLOW.
3751         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
3752         (Depends-on): Add EOVERFLOW.
3753         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
3754         (Depends-on): Add EOVERFLOW.
3755         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
3756         (Depends-on): Add EOVERFLOW.
3757         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
3758         (Depends-on): Add EOVERFLOW.
3759         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
3760         (Depends-on): Add EOVERFLOW.
3761         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
3762         (Depends-on): Add EOVERFLOW.
3763         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
3764         (Depends-on): Add EOVERFLOW.
3765
3766         * lib/sprintf.c (EOVERFLOW): Remove fallback.
3767         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
3768         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
3769
3770         * lib/snprintf.c (EOVERFLOW): Remove fallback.
3771         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
3772         * modules/snprintf (Depends-on): Add EOVERFLOW.
3773
3774         * lib/poll.c (EOVERFLOW): Remove fallback.
3775         * modules/poll (Depends-on): Add EOVERFLOW.
3776
3777         * lib/getugroups.c (EOVERFLOW): Remove fallback.
3778         * modules/getugroups (Depends-on): Add EOVERFLOW.
3779
3780         * lib/getdelim.c (EOVERFLOW): Remove fallback.
3781         * modules/getdelim (Depends-on): Add EOVERFLOW.
3782
3783         * lib/ftell.c (EOVERFLOW): Remove fallback.
3784         * modules/ftell (Depends-on): Add EOVERFLOW.
3785
3786         * lib/fprintf.c (EOVERFLOW): Remove fallback.
3787         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
3788         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
3789
3790         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
3791
3792         * modules/EOVERFLOW-tests: New file.
3793         * tests/test-EOVERFLOW.c: New file.
3794
3795         * modules/EOVERFLOW: New file.
3796         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
3797
3798 2008-03-30  Bruno Haible  <bruno@clisp.org>
3799
3800         Fix bug introduced on 2007-06-10.
3801         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
3802         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
3803
3804 2008-03-30  Bruno Haible  <bruno@clisp.org>
3805
3806         Improve freadseek's efficiency after ungetc.
3807         * lib/freadseek.c: Include freadahead.h.
3808         (freadptrinc): New function, extracted from freadseek.
3809         (freadseek): Use it in a loop. Use freadahead to determine the number
3810         of loop iterations.
3811         * modules/freadseek (Depends-on): Add freadahead.
3812         (configure.ac): Require AC_C_INLINE.
3813
3814 2008-03-30  Bruno Haible  <bruno@clisp.org>
3815
3816         * lib/freadseek.c (freadseek): Don't ignore the return value of
3817         freadptr.
3818
3819 2008-03-29  Eric Blake  <ebb9@byu.net>
3820
3821         Add hex float support.
3822         * modules/strtod (Depends-on): Add c-ctype.
3823         (Link): Mention POW_LIB.
3824         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
3825         whitespace between 'e' and exponent.
3826         * tests/test-strtod.c (main): Enable hex float tests.
3827         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
3828         now provides.
3829
3830         Document various strtod bugs, with some fixes.
3831         * doc/posix-functions/strtod.texi (strtod): Document bugs with
3832         "-0x", "inf", "nan", and hex constants.
3833         * doc/posix-functions/atof.texi (atof): Likewise.
3834         * modules/stdlib (Makefile.am): Support strtod.
3835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
3836         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
3837         detect additional strtod bugs.
3838         * lib/stdlib.in.h (rpl_strtod): Add declarations.
3839         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
3840         bool where appropriate.  Parse 'inf' and 'nan'.
3841         * tests/test-strtod.c: New file.
3842         * modules/strtod (Depends-on): Add stdbool, stdlib.
3843         (configure.ac): Turn on module indicator.
3844         * modules/strtod-tests: New module.
3845
3846 2008-03-29  Eric Blake  <ebb9@byu.net>
3847
3848         Fix ftell on mingw.
3849         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
3850         * modules/ftell-tests (Depends-on): Add binary-io.
3851         * modules/ftello-tests (Depends-on): Likewise.
3852         * tests/test-ftell.c (main): Enhance test to cover behavior after
3853         ungetc.  Enforce binary mode.
3854         * tests/test-ftello.c (main): Likewise.
3855
3856         Pass test-freadseek on cygwin.
3857         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
3858         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
3859         ungetc buffer.
3860
3861         * tests/test-fflush2.c (main): Fix typo.
3862
3863 2008-03-29  Bruno Haible  <bruno@clisp.org>
3864
3865         * tests/test-fflush2.c (main): Temporarily disable the contents of
3866         this test.
3867         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
3868         Reported by Eric Blake.
3869
3870 2008-03-28  Simon Josefsson  <simon@josefsson.org>
3871
3872         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
3873         (GC_SHA224_DIGEST_SIZE): Add.
3874
3875         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
3876         (gc_hash_digest_length): Likewise.
3877         (gc_hash_buffer): Likewise.
3878
3879 2008-03-25  Bruno Haible  <bruno@clisp.org>
3880
3881         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
3882         detail which gettext release to use.
3883         Reported by Simon Josefsson.
3884
3885 2008-03-26  Jim Meyering  <meyering@redhat.com>
3886
3887         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
3888         * modules/gnumakefile (clean-GNUmakefile): Also, use
3889         test ... && ... || : syntax rather than if-then ... fi.
3890
3891         gnumakefile: Don't double-quote-expand $(VPATH) value.
3892         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
3893
3894 2008-03-24  Eric Blake  <ebb9@byu.net>
3895
3896         Alter GNUmakefile to install into top directory.
3897         * modules/maintainer-makefile: Split, and add dependency...
3898         * modules/gnumakefile: to this new module.
3899         * build-aux/GNUmakefile: Move...
3900         * top/GNUmakefile: ...here.
3901         * build-aux/maint.mk: Move...
3902         * top/maint.mk: ...here.
3903         * MODULES.html.sh (Support for maintaining...): Document new
3904         module.
3905
3906 2008-03-23  Bruno Haible  <bruno@clisp.org>
3907
3908         * gnulib-tool: New options --vc-files, --no-vc-files.
3909         (func_usage): Document them.
3910         (vc_files): New variable.
3911         (func_import): Consider vc_files.
3912         (func_create_testdir): Set vc_files to empty.
3913         Suggested by Jim Meyering and Karl Berry.
3914
3915 2008-03-23  Bruno Haible  <bruno@clisp.org>
3916
3917         Fix regex compilation error on HP-UX 11.
3918         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
3919         * modules/regex (Files): Add m4/mbstate_t.m4.
3920         Reported by Ton Voon <ton.voon@altinity.com>.
3921
3922 2008-03-23  Bruno Haible  <bruno@clisp.org>
3923
3924         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
3925
3926 2008-03-23  Eric Blake  <ebb9@byu.net>
3927             Bruno Haible  <bruno@clisp.org>
3928
3929         Install files from top/ in the destination directory.
3930         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
3931         augmentation also for the files from top/.
3932         (func_import, func_create_testdir): Rewrite file names:
3933         top/filename -> filename.
3934
3935 2008-03-23  Bruno Haible  <bruno@clisp.org>
3936
3937         Tweak "gnulib --version" output.
3938         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
3939
3940 2008-03-23  Bruno Haible  <bruno@clisp.org>
3941
3942         Tweak "gnulib --version" output.
3943         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
3944         rather than contents of ChangeLog, when possible.
3945
3946 2008-03-21  Eric Blake  <ebb9@byu.net>
3947
3948         More --version tweaks.
3949         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
3950         date of last ChangeLog entry.
3951
3952 2008-03-21  Jim Meyering  <meyering@redhat.com>
3953
3954         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
3955
3956 2008-03-20  Eric Blake  <ebb9@byu.net>
3957
3958         VPATH fix.
3959         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
3960
3961 2008-03-20  Simon Josefsson  <simon@josefsson.org>
3962
3963         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
3964         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
3965
3966 2008-03-20  Eric Blake  <ebb9@byu.net>
3967
3968         Sync GNUmakefile with coreutils.
3969         * build-aux/GNUmakefile (have-Makefile): Rename...
3970         (_have-Makefile): ...to this, for namespace consideration.
3971         (GNUmakefile.cfg): Include, if present.
3972         (_autoreconf): Define a default.
3973         (_is-dist-target): New rule for rebuilds to pick up intra-release
3974         version.
3975         (maint-cfg.mk): Rename...
3976         (cfg.mk): ...to this.
3977
3978 2008-03-18  Jim Meyering  <meyering@redhat.com>
3979
3980         New script and module: mktempd
3981         * MODULES.html.sh (maint+release support): Add mktempd.
3982         * build-aux/mktempd: New file.
3983         * modules/mktempd: New file.
3984
3985 2008-03-15  Jim Meyering  <meyering@redhat.com>
3986
3987         Undo last change.
3988         * lib/sha1.c, lib/md5.c: 63 != ~63.
3989         Reported by Andreas Schwab.
3990
3991         sha1.c, md5.c: Hoist a redundant expression.
3992         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
3993         "ctx->buflen" only once, before calling *_process_block.
3994         * lib/md5.c (md5_process_bytes): Likewise.
3995
3996 2008-03-14  Eric Blake  <ebb9@byu.net>
3997
3998         Bump copyright year in files generated by gnulib-tool.
3999         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
4000         gnulib-tool, rather than hard-coding it.
4001
4002         Fix 'gnulib-tool --version' output to work with git.
4003         * gnulib-tool (func_gnulib_dir): New function, extracted from...
4004         (startup): ...here.
4005         (func_version): Use it to invoke git-version-gen, rather than
4006         relying on CVS keyword expansion.  Modernize wording.
4007         (cvsdatestamp, last_checkin_date, version): Kill unused
4008         variables.
4009
4010 2008-03-12  Jim Meyering  <meyering@redhat.com>
4011
4012         Recognize optional cast of the argument to free.
4013         * build-aux/useless-if-before-free: Update regexps.
4014
4015         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
4016
4017 2008-03-11  Bruno Haible  <bruno@clisp.org>
4018
4019         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
4020         by a single package.
4021         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
4022         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
4023         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
4024         Reported by Sam Steingold <sds@gnu.org>.
4025
4026 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4027
4028         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
4029         repositories.
4030
4031 2008-03-11  Bruno Haible  <bruno@clisp.org>
4032
4033         Avoid conflicts between local macro definitions.
4034         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4035         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
4036
4037 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
4038             Bruno Haible  <bruno@clisp.org>
4039
4040         Make va_copy work with some version of xlc on AIX 5.1.
4041         * lib/stdarg.in.h: New file.
4042         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
4043         On AIX, use a <stdarg.h> file substitute.
4044         * modules/stdarg (Files): Add lib/stdarg.in.h.
4045         (Depends-on): Add include_next.
4046         (Makefile.am): Build a stdarg.h substitute if requested.
4047         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
4048
4049 2008-03-10  Bruno Haible  <bruno@clisp.org>
4050
4051         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
4052         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4053         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
4054
4055 2008-03-10  Bruno Haible  <bruno@clisp.org>
4056
4057         * modules/stdlib (Depends-on): Add include_next, remove
4058         absolute-header.
4059
4060 2008-03-09  Bruno Haible  <bruno@clisp.org>
4061
4062         * lib/freadahead.h (freadahead): Document more precisely.
4063         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
4064         the sum of both buffer sizes.
4065         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
4066         * NEWS: Document the change.
4067
4068 2008-03-09  Bruno Haible  <bruno@clisp.org>
4069
4070         Extend freadptr to return also the buffer size.
4071         * lib/freadptr.h (freadptr): Add sizep argument.
4072         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
4073         (freadptr): Add sizep argument. Determine buffer size like freadahead
4074         does.
4075         * tests/test-freadptr.c: Don't include freadahead.h.
4076         (main): Adapt for new calling convention of freadptr.
4077         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
4078         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
4079         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
4080         tests/test-freadptr2.sh.
4081         (Depends): Remove freadahead.
4082         (TESTS): Add test-freadptr2.sh.
4083         (check_PROGRAMS): Add test-freadptr2.
4084
4085 2008-03-09  Bruno Haible  <bruno@clisp.org>
4086
4087         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
4088         Report and solution by Simon Josefsson.
4089
4090 2008-03-06  Bruno Haible  <bruno@clisp.org>
4091
4092         Make fflush after ungetc work on BSD platforms.
4093         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
4094         * tests/test-fflush2.c: New file.
4095         * tests/test-fflush2.sh: New file.
4096         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
4097         tests/test-fflush2.c.
4098         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
4099         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
4100
4101 2008-03-06  Eric Blake  <ebb9@byu.net>
4102
4103         Likewise for ftello.
4104         * modules/ftello (Dependencies): Add extensions.
4105         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
4106
4107 2008-03-06  Bruno Haible  <bruno@clisp.org>
4108
4109         * modules/fseeko (Dependencies): Add extensions.
4110         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
4111         Needed on glibc systems.
4112
4113 2008-03-06  Bruno Haible  <bruno@clisp.org>
4114
4115         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
4116         email address.
4117         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4118
4119 2008-03-06  Bruno Haible  <bruno@clisp.org>
4120
4121         * users.txt: Add libgnupdf.
4122
4123 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4124
4125         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
4126         (Header File Substitutes, Function Substitutes,
4127         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
4128         (Build robot for gnulib): Fix typo.
4129
4130 2008-03-06  Bruno Haible  <bruno@clisp.org>
4131
4132         * doc/gnulib-tool.texi (VCS Issues): Small updates.
4133         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4134
4135 2008-03-06  Bruno Haible  <bruno@clisp.org>
4136
4137         * doc/func.texi: New file, extracted from doc/gnulib.texi.
4138         * doc/gnulib.texi: Include it.
4139
4140 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4141
4142         * modules/func (License): Change license to unlimited; there was
4143         no LGPL parts in the module anyway.
4144
4145 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4146
4147         * modules/__func__: Renamed to modules/func.
4148         * modules/__func__-tests: Renamed to modules/func-tests.
4149         * tests/test-__func__.c: Renamed to tests/test-func.c.
4150         * m4/__func__.m4: Renamed to m4/func.m4.
4151         * doc/gnulib.texi (__func__): Section renamed to func.
4152         Suggested by Eric Blake <ebb9@byu.net>.
4153
4154 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4155
4156         * doc/gnulib.texi (__func__): Use C99 terminology when talking
4157         about __func__.  Make example self-contained.  Suggested by Eric
4158         Blake <ebb9@byu.net>.
4159
4160         * tests/test-__func__.c (main): Avoid extraneous () around __func.
4161         Suggested by Eric Blake <ebb9@byu.net>.
4162
4163 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4164
4165         * modules/__func__: New file.
4166         * modules/__func__-tests: New file.
4167         * tests/test-__func__.c: New file.
4168         * m4/__func__.m4: New file.
4169         * doc/gnulib.texi (__func__): Document __func__ module.
4170
4171 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4172
4173         * modules/byteswap (License): Re-license as LGPLv2+.
4174
4175 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4176
4177         * doc/Makefile: Add pdf target.
4178
4179 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4180
4181         * modules/inline (License): Use 'unlimited', since there are only
4182         *.m4 files in this module.
4183
4184 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
4185             Bruno Haible  <bruno@clisp.org>
4186
4187         Add support for HP C 7.1 on OpenVMS 8.3.
4188         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
4189
4190 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
4191
4192         Update VMS specifics.
4193         * lib/getopt.c [VMS]: Remove include of unixlib.h.
4194
4195 2008-03-02  Jim Meyering  <meyering@redhat.com>
4196
4197         Remove the last dependency on the "free" module.
4198         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
4199         Reported by Bob Proulx.
4200
4201         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
4202
4203         Remove useless "if" tests before free.  Deprecate "free" module.
4204         * doc/posix-functions/free.texi: Mention that this
4205         module is no longer useful.
4206         * modules/free (Notice): Say this module is obsolete.
4207         * modules/readutmp (Depends-on): Remove free.
4208         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
4209         * lib/putenv.c (putenv): Likewise.
4210         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
4211         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
4212         * tests/test-c-strcasestr.c (main): Likewise.
4213         * tests/test-c-strstr.c (main): Likewise.
4214         * tests/test-mbscasestr1.c (main): Likewise.
4215         * tests/test-mbscasestr2.c (main): Likewise.
4216         * tests/test-mbsstr1.c (main): Likewise.
4217         * tests/test-mbsstr2.c (main): Likewise.
4218         * tests/test-memmem.c (main): Likewise.
4219         * tests/test-strcasestr.c (main): Likewise.
4220         * tests/test-striconv.c (main): Likewise.
4221         * tests/test-striconveh.c (main): Likewise.
4222         * tests/test-striconveha.c (main): Likewise.
4223         * tests/test-strstr.c (main): Likewise.
4224
4225         * build-aux/git-version-gen: Adjust a comment and the Usage string.
4226
4227         bootstrap: sync from coreutils again
4228         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
4229
4230 2008-03-01  Jim Meyering  <meyering@redhat.com>
4231
4232         bootstrap: sync from coreutils
4233         * build-aux/bootstrap (update_po_files): Copy a .po file into place
4234         also when the target doesn't exist.
4235
4236 2008-03-01  Eric Blake  <ebb9@byu.net>
4237
4238         Fix bugs in last patch.
4239         * lib/memchr2.c (memchr2): Fix typo.
4240         * tests/test-memchr2.c: Test previous bug, and don't use GNU
4241         extension.
4242         Reported by Bruce Korb.
4243
4244         New module 'memchr2'.
4245         * modules/memchr2: New file.
4246         * modules/memchr2-tests: Likewise.
4247         * lib/memchr2.h: Likewise.
4248         * lib/memchr2.c: Likewise, based on memchr.c.
4249         * tests/test-memchr2.c: New test.
4250         * MODULES.html.sh (String handling): Add memchr2.
4251
4252 2008-02-29  Bruno Haible  <bruno@clisp.org>
4253
4254         * modules/freadseek-tests: New file.
4255         * tests/test-freadseek.sh: New file.
4256         * tests/test-freadseek.c: New file.
4257
4258         New module 'freadseek'.
4259         * modules/freadseek: New file.
4260         * lib/freadseek.h: New file.
4261         * lib/freadseek.c: New file.
4262         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
4263
4264 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
4265
4266         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
4267         wydawca.
4268
4269         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
4270         program_invocation_name and program_invocation_short_name are
4271         present.
4272
4273 2008-02-28  Bruno Haible  <bruno@clisp.org>
4274
4275         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
4276         * tests/test-freadptr.sh: Also test non-seekable stdin.
4277
4278 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
4279
4280         * build-aux/bootstrap (source_base, m4_base)
4281         (doc_base, tests_base): New variables.
4282         (gnulib_tool_options): Do not hardcode base directories, use
4283         the above variables instead.
4284
4285 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
4286
4287         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
4288
4289 2008-02-28  Bruno Haible  <bruno@clisp.org>
4290
4291         * modules/freadptr-tests: New file.
4292         * tests/test-freadptr.sh: New file.
4293         * tests/test-freadptr.c: New file.
4294
4295         New module 'freadptr'.
4296         * modules/freadptr: New file.
4297         * lib/freadptr.h: New file.
4298         * lib/freadptr.c: New file.
4299         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
4300
4301 2008-02-26  Karl Berry  <karl@freefriends.org>
4302
4303         Sync from Libtool:
4304         * libltdl/argz.c (argz_add, argz_count): New functions.
4305         * libltdl/argz.in.h: Declare them.
4306         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
4307
4308 2008-02-22  Bruno Haible  <bruno@clisp.org>
4309
4310         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
4311         is a pointer type.  Needed for HP-UX 10.
4312         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
4313         * doc/posix-functions/gmtime_r.texi: Likewise.
4314         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
4315
4316 2008-02-24  Bruno Haible  <bruno@clisp.org>
4317
4318         * modules/environ-tests: New file.
4319         * tests/test-environ.c: New file.
4320
4321         New module 'environ'.
4322         * modules/environ: New file.
4323         * lib/unistd.in.h (environ): New declaration.
4324         * m4/environ.m4: New file.
4325         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
4326         after use.
4327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
4328         HAVE_DECL_ENVIRON.
4329         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
4330         HAVE_DECL_ENVIRON.
4331         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
4332         wrong claim that 'environ' is missing on some systems.
4333         * modules/execute (Depends-on): Add environ.
4334         * lib/execute.c (environ): Remove fallback declaration.
4335         * modules/pipe (Depends-on): Add environ.
4336         * lib/pipe.c (environ): Remove fallback declaration.
4337         * modules/setenv (Depends-on): Add environ.
4338         * lib/setenv.c (environ): Remove fallback declaration.
4339         * modules/unsetenv (Depends-on): Add environ.
4340         * lib/unsetenv.c (environ): Remove fallback declaration.
4341         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
4342         m4/environ.m4.
4343         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
4344         (gl_PREREQ_UNSETENV): Likewise.
4345
4346 2008-02-24  Bruno Haible  <bruno@clisp.org>
4347
4348         * doc/posix-functions/environ.texi: Document the MacOS X problem.
4349
4350 2008-02-20  Bob Proulx  <bob@proulx.com>
4351
4352         Enable use of older two part flavor 'git describe'.
4353         * build-aux/git-version-gen: If using the older two part flavor of
4354         git version then recreate the third part now present in the
4355         newer three part flavor of git describe.
4356
4357 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
4358
4359         * lib/fts.c (fts_build): Typo correction to comment.
4360
4361 2008-02-17  Bruno Haible  <bruno@clisp.org>
4362
4363         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
4364         generating no-op conflicts.
4365
4366 2008-02-17  Bruno Haible  <bruno@clisp.org>
4367
4368         Speed up by 10%.
4369         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
4370         result_entries, rather than an index-based loop.
4371
4372 2008-02-17  Bruno Haible  <bruno@clisp.org>
4373
4374         Speed up by 25%.
4375         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
4376         'hashcode_cached'.
4377         (entry_create): New function.
4378         (entry_hashcode): Use the cached hashcode if possible.
4379         (read_changelog_file, try_split_merged_entry): Use entry_create.
4380
4381 2008-02-17  Bruno Haible  <bruno@clisp.org>
4382
4383         Speed up from O(n^2) to O(n) for long ChangeLog files.
4384         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
4385         (read_changelog_file): Change implementation of entries_reversed list
4386         to rbtreehash.
4387         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
4388
4389 2008-02-17  Bruno Haible  <bruno@clisp.org>
4390
4391         New option --split-merged-entry.
4392         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
4393         (find_paragraph_end, try_split_merged_entry): New functions.
4394         (long_options): Add option --split-merged-entry.
4395         (usage): Document option --split-merged-entry.
4396         (main): Implement option --split-merged-entry.
4397         Reported by Eric Blake.
4398
4399 2008-02-17  Bruno Haible  <bruno@clisp.org>
4400
4401         * lib/git-merge-changelog.c: Include c-strstr.h.
4402         (main): Support the "git pull --rebase" situation.
4403         * modules/git-merge-changelog (Depends-on): Add c-strstr.
4404         Reported by Eric Blake.
4405
4406 2008-02-16  Eric Blake  <ebb9@byu.net>
4407
4408         Avoid doubling \ in common case of "c-maybe" quoting style.
4409         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
4410         eliding outer quotes.
4411         * lib/quotearg.h: Document this.
4412         * tests/test-quotearg.c (result_strings, inputs, results_g)
4413         (flag_results, locale_results): Test it by adding a new string to
4414         each test group.
4415         (compare_strings): Test new string.
4416
4417 2008-02-13  Eric Blake  <ebb9@byu.net>
4418
4419         Avoid trigraph quoting in default output.
4420         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
4421         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
4422         unless explicitly requested.
4423         * tests/test-quotearg.c (flag_results, main): Add additional tests.
4424
4425 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
4426
4427         Don't rely on signed integer overflowing to negative value.
4428         * lib/getugroups.c (getugroups): Include <limits.h>.
4429         Instead, compare against INT_MAX, and increment only if the test passes.
4430
4431 2008-02-13  Jim Meyering  <meyering@redhat.com>
4432         and Eric Blake  <ebb9@byu.net>
4433
4434         Avoid shadowing warning and compile errors on Linux.
4435         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
4436         forwarding macros on Linux.
4437         (dcgettext): Define a stub, for Linux.
4438         (results_g, main): Avoid warnings.
4439
4440 2008-02-12  Eric Blake  <ebb9@byu.net>
4441
4442         Silence warning in last patch.
4443         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
4444
4445         Quotearg part 4: add tests, fix c-maybe colon quoting.
4446         * lib/quotearg.h: Improve documentation.
4447         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
4448         escapes when adding outer quotes.  When quoting trigraphs, use
4449         valid C notation.  When quoting NUL, omit extra characters if next
4450         character is not digit.  Alter prototype.
4451         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
4452         callers.
4453         * modules/quotearg-tests: New module.
4454         * tests/test-quotearg.c: New test.
4455
4456 2008-02-07  Eric Blake  <ebb9@byu.net>
4457
4458         Quotearg part 3: add flag to control outer quote elision.
4459         * lib/quotearg.h (c_maybe_quoting_style): New style.
4460         (enum quoting_flags): Better documentation of flags.
4461         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
4462         c-maybe style.
4463         (quotearg_buffer_restyled): Handle new flag to elide outer
4464         quotes.
4465
4466         Quotearg part 2: add flag that can control NUL elision.
4467         * lib/quotearg.h (set_quoting_flags): New prototype.
4468         * lib/quotearg.c (struct quoting_options): Add flag field.
4469         (set_quoting_flags): New function.
4470         (quotearg_buffer_restyled): Add flags parameter.
4471         (quotearg_alloc_mem): Set the flag if length cannot be returned.
4472         (quotearg_n_options): Set the flag, since length cannot be
4473         returned.
4474         (quoting_options_from_style): Default flags correctly.
4475
4476         Quotearg part 1: more wrappers, restore quotearg_char state.
4477         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
4478         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
4479         (quotearg_colon_mem): New wrappers.
4480         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
4481         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
4482         functions.
4483         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
4484         (quotearg_colon_mem): New functions.
4485
4486 2008-02-11  Bruno Haible  <bruno@clisp.org>
4487
4488         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
4489         library in the current directory: it does not work with parallel make.
4490         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4491
4492 2008-02-11  Bruno Haible  <bruno@clisp.org>
4493
4494         * .gitattributes: New file.
4495
4496 2008-02-11  Jim Meyering  <meyering@redhat.com>
4497
4498         useless-if-before-free: Fix reversed exit values.
4499         * build-aux/useless-if-before-free: Use correct values
4500         for EXIT_MATCH and EXIT_NO_MATCH.
4501
4502         * build-aux/useless-if-before-free: Close stdout carefully.
4503
4504 2008-02-10  Bruno Haible  <bruno@clisp.org>
4505
4506         New module 'git-merge-changelog'.
4507         * modules/git-merge-changelog: New file.
4508         * lib/git-merge-changelog.c: New file.
4509
4510 2008-02-10  Jim Meyering  <meyering@redhat.com>
4511
4512         useless-if-before-free: New option: --list (-l).
4513
4514         useless-if-before-free: Don't exit immediately upon open failure.
4515         * build-aux/useless-if-before-free: Exit 2 for errors.
4516         Upon failure to open a file, don't exit immediately.
4517         Rather, just warn and continue with any remaining files.
4518
4519 2008-02-10  Bruno Haible  <bruno@clisp.org>
4520
4521         New abstract list operation 'node_set_value'.
4522         * lib/gl_list.h (gl_list_node_set_value): New function.
4523         (struct gl_list_implementation): New field node_set_value.
4524         * lib/gl_list.c (gl_list_node_set_value): New function.
4525         * lib/gl_array_list.c (gl_array_node_set_value): New function.
4526         (gl_array_list_implementation): Update.
4527         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
4528         (gl_carray_list_implementation): Update.
4529         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
4530         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
4531         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
4532         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
4533         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
4534         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
4535         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4536         Update.
4537         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
4538         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
4539         (gl_sublist_list_implementation): Update.
4540
4541 2008-02-10  Bruno Haible  <bruno@clisp.org>
4542
4543         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
4544         Needed when ELEMENT is #defined to 'some_type *'.
4545
4546 2008-02-10  Jim Meyering  <meyering@redhat.com>
4547
4548         New script and module: useless-if-before-free
4549         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
4550         * build-aux/useless-if-before-free: New file.
4551         * modules/useless-if-before-free: New file.
4552
4553         * build-aux/gitlog-to-changelog: Use committer date, not author date.
4554
4555         xstrtol_error: Fix typo.
4556         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
4557         s/exit_failure/exit_status/.
4558
4559 2008-02-09  Jim Meyering  <meyering@redhat.com>
4560
4561         New script and module: gitlog-to-changelog
4562         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
4563         * modules/gitlog-to-changelog: New file.
4564         * build-aux/gitlog-to-changelog: New file.
4565
4566 2008-02-08  Jim Meyering  <meyering@redhat.com>
4567
4568         Avoid two "parameter unused" warnings.
4569         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
4570         Mark "st" as used.
4571
4572         Use "git COMMAND", not "git-COMMAND".
4573         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
4574         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
4575         * build-aux/git-version-gen: Use "git status", not "git-status".
4576
4577 2008-02-07  Bruno Haible  <bruno@clisp.org>
4578
4579         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
4580         Avoids a crash on Windows Vista.
4581         Reported by Adam Strzelecki <ono@java.pl> via
4582         Simon Josefsson <simon@josefsson.org>.
4583
4584 2008-02-06  Bruno Haible  <bruno@clisp.org>
4585
4586         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
4587         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
4588         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
4589         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
4590         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
4591         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4592         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
4593         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
4594         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4595         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4596         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4597         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4598         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4599         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4600         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4601         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
4602         left-adjust flag.
4603         * tests/test-snprintf-posix.h (test_function): Likewise.
4604         * tests/test-sprintf-posix.h (test_function): Likewise.
4605         * tests/test-vasprintf-posix.c (test_function): Likewise.
4606         * doc/posix-functions/fprintf.texi: Update.
4607         * doc/posix-functions/printf.texi: Update.
4608         * doc/posix-functions/snprintf.texi: Update.
4609         * doc/posix-functions/sprintf.texi: Update.
4610         * doc/posix-functions/vfprintf.texi: Update.
4611         * doc/posix-functions/vprintf.texi: Update.
4612         * doc/posix-functions/vsnprintf.texi: Update.
4613         * doc/posix-functions/vsprintf.texi: Update.
4614         Reported by Peter Fales <psfales@alcatel-lucent.com>.
4615
4616 2008-02-06  Bruno Haible  <bruno@clisp.org>
4617
4618         Fix bug introduced on 2008-01-26.
4619         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
4620
4621 2008-02-06  Bruno Haible  <bruno@clisp.org>
4622
4623         Fix bug introduced on 2007-06-10.
4624         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
4625         !NEED_PRINTF_FLAG_ZERO.
4626
4627 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
4628
4629         getloadavg: use libperfstat on AIX5
4630         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
4631
4632 2008-02-03  Bruno Haible  <bruno@clisp.org>
4633
4634         * lib/diffseq.h: Add comments about required #includes.
4635         Reported by Michael Biggs <gnulib@doubleplum.net>.
4636
4637 2008-02-01  Bruno Haible  <bruno@clisp.org>
4638
4639         * users.txt: Add gnuit.
4640
4641 2008-01-31  Bruno Haible  <bruno@clisp.org>
4642
4643         * lib/md4.c (set_uint32): Mark as inline.
4644         * lib/md5.c (set_uint32): Likewise.
4645         * lib/sha1.c (set_uint32): Likewise.
4646         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
4647         * m4/md5.m4 (gl_MD5): Likewise.
4648         * m4/sha1.m4 (gl_SHA1): Likewise.
4649
4650 2008-01-31  Jim Meyering  <meyering@redhat.com>
4651
4652         Use "sizeof VAR", rather than a literal "4".
4653         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
4654         * lib/md4.c (md4_read_ctx): Likewise.
4655         * lib/sha1.c (sha1_read_ctx): Likewise.
4656
4657 2008-01-31  Simon Josefsson  <simon@josefsson.org>
4658
4659         * tests/test-sha1.c: New file, based on test-md5.c.
4660
4661         * modules/crypto/sha1-tests: New file.
4662
4663 2008-01-31  Simon Josefsson  <simon@josefsson.org>
4664
4665         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
4666
4667 2008-01-31  Jim Meyering  <meyering@redhat.com>
4668
4669         Prefer "sizeof v" over the equivalent "4".
4670         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
4671         * lib/md5.c (set_uint32): Likewise.
4672         * lib/sha1.c (set_uint32): Likewise.
4673
4674 2008-01-31  Simon Josefsson  <simon@josefsson.org>
4675
4676         * lib/sha1.c (set_uint32): Mark function as static.
4677
4678 2008-01-31  Simon Josefsson  <simon@josefsson.org>
4679
4680         md2: clarify comments to say that alignment is not required.
4681         * lib/md2.h: Remove warning about alignment in comment.
4682         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
4683         never been required.
4684
4685 2008-01-31  Simon Josefsson  <simon@josefsson.org>
4686
4687         md4: adapt alignment constraint fix from sha1.
4688         * lib/md4.c (set_uint32): New function, from sha1.c
4689         (md4_read_ctx): Use it.
4690         (md4_finish_ctx): Doc fix.
4691         * lib/md4.h: Doc fix.
4692
4693 2008-01-31  Simon Josefsson  <simon@josefsson.org>
4694
4695         md5: adapt alignment constraint fix from sha1.
4696         * lib/md5.c (set_uint32): New function, from sha1.c
4697         (md5_read_ctx): Use it.
4698         (md5_finish_ctx): Doc fix.
4699         * lib/md5.h: Doc fix.
4700
4701 2008-01-30  Peter Palfrader  <weasel@debian.org>
4702
4703         sha1: remove the result buffer alignment constraint
4704         * lib/sha1.c (set_uint32): New function.
4705         (sha1_read_ctx): Rewrite to remove the result buffer alignment
4706         constraint.
4707         (sha1_finish_ctx): Remove comment warning about alignment constraint.
4708         * lib/sha1.h: Likewise.
4709
4710 2008-01-30  Andreas Schwab  <schwab@suse.de>
4711             Bruno Haible  <bruno@clisp.org>
4712
4713         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
4714         correct definition of LDBL_MIN_EXP.
4715
4716 2008-01-30  Karl Berry  <karl@gnu.org>
4717
4718         * config/srclist-update: try to preserve x bit on updates.
4719         * config/srclistvars.sh: update for karl.
4720
4721 2008-01-29  Jim Meyering  <meyering@redhat.com>
4722
4723         vasnprintf.c: Avoid warning about unused label
4724         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
4725         "overflow" label definition and associated code with the
4726         same cpp condition that guards the sole use of that label.
4727
4728 2008-01-26  Bruno Haible  <bruno@clisp.org>
4729
4730         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
4731         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
4732         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
4733         * lib/isnanl-nolibm.h (isnanl): Likewise.
4734         Reported by Paul Eggert <eggert@cs.ucla.edu>.
4735
4736 2008-01-26  Bruno Haible  <bruno@clisp.org>
4737
4738         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
4739         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
4740
4741 2008-01-26  Bruno Haible  <bruno@clisp.org>
4742
4743         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
4744         GCC >= 4.0 built-in.
4745         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
4746
4747 2008-01-26  Bruno Haible  <bruno@clisp.org>
4748
4749         Rename isnan, applicable to 'double' only, to isnand.
4750         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
4751         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
4752         (configure.ac): Update.
4753         (Include): Replace "isnan.h" with "isnand.h".
4754         * m4/isnand.m4: Renamed from m4/isnan.m4.
4755         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
4756         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
4757         instead of isnan.c.
4758         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
4759         instead of HAVE_ISNAN_IN_LIBC.
4760         (isnand): Renamed from isnan.
4761         * lib/isnand.c: New file.
4762         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
4763         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
4764         (Makefile.am): Update.
4765         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
4766         Include isnand.h instead of isnan.h.
4767         (main): Test isnand instead of isnan.
4768         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
4769         isnan-nolibm.
4770         * modules/frexp (Depends-on): Likewise.
4771         * modules/frexp-tests (Depends-on): Likewise.
4772         * modules/frexp-nolibm (Depends-on): Likewise.
4773         * modules/frexp-nolibm-tests (Depends-on): Likewise.
4774         * modules/isfinite (Depends-on): Likewise.
4775         * modules/round-tests (Depends-on): Likewise.
4776         * modules/signbit (Depends-on): Likewise.
4777         * modules/signbit-tests (Depends-on): Likewise.
4778         * modules/snprintf-posix (Depends-on): Likewise.
4779         * modules/sprintf-posix (Depends-on): Likewise.
4780         * modules/trunc-tests (Depends-on): Likewise.
4781         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
4782         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4783         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4784         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4785         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4786         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4787         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4788         * modules/vasnprintf-posix (Depends-on): Likewise.
4789         * modules/vasprintf-posix (Depends-on): Likewise.
4790         * modules/vfprintf-posix (Depends-on): Likewise.
4791         * modules/vsnprintf-posix (Depends-on): Likewise.
4792         * modules/vsprintf-posix (Depends-on): Likewise.
4793         * lib/frexp.c: Include isnand.h instead of isnan.h.
4794         (ISNAN): Set to isnand instead of isnan.
4795         * lib/isfinite.c: Include isnand.h instead of isnan.h.
4796         (gl_isfinited): Use isnand instead of isnan.
4797         * lib/signbitd.c: Include isnand.h instead of isnan.h.
4798         (gl_signbitd): Use isnand instead of isnan.
4799         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
4800         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
4801         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
4802         (main): Use isnand instead of isnan.
4803         * tests/test-round1.c: Include isnand.h.
4804         (main): Use isnand instead of isnan.
4805         * tests/test-round2.c: Include isnand.h instead of isnan.h.
4806         (ISNAN): Set to isnand instead of isnan.
4807         * tests/test-trunc1.c: Include isnand.h.
4808         (main): Use isnand instead of isnan.
4809         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
4810         (equal): Use isnand instead of isnan.
4811         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
4812         isnand-nolibm.
4813         * NEWS: Mention the change.
4814
4815 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4816             Bruno Haible  <bruno@clisp.org>
4817
4818         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
4819         the GCC builtins for signbits are present and set
4820         REPLACE_SIGNBIT_USING_GCC if so.
4821         * lib/math.in.h (signbit): Define using GCC builtins if
4822         REPLACE_SIGNBIT_USING_GCC is set.
4823         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
4824         REPLACE_SIGNBIT_USING_GCC.
4825         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
4826
4827 2008-01-25  Jim Meyering  <meyering@redhat.com>
4828
4829         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
4830         * lib/poll.c: Include <config.h>, not "config.h".
4831         * tests/test-getaddrinfo.c: Likewise.
4832
4833 2008-01-25  Simon Josefsson  <simon@josefsson.org>
4834
4835         * modules/sockets-tests: New file.
4836
4837 2008-01-24  Simon Josefsson  <simon@josefsson.org>
4838
4839         * modules/sockets: New module, can be used to call WSA_Startup and
4840         WSA_Cleanup when needed.
4841
4842         * lib/sockets.h, lib/sockets.c: New files.
4843
4844         * m4/sockets.m4: New file.
4845
4846         * tests/test-sockets.c: New file.
4847
4848 2008-01-19  Bruno Haible  <bruno@clisp.org>
4849
4850         * doc/posix-headers: Renamed from doc/headers.
4851         * doc/posix-functions: Renamed from doc/functions.
4852         * doc/gnulib.texi: Update.
4853
4854 2008-01-19  Bruno Haible  <bruno@clisp.org>
4855
4856         * doc/glibc-functions/strcasestr.texi: Include contents of
4857         doc/functions/strcasestr.texi, fixing the list of platforms.
4858         * doc/functions/strcasestr.texi: Remove file.
4859
4860 2008-01-19  Bruno Haible  <bruno@clisp.org>
4861
4862         * doc/glibc-functions/memmem.texi: Include contents of
4863         doc/functions/memmem.texi.
4864         * doc/functions/memmem.texi: Remove file.
4865
4866 2008-01-18  Bruno Haible  <bruno@clisp.org>
4867
4868         * doc/glibc-functions/*.texi: New files.
4869         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
4870         to use the new files.
4871
4872 2008-01-17  Bruno Haible  <bruno@clisp.org>
4873
4874         * tests/test-gethostname.c (main): Fix printf statement.
4875
4876 2008-01-17  Simon Josefsson  <simon@josefsson.org>
4877
4878         * modules/gethostname-tests: New file.
4879
4880         * tests/test-gethostname.c: New file.
4881
4882 2008-01-17  Simon Josefsson  <simon@josefsson.org>
4883
4884         * lib/gethostname.c: Include string.h unconditionally, strncpy is
4885         used by the UNAME case.  Reported by Bruno Haible
4886         <bruno@clisp.org>.
4887
4888 2008-01-17  Eric Blake  <ebb9@byu.net>
4889
4890         Convert c-strcasestr to be more efficient.
4891         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
4892         (Depends-on): Add c-strcase, remove malloca, strnlen.
4893         * tests/test-c-strcasestr.c (main): Enhance test.
4894         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
4895
4896 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
4897
4898         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
4899         Use it in creating po/Makevars.
4900
4901 2008-01-15  Simon Josefsson  <simon@josefsson.org>
4902
4903         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
4904         Applications that requires it should initialize libgcrypt
4905         manually.
4906
4907 2008-01-16  Simon Josefsson  <simon@josefsson.org>
4908
4909         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
4910
4911 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
4912
4913         Fix problem with getdate on mingw32 reported by Simon Josefsson
4914         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
4915         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
4916         tzname", when deciding whether to declare tzname.
4917         * lib/strftime.c (tzname): Likewise.
4918
4919 2008-01-15  Bruno Haible  <bruno@clisp.org>
4920
4921         Work around a MacOS X 10.5 bug in frexpl().
4922         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
4923         * doc/functions/frexpl.texi: Document the bug.
4924         Reported by Elias Pipping <pipping@gentoo.org>.
4925
4926 2008-01-14  Eric Blake  <ebb9@byu.net>
4927
4928         Touch up previous patch.
4929         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
4930         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
4931
4932         Convert strcasestr module to use Two-Way algorithm.
4933         * modules/strcasestr-simple: New module, based on the old
4934         strcasestr, but with Two-Way rather than KMP.
4935         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
4936         * lib/string.in.h (rpl_strcasestr): Declare.
4937         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
4938         performance.
4939         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
4940         * modules/string (Makefile.am): Support strcasestr.
4941         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
4942         * modules/strcasestr-tests (Depends-on): Check for alarm.
4943         * tests/test-strcasestr.c: Augment test.
4944         * lib/str-two-way.h: Clean up stray macro.
4945         * NEWS: Document new module.
4946         * MODULES.html.sh (string handling): Likewise.
4947         * doc/functions/strcasestr.texi: New file.
4948         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
4949         here, since it is not a POSIX function.
4950
4951 2008-01-14  Colin Watson  <cjwatson@debian.org>
4952             Bruno Haible  <bruno@clisp.org>
4953
4954         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
4955         works fine; if not, set REPLACE_STRSIGNAL.
4956         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
4957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4958         REPLACE_STRSIGNAL.
4959         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
4960         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
4961         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
4962
4963 2008-01-14  Bruno Haible  <bruno@clisp.org>
4964
4965         * modules/strsignal (Include): Change to <string.h>.
4966
4967 2008-01-14  Colin Watson  <cjwatson@debian.org>
4968
4969         * modules/argp (Notice): Add a notice recommending to change
4970         XGETTEXT_OPTIONS.
4971         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
4972
4973 2008-01-13  Colin Watson  <cjwatson@debian.org>
4974
4975         * modules/strsignal-tests: New file.
4976         * tests/test-strsignal.c: New file.
4977
4978         * lib/strsignal.c: New file, from glibc with modifications.
4979         * lib/siglist.h: New file, from glibc with modifications.
4980         * lib/string.in.h (strsignal): New declaration.
4981         * m4/strsignal.m4: New file.
4982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4983         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
4984         * modules/strsignal: New file.
4985         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
4986         HAVE_DECL_STRSIGNAL.
4987
4988 2008-01-13  Bruno Haible  <bruno@clisp.org>
4989
4990         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
4991         locale encoding is not ASCII. Needed for OpenBSD 4.0.
4992         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4993         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4994
4995 2008-01-13  Bruno Haible  <bruno@clisp.org>
4996
4997         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
4998         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
4999         * lib/argp.h (__attribute__): Likewise.
5000         * lib/c-stack.c (__attribute__): Likewise.
5001         * lib/error.h (__attribute__): Likewise.
5002         * lib/fts.c (__attribute__): Likewise.
5003         * lib/openat.h (__attribute__): Likewise.
5004         * lib/stdio.in.h (__attribute__): Likewise.
5005         * lib/string.in.h (__attribute__): Likewise.
5006         * lib/utimens.c (__attribute__): Likewise.
5007         * lib/vasnprintf.h (__attribute__): Likewise.
5008         * lib/xalloc.h (__attribute__): Likewise.
5009         * lib/xprintf.h (__attribute__): Likewise.
5010         * lib/xstrtol.h (__attribute__): Likewise.
5011         * lib/xvasprintf.h (__attribute__): Likewise.
5012
5013 2008-01-12  Bruno Haible  <bruno@clisp.org>
5014
5015         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
5016         * doc/glibc-headers/a.out.texi: New file.
5017         * doc/glibc-headers/aliases.texi: New file.
5018         * doc/glibc-headers/alloca.texi: New file.
5019         * doc/glibc-headers/ar.texi: New file.
5020         * doc/glibc-headers/argp.texi: New file.
5021         * doc/glibc-headers/argz.texi: New file.
5022         * doc/glibc-headers/byteswap.texi: New file.
5023         * doc/glibc-headers/crypt.texi: New file.
5024         * doc/glibc-headers/endian.texi: New file.
5025         * doc/glibc-headers/envz.texi: New file.
5026         * doc/glibc-headers/err.texi: New file.
5027         * doc/glibc-headers/error.texi: New file.
5028         * doc/glibc-headers/execinfo.texi: New file.
5029         * doc/glibc-headers/fpu_control.texi: New file.
5030         * doc/glibc-headers/fstab.texi: New file.
5031         * doc/glibc-headers/fts.texi: New file.
5032         * doc/glibc-headers/getopt.texi: New file.
5033         * doc/glibc-headers/ieee754.texi: New file.
5034         * doc/glibc-headers/ifaddrs.texi: New file.
5035         * doc/glibc-headers/libintl.texi: New file.
5036         * doc/glibc-headers/mcheck.texi: New file.
5037         * doc/glibc-headers/mntent.texi: New file.
5038         * doc/glibc-headers/obstack.texi: New file.
5039         * doc/glibc-headers/paths.texi: New file.
5040         * doc/glibc-headers/printf.texi: New file.
5041         * doc/glibc-headers/pty.texi: New file.
5042         * doc/glibc-headers/resolv.texi: New file.
5043         * doc/glibc-headers/shadow.texi: New file.
5044         * doc/glibc-headers/sysexits.texi: New file.
5045         * doc/glibc-headers/ttyent.texi: New file.
5046
5047 2008-01-12  Jim Meyering  <meyering@redhat.com>
5048
5049         announce-gen: emit Gnulib's git-based version string.
5050         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
5051         New option --gnulib-version=V, where V is expected to be
5052         the output of running git describe in the gnulib directory.
5053         (get_tool_versions): Request feedback on xdelta.  I suspect it's
5054         not useful, and plan to stop publishing an xdelta file with each
5055         coreutils release.
5056
5057         * build-aux/announce-gen: Also check for lzma-compressed files.
5058
5059 2008-01-11  Bruno Haible  <bruno@clisp.org>
5060
5061         * tests/test-memmem.c (main): Increase maximum allowed time.
5062         * tests/test-strstr.c (main): Likewise.
5063
5064 2008-01-11  Bruno Haible  <bruno@clisp.org>
5065
5066         * doc/functions/memmem.texi: Add more precisions about platforms.
5067         * doc/functions/strstr.texi: Likewise.
5068
5069 2008-01-10  Eric Blake  <ebb9@byu.net>
5070
5071         * m4/strstr.m4: Delete cruft from copy-n-paste.
5072         Reported by Bruno Haible.
5073
5074 2008-01-10  Bruno Haible  <bruno@clisp.org>
5075
5076         Make c-strstr rely on strstr.
5077         * lib/c-strstr.c: Don't include str-kmp.h.
5078         (c_strstr): Define in terms of strstr.
5079         * modules/c-strstr (Files): Remove lib/str-kmp.h.
5080         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
5081
5082 2008-01-10  Bruno Haible  <bruno@clisp.org>
5083
5084         * doc/gnulib.texi (String Functions in C Locale): New section.
5085         * doc/c-ctype.texi: New file.
5086         * doc/c-strcase.texi: New file.
5087         * doc/c-strcaseeq.texi: New file.
5088         * doc/c-strcasestr.texi: New file.
5089         * doc/c-strstr.texi: New file.
5090         * doc/c-strtod.texi: New file.
5091         * doc/c-strtold.texi: New file.
5092
5093 2008-01-10  Eric Blake  <ebb9@byu.net>
5094
5095         * lib/relocatable.h: Fix a comment.
5096
5097 2008-01-10  Eric Blake  <ebb9@byu.net>
5098
5099         Share two-way algorithm.
5100         * lib/str-two-way.h: New file, merged from...
5101         * lib/memmem.c: ...here...
5102         * lib/strstr.c: ...and here.
5103         * modules/memmem (Files): Use it.
5104         * modules/strstr (Files): Likewise.
5105
5106         Avoid quadratic strstr implementations.
5107         * lib/strstr.c: New file.
5108         * m4/strstr.m4: Likewise.
5109         * modules/strstr: Likewise.
5110         * modules/strstr-tests: Likewise.
5111         * tests/test-strstr.c: Likewise.
5112         * lib/string.in.h (rpl_strstr): Declare.
5113         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
5114         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
5115         * modules/string (Makefile.am): Likewise.
5116         * MODULES.html.sh (string handling): Mention new module.
5117         * doc/functions/strstr.texi (strstr): Document the bug.
5118
5119 2008-01-10  Bruno Haible  <bruno@clisp.org>
5120
5121         * lib/relocatable.h (relocate): State whether result is freshly
5122         allocated or not.
5123         * lib/relocatable.c (relocate): Return a freshly allocated string
5124         instead of a pointer to a privately held string.
5125         Reported by Sylvain Beucler <beuc@gnu.org>.
5126
5127 2008-01-10  Colin Watson  <cjwatson@debian.org>
5128
5129         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
5130         s/S_ISNLK/S_ISLNK/.
5131
5132 2008-01-09  Bruno Haible  <bruno@clisp.org>
5133
5134         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
5135         and other files.
5136         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
5137         if it's only a guess.
5138         * modules/memmem: Simplify by depending on memmem-simple.
5139
5140 2008-01-09  Bruno Haible  <bruno@clisp.org>
5141
5142         Work around OpenBSD 4.0 tdelete() bug.
5143         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
5144         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
5145         macros and don't redefine the enum values.
5146         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
5147         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
5148         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
5149
5150 2008-01-09  Bruno Haible  <bruno@clisp.org>
5151
5152         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
5153         (main): Don't perform the tests if setlocale did not install a UTF-8
5154         locale. Needed on OpenBSD 4.0.
5155         * modules/wcwidth-tests (Depends-on): Add localcharset.
5156
5157 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
5158
5159         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
5160         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
5161         * NEWS: announce this.
5162         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
5163
5164 2008-01-09  Simon Josefsson  <simon@josefsson.org>
5165         and Eric Blake  <ebb9@byu.net>
5166
5167         Add memmem-simple module.
5168         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
5169         (gl_FUNC_MEMMEM): Separate performance from presence checks.
5170         * modules/memmem-simple: New file.
5171         * modules/memmem (Description): Tweak.
5172         * MODULES.html.sh (string handling): Mention new module.
5173         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
5174         addressed by memmem-simple.
5175         * NEWS: Document the difference.
5176
5177 2008-01-09  Eric Blake  <ebb9@byu.net>
5178
5179         Give gcc some memmem optimization hints.
5180         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
5181         (strcasestr): Declare as pure.
5182         * modules/memmem (Maintainer): Claim my implementation.
5183
5184 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5185
5186         Support AIX 6.1 and higher.
5187         * build-aux/config.libpath: Likewise.
5188         * build-aux/config.rpath: Likewise.
5189
5190 2008-01-08  Jim Meyering  <meyering@redhat.com>
5191             Bruno Haible  <bruno@clisp.org>
5192
5193         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
5194         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
5195         Reported by Peter Fales in
5196         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
5197
5198 2008-01-08  Bruno Haible  <bruno@clisp.org>
5199
5200         * modules/unictype/category-of (Depends-on): Add
5201         unictype/category-none.
5202         * modules/unictype/category-and-tests (Depends-on): Add
5203         unictype/category-{L,N,Lu,Nd}.
5204         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
5205         * modules/unictype/category-or-tests (Depends-on): Add
5206         unictype/category-{L,N}.
5207         * modules/unictype/category-name-tests (Depends-on): Add
5208         unictype/category-{Z,Nl}.
5209         Reported by Simon Josefsson.
5210
5211 2008-01-08  Bruno Haible  <bruno@clisp.org>
5212
5213         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
5214         convention better.
5215         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
5216         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
5217         Reported by Peter Miller <millerp@canb.auug.org.au>.
5218
5219 2008-01-08  Eric Blake  <ebb9@byu.net>
5220
5221         Rewrite memmem to guarantee linear complexity without malloc.
5222         * lib/memmem.c (memmem): Use Two-Way rather than
5223         Knuth-Morris-Pratt, to allow O(1) space usage.
5224         (critical_factorization, two_way_short_needle)
5225         (two_way_long_needle): New functions.
5226         (knuth_morris_pratt): Delete.
5227         * modules/memmem (Depends-on): No longer need malloca or stdbool.
5228         Add stdint.
5229         * tests/test-memmem.c (main): Add tests for periodic needle and
5230         sublinear performance.
5231         * doc/functions/memmem.texi (memmem): Document other deficiencies
5232         in cygwin and older glibc.
5233
5234 2008-01-08  Bruno Haible  <bruno@clisp.org>
5235
5236         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
5237         augmentation.
5238
5239 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
5240
5241         Add a configure time option: --disable-acl.
5242         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
5243         AC_ARG_ENABLE(acl).
5244
5245 2008-01-06  Simon Josefsson  <simon@josefsson.org>
5246
5247         * tests/test-localename.c: Don't include obsolete "setenv.h".
5248
5249         * modules/localename-tests (Depends-on): Need unsetenv.
5250
5251 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5252
5253         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
5254
5255 2008-01-06  Colin Watson  <cjwatson@debian.org>
5256
5257         * users.txt: Add man-db.
5258
5259 2008-01-07  Bruno Haible  <bruno@clisp.org>
5260
5261         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
5262         previous section name.
5263
5264 2008-01-07  Bruno Haible  <bruno@clisp.org>
5265
5266         * lib/progname.c (set_program_name): Don't strip off a leading
5267         "lt-" prefix outside a .libs directory.
5268         Suggested by Paul Eggert.
5269
5270 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
5271             Bruno Haible  <bruno@clisp.org>
5272
5273         Improve memory cleanup in 'relocatable' module.
5274         * lib/relocatable.h (compute_curr_prefix): Change return type to
5275         'char *'.
5276         * lib/relocatable.c (compute_curr_prefix): Change return type to
5277         'char *'. Free curr_installdir after use.
5278         (relocate): Free curr_prefix_better after use.
5279         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
5280
5281 2008-01-01  Bruno Haible  <bruno@clisp.org>
5282
5283         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
5284         failure on older glibc systems.
5285         Reported by Peter Fales <psfales@alcatel-lucent.com>.
5286
5287 2008-01-05  Eric Blake  <ebb9@byu.net>
5288
5289         Avoid quadratic system memmem.
5290         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
5291         Reported by Ralf Wildenhues.
5292
5293         Fix memmem test for mingw.
5294         * modules/memmem-tests (configure.ac): Check for alarm.
5295         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
5296         it.
5297         * doc/functions/memmem.texi: New file.
5298         * doc/gnulib.texi (Function Substitutes): Add memmem.
5299         Reported by Bruno Haible.
5300
5301 2008-01-04  Bruno Haible  <bruno@clisp.org>
5302
5303         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
5304         Require gl_HEADER_STRINGS_H_DEFAULTS, not
5305         gl_HEADER_STRING_H_DEFAULTS.
5306
5307 2008-01-04  Eric Blake  <ebb9@byu.net>
5308
5309         Shorten duration of memmem test.
5310         * tests/test-memmem.c (main): Use alarm to declare failure if test
5311         is taking too long.
5312         Reported by Ralf Wildenhues.
5313
5314 2007-12-21  Simon Josefsson  <simon@josefsson.org>
5315
5316         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
5317         string, needed by strerror.
5318
5319 2008-01-03  Colin Watson  <cjwatson@debian.org>
5320             Bruno Haible  <bruno@clisp.org>
5321
5322         * doc/gnulib-tool.texi (Localization): New section.
5323
5324 2008-01-02  Bruno Haible  <bruno@clisp.org>
5325
5326         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
5327         variables to 'unsigned char *' type.
5328         Reported by Paul Eggert.
5329
5330 2008-01-02  Jim Meyering  <jim@meyering.net>
5331
5332         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
5333
5334 2007-12-31  Jim Meyering  <jim@meyering.net>
5335
5336         Avoid use of private FTS type name.
5337         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
5338
5339 2007-12-30  Karl Berry  <karl@gnu.org>
5340
5341         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
5342         work around defect in Texinfo and/or the standalone Info browser.
5343
5344 2007-12-30  Bruno Haible  <bruno@clisp.org>
5345
5346         Unify 5 copies of the KMP code.
5347         * lib/str-kmp.h: New file.
5348         * lib/c-strcasestr.c: Include str-kmp.h.
5349         (knuth_morris_pratt): Remove function.
5350         (c_strcasestr): Update.
5351         * lib/c-strstr.c: Include str-kmp.h.
5352         (knuth_morris_pratt): Remove function.
5353         (c_strcasestr): Update.
5354         * lib/mbscasestr.c: Include str-kmp.h.
5355         (knuth_morris_pratt_unibyte): Remove function.
5356         * lib/mbsstr.c: Include str-kmp.h.
5357         (knuth_morris_pratt_unibyte): Remove function.
5358         * lib/strcasestr.c: Include str-kmp.h.
5359         (knuth_morris_pratt): Remove function.
5360         (strcasestr): Update.
5361         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
5362         * modules/c-strstr (Files): Likewise.
5363         * modules/mbscasestr (Files): Likewise.
5364         * modules/mbsstr (Files): Likewise.
5365         * modules/strcasestr (Files): Likewise.
5366         Suggested by Paul Eggert.
5367
5368 2007-12-30  Bruno Haible  <bruno@clisp.org>
5369
5370         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
5371         defined.
5372
5373 2007-12-30  Bruno Haible  <bruno@clisp.org>
5374
5375         * lib/xmalloca.h: Include xalloc.h.
5376         (xnmalloca): New macro.
5377
5378 2007-12-30  Bruno Haible  <bruno@clisp.org>
5379
5380         * lib/malloca.h (nmalloca): New macro.
5381         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
5382         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
5383         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
5384         knuth_morris_pratt_multibyte): Likewise.
5385         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
5386         knuth_morris_pratt_multibyte): Likewise.
5387         * lib/memmem.c (knuth_morris_pratt): Likewise.
5388         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
5389
5390 2007-12-25  Bruno Haible  <bruno@clisp.org>
5391
5392         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
5393         * lib/glob.c: Don't include openat.h.
5394         (link_exists2_p): Add back the code that deals with the
5395         !GLOB_ALTDIRFUNC case.
5396         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
5397         let it do the filename concatenation.
5398         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
5399         * modules/glob (Depends-on): Remove openat.
5400
5401 2007-12-31  Bruno Haible  <bruno@clisp.org>
5402
5403         * modules/dirfd (License): Change to LGPLv2+.
5404         Approved by Jim Meyering.
5405
5406 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5407
5408         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
5409         when multiplying M by sizeof (size_t).
5410
5411 2007-12-10  Martin Lambers  <marlam@marlam.de>
5412
5413         Override getpagesize on mingw.
5414         * lib/getpagesize.c: New file.
5415         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
5416         * modules/getpagesize (Files): Add lib/getpagesize.c.
5417         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
5418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5419         REPLACE_GETPAGESIZE.
5420         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
5421
5422 2007-12-25  Bruno Haible  <bruno@clisp.org>
5423
5424         * modules/localcharset (Notice): New field.
5425         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
5426         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
5427
5428 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5429             Bruno Haible  <bruno@clisp.org>
5430
5431         Avoid using the syntax symbol() in formatted documentation.
5432         * MODULES.html.sh (func_module): When replacing symbol() with a
5433         hyperlink, remove the parentheses. Show an error if some remain.
5434         Recognize and render the '...' syntax.
5435         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
5436         Rework. Add paragraph about GCC's inlining.
5437         * doc/alloca.texi: Likewise.
5438         * doc/error.texi: Remove parentheses from symbol reference.
5439         * doc/gnulib-intro.texi: Likewise.
5440         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
5441         * modules/fnmatch (Description): Reword to say "the ... function".
5442         * modules/full-read (Description): Likewise.
5443         * modules/full-write (Description): Likewise.
5444         * modules/safe-read (Description): Likewise.
5445         * modules/safe-write (Description): Likewise.
5446         * modules/strchrnul (Description): Likewise.
5447         * modules/trim (Description): Likewise.
5448         * modules/error (Description): Remove parentheses from symbol
5449         references.
5450         * modules/verror (Description): Likewise.
5451         Reported by Karl Berry.
5452
5453 2007-12-25  Bruno Haible  <bruno@clisp.org>
5454
5455         Fixup after 2007-10-16 commit.
5456         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
5457
5458 2007-12-24  Bruno Haible  <bruno@clisp.org>
5459
5460         Make --enable-relocatable work with DESTDIR.
5461         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
5462         to compute installdir from destprog.
5463         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
5464         also set the RELOC_DESTDIR variable.
5465         Reported by Левашев Иван <octagram@bluebottle.com>.
5466
5467 2007-12-24  Bruno Haible  <bruno@clisp.org>
5468
5469         Fix link error due to xalloc_die().
5470         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
5471         of xreadlink.
5472         * lib/relocwrapper.c: Update comments.
5473         * build-aux/install-reloc: Remove xreadlink.c from file list.
5474         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
5475         xreadlink.c.
5476         Reported by Левашев Иван <octagram@bluebottle.com>.
5477
5478 2007-12-24  Bruno Haible  <bruno@clisp.org>
5479
5480         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
5481         * lib/setenv.h: Remove file.
5482         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
5483         lib/setenv.h.
5484         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
5485         (Depends-on): Add stdlib.
5486         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
5487         gl_FUNC_UNSETENV.
5488         (Include): Replace setenv.h with <stdlib.h>.
5489         * modules/unsetenv: New file.
5490         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
5491         * lib/unsetenv.c: Include <stdlib.h> first.
5492         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
5493         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
5494         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
5495         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
5496         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
5497         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
5498         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
5499         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
5500         * doc/functions/unsetenv.texi: Update.
5501         * modules/xsetenv (Depends-on): Add unsetenv.
5502         * modules/getdate (Depends-on): Likewise.
5503         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
5504         * lib/xsetenv.c: Don't include setenv.h.
5505         * lib/getdate.y: Likewise.
5506         * lib/relocwrapper.c: Likewise.
5507         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
5508         (Depends-on): Add stdlib.
5509         * NEWS: Mention the changes.
5510         Reported by Левашев Иван <octagram@bluebottle.com>.
5511
5512 2007-12-23  Bruno Haible  <bruno@clisp.org>
5513
5514         * lib/memmem.c (memmem): Use lowercase variable names. Tab
5515         indentation.
5516
5517 2007-12-23  Bruno Haible  <bruno@clisp.org>
5518
5519         * lib/c-strcasestr.c: Add more comments.
5520         * lib/c-strstr.c: Likewise.
5521         * lib/mbscasestr.c: Likewise.
5522         * lib/mbsstr.c: Likewise.
5523         * lib/strcasestr.c: Likewise.
5524         * lib/memmem.c: Likewise.
5525
5526 2007-12-23  Bruno Haible  <bruno@clisp.org>
5527
5528         * tests/test-memmem.c: Include <string.h> first.
5529
5530 2007-12-22  Bruno Haible  <bruno@clisp.org>
5531
5532         * gnulib-tool (func_create_testdir): Change $auxdir while generating
5533         the contents of $testsbase.
5534         Reported by Ralf Wildenhues.
5535
5536 2007-12-22  Bruno Haible  <bruno@clisp.org>
5537
5538         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
5539         two variables local_ldadd_before, local_ldadd_last.
5540
5541 2007-12-20  Eric Blake  <ebb9@byu.net>
5542
5543         Work around circular library issue when cross-compiling.
5544         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
5545         that progname.o does not need to pull in rpl_memcmp.
5546
5547 2007-12-19  Eric Blake  <ebb9@byu.net>
5548
5549         Fix memmem to avoid O(n^2) worst-case complexity.
5550         * lib/memmem.c (knuth_morris_pratt): New function.
5551         (memmem): Use it if first few naive iterations fail.
5552         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
5553         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
5554         * modules/memchr (License): Likewise.
5555         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
5556         malloca.
5557         * tests/test-memmem.c: Rewrite, borrowing ideas from
5558         test-mbsstr1.c; the old version wouldn't even compile!
5559         * modules/memmem-tests: New file.
5560         * lib/string.in.h (rpl_memmem): Add declaration.
5561         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
5562         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
5563         REPLACE_MEMMEM.
5564
5565 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5566
5567         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
5568         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
5569         before any system include files, and undef after them all.  This
5570         should fix a problem on VMS reported by John E. Malmberg in
5571         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
5572
5573 2007-12-17  Eric Blake  <ebb9@byu.net>
5574
5575         Revert addition of verify, for BSD/OS.
5576         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
5577         can't handle large files, for the sake of obsolete platforms.
5578         * modules/fseeko (Depends-on): Remove verify.
5579         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
5580         * doc/functions/ftello.texi (ftello): Likewise.
5581         * doc/functions/fgetpos.texi (fgetpos): Likewise.
5582         Reported by Larry Jones.
5583
5584 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
5585
5586         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
5587         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
5588
5589 2007-12-17  Jim Meyering  <meyering@redhat.com>
5590
5591         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
5592         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
5593         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
5594         * modules/getcwd (Depends-on): Add openat.
5595         Reported by Petr Salinger.
5596
5597 2007-12-17  Bruno Haible  <bruno@clisp.org>
5598
5599         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
5600         avoid a segmentation fault of the configure test on x86_64 systems.
5601
5602 2007-12-15  Jim Meyering  <meyering@redhat.com>
5603
5604         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
5605
5606 2007-12-13  Eric Blake  <ebb9@byu.net>
5607
5608         Another fseek test.
5609         * tests/test-fseek.c (main): Also test ungetc handling.
5610         * tests/test-fseeko.c (main): Likewise.
5611         * modules/fseeko (Depends-on): Add verify.
5612         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
5613         large.
5614         Reported by Larry Jones.
5615
5616         Fix fseeko on mingw.
5617         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
5618         seek.
5619
5620         Beef up fseek tests.
5621         * tests/test-fseek.c (main): Also test eof handling.
5622         * tests/test-fseeko.c (main): Likewise.
5623         Reported by Larry Jones.
5624
5625 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
5626
5627         Fix fseeko on BSD-based platforms.
5628         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
5629         successful seek.
5630
5631 2007-12-12  Eric Blake  <ebb9@byu.net>
5632
5633         Allow circular dependency of separate libtests.a
5634         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
5635         when use_libtests.
5636
5637 2007-12-11  Eric Blake  <ebb9@byu.net>
5638
5639         Fix bug with -0.0L in previous patch.
5640         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
5641         * tests/test-isnan.c (main): Also test on zeroes.
5642         * tests/test-isnanf.c (main): Likewise.
5643         * tests/test-isnanl.h (main): Likewise.
5644
5645         Detect pseudo-denormals on x86 even when cross-compiling.
5646         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
5647         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
5648         invalid bit patterns that happen to satisfy ==.
5649
5650         Avoid link failures with separate libtests.a.
5651         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
5652         last, to satisfy circular dependencies.
5653
5654 2007-12-11  Eric Blake  <ebb9@byu.net>
5655         and Bruno Haible  <bruno@clisp.org>
5656
5657         Fix OpenBSD 4.0 <float.h> handling of long double.
5658         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
5659         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
5660         * doc/headers/float.texi (float.h): Document OpenBSD bug.
5661
5662 2007-12-11  Jim Meyering  <meyering@redhat.com>
5663
5664         * users.txt: Add libvirt.
5665
5666         Support versions of autoconf prior to 2.59c.
5667         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
5668         if it is not already defined.
5669
5670 2007-12-09  Bruno Haible  <bruno@clisp.org>
5671
5672         Let 'gnulib-tool --import' collect sources needed for the tests in
5673         tests/ rather than in lib/.
5674         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
5675         argument. If true, add rules to generate libtests.a, and put libtests.a
5676         into $(LDADD). Consider source files in subdirectories and set
5677         uses_subdirs.
5678         (func_emit_initmacro_start, func_emit_initmacro_end,
5679         func_emit_initmacro_done): Pass all arguments explicitly.
5680         (func_import): Determine two module lists main_modules,
5681         testsrelated_modules. Determine use_libtests. Determine two variables
5682         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
5683         instead of just sed_transform_lib_file. Determine two variables
5684         main_files and testsrelated_files. Compute 'files' as the union of
5685         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
5686         func_add_or_update. In the generated gnulib-comp.m4, collect the
5687         object files for tests/ in different variables than those for lib/.
5688         Substitute LIBTESTS_LIBDEPS.
5689         (func_create_testdir): Combine the uses_subdirs results from
5690         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
5691
5692 2007-12-09  Bruno Haible  <bruno@clisp.org>
5693
5694         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
5695         the build-aux directory.
5696
5697 2007-12-09  Bruno Haible  <bruno@clisp.org>
5698
5699         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
5700         introduced on 2006-09-09.
5701
5702 2007-12-07  Jim Meyering  <meyering@redhat.com>
5703
5704         Let these macros work also with autoconf-2.59.
5705         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
5706         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
5707         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5708
5709 2007-12-06  Jim Meyering  <meyering@redhat.com>
5710
5711         Avoid a configure-time syntax error in gl_FUNC_ACL.
5712         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
5713         function in each branch, before testing the cache variable.
5714
5715 2007-12-04  Eric Blake  <ebb9@byu.net>
5716
5717         Make scripts executable.
5718         * build-aux/config.guess: Add execute permissions.
5719         * build-aux/config.sub: Likewise.
5720         * build-aux/gendocs.sh: Likewise.
5721
5722         Fix frexp on mingw.
5723         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
5724         cross-compiling.
5725         * doc/functions/frexp.texi (frexp): Document the bug.
5726
5727         Make cygwin fseeko check more reliable.
5728         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
5729         version numbers, rather than unrelated feature check.
5730         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
5731         * doc/functions/ftello.texi (ftello): Likewise.
5732         Reported by Bruno Haible.
5733
5734         * m4/strerror.m4: Bump version number.
5735
5736 2007-12-03  Bruno Haible  <bruno@clisp.org>
5737
5738         * doc/functions/mprotect.texi: Mention the mingw problem.
5739
5740 2007-12-03  Eric Blake  <ebb9@byu.net>
5741
5742         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
5743         REPLACE_STRERROR is initialized before this macro.
5744
5745 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
5746
5747         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
5748         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
5749         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
5750         put -lsec in even for programs other than 'ls'.  This fixes a problem
5751         for gettext reported by Bruno Haible in
5752         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
5753         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
5754         Add support for Solaris 10.  This isn't efficient, but should get the
5755         job done for now.
5756
5757 2007-12-03  James Youngman  <jay@gnu.org>
5758
5759         * doc/regexprops-generic.texi: change "an close-group" to "a
5760         close-group" and "illegal" to "not allowed".
5761
5762 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5763
5764         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
5765         pr_byname.h. Needed for the rare case when the maintainer has done
5766         "make maintainer-clean" in the source directory and then attempts a
5767         build outside the source directory.
5768         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
5769         scripts_byname.h.
5770
5771 2007-12-02  Martin Lambers <marlam@marlam.de>
5772             Bruno Haible  <bruno@clisp.org>
5773
5774         * lib/getpagesize.h: Remove file.
5775         * lib/unistd.in.h: Include declaration of getpagesize here.
5776         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
5777         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
5778         HAVE_SYS_PARAM_H.
5779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
5780         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
5781         * modules/getpagesize (Files): Remove lib/getpagesize.h.
5782         (Depends-on): Add unistd.
5783         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5784         (Include): Use <unistd.h> instead of getpagesize.h.
5785         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
5786         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
5787         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
5788         gl_GETPAGESIZE invocation, already handled by module dependency.
5789         * lib/pagealign_alloc.c: Don't include getpagesize.h.
5790
5791 2007-12-02  Bruno Haible  <bruno@clisp.org>
5792
5793         * modules/strings-tests: New file.
5794         * tests/test-strings.c: New file.
5795
5796         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
5797         * lib/strings.in.h: New file.
5798         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
5799         * m4/strings_h.m4: New file.
5800         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
5801         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
5802         * modules/strings: New file.
5803         * modules/string (Makefile.am): Update.
5804         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
5805         Reported by Karl Berry.
5806
5807 2007-12-01  Eric Blake  <ebb9@byu.net>
5808
5809         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
5810         accomodate fix in cygwin 1.5.25.
5811
5812 2007-12-01  Jim Meyering  <meyering@redhat.com>
5813
5814         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
5815         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
5816         that would inhibit utf8-optimization of a regexp containing line-
5817         or buffer-anchors, e.g., `^', `$'.
5818
5819 2007-11-30  Bruno Haible  <bruno@clisp.org>
5820
5821         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
5822         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
5823         glthread_recursive_lock_init.
5824         * lib/lock.c (glthread_recursive_lock_init)
5825         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
5826         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
5827
5828 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
5829
5830         New function qset_acl, like set_acl but with syscall semantics.
5831         * lib/acl.h (qset_acl): New decl.
5832         * lib/acl.c (qset_acl): New function.
5833         (set_acl): Use new function.  Use more-consistent diagnostics.
5834
5835 2007-11-28  Jim Meyering  <meyering@redhat.com>
5836
5837         * modules/physmem (License): Change from GPL to LGPLv2+.
5838
5839 2007-11-26  Bruno Haible  <bruno@clisp.org>
5840
5841         * lib/vasnprintf.c (decode_long_double): Don't abort if the
5842         'long double' type has excess precision.
5843         Reported by Jim Meyering in
5844         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
5845
5846 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5847
5848         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
5849         Sync from <http://gnu.org/licenses>.
5850         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
5851         with license text from same location.
5852         * doc/maintain.texi, doc/standards.texi:  Sync from
5853         <http://savannah.gnu.org/projects/gnustandards>.
5854
5855 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
5856         and Jim Meyering  <meyering@redhat.com>
5857
5858         Adjust getdate' grammar to accept a slightly more regular language.
5859         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
5860         Before, the former was rejected.
5861         * lib/getdate.y (digits_to_date_time): New function, factored
5862         out of ...
5863         (number): ...here.  Just call digits_to_date_time.
5864         (hybrid): New non-terminal to handle an <unsigned number,
5865         signed relative offset> sequence consistently.
5866
5867 2007-11-18  Jim Meyering  <meyering@redhat.com>
5868
5869         Pull my changes from coreutils:
5870         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
5871         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
5872         use of $gnulib_tool_option_extras, so that it's separated from the
5873         preceding argument.
5874
5875         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
5876         * build-aux/bootstrap (cp_mark_as_generated): Create any required
5877         parent destination directories before copying a file into place.
5878
5879 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
5880
5881         bootstrap: work also with 4-argument variant of AC_INIT
5882         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
5883
5884 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
5885
5886         Port test-getaddrinfo to Solaris.
5887         Problem reported by Bruno Haible in
5888         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
5889         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
5890         explanation of setting 'hints'.
5891         Don't reject an implementation merely because it returns EAI_SERVICE.
5892         (EAI_SERVICE): Define to 0 if not defined.
5893
5894 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
5895
5896         The license of gnu-make and posix-shell is now "GPLed build tool".
5897         * modules/gnu-make (License): Likewise.
5898         * modules/posix-shell (License): Likewise.
5899
5900         New module posix-shell, for determining a POSIX shell
5901         or perhaps something that is close enough to a POSIX shell.
5902         * m4/posix-shell.m4: New file.
5903         * modules/posix-shell: New file.
5904
5905         * MODULES.html.sh: Mention new module.
5906
5907         New module gnu-make, for determining whether we're using GNU Make.
5908         * m4/gnu-make.m4: New file.
5909         * modules/gnu-make: New file.
5910         * MODULES.html.sh: Mention new module.
5911
5912 2007-11-14  Jim Meyering  <meyering@redhat.com>
5913
5914         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
5915         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
5916         use this macro to create a function _definition_.
5917         Remove useless "#undef ARGMATCH_DIE".
5918
5919 2007-11-14  Bruno Haible  <bruno@clisp.org>
5920
5921         * lib/config.charset: Update for OpenBSD 4.1.
5922         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
5923
5924 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
5925
5926         Document 64-bit #if problems in stdint.texi.
5927         * doc/headers/stdint.texi (stdint.h): Mention problems with
5928         64-bit-#if, and how to work around them.
5929
5930         Don't insist on 'long long int' support in the preprocessor.  It
5931         breaks too many things.  For example, PRIdMAX still uses a 'long
5932         long int' format with the latest Sun compiler, even though
5933         HAVE_LONG_LONG_INT isn't defined due to that compiler's
5934         preprocessor problem.  This causes the latest coreutils to dump
5935         core on Solaris 10 sparc with the Sun C compiler.
5936         Instead, fix the 2007-10-16 problem in a different way, by evaluating
5937         the troublesome expressions at configure-time, not at #if-time.
5938         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
5939         preprocessor.
5940         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
5941         compile-time C checks, done at 'configure'-time.
5942         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
5943         * modules/inttypes (Makefile): Substitute the new symbols that
5944         gl_INTTYPES_H now generates.
5945         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
5946
5947 2007-11-12  Bruno Haible  <bruno@clisp.org>
5948
5949         Tests for Unicode character classification functions.
5950
5951         * modules/unictype/bidicategory-byname-tests: New file.
5952         * modules/unictype/bidicategory-name-tests: New file.
5953         * modules/unictype/bidicategory-of-tests: New file.
5954         * modules/unictype/bidicategory-test-tests: New file.
5955         * modules/unictype/block-list-tests: New file.
5956         * modules/unictype/block-of-tests: New file.
5957         * modules/unictype/block-test-tests: New file.
5958         * modules/unictype/category-C-tests: New file.
5959         * modules/unictype/category-Cc-tests: New file.
5960         * modules/unictype/category-Cf-tests: New file.
5961         * modules/unictype/category-Cn-tests: New file.
5962         * modules/unictype/category-Co-tests: New file.
5963         * modules/unictype/category-Cs-tests: New file.
5964         * modules/unictype/category-L-tests: New file.
5965         * modules/unictype/category-Ll-tests: New file.
5966         * modules/unictype/category-Lm-tests: New file.
5967         * modules/unictype/category-Lo-tests: New file.
5968         * modules/unictype/category-Lt-tests: New file.
5969         * modules/unictype/category-Lu-tests: New file.
5970         * modules/unictype/category-M-tests: New file.
5971         * modules/unictype/category-Mc-tests: New file.
5972         * modules/unictype/category-Me-tests: New file.
5973         * modules/unictype/category-Mn-tests: New file.
5974         * modules/unictype/category-N-tests: New file.
5975         * modules/unictype/category-Nd-tests: New file.
5976         * modules/unictype/category-Nl-tests: New file.
5977         * modules/unictype/category-No-tests: New file.
5978         * modules/unictype/category-P-tests: New file.
5979         * modules/unictype/category-Pc-tests: New file.
5980         * modules/unictype/category-Pd-tests: New file.
5981         * modules/unictype/category-Pe-tests: New file.
5982         * modules/unictype/category-Pf-tests: New file.
5983         * modules/unictype/category-Pi-tests: New file.
5984         * modules/unictype/category-Po-tests: New file.
5985         * modules/unictype/category-Ps-tests: New file.
5986         * modules/unictype/category-S-tests: New file.
5987         * modules/unictype/category-Sc-tests: New file.
5988         * modules/unictype/category-Sk-tests: New file.
5989         * modules/unictype/category-Sm-tests: New file.
5990         * modules/unictype/category-So-tests: New file.
5991         * modules/unictype/category-Z-tests: New file.
5992         * modules/unictype/category-Zl-tests: New file.
5993         * modules/unictype/category-Zp-tests: New file.
5994         * modules/unictype/category-Zs-tests: New file.
5995         * modules/unictype/category-and-not-tests: New file.
5996         * modules/unictype/category-and-tests: New file.
5997         * modules/unictype/category-byname-tests: New file.
5998         * modules/unictype/category-name-tests: New file.
5999         * modules/unictype/category-none-tests: New file.
6000         * modules/unictype/category-of-tests: New file.
6001         * modules/unictype/category-or-tests: New file.
6002         * modules/unictype/category-test-withtable-tests: New file.
6003         * modules/unictype/combining-class-tests: New file.
6004         * modules/unictype/ctype-alnum-tests: New file.
6005         * modules/unictype/ctype-alpha-tests: New file.
6006         * modules/unictype/ctype-blank-tests: New file.
6007         * modules/unictype/ctype-cntrl-tests: New file.
6008         * modules/unictype/ctype-digit-tests: New file.
6009         * modules/unictype/ctype-graph-tests: New file.
6010         * modules/unictype/ctype-lower-tests: New file.
6011         * modules/unictype/ctype-print-tests: New file.
6012         * modules/unictype/ctype-punct-tests: New file.
6013         * modules/unictype/ctype-space-tests: New file.
6014         * modules/unictype/ctype-upper-tests: New file.
6015         * modules/unictype/ctype-xdigit-tests: New file.
6016         * modules/unictype/decimal-digit-tests: New file.
6017         * modules/unictype/digit-tests: New file.
6018         * modules/unictype/mirror-tests: New file.
6019         * modules/unictype/numeric-tests: New file.
6020         * modules/unictype/property-alphabetic-tests: New file.
6021         * modules/unictype/property-ascii-hex-digit-tests: New file.
6022         * modules/unictype/property-bidi-arabic-digit-tests: New file.
6023         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
6024         * modules/unictype/property-bidi-block-separator-tests: New file.
6025         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
6026         * modules/unictype/property-bidi-common-separator-tests: New file.
6027         * modules/unictype/property-bidi-control-tests: New file.
6028         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
6029         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
6030         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
6031         * modules/unictype/property-bidi-european-digit-tests: New file.
6032         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
6033         * modules/unictype/property-bidi-left-to-right-tests: New file.
6034         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
6035         * modules/unictype/property-bidi-other-neutral-tests: New file.
6036         * modules/unictype/property-bidi-pdf-tests: New file.
6037         * modules/unictype/property-bidi-segment-separator-tests: New file.
6038         * modules/unictype/property-bidi-whitespace-tests: New file.
6039         * modules/unictype/property-byname-tests: New file.
6040         * modules/unictype/property-combining-tests: New file.
6041         * modules/unictype/property-composite-tests: New file.
6042         * modules/unictype/property-currency-symbol-tests: New file.
6043         * modules/unictype/property-dash-tests: New file.
6044         * modules/unictype/property-decimal-digit-tests: New file.
6045         * modules/unictype/property-default-ignorable-code-point-tests: New file.
6046         * modules/unictype/property-deprecated-tests: New file.
6047         * modules/unictype/property-diacritic-tests: New file.
6048         * modules/unictype/property-extender-tests: New file.
6049         * modules/unictype/property-format-control-tests: New file.
6050         * modules/unictype/property-grapheme-base-tests: New file.
6051         * modules/unictype/property-grapheme-extend-tests: New file.
6052         * modules/unictype/property-grapheme-link-tests: New file.
6053         * modules/unictype/property-hex-digit-tests: New file.
6054         * modules/unictype/property-hyphen-tests: New file.
6055         * modules/unictype/property-id-continue-tests: New file.
6056         * modules/unictype/property-id-start-tests: New file.
6057         * modules/unictype/property-ideographic-tests: New file.
6058         * modules/unictype/property-ids-binary-operator-tests: New file.
6059         * modules/unictype/property-ids-trinary-operator-tests: New file.
6060         * modules/unictype/property-ignorable-control-tests: New file.
6061         * modules/unictype/property-iso-control-tests: New file.
6062         * modules/unictype/property-join-control-tests: New file.
6063         * modules/unictype/property-left-of-pair-tests: New file.
6064         * modules/unictype/property-line-separator-tests: New file.
6065         * modules/unictype/property-logical-order-exception-tests: New file.
6066         * modules/unictype/property-lowercase-tests: New file.
6067         * modules/unictype/property-math-tests: New file.
6068         * modules/unictype/property-non-break-tests: New file.
6069         * modules/unictype/property-not-a-character-tests: New file.
6070         * modules/unictype/property-numeric-tests: New file.
6071         * modules/unictype/property-other-alphabetic-tests: New file.
6072         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
6073         * modules/unictype/property-other-grapheme-extend-tests: New file.
6074         * modules/unictype/property-other-id-continue-tests: New file.
6075         * modules/unictype/property-other-id-start-tests: New file.
6076         * modules/unictype/property-other-lowercase-tests: New file.
6077         * modules/unictype/property-other-math-tests: New file.
6078         * modules/unictype/property-other-uppercase-tests: New file.
6079         * modules/unictype/property-paired-punctuation-tests: New file.
6080         * modules/unictype/property-paragraph-separator-tests: New file.
6081         * modules/unictype/property-pattern-syntax-tests: New file.
6082         * modules/unictype/property-pattern-white-space-tests: New file.
6083         * modules/unictype/property-private-use-tests: New file.
6084         * modules/unictype/property-punctuation-tests: New file.
6085         * modules/unictype/property-quotation-mark-tests: New file.
6086         * modules/unictype/property-radical-tests: New file.
6087         * modules/unictype/property-sentence-terminal-tests: New file.
6088         * modules/unictype/property-soft-dotted-tests: New file.
6089         * modules/unictype/property-space-tests: New file.
6090         * modules/unictype/property-terminal-punctuation-tests: New file.
6091         * modules/unictype/property-test-tests: New file.
6092         * modules/unictype/property-titlecase-tests: New file.
6093         * modules/unictype/property-unassigned-code-value-tests: New file.
6094         * modules/unictype/property-unified-ideograph-tests: New file.
6095         * modules/unictype/property-uppercase-tests: New file.
6096         * modules/unictype/property-variation-selector-tests: New file.
6097         * modules/unictype/property-white-space-tests: New file.
6098         * modules/unictype/property-xid-continue-tests: New file.
6099         * modules/unictype/property-xid-start-tests: New file.
6100         * modules/unictype/property-zero-width-tests: New file.
6101         * modules/unictype/scripts-tests: New file.
6102         * modules/unictype/syntax-c-ident-tests: New file.
6103         * modules/unictype/syntax-c-whitespace-tests: New file.
6104         * modules/unictype/syntax-java-ident-tests: New file.
6105         * modules/unictype/syntax-java-whitespace-tests: New file.
6106         * tests/unictype/test-bidi_byname.c: New file.
6107         * tests/unictype/test-bidi_name.c: New file.
6108         * tests/unictype/test-bidi_of.c: New file.
6109         * tests/unictype/test-bidi_test.c: New file.
6110         * tests/unictype/test-block_list.c: New file.
6111         * tests/unictype/test-block_of.c: New file.
6112         * tests/unictype/test-block_test.c: New file.
6113         * tests/unictype/test-categ_and.c: New file.
6114         * tests/unictype/test-categ_and_not.c: New file.
6115         * tests/unictype/test-categ_byname.c: New file.
6116         * tests/unictype/test-categ_name.c: New file.
6117         * tests/unictype/test-categ_none.c: New file.
6118         * tests/unictype/test-categ_of.c: New file.
6119         * tests/unictype/test-categ_or.c: New file.
6120         * tests/unictype/test-categ_test_withtable.c: New file.
6121         * tests/unictype/test-combining.c: New file.
6122         * tests/unictype/test-decdigit.c: New file.
6123         * tests/unictype/test-digit.c: New file.
6124         * tests/unictype/test-mirror.c: New file.
6125         * tests/unictype/test-numeric.c: New file.
6126         * tests/unictype/test-pr_byname.c: New file.
6127         * tests/unictype/test-pr_test.c: New file.
6128         * tests/unictype/test-predicate-part1.h: New file.
6129         * tests/unictype/test-predicate-part2.h: New file.
6130         * tests/unictype/test-scripts.c: New file.
6131         * tests/unictype/test-sy_c_ident.c: New file.
6132         * tests/unictype/test-sy_java_ident.c: New file.
6133
6134         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
6135         for Unicode 5.0.0.
6136         * tests/unictype/test-categ_Cc.c: Likewise.
6137         * tests/unictype/test-categ_Cf.c: Likewise.
6138         * tests/unictype/test-categ_Cn.c: Likewise.
6139         * tests/unictype/test-categ_Co.c: Likewise.
6140         * tests/unictype/test-categ_Cs.c: Likewise.
6141         * tests/unictype/test-categ_L.c: Likewise.
6142         * tests/unictype/test-categ_Ll.c: Likewise.
6143         * tests/unictype/test-categ_Lm.c: Likewise.
6144         * tests/unictype/test-categ_Lo.c: Likewise.
6145         * tests/unictype/test-categ_Lt.c: Likewise.
6146         * tests/unictype/test-categ_Lu.c: Likewise.
6147         * tests/unictype/test-categ_M.c: Likewise.
6148         * tests/unictype/test-categ_Mc.c: Likewise.
6149         * tests/unictype/test-categ_Me.c: Likewise.
6150         * tests/unictype/test-categ_Mn.c: Likewise.
6151         * tests/unictype/test-categ_N.c: Likewise.
6152         * tests/unictype/test-categ_Nd.c: Likewise.
6153         * tests/unictype/test-categ_Nl.c: Likewise.
6154         * tests/unictype/test-categ_No.c: Likewise.
6155         * tests/unictype/test-categ_P.c: Likewise.
6156         * tests/unictype/test-categ_Pc.c: Likewise.
6157         * tests/unictype/test-categ_Pd.c: Likewise.
6158         * tests/unictype/test-categ_Pe.c: Likewise.
6159         * tests/unictype/test-categ_Pf.c: Likewise.
6160         * tests/unictype/test-categ_Pi.c: Likewise.
6161         * tests/unictype/test-categ_Po.c: Likewise.
6162         * tests/unictype/test-categ_Ps.c: Likewise.
6163         * tests/unictype/test-categ_S.c: Likewise.
6164         * tests/unictype/test-categ_Sc.c: Likewise.
6165         * tests/unictype/test-categ_Sk.c: Likewise.
6166         * tests/unictype/test-categ_Sm.c: Likewise.
6167         * tests/unictype/test-categ_So.c: Likewise.
6168         * tests/unictype/test-categ_Z.c: Likewise.
6169         * tests/unictype/test-categ_Zl.c: Likewise.
6170         * tests/unictype/test-categ_Zp.c: Likewise.
6171         * tests/unictype/test-categ_Zs.c: Likewise.
6172         * tests/unictype/test-ctype_alnum.c: Likewise.
6173         * tests/unictype/test-ctype_alpha.c: Likewise.
6174         * tests/unictype/test-ctype_blank.c: Likewise.
6175         * tests/unictype/test-ctype_cntrl.c: Likewise.
6176         * tests/unictype/test-ctype_digit.c: Likewise.
6177         * tests/unictype/test-ctype_graph.c: Likewise.
6178         * tests/unictype/test-ctype_lower.c: Likewise.
6179         * tests/unictype/test-ctype_print.c: Likewise.
6180         * tests/unictype/test-ctype_punct.c: Likewise.
6181         * tests/unictype/test-ctype_space.c: Likewise.
6182         * tests/unictype/test-ctype_upper.c: Likewise.
6183         * tests/unictype/test-ctype_xdigit.c: Likewise.
6184         * tests/unictype/test-decdigit.h: Likewise.
6185         * tests/unictype/test-digit.h: Likewise.
6186         * tests/unictype/test-numeric.h: Likewise.
6187         * tests/unictype/test-pr_alphabetic.c: Likewise.
6188         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
6189         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6190         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6191         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
6192         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6193         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
6194         * tests/unictype/test-pr_bidi_control.c: Likewise.
6195         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
6196         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
6197         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6198         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6199         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6200         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6201         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6202         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6203         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
6204         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
6205         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
6206         * tests/unictype/test-pr_combining.c: Likewise.
6207         * tests/unictype/test-pr_composite.c: Likewise.
6208         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6209         * tests/unictype/test-pr_dash.c: Likewise.
6210         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6211         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
6212         * tests/unictype/test-pr_deprecated.c: Likewise.
6213         * tests/unictype/test-pr_diacritic.c: Likewise.
6214         * tests/unictype/test-pr_extender.c: Likewise.
6215         * tests/unictype/test-pr_format_control.c: Likewise.
6216         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6217         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6218         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6219         * tests/unictype/test-pr_hex_digit.c: Likewise.
6220         * tests/unictype/test-pr_hyphen.c: Likewise.
6221         * tests/unictype/test-pr_id_continue.c: Likewise.
6222         * tests/unictype/test-pr_id_start.c: Likewise.
6223         * tests/unictype/test-pr_ideographic.c: Likewise.
6224         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
6225         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
6226         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6227         * tests/unictype/test-pr_iso_control.c: Likewise.
6228         * tests/unictype/test-pr_join_control.c: Likewise.
6229         * tests/unictype/test-pr_left_of_pair.c: Likewise.
6230         * tests/unictype/test-pr_line_separator.c: Likewise.
6231         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6232         * tests/unictype/test-pr_lowercase.c: Likewise.
6233         * tests/unictype/test-pr_math.c: Likewise.
6234         * tests/unictype/test-pr_non_break.c: Likewise.
6235         * tests/unictype/test-pr_not_a_character.c: Likewise.
6236         * tests/unictype/test-pr_numeric.c: Likewise.
6237         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6238         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
6239         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
6240         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6241         * tests/unictype/test-pr_other_id_start.c: Likewise.
6242         * tests/unictype/test-pr_other_lowercase.c: Likewise.
6243         * tests/unictype/test-pr_other_math.c: Likewise.
6244         * tests/unictype/test-pr_other_uppercase.c: Likewise.
6245         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
6246         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
6247         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
6248         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
6249         * tests/unictype/test-pr_private_use.c: Likewise.
6250         * tests/unictype/test-pr_punctuation.c: Likewise.
6251         * tests/unictype/test-pr_quotation_mark.c: Likewise.
6252         * tests/unictype/test-pr_radical.c: Likewise.
6253         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6254         * tests/unictype/test-pr_soft_dotted.c: Likewise.
6255         * tests/unictype/test-pr_space.c: Likewise.
6256         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6257         * tests/unictype/test-pr_titlecase.c: Likewise.
6258         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6259         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6260         * tests/unictype/test-pr_uppercase.c: Likewise.
6261         * tests/unictype/test-pr_variation_selector.c: Likewise.
6262         * tests/unictype/test-pr_white_space.c: Likewise.
6263         * tests/unictype/test-pr_xid_continue.c: Likewise.
6264         * tests/unictype/test-pr_xid_start.c: Likewise.
6265         * tests/unictype/test-pr_zero_width.c: Likewise.
6266         * tests/unictype/test-sy_c_whitespace.c: Likewise.
6267         * tests/unictype/test-sy_java_whitespace.c: Likewise.
6268
6269 2007-11-12  Bruno Haible  <bruno@clisp.org>
6270
6271         Unicode character classification functions.
6272         * lib/unictype.h: New file.
6273         * modules/unictype/base: New file.
6274         * modules/unictype/category-L: New file.
6275         * modules/unictype/category-Lu: New file.
6276         * modules/unictype/category-Ll: New file.
6277         * modules/unictype/category-Lt: New file.
6278         * modules/unictype/category-Lm: New file.
6279         * modules/unictype/category-Lo: New file.
6280         * modules/unictype/category-M: New file.
6281         * modules/unictype/category-Mn: New file.
6282         * modules/unictype/category-Mc: New file.
6283         * modules/unictype/category-Me: New file.
6284         * modules/unictype/category-N: New file.
6285         * modules/unictype/category-Nd: New file.
6286         * modules/unictype/category-Nl: New file.
6287         * modules/unictype/category-No: New file.
6288         * modules/unictype/category-P: New file.
6289         * modules/unictype/category-Pc: New file.
6290         * modules/unictype/category-Pd: New file.
6291         * modules/unictype/category-Ps: New file.
6292         * modules/unictype/category-Pe: New file.
6293         * modules/unictype/category-Pi: New file.
6294         * modules/unictype/category-Pf: New file.
6295         * modules/unictype/category-Po: New file.
6296         * modules/unictype/category-S: New file.
6297         * modules/unictype/category-Sm: New file.
6298         * modules/unictype/category-Sc: New file.
6299         * modules/unictype/category-Sk: New file.
6300         * modules/unictype/category-So: New file.
6301         * modules/unictype/category-Z: New file.
6302         * modules/unictype/category-Zs: New file.
6303         * modules/unictype/category-Zl: New file.
6304         * modules/unictype/category-Zp: New file.
6305         * modules/unictype/category-C: New file.
6306         * modules/unictype/category-Cc: New file.
6307         * modules/unictype/category-Cf: New file.
6308         * modules/unictype/category-Cs: New file.
6309         * modules/unictype/category-Co: New file.
6310         * modules/unictype/category-Cn: New file.
6311         * modules/unictype/category-or: New file.
6312         * modules/unictype/category-of: New file.
6313         * modules/unictype/category-test: New file.
6314         * modules/unictype/category-test-withtable: New file.
6315         * modules/unictype/category-byname: New file.
6316         * modules/unictype/category-none: New file.
6317         * modules/unictype/category-and: New file.
6318         * modules/unictype/category-and-not: New file.
6319         * modules/unictype/category-name: New file.
6320         * modules/unictype/combining-class: New file.
6321         * modules/unictype/category-all: New file.
6322         * modules/unictype/bidicategory-all: New file.
6323         * modules/unictype/bidicategory-byname: New file.
6324         * modules/unictype/bidicategory-name: New file.
6325         * modules/unictype/bidicategory-of: New file.
6326         * modules/unictype/bidicategory-test: New file.
6327         * modules/unictype/decimal-digit: New file.
6328         * modules/unictype/digit: New file.
6329         * modules/unictype/numeric: New file.
6330         * modules/unictype/mirror: New file.
6331         * modules/unictype/property-white-space: New file.
6332         * modules/unictype/property-alphabetic: New file.
6333         * modules/unictype/property-other-alphabetic: New file.
6334         * modules/unictype/property-not-a-character: New file.
6335         * modules/unictype/property-default-ignorable-code-point: New file.
6336         * modules/unictype/property-other-default-ignorable-code-point: New
6337         file.
6338         * modules/unictype/property-deprecated: New file.
6339         * modules/unictype/property-logical-order-exception: New file.
6340         * modules/unictype/property-variation-selector: New file.
6341         * modules/unictype/property-private-use: New file.
6342         * modules/unictype/property-unassigned-code-value: New file.
6343         * modules/unictype/property-uppercase: New file.
6344         * modules/unictype/property-other-uppercase: New file.
6345         * modules/unictype/property-lowercase: New file.
6346         * modules/unictype/property-other-lowercase: New file.
6347         * modules/unictype/property-titlecase: New file.
6348         * modules/unictype/property-soft-dotted: New file.
6349         * modules/unictype/property-id-start: New file.
6350         * modules/unictype/property-other-id-start: New file.
6351         * modules/unictype/property-id-continue: New file.
6352         * modules/unictype/property-other-id-continue: New file.
6353         * modules/unictype/property-xid-start: New file.
6354         * modules/unictype/property-xid-continue: New file.
6355         * modules/unictype/property-pattern-white-space: New file.
6356         * modules/unictype/property-pattern-syntax: New file.
6357         * modules/unictype/property-join-control: New file.
6358         * modules/unictype/property-grapheme-base: New file.
6359         * modules/unictype/property-grapheme-extend: New file.
6360         * modules/unictype/property-other-grapheme-extend: New file.
6361         * modules/unictype/property-grapheme-link: New file.
6362         * modules/unictype/property-bidi-control: New file.
6363         * modules/unictype/property-bidi-left-to-right: New file.
6364         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
6365         * modules/unictype/property-bidi-arabic-right-to-left: New file.
6366         * modules/unictype/property-bidi-european-digit: New file.
6367         * modules/unictype/property-bidi-eur-num-separator: New file.
6368         * modules/unictype/property-bidi-eur-num-terminator: New file.
6369         * modules/unictype/property-bidi-arabic-digit: New file.
6370         * modules/unictype/property-bidi-common-separator: New file.
6371         * modules/unictype/property-bidi-block-separator: New file.
6372         * modules/unictype/property-bidi-segment-separator: New file.
6373         * modules/unictype/property-bidi-whitespace: New file.
6374         * modules/unictype/property-bidi-non-spacing-mark: New file.
6375         * modules/unictype/property-bidi-boundary-neutral: New file.
6376         * modules/unictype/property-bidi-pdf: New file.
6377         * modules/unictype/property-bidi-embedding-or-override: New file.
6378         * modules/unictype/property-bidi-other-neutral: New file.
6379         * modules/unictype/property-hex-digit: New file.
6380         * modules/unictype/property-ascii-hex-digit: New file.
6381         * modules/unictype/property-ideographic: New file.
6382         * modules/unictype/property-unified-ideograph: New file.
6383         * modules/unictype/property-radical: New file.
6384         * modules/unictype/property-ids-binary-operator: New file.
6385         * modules/unictype/property-ids-trinary-operator: New file.
6386         * modules/unictype/property-zero-width: New file.
6387         * modules/unictype/property-space: New file.
6388         * modules/unictype/property-non-break: New file.
6389         * modules/unictype/property-iso-control: New file.
6390         * modules/unictype/property-format-control: New file.
6391         * modules/unictype/property-dash: New file.
6392         * modules/unictype/property-hyphen: New file.
6393         * modules/unictype/property-punctuation: New file.
6394         * modules/unictype/property-line-separator: New file.
6395         * modules/unictype/property-paragraph-separator: New file.
6396         * modules/unictype/property-quotation-mark: New file.
6397         * modules/unictype/property-sentence-terminal: New file.
6398         * modules/unictype/property-terminal-punctuation: New file.
6399         * modules/unictype/property-currency-symbol: New file.
6400         * modules/unictype/property-math: New file.
6401         * modules/unictype/property-other-math: New file.
6402         * modules/unictype/property-paired-punctuation: New file.
6403         * modules/unictype/property-left-of-pair: New file.
6404         * modules/unictype/property-combining: New file.
6405         * modules/unictype/property-composite: New file.
6406         * modules/unictype/property-decimal-digit: New file.
6407         * modules/unictype/property-numeric: New file.
6408         * modules/unictype/property-diacritic: New file.
6409         * modules/unictype/property-extender: New file.
6410         * modules/unictype/property-ignorable-control: New file.
6411         * modules/unictype/property-test: New file.
6412         * modules/unictype/property-byname: New file.
6413         * modules/unictype/property-all: New file.
6414         * modules/unictype/scripts: New file.
6415         * modules/unictype/scripts-all: New file.
6416         * modules/unictype/block-of: New file.
6417         * modules/unictype/block-test: New file.
6418         * modules/unictype/block-list: New file.
6419         * modules/unictype/block-all: New file.
6420         * modules/unictype/syntax-c-whitespace: New file.
6421         * modules/unictype/syntax-java-whitespace: New file.
6422         * modules/unictype/syntax-c-ident: New file.
6423         * modules/unictype/syntax-java-ident: New file.
6424         * modules/unictype/ctype-alnum: New file.
6425         * modules/unictype/ctype-alpha: New file.
6426         * modules/unictype/ctype-cntrl: New file.
6427         * modules/unictype/ctype-digit: New file.
6428         * modules/unictype/ctype-graph: New file.
6429         * modules/unictype/ctype-lower: New file.
6430         * modules/unictype/ctype-print: New file.
6431         * modules/unictype/ctype-punct: New file.
6432         * modules/unictype/ctype-space: New file.
6433         * modules/unictype/ctype-upper: New file.
6434         * modules/unictype/ctype-xdigit: New file.
6435         * modules/unictype/ctype-blank: New file.
6436         * lib/unictype/bidi_byname.c: New file.
6437         * lib/unictype/bidi_name.c: New file.
6438         * lib/unictype/bidi_of.c: New file.
6439         * lib/unictype/bidi_test.c: New file.
6440         * lib/unictype/bitmap.h: New file.
6441         * lib/unictype/block_test.c: New file.
6442         * lib/unictype/blocks.c: New file.
6443         * lib/unictype/categ_C.c: New file.
6444         * lib/unictype/categ_Cc.c: New file.
6445         * lib/unictype/categ_Cf.c: New file.
6446         * lib/unictype/categ_Cn.c: New file.
6447         * lib/unictype/categ_Co.c: New file.
6448         * lib/unictype/categ_Cs.c: New file.
6449         * lib/unictype/categ_L.c: New file.
6450         * lib/unictype/categ_Ll.c: New file.
6451         * lib/unictype/categ_Lm.c: New file.
6452         * lib/unictype/categ_Lo.c: New file.
6453         * lib/unictype/categ_Lt.c: New file.
6454         * lib/unictype/categ_Lu.c: New file.
6455         * lib/unictype/categ_M.c: New file.
6456         * lib/unictype/categ_Mc.c: New file.
6457         * lib/unictype/categ_Me.c: New file.
6458         * lib/unictype/categ_Mn.c: New file.
6459         * lib/unictype/categ_N.c: New file.
6460         * lib/unictype/categ_Nd.c: New file.
6461         * lib/unictype/categ_Nl.c: New file.
6462         * lib/unictype/categ_No.c: New file.
6463         * lib/unictype/categ_P.c: New file.
6464         * lib/unictype/categ_Pc.c: New file.
6465         * lib/unictype/categ_Pd.c: New file.
6466         * lib/unictype/categ_Pe.c: New file.
6467         * lib/unictype/categ_Pf.c: New file.
6468         * lib/unictype/categ_Pi.c: New file.
6469         * lib/unictype/categ_Po.c: New file.
6470         * lib/unictype/categ_Ps.c: New file.
6471         * lib/unictype/categ_S.c: New file.
6472         * lib/unictype/categ_Sc.c: New file.
6473         * lib/unictype/categ_Sk.c: New file.
6474         * lib/unictype/categ_Sm.c: New file.
6475         * lib/unictype/categ_So.c: New file.
6476         * lib/unictype/categ_Z.c: New file.
6477         * lib/unictype/categ_Zl.c: New file.
6478         * lib/unictype/categ_Zp.c: New file.
6479         * lib/unictype/categ_Zs.c: New file.
6480         * lib/unictype/categ_and.c: New file.
6481         * lib/unictype/categ_and_not.c: New file.
6482         * lib/unictype/categ_byname.c: New file.
6483         * lib/unictype/categ_name.c: New file.
6484         * lib/unictype/categ_none.c: New file.
6485         * lib/unictype/categ_of.c: New file.
6486         * lib/unictype/categ_or.c: New file.
6487         * lib/unictype/categ_test.c: New file.
6488         * lib/unictype/combining.c: New file.
6489         * lib/unictype/ctype_alnum.c: New file.
6490         * lib/unictype/ctype_alpha.c: New file.
6491         * lib/unictype/ctype_blank.c: New file.
6492         * lib/unictype/ctype_cntrl.c: New file.
6493         * lib/unictype/ctype_digit.c: New file.
6494         * lib/unictype/ctype_graph.c: New file.
6495         * lib/unictype/ctype_lower.c: New file.
6496         * lib/unictype/ctype_print.c: New file.
6497         * lib/unictype/ctype_punct.c: New file.
6498         * lib/unictype/ctype_space.c: New file.
6499         * lib/unictype/ctype_upper.c: New file.
6500         * lib/unictype/ctype_xdigit.c: New file.
6501         * lib/unictype/decdigit.c: New file.
6502         * lib/unictype/digit.c: New file.
6503         * lib/unictype/identsyntaxmap.h: New file.
6504         * lib/unictype/mirror.c: New file.
6505         * lib/unictype/numeric.c: New file.
6506         * lib/unictype/pr_alphabetic.c: New file.
6507         * lib/unictype/pr_ascii_hex_digit.c: New file.
6508         * lib/unictype/pr_bidi_arabic_digit.c: New file.
6509         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
6510         * lib/unictype/pr_bidi_block_separator.c: New file.
6511         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
6512         * lib/unictype/pr_bidi_common_separator.c: New file.
6513         * lib/unictype/pr_bidi_control.c: New file.
6514         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
6515         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
6516         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
6517         * lib/unictype/pr_bidi_european_digit.c: New file.
6518         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
6519         * lib/unictype/pr_bidi_left_to_right.c: New file.
6520         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
6521         * lib/unictype/pr_bidi_other_neutral.c: New file.
6522         * lib/unictype/pr_bidi_pdf.c: New file.
6523         * lib/unictype/pr_bidi_segment_separator.c: New file.
6524         * lib/unictype/pr_bidi_whitespace.c: New file.
6525         * lib/unictype/pr_byname.c: New file.
6526         * lib/unictype/pr_byname.gperf: New file.
6527         * lib/unictype/pr_combining.c: New file.
6528         * lib/unictype/pr_composite.c: New file.
6529         * lib/unictype/pr_currency_symbol.c: New file.
6530         * lib/unictype/pr_dash.c: New file.
6531         * lib/unictype/pr_decimal_digit.c: New file.
6532         * lib/unictype/pr_default_ignorable_code_point.c: New file.
6533         * lib/unictype/pr_deprecated.c: New file.
6534         * lib/unictype/pr_diacritic.c: New file.
6535         * lib/unictype/pr_extender.c: New file.
6536         * lib/unictype/pr_format_control.c: New file.
6537         * lib/unictype/pr_grapheme_base.c: New file.
6538         * lib/unictype/pr_grapheme_extend.c: New file.
6539         * lib/unictype/pr_grapheme_link.c: New file.
6540         * lib/unictype/pr_hex_digit.c: New file.
6541         * lib/unictype/pr_hyphen.c: New file.
6542         * lib/unictype/pr_id_continue.c: New file.
6543         * lib/unictype/pr_id_start.c: New file.
6544         * lib/unictype/pr_ideographic.c: New file.
6545         * lib/unictype/pr_ids_binary_operator.c: New file.
6546         * lib/unictype/pr_ids_trinary_operator.c: New file.
6547         * lib/unictype/pr_ignorable_control.c: New file.
6548         * lib/unictype/pr_iso_control.c: New file.
6549         * lib/unictype/pr_join_control.c: New file.
6550         * lib/unictype/pr_left_of_pair.c: New file.
6551         * lib/unictype/pr_line_separator.c: New file.
6552         * lib/unictype/pr_logical_order_exception.c: New file.
6553         * lib/unictype/pr_lowercase.c: New file.
6554         * lib/unictype/pr_math.c: New file.
6555         * lib/unictype/pr_non_break.c: New file.
6556         * lib/unictype/pr_not_a_character.c: New file.
6557         * lib/unictype/pr_numeric.c: New file.
6558         * lib/unictype/pr_other_alphabetic.c: New file.
6559         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
6560         * lib/unictype/pr_other_grapheme_extend.c: New file.
6561         * lib/unictype/pr_other_id_continue.c: New file.
6562         * lib/unictype/pr_other_id_start.c: New file.
6563         * lib/unictype/pr_other_lowercase.c: New file.
6564         * lib/unictype/pr_other_math.c: New file.
6565         * lib/unictype/pr_other_uppercase.c: New file.
6566         * lib/unictype/pr_paired_punctuation.c: New file.
6567         * lib/unictype/pr_paragraph_separator.c: New file.
6568         * lib/unictype/pr_pattern_syntax.c: New file.
6569         * lib/unictype/pr_pattern_white_space.c: New file.
6570         * lib/unictype/pr_private_use.c: New file.
6571         * lib/unictype/pr_punctuation.c: New file.
6572         * lib/unictype/pr_quotation_mark.c: New file.
6573         * lib/unictype/pr_radical.c: New file.
6574         * lib/unictype/pr_sentence_terminal.c: New file.
6575         * lib/unictype/pr_soft_dotted.c: New file.
6576         * lib/unictype/pr_space.c: New file.
6577         * lib/unictype/pr_terminal_punctuation.c: New file.
6578         * lib/unictype/pr_test.c: New file.
6579         * lib/unictype/pr_titlecase.c: New file.
6580         * lib/unictype/pr_unassigned_code_value.c: New file.
6581         * lib/unictype/pr_unified_ideograph.c: New file.
6582         * lib/unictype/pr_uppercase.c: New file.
6583         * lib/unictype/pr_variation_selector.c: New file.
6584         * lib/unictype/pr_white_space.c: New file.
6585         * lib/unictype/pr_xid_continue.c: New file.
6586         * lib/unictype/pr_xid_start.c: New file.
6587         * lib/unictype/pr_zero_width.c: New file.
6588         * lib/unictype/scripts.c: New file.
6589         * lib/unictype/sy_c_ident.c: New file.
6590         * lib/unictype/sy_c_whitespace.c: New file.
6591         * lib/unictype/sy_java_ident.c: New file.
6592         * lib/unictype/sy_java_whitespace.c: New file.
6593
6594         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
6595         Unicode 5.0.0.
6596         * lib/unictype/blocks.h: Likewise.
6597         * lib/unictype/categ_C.h: Likewise.
6598         * lib/unictype/categ_Cc.h: Likewise.
6599         * lib/unictype/categ_Cf.h: Likewise.
6600         * lib/unictype/categ_Cn.h: Likewise.
6601         * lib/unictype/categ_Co.h: Likewise.
6602         * lib/unictype/categ_Cs.h: Likewise.
6603         * lib/unictype/categ_L.h: Likewise.
6604         * lib/unictype/categ_Ll.h: Likewise.
6605         * lib/unictype/categ_Lm.h: Likewise.
6606         * lib/unictype/categ_Lo.h: Likewise.
6607         * lib/unictype/categ_Lt.h: Likewise.
6608         * lib/unictype/categ_Lu.h: Likewise.
6609         * lib/unictype/categ_M.h: Likewise.
6610         * lib/unictype/categ_Mc.h: Likewise.
6611         * lib/unictype/categ_Me.h: Likewise.
6612         * lib/unictype/categ_Mn.h: Likewise.
6613         * lib/unictype/categ_N.h: Likewise.
6614         * lib/unictype/categ_Nd.h: Likewise.
6615         * lib/unictype/categ_Nl.h: Likewise.
6616         * lib/unictype/categ_No.h: Likewise.
6617         * lib/unictype/categ_P.h: Likewise.
6618         * lib/unictype/categ_Pc.h: Likewise.
6619         * lib/unictype/categ_Pd.h: Likewise.
6620         * lib/unictype/categ_Pe.h: Likewise.
6621         * lib/unictype/categ_Pf.h: Likewise.
6622         * lib/unictype/categ_Pi.h: Likewise.
6623         * lib/unictype/categ_Po.h: Likewise.
6624         * lib/unictype/categ_Ps.h: Likewise.
6625         * lib/unictype/categ_S.h: Likewise.
6626         * lib/unictype/categ_Sc.h: Likewise.
6627         * lib/unictype/categ_Sk.h: Likewise.
6628         * lib/unictype/categ_Sm.h: Likewise.
6629         * lib/unictype/categ_So.h: Likewise.
6630         * lib/unictype/categ_Z.h: Likewise.
6631         * lib/unictype/categ_Zl.h: Likewise.
6632         * lib/unictype/categ_Zp.h: Likewise.
6633         * lib/unictype/categ_Zs.h: Likewise.
6634         * lib/unictype/categ_of.h: Likewise.
6635         * lib/unictype/combining.h: Likewise.
6636         * lib/unictype/ctype_alnum.h: Likewise.
6637         * lib/unictype/ctype_alpha.h: Likewise.
6638         * lib/unictype/ctype_blank.h: Likewise.
6639         * lib/unictype/ctype_cntrl.h: Likewise.
6640         * lib/unictype/ctype_digit.h: Likewise.
6641         * lib/unictype/ctype_graph.h: Likewise.
6642         * lib/unictype/ctype_lower.h: Likewise.
6643         * lib/unictype/ctype_print.h: Likewise.
6644         * lib/unictype/ctype_punct.h: Likewise.
6645         * lib/unictype/ctype_space.h: Likewise.
6646         * lib/unictype/ctype_upper.h: Likewise.
6647         * lib/unictype/ctype_xdigit.h: Likewise.
6648         * lib/unictype/decdigit.h: Likewise.
6649         * lib/unictype/digit.h: Likewise.
6650         * lib/unictype/mirror.h: Likewise.
6651         * lib/unictype/numeric.h: Likewise.
6652         * lib/unictype/pr_alphabetic.h: Likewise.
6653         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6654         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6655         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6656         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6657         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6658         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6659         * lib/unictype/pr_bidi_control.h: Likewise.
6660         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6661         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6662         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6663         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6664         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6665         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6666         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6667         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6668         * lib/unictype/pr_bidi_pdf.h: Likewise.
6669         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6670         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6671         * lib/unictype/pr_combining.h: Likewise.
6672         * lib/unictype/pr_composite.h: Likewise.
6673         * lib/unictype/pr_currency_symbol.h: Likewise.
6674         * lib/unictype/pr_dash.h: Likewise.
6675         * lib/unictype/pr_decimal_digit.h: Likewise.
6676         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6677         * lib/unictype/pr_deprecated.h: Likewise.
6678         * lib/unictype/pr_diacritic.h: Likewise.
6679         * lib/unictype/pr_extender.h: Likewise.
6680         * lib/unictype/pr_format_control.h: Likewise.
6681         * lib/unictype/pr_grapheme_base.h: Likewise.
6682         * lib/unictype/pr_grapheme_extend.h: Likewise.
6683         * lib/unictype/pr_grapheme_link.h: Likewise.
6684         * lib/unictype/pr_hex_digit.h: Likewise.
6685         * lib/unictype/pr_hyphen.h: Likewise.
6686         * lib/unictype/pr_id_continue.h: Likewise.
6687         * lib/unictype/pr_id_start.h: Likewise.
6688         * lib/unictype/pr_ideographic.h: Likewise.
6689         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6690         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6691         * lib/unictype/pr_ignorable_control.h: Likewise.
6692         * lib/unictype/pr_iso_control.h: Likewise.
6693         * lib/unictype/pr_join_control.h: Likewise.
6694         * lib/unictype/pr_left_of_pair.h: Likewise.
6695         * lib/unictype/pr_line_separator.h: Likewise.
6696         * lib/unictype/pr_logical_order_exception.h: Likewise.
6697         * lib/unictype/pr_lowercase.h: Likewise.
6698         * lib/unictype/pr_math.h: Likewise.
6699         * lib/unictype/pr_non_break.h: Likewise.
6700         * lib/unictype/pr_not_a_character.h: Likewise.
6701         * lib/unictype/pr_numeric.h: Likewise.
6702         * lib/unictype/pr_other_alphabetic.h: Likewise.
6703         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6704         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6705         * lib/unictype/pr_other_id_continue.h: Likewise.
6706         * lib/unictype/pr_other_id_start.h: Likewise.
6707         * lib/unictype/pr_other_lowercase.h: Likewise.
6708         * lib/unictype/pr_other_math.h: Likewise.
6709         * lib/unictype/pr_other_uppercase.h: Likewise.
6710         * lib/unictype/pr_paired_punctuation.h: Likewise.
6711         * lib/unictype/pr_paragraph_separator.h: Likewise.
6712         * lib/unictype/pr_pattern_syntax.h: Likewise.
6713         * lib/unictype/pr_pattern_white_space.h: Likewise.
6714         * lib/unictype/pr_private_use.h: Likewise.
6715         * lib/unictype/pr_punctuation.h: Likewise.
6716         * lib/unictype/pr_quotation_mark.h: Likewise.
6717         * lib/unictype/pr_radical.h: Likewise.
6718         * lib/unictype/pr_sentence_terminal.h: Likewise.
6719         * lib/unictype/pr_soft_dotted.h: Likewise.
6720         * lib/unictype/pr_space.h: Likewise.
6721         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6722         * lib/unictype/pr_titlecase.h: Likewise.
6723         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6724         * lib/unictype/pr_unified_ideograph.h: Likewise.
6725         * lib/unictype/pr_uppercase.h: Likewise.
6726         * lib/unictype/pr_variation_selector.h: Likewise.
6727         * lib/unictype/pr_white_space.h: Likewise.
6728         * lib/unictype/pr_xid_continue.h: Likewise.
6729         * lib/unictype/pr_xid_start.h: Likewise.
6730         * lib/unictype/pr_zero_width.h: Likewise.
6731         * lib/unictype/scripts.h: Likewise.
6732         * lib/unictype/scripts_byname.gperf: Likewise.
6733         * lib/unictype/sy_c_ident.h: Likewise.
6734         * lib/unictype/sy_c_whitespace.h: Likewise.
6735         * lib/unictype/sy_java_ident.h: Likewise.
6736         * lib/unictype/sy_java_whitespace.h: Likewise.
6737
6738         * lib/unictype/Makefile: New file.
6739         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
6740         glibc.
6741         * lib/unictype/3level.h: New file, copied from glibc.
6742         * lib/unictype/3levelbit.h: New file.
6743
6744 2007-11-11  Bruno Haible  <bruno@clisp.org>
6745
6746         * modules/gperf: New file.
6747         * modules/iconv_open (Depends-on): Add it.
6748         (Makefile.am): Remove the GPERF definition.
6749
6750 2007-11-11  Bruno Haible  <bruno@clisp.org>
6751
6752         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
6753         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
6754
6755 2007-11-11  Bruno Haible  <bruno@clisp.org>
6756
6757         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
6758         (usage): Remove function.
6759
6760 2007-11-11  Bruno Haible  <bruno@clisp.org>
6761
6762         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
6763         gl_FUNC_CEILF_LIBS.
6764         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
6765         gl_FUNC_CEIL_LIBS.
6766         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
6767         gl_FUNC_CEILL_LIBS.
6768         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
6769         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
6770         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
6771
6772 2007-11-11  Bruno Haible  <bruno@clisp.org>
6773
6774         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
6775         roundf were declared but do not exist on functions.
6776         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
6777         roundl were declared but do not exist on functions.
6778         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
6779         HAVE_FLOORL_AND_CEILL, respectively.
6780         Needed for Sun C on Solaris 10.
6781
6782 2007-11-11  Bruno Haible  <bruno@clisp.org>
6783
6784         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
6785         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
6786         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
6787         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
6788         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
6789         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
6790         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
6791         HAVE_DECL_ROUNDF.
6792         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
6793         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
6794         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
6795         of HAVE_DECL_ROUND*.
6796         * modules/math (Makefile.am): Update.
6797
6798 2007-11-10  Bruno Haible  <bruno@clisp.org>
6799
6800         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
6801         ptrdiff_t as m4/intl.m4.
6802
6803 2007-11-10  Jim Meyering  <meyering@redhat.com>
6804
6805         Avoid link failure for the argmatch test.
6806         * tests/test-argmatch.c (usage): Define function to avoid a link
6807         failure: argmatch_die requires a usage function.
6808
6809 2007-11-09  Bruno Haible  <bruno@clisp.org>
6810
6811         * doc/functions/snprintf.texi: Mention BeOS deficiency.
6812         * doc/functions/vsnprintf.texi: Likewise.
6813         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
6814         with a size argument < 2.
6815
6816 2007-11-09  Bruno Haible  <bruno@clisp.org>
6817
6818         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
6819         buffer. Fixes an inefficiency introduced on 2007-11-03.
6820
6821 2007-11-09  Bruno Haible  <bruno@clisp.org>
6822
6823         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
6824         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
6825
6826 2007-11-08  Jim Meyering  <meyering@redhat.com>
6827
6828         Change cache variable name prefix "jm_" to "gl_" everywhere.
6829         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
6830         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
6831         * m4/uptime.m4: s/gl_/jm_/
6832
6833 2007-11-07  Bruno Haible  <bruno@clisp.org>
6834
6835         Update to GNU gettext 0.17.
6836         * m4/intl.m4: Update to GNU gettext 0.17.
6837         * m4/po.m4: Likewise.
6838         * modules/gettext (Files): Remove m4/ulonglong.m4.
6839         (configure.ac): Require gettext infrastructure from version 0.17.
6840
6841 2007-11-06  Bruno Haible  <bruno@clisp.org>
6842
6843         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
6844         symbolic values are not defined in a public header.
6845         * lib/freadable.c (freadable) [QNX]: Likewise.
6846         * lib/freadahead.c (freadahead) [QNX]: Likewise.
6847         * lib/freading.c (freading) [QNX]: Likewise.
6848         * lib/fseterr.c (fseterr) [QNX]: Likewise.
6849         * lib/fwritable.c (fwritable) [QNX]: Likewise.
6850         * lib/fwriting.c (fwriting) [QNX]: Likewise.
6851         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
6852         Reported by Alain Magloire.
6853
6854         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
6855
6856 2007-11-05  Bruno Haible  <bruno@clisp.org>
6857
6858         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
6859         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
6860         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
6861         Reported by Eric Blake.
6862
6863 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6864             Bruno Haible  <bruno@clisp.org>
6865
6866         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
6867         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
6868         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
6869         (malloc): Undefine also before including <stdlib.h>.
6870         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
6871         Needed on OSF/1 4.0.
6872
6873 2007-11-05  Jim Meyering  <meyering@redhat.com>
6874
6875         git-version-gen: sync from coreutils.
6876         * build-aux/git-version-gen: Add comments.
6877         Change the first '-' to '.' in the snapshot version string,
6878         e.g., 6.9-377-08144 -> 6.9.377-08144
6879         Remove first parameter.
6880         Don't declare a version "-dirty" merely because a time
6881         stamp has changed.
6882
6883 2007-11-04  Bruno Haible  <bruno@clisp.org>
6884
6885         * lib/lock.h: Protect all macro definitions containing an 'if'
6886         statement through a "do { ... } while (0)".
6887         * lib/tls.h: Likewise.
6888
6889 2007-11-04  Bruno Haible  <bruno@clisp.org>
6890
6891         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
6892
6893 2007-11-04  Bruno Haible  <bruno@clisp.org>
6894
6895         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
6896         * modules/fprintf-posix (Depends-on): Add nocrash.
6897         * modules/snprintf-posix (Depends-on): Likewise.
6898         * modules/sprintf-posix (Depends-on): Likewise.
6899         * modules/vasnprintf-posix (Depends-on): Likewise.
6900         * modules/vasprintf-posix (Depends-on): Likewise.
6901         * modules/vfprintf-posix (Depends-on): Likewise.
6902         * modules/vsnprintf-posix (Depends-on): Likewise.
6903         * modules/vsprintf-posix (Depends-on): Likewise.
6904         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6905         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6906         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6907         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6908         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6909         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6910         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6911
6912 2007-11-04  Bruno Haible  <bruno@clisp.org>
6913
6914         * modules/nocrash: New file.
6915         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
6916         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
6917
6918 2007-11-04  Bruno Haible  <bruno@clisp.org>
6919
6920         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
6921         precision handling.
6922         * tests/test-vasprintf-posix.c (test_function): Likewise.
6923         * tests/test-snprintf-posix.h (test_function): Likewise.
6924         * tests/test-sprintf-posix.h (test_function): Likewise.
6925
6926         Fix *printf behaviour for large precisions on mingw and BeOS.
6927         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
6928         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
6929         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
6930         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6931         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6932         gl_PRINTF_PRECISION and test its result. Invoke
6933         gl_PREREQ_VASNPRINTF_PRECISION.
6934         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6935         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6936         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6937         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6938         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6939         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6940         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6941         * doc/functions/fprintf.texi: Update.
6942         * doc/functions/printf.texi: Update.
6943         * doc/functions/snprintf.texi: Update.
6944         * doc/functions/sprintf.texi: Update.
6945         * doc/functions/vfprintf.texi: Update.
6946         * doc/functions/vprintf.texi: Update.
6947         * doc/functions/vsnprintf.texi: Update.
6948         * doc/functions/vsprintf.texi: Update.
6949
6950 2007-11-04  Bruno Haible  <bruno@clisp.org>
6951
6952         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
6953
6954 2007-11-04  Bruno Haible  <bruno@clisp.org>
6955
6956         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
6957         Reported by Sylvain Beucler <beuc@gnu.org>.
6958
6959 2007-11-03  Bruno Haible  <bruno@clisp.org>
6960
6961         * tests/test-fprintf-posix2.sh: New file.
6962         * tests/test-fprintf-posix2.c: New file.
6963         * modules/fprintf-posix-tests (Files): Add them.
6964         (TESTS): Add test-fprintf-posix2.sh.
6965         (configure.ac): Check for getrlimit and setrlimit.
6966         (check_PROGRAMS): Add test-fprintf-posix2.
6967
6968         * tests/test-printf-posix2.sh: New file.
6969         * tests/test-printf-posix2.c: New file.
6970         * modules/printf-posix-tests (Files): Add them.
6971         (TESTS): Add test-printf-posix2.sh.
6972         (configure.ac): Check for getrlimit and setrlimit.
6973         (check_PROGRAMS): Add test-printf-posix2.
6974
6975         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
6976         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
6977         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
6978         (decode_double): New function, copied from decode_long_double.
6979         (scale10_round_decimal_decoded): New function, extracted from
6980         scale10_round_decimal_long_double.
6981         (scale10_round_decimal_long_double): Use it.
6982         (scale10_round_decimal_double): New function.
6983         (floorlog10): New function.
6984         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
6985         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
6986         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6987         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6988         gl_PRINTF_ENOMEM and test its result. Invoke
6989         gl_PREREQ_VASNPRINTF_ENOMEM.
6990         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6991         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6992         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6993         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6994         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6995         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6996         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6997         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
6998         * modules/snprintf-posix (Depends-on): Likewise.
6999         * modules/sprintf-posix (Depends-on): Likewise.
7000         * modules/vasnprintf-posix (Depends-on): Likewise.
7001         * modules/vasprintf-posix (Depends-on): Likewise.
7002         * modules/vfprintf-posix (Depends-on): Likewise.
7003         * modules/vsnprintf-posix (Depends-on): Likewise.
7004         * modules/vsprintf-posix (Depends-on): Likewise.
7005         * doc/functions/fprintf.texi: Update.
7006         * doc/functions/printf.texi: Update.
7007         * doc/functions/snprintf.texi: Update.
7008         * doc/functions/sprintf.texi: Update.
7009         * doc/functions/vfprintf.texi: Update.
7010         * doc/functions/vprintf.texi: Update.
7011         * doc/functions/vsnprintf.texi: Update.
7012         * doc/functions/vsprintf.texi: Update.
7013
7014 2007-11-03  Bruno Haible  <bruno@clisp.org>
7015
7016         * modules/frexp-nolibm-tests: New file.
7017
7018         * modules/frexp-nolibm: New file.
7019         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
7020
7021 2007-11-03  Bruno Haible  <bruno@clisp.org>
7022
7023         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
7024         value is C99 compliant.
7025         Needed for OSF/1 5.1.
7026
7027 2007-11-03  Bruno Haible  <bruno@clisp.org>
7028
7029         Fix out-of-memory handling of vasnprintf.
7030         * lib/printf-parse.c: Include <errno.h>.
7031         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
7032         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
7033         is already set.
7034
7035 2007-11-02  Eric Blake  <ebb9@byu.net>
7036
7037         Fix tests on cygwin.
7038         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
7039
7040 2007-11-01  Bruno Haible  <bruno@clisp.org>
7041
7042         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
7043         warning.
7044         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
7045         needed for POSIX compatibility.
7046
7047 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7048
7049         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
7050         for compatibility with GNU.
7051
7052 2007-11-01  Bruno Haible  <bruno@clisp.org>
7053
7054         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
7055         (putenv): Renamed from rpl_putenv. Change argument type from
7056         'const char *' to 'char *'.
7057         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
7058         of defining putenv in config.h, just set REPLACE_PUTENV.
7059         * modules/putenv (Depends-on): Add stdlib.
7060         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7061         (Include): Use <stdlib.h>.
7062         * lib/stdlib.in.h (putenv): New declaration.
7063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
7064         REPLACE_PUTENV.
7065         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
7066         REPLACE_PUTENV.
7067         Needed for MacOS X 10.5.0.
7068         Reported by Peter O'Gorman <peter@pogma.com>.
7069
7070 2007-11-01  Jim Meyering  <meyering@redhat.com>
7071
7072         Treat an empty date string exactly like "0".
7073         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
7074         if the remaining date string (to be parsed) is empty, use "0".
7075         Reported by Mischa Molhoek and discussed in this thread:
7076         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
7077
7078 2007-10-31  Bruno Haible  <bruno@clisp.org>
7079
7080         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
7081         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
7082         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
7083         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
7084         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
7085         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
7086
7087 2007-10-31  Bruno Haible  <bruno@clisp.org>
7088
7089         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
7090         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
7091         (AC_TYPE_LONG_LONG_INT): Use it.
7092         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
7093         it as well.
7094         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
7095         to m4/longlong.m4.
7096         * modules/stdint (Files): Remove m4/ulonglong.m4.
7097         * modules/strtoull (Files): Use m4/longlong.m4 instead of
7098         m4/ulonglong.m4.
7099         * modules/strtoumax (Files): Likewise.
7100
7101 2007-10-30  Bruno Haible  <bruno@clisp.org>
7102
7103         * modules/xvasprintf-posix: New file.
7104         Suggested by Eric Blake.
7105
7106 2007-10-30  Bruno Haible  <bruno@clisp.org>
7107
7108         * modules/xprintf-posix-tests: New file.
7109         * tests/test-xprintf-posix.sh: New file.
7110         * tests/test-xprintf-posix.c: New file.
7111         * tests/test-xfprintf-posix.c: New file.
7112
7113         * modules/xprintf-posix: New file.
7114
7115 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7116
7117         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
7118         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
7119         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
7120
7121 2007-10-29  Bruno Haible  <bruno@clisp.org>
7122
7123         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
7124         contain the special marker '_cv_'.
7125         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
7126         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
7127         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
7128         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
7129         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
7130         Reported by Ralf Wildenhues.
7131
7132 2007-10-29  Bruno Haible  <bruno@clisp.org>
7133
7134         * gnulib-tool (func_import): When --lgpl is not specified, set
7135         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
7136         GPLv3.
7137         Reported by Simon Josefsson.
7138
7139 2007-10-28  Bruno Haible  <bruno@clisp.org>
7140
7141         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
7142         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
7143         HAVE_DECL_ISFINITE.
7144         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
7145         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
7146         HAVE_DECL_ISFINITE.
7147
7148 2007-10-28  Bruno Haible  <bruno@clisp.org>
7149
7150         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
7151         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
7152
7153 2007-10-28  Bruno Haible  <bruno@clisp.org>
7154
7155         Fix link errors with Sun C 5.0 on Solaris 10.
7156         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
7157         function is declared but not present in the compiler's libm.
7158         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7159         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7160         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
7161         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
7162         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
7163         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
7164         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
7165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
7166         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
7167         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
7168         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
7169         HAVE_DECL_FLOORL.
7170
7171 2007-10-28  Bruno Haible  <bruno@clisp.org>
7172
7173         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
7174         gl_FUNC_FLOORL. Cache the result.
7175         (gl_FUNC_FLOORL): Use it.
7176         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
7177         gl_FUNC_CEILL. Cache the result.
7178         (gl_FUNC_CEILL): Use it.
7179
7180         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
7181         gl_FUNC_FLOOR. Cache the result.
7182         (gl_FUNC_FLOOR): Use it.
7183         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
7184         gl_FUNC_CEIL. Cache the result.
7185         (gl_FUNC_CEIL): Use it.
7186
7187         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
7188         gl_FUNC_FLOORF. Cache the result.
7189         (gl_FUNC_FLOORF): Use it.
7190         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
7191         gl_FUNC_CEILF. Cache the result.
7192         (gl_FUNC_CEILF): Use it.
7193
7194 2007-10-28  Bruno Haible  <bruno@clisp.org>
7195
7196         * gnulib-tool: Allow specifying the LGPL version number through
7197         --lgpl=2 or --lgpl=3.
7198         (func_usage): Document --lgpl with argument.
7199         Handle --lgpl=... arguments.
7200         (func_import): Recognize also gl_LGPL calls with an argument. When
7201         --lgpl=2 is used and the module's license is just LGPL, report an
7202         error. Set sed_transform_lib_file according to the lgpl variable. In
7203         the generated files, use --lgpl or gl_LGPL invocations with argument,
7204         if necessary.
7205         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
7206         an LGPv2+ license.
7207         * doc/gnulib-tool.texi (Modified imports): Update explanation of
7208         gl_LGPL macro.
7209
7210 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7211             Bruno Haible  <bruno@clisp.org>
7212
7213         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
7214         (u16_uctomb_aux): Likewise.
7215         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
7216         !HAVE_INLINE.
7217         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
7218
7219 2007-10-28  Bruno Haible  <bruno@clisp.org>
7220
7221         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
7222         Invoke AM_GETTEXT_OPTION if it exists.
7223         * modules/vasprintf: Likewise.
7224         * modules/verror: Likewise.
7225         * modules/xprintf: Likewise.
7226         * modules/xvasprintf: Likewise.
7227
7228 2007-10-27  Ben Pfaff  <blp@gnu.org>
7229
7230         * lib/math.in.h: Define isfinite macro and prototypes for
7231         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
7232         implementations.
7233         * m4/math_h.m4: New substitutions for isfinite module.
7234         * lib/isfinite.c: New file.
7235         * m4/isfinite.m4: New file.
7236         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
7237         * modules/isfinite: New file.
7238         * modules/isfinite-tests: New file.
7239         * tests/tests-isfinite.c: New file.
7240         * doc/functions/isfinite.texi: Mention isfinite module.
7241         * MODULES.html.sh: Mention new module.
7242
7243 2007-10-27  Ben Pfaff  <blp@gnu.org>
7244
7245         Ralf Wildenhues reported that Tru64 4.0D declares the round
7246         functions but does not have definitions.
7247         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
7248         cannot be found in any library, set the output variable to
7249         "missing" instead of "".
7250         * m4/round.m4: Also use our substitute if we cannot find round in
7251         any library, even if it is declared.
7252         * m4/roundf.m4: Likewise for roundf.
7253         * m4/roundl.m4: Likewise for roundl.
7254         * lib/math.in.h: Undefine roundf, round, roundl before defining
7255         their replacements, to allow for hypothetical systems where these
7256         may be defined as macros but not available in libraries.
7257
7258 2007-10-27  Bruno Haible  <bruno@clisp.org>
7259
7260         * doc/gnulib.texi: Invoke @firstparagraphindent.
7261         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
7262         changes in gnulib.
7263         (Source changes): New section.
7264
7265 2007-10-26  Bruno Haible  <bruno@clisp.org>
7266
7267         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
7268         borrowed from autoconf.
7269
7270 2007-10-26  Bruno Haible  <bruno@clisp.org>
7271
7272         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
7273         strerror returned the empty string. Needed on HP-UX 11.00.
7274
7275 2007-10-24  Micah Cowan  <micah@cowan.name>
7276
7277         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
7278         * build-aux/bootstrap: Remove support for now-unnecessary option,
7279         --cvs-user, and envvars CVS_USER, CVS_RSH.
7280
7281 2007-10-24  Jim Meyering  <meyering@redhat.com>
7282
7283         Avoid diagnostics from sha1sum when there is no cached checksum.
7284         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
7285         if the po.s1 file hasn't been created yet.
7286
7287         * build-aux/bootstrap: Sync from coreutils:
7288         2007-10-24  Jim Meyering  <meyering@redhat.com>
7289         Get gnulib from the git repository, not from an obsolete cvs one.
7290         * build-aux/bootstrap: Suggestion from Micah Cowan.
7291         2007-10-04  Jim Meyering  <jim@meyering.net>
7292         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
7293         (update_po_files): Work also when there are no .po files in po/.
7294
7295 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
7296
7297         * README: Append ".git" to git and cg examples.
7298         Problem reported by Benoit Sigoure.
7299
7300 2007-10-23  Micah Cowan  <micah@cowan.name>
7301
7302         * users.txt: Add wget.
7303
7304 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7305
7306         Fix linking of some unistdio tests on FreeBSD.
7307         * modules/unistdio/u16-vsnprintf-tests
7308         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
7309         * modules/unistdio/u16-vsprintf-tests
7310         (test_u16_vsnprintf1_LDADD): Likewise.
7311         * modules/unistdio/u32-vsnprintf-tests
7312         (test_u32_vsnprintf1_LDADD): Likewise.
7313         * modules/unistdio/u32-vsprintf-tests
7314         (test_u32_vsprintf1_LDADD): Likewise.
7315         * modules/unistdio/u8-vsnprintf-tests
7316         (test_u8_vsnprintf1_LDADD): Likewise.
7317         * modules/unistdio/u8-vsprintf-tests
7318         (test_u8_vsprintf1_LDADD): Likewise.
7319         * modules/unistdio/ulc-vsnprintf-tests
7320         (test_ulc_vsnprintf1_LDADD): Likewise.
7321         * modules/unistdio/ulc-vsprintf-tests
7322         (test_ulc_vsprintf1_LDADD): Likewise.
7323
7324         Fix linking of some uniconv tests on FreeBSD.
7325         * modules/uniconv/u16-conv-from-enc-tests
7326         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
7327         * modules/uniconv/u16-conv-to-enc-tests
7328         (test_u16_conv_to_enc_LDADD): Likewise.
7329         * modules/uniconv/u16-strconv-from-enc-tests
7330         (test_u16_strconv_from_enc_LDADD): Likewise.
7331         * modules/uniconv/u16-strconv-to-enc-tests
7332         (test_u16_strconv_to_enc_LDADD): Likewise.
7333         * modules/uniconv/u32-conv-from-enc-tests
7334         (test_u32_conv_from_enc_LDADD): Likewise.
7335         * modules/uniconv/u32-conv-to-enc-tests
7336         (test_u32_conv_to_enc_LDADD): Likewise.
7337         * modules/uniconv/u32-strconv-from-enc-tests
7338         (test_u32_strconv_from_enc_LDADD): Likewise.
7339         * modules/uniconv/u32-strconv-to-enc-tests
7340         (test_u32_strconv_to_enc_LDADD): Likewise.
7341         * modules/uniconv/u8-conv-from-enc-tests
7342         (test_u8_conv_from_enc_LDADD): Likewise.
7343         * modules/uniconv/u8-conv-to-enc-tests
7344         (test_u8_conv_to_enc_LDADD): Likewise.
7345         * modules/uniconv/u8-strconv-from-enc-tests
7346         (test_u8_strconv_from_enc_LDADD): Likewise.
7347         * modules/uniconv/u8-strconv-to-enc-tests
7348         (test_u8_strconv_to_enc_LDADD): Likewise.
7349
7350 2007-10-22  Bruno Haible  <bruno@clisp.org>
7351
7352         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
7353         size.
7354
7355 2007-10-22  Eric Blake  <ebb9@byu.net>
7356
7357         Tweak x*printf documentation.
7358         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
7359         variable name and comments.
7360         Suggested by Bruno Haible.
7361
7362 2007-10-22  Bruno Haible  <bruno@clisp.org>
7363
7364         * lib/acl.c (copy_acl): Fix file name in comment.
7365
7366 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
7367
7368         Fix Tru64 problem with stdbool.h.
7369         * lib/stdbool.in.h (false, true):
7370         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
7371         Don't declare as an enum in this situation; it runs afoul of Tru64.
7372         Problem reported by Steven M. Schweda in
7373         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
7374
7375 2007-10-22  Eric Blake  <ebb9@byu.net>
7376
7377         Also wrap vf?printf.
7378         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
7379         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
7380         (xvprintf, xvfprintf): New functions.
7381
7382 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7383
7384         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
7385         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
7386
7387         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
7388         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
7389
7390 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
7391
7392         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
7393         by Bruno Haible.
7394
7395 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7396
7397         * lib/getloadavg.c
7398         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
7399         Undef `sys' after including sys/table.h, for Tru64 4.0D.
7400
7401         * tests/test-i-ring.c: Work for C89.
7402
7403 2007-10-22  Bruno Haible  <bruno@clisp.org>
7404
7405         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
7406         -1u, in preprocessor expression, so that we don't test for the bug
7407         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
7408         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
7409
7410 2007-10-22  Eric Blake  <ebb9@byu.net>
7411
7412         * tests/test-yesno.sh: Silence stderr during test.
7413
7414 2007-10-22  Simon Josefsson  <simon@josefsson.org>
7415
7416         * modules/crypto/gc-camellia: New file.
7417
7418         * m4/gc-camellia.m4: New file.
7419
7420         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
7421
7422         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
7423
7424 2007-10-22  Simon Josefsson  <simon@josefsson.org>
7425
7426         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
7427         --help to stdout.  Reported by sms@antinode.org (Steven
7428         M. Schweda).
7429
7430 2007-10-22  Simon Josefsson  <simon@josefsson.org>
7431
7432         * users.txt: Fix link to libksba.
7433
7434 2007-10-21  Ben Pfaff  <blp@gnu.org>
7435
7436         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
7437         round.c roundf implementation that depends on floorf and ceilf to
7438         be tested unconditionally.
7439
7440 2007-10-21  Ben Pfaff  <blp@gnu.org>
7441
7442         * m4/check-libm-func.m4: Removed.
7443         * m4/check-math-lib.m4: New file.
7444         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
7445         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
7446         definition and lack of AC_LIBOBJ([roundf]).
7447         * m4/roundl.m4: Ditto, and similarly for roundl.
7448         * modules/round: Reference new m4 file.
7449         * modules/roundf: Ditto.
7450         * modules/roundl: Ditto.
7451         * tests/test-round2.c (main): Use ROUND instead of round.
7452         Bug report from Bruno Haible.
7453
7454 2007-10-21  Bruno Haible  <bruno@clisp.org>
7455
7456         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
7457         context.
7458
7459 2007-10-21  Bruno Haible  <bruno@clisp.org>
7460
7461         * tests/test-wcwidth.c (main): Allow negative result for some control
7462         characters.
7463
7464         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
7465         Needed on OSF/1 5.1.
7466
7467 2007-10-21  Bruno Haible  <bruno@clisp.org>
7468
7469         * tests/test-floorf1.c: Include isnanf.h.
7470         (main): Use isnanf() instead of isnan().
7471         * tests/test-ceilf1.c: Include isnanf.h.
7472         (main): Use isnanf() instead of isnan().
7473         * tests/test-truncf1.c: Include isnanf.h.
7474         (main): Use isnanf() instead of isnan().
7475         * tests/test-roundf1.c: Include isnanf.h.
7476         (main): Use isnanf() instead of isnan().
7477
7478 2007-10-21  Eric Blake  <ebb9@byu.net>
7479
7480         * users.txt: Update URL for m4.
7481
7482 2007-10-21  Bruno Haible  <bruno@clisp.org>
7483
7484         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
7485
7486 2007-10-21  Bruno Haible  <bruno@clisp.org>
7487
7488         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
7489         Git's management files if the CVS files are not present.
7490
7491 2007-10-20  Bruno Haible  <bruno@clisp.org>
7492
7493         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
7494         gcc-3.4.x.
7495
7496 2007-10-20  Ben Pfaff  <blp@gnu.org>
7497
7498         * lib/math.in.h: Declare round, roundf, roundl if we are providing
7499         implementations.
7500         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
7501         * lib/round.c: New file.
7502         * lib/roundf.c: New file.
7503         * lib/roundl.c: New file.
7504         * m4/round.m4: New file.
7505         * m4/roundf.m4: New file.
7506         * m4/roundl.m4: New file.
7507         * m4/check-libm-func-m4: New file.
7508         * modules/math: Replace round, roundf, roundl related @VARS@ in
7509         math.in.h.
7510         * modules/round: New file.
7511         * modules/round-tests: New file.
7512         * modules/roundf: New file.
7513         * modules/roundf-tests: New file.
7514         * modules/roundl: New file.
7515         * modules/roundl-tests: New file.
7516         * tests/test-round1.c: New file.
7517         * tests/test-round2.c: New file.
7518         * tests/test-roundf1.c: New file.
7519         * tests/test-roundf2.c: New file.
7520         * tests/test-roundl.c: New file.
7521         * doc/functions/round.texi: Mention round module.
7522         * doc/functions/roundf.texi: Mention roundf module.
7523         * doc/functions/roundl.texi: Mention roundl module.
7524         * MODULES.html.sh: Mention new modules.
7525         Thanks to Bruno Haible for suggestions.
7526
7527 2007-10-20  Jim Meyering  <meyering@redhat.com>
7528
7529         * lib/xprintf.c: Include <config.h> unconditionally.
7530
7531         Change xprintf's license to GPL.
7532         * modules/xprintf (License): s/LGPL/GPL/, since this module
7533         depends on modules (exit and exitfail) which are GPL.
7534         Suggestion from Bruno Haible.
7535
7536         xprintf fixes.
7537         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
7538         Use a clearer diagnostic.
7539         Patch from Bruno Haible.
7540
7541 2007-10-20  Bruno Haible  <bruno@clisp.org>
7542
7543         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
7544         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
7545         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7546
7547 2007-10-20  Bruno Haible  <bruno@clisp.org>
7548
7549         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
7550         precision in the comparison result > x - 1 or similar.
7551         * tests/test-ceilf2.c (correct_result_p): Likewise.
7552         * tests/test-truncf2.c (correct_result_p): Likewise.
7553         * tests/test-trunc2.c (correct_result_p): Likewise.
7554         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7555
7556 2007-10-20  Bruno Haible  <bruno@clisp.org>
7557
7558         * modules/ceil: New file.
7559         * m4/ceil.m4: New file.
7560         * doc/functions/ceil.texi: Mention the 'ceil' module.
7561
7562 2007-10-20  Bruno Haible  <bruno@clisp.org>
7563
7564         * modules/floor: New file.
7565         * m4/floor.m4: New file.
7566         * doc/functions/floor.texi: Mention the 'floor' module.
7567
7568 2007-10-20  Bruno Haible  <bruno@clisp.org>
7569
7570         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
7571         of %a.
7572         * modules/floorf-tests (Depends-on): Likewise.
7573         * modules/truncf-tests (Depends-on): Likewise.
7574         * modules/trunc-tests (Depends-on): Likewise.
7575         Reported by Ben Pfaff.
7576
7577 2007-10-19  Jim Meyering  <meyering@redhat.com>
7578
7579         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
7580         Don't bother testing specific errno values.  Just test ferror.
7581
7582         New module: xprintf
7583         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
7584
7585 2007-10-19  Bruno Haible  <bruno@clisp.org>
7586
7587         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
7588         syntax.
7589         * modules/javaexec (Makefile.am): Likewise.
7590         * modules/relocatable-prog (Makefile.am): Likewise.
7591         Suggested by Jim Meyering.
7592
7593 2007-10-18  Bruno Haible  <bruno@clisp.org>
7594
7595         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
7596         Reported by Jim Meyering.
7597
7598 2007-10-18  Eric Blake  <ebb9@byu.net>
7599
7600         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
7601
7602 2007-10-18  Bruno Haible  <bruno@clisp.org>
7603
7604         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
7605         the format string into writable memory. Needed in Fortify conditions.
7606
7607 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
7608             Bruno Haible  <bruno@clisp.org>
7609
7610         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
7611         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
7612         * modules/trim (Depends-on): Add mbchar.
7613         (configure.ac): Add gl_FUNC_MBRTOWC.
7614         (Makefile.am): Augment lib_SOURCES.
7615
7616 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
7617
7618         Modify glob.c to use fstatat and dirfd, to simplify it.
7619         Suggested by Eric Blake.
7620         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
7621         Don't include <stdbool.h>; not used.
7622         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
7623         (link_exists_p): Simplify implementation, since we can now assume
7624         dirfd and fstatat.
7625         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
7626
7627 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7628
7629         * gnulib-tool (func_get_dependencies): Fix sed script to
7630         match only tests.
7631
7632 2007-10-17  Bruno Haible  <bruno@clisp.org>
7633
7634         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
7635         allow locale names without encoding suffix.
7636         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7637         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7638
7639 2007-10-16  Bruno Haible  <bruno@clisp.org>
7640
7641         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
7642         * lib/getgroups.c (getgroups): Likewise.
7643         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
7644
7645 2007-10-16  Bruno Haible  <bruno@clisp.org>
7646
7647         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
7648         * modules/malloc-posix (License): Likewise.
7649         * modules/realloc-posix (License): Likewise.
7650         * modules/calloc-posix (License): Likewise.
7651         * modules/intprops (License): Change from GPL to LGPL, with
7652         Paul Eggert's approval.
7653
7654 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
7655
7656         Merge glibc changes into lib/glob.c.
7657
7658         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
7659         2007-10-15 04:59:03 UTC.  Here are the changes:
7660
7661         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
7662
7663         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
7664
7665         * lib/glob.c: Add some branch prediction throughout.
7666
7667         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
7668
7669         [BZ #5103]
7670         * lib/glob.c (glob): Recognize patterns starting \/.
7671
7672         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7673
7674         [BZ #3996]
7675         * lib/glob.c (attribute_hidden): Define if not defined.
7676         (glob): Unescape dirname, filename or username when needed and not
7677         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7678         is NULL.  Handle unescaped [ in pattern without closing ].
7679         Don't pass GLOB_CHECK down to recursive glob for directories.
7680         (__glob_pattern_type): New function.
7681         (__glob_pattern_p): Implement using __glob_pattern_type.
7682         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7683         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7684         Remove unreachable code.
7685
7686         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
7687
7688         * lib/glob.c (glob_in_dir): Add some comments and asserts to
7689         explain why there are no leaks.
7690
7691         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
7692
7693         [BZ #3253]
7694         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
7695         time, rather allocate increasingly bigger arrays of pointers, if
7696         possible with alloca, if too large with malloc.
7697
7698 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
7699
7700         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
7701         Problem reported by H.Merijn Brand in
7702         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
7703         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
7704         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
7705
7706 2007-10-15  Bruno Haible  <bruno@clisp.org>
7707
7708         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
7709         with explicit rpl_ prefix.
7710         * lib/fopen.c (fopen): Likewise.
7711         * lib/freopen.c (freopen): Likewise.
7712         * lib/iconv.c (iconv): Likewise.
7713         * lib/iconv_close.c (iconv_close): Likewise.
7714
7715 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7716
7717         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
7718
7719 2007-10-15  Bruno Haible  <bruno@clisp.org>
7720
7721         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
7722         <stddef.h> instead of <stdlib.h> since we only need NULL.
7723         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7724
7725 2007-10-15  Bruno Haible  <bruno@clisp.org>
7726
7727         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
7728         Replace paragraph talking about LIBOBJS.
7729         Reported by Colin Watson <cjwatson@debian.org>.
7730
7731 2007-10-15  Bruno Haible  <bruno@clisp.org>
7732
7733         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
7734         <stdlib.h> before using NULL.
7735
7736 2007-10-15  Simon Josefsson  <simon@josefsson.org>
7737
7738         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
7739         Reported by Albert Chin <china@thewrittenword.com>.
7740
7741 2007-10-14  Bruno Haible  <bruno@clisp.org>
7742
7743         * modules/iconv_open-utf-tests: New file.
7744         * tests/test-iconv-utf.c: New file.
7745
7746         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
7747         * modules/iconv_open-utf: New file.
7748         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
7749         (iconv, iconv_close): New declarations.
7750         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
7751         be defined.
7752         (iconv_open): Add special handling of conversion between UTF-8 and
7753         UTF-{16,32}{BE,LE}.
7754         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
7755         * lib/iconv_close.c: New file.
7756         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
7757         gl_FUNC_ICONV_OPEN.
7758         (gl_FUNC_ICONV_OPEN): Use it.
7759         (gl_FUNC_ICONV_OPEN_UTF): New macro.
7760         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
7761         and REPLACE_ICONV_UTF.
7762         * modules/iconv_open (Depends-on): Add c-strcase.
7763         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
7764         ICONV_CONST.
7765         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
7766
7767 2007-10-13  Albert Chin  <china@thewrittenword.com>
7768             Bruno Haible  <bruno@clisp.org>
7769
7770         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
7771         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
7772
7773 2007-10-13  Bruno Haible  <bruno@clisp.org>
7774
7775         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
7776         defined, use the ISO C99 inline semantics.
7777         * lib/argp.h (ARGP_EI): Likewise.
7778
7779 2007-10-13  Bruno Haible  <bruno@clisp.org>
7780
7781         Handle 'inline' change in gcc 4.3.0.
7782         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
7783         argp_fmtstream_write, argp_fmtstream_set_lmargin,
7784         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
7785         argp_fmtstream_point): Disable 'extern' declaration if the function
7786         definition is going to be provided inline.
7787         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
7788         semantics, not the ISO C99 inline semantics.
7789         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
7790         'extern' declaration if the function definition is going to be provided
7791         inline.
7792         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
7793         the GNU C inline semantics, not the ISO C99 inline semantics. With
7794         GCC 4.2, avoid a warning.
7795
7796 2007-10-13  Bruno Haible  <bruno@clisp.org>
7797
7798         * lib/freading.h (freading): Enable the use of __freading for
7799         glibc >= 2.7.
7800         * lib/freading.c (freading): Likewise.
7801
7802 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
7803
7804         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
7805         "warning: C99 inline functions are not supported; using GNU89".
7806
7807 2007-10-12  Bruno Haible  <bruno@clisp.org>
7808
7809         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
7810         of 2.
7811         * tests/test-ceilf2.c: New file.
7812         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
7813
7814         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
7815         * modules/ceilf-tests: Update.
7816
7817 2007-10-12  Bruno Haible  <bruno@clisp.org>
7818
7819         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
7820         of 2.
7821         * tests/test-floorf2.c: New file.
7822         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
7823
7824         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
7825         * modules/floorf-tests: Update.
7826
7827 2007-10-12  Bruno Haible  <bruno@clisp.org>
7828
7829         * tests/test-trunc2.c: New file.
7830         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
7831
7832         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
7833         * modules/trunc-tests: Update.
7834
7835 2007-10-12  Bruno Haible  <bruno@clisp.org>
7836
7837         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
7838         of 2.
7839         * tests/test-truncf2.c: New file.
7840         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
7841
7842         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
7843         * modules/truncf-tests: Update.
7844
7845 2007-10-11  Eric Blake  <ebb9@byu.net>
7846
7847         Don't claim strerror is broken on Interix.
7848         * doc/functions/strerror.texi (strerror): Known broken systems are
7849         now Solaris 8, and not Interix.
7850         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
7851         Interix on cross-compile.
7852         Reported by Martin Koeppe in
7853         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
7854
7855 2007-10-11  Bruno Haible  <bruno@clisp.org>
7856
7857         * modules/i-ring-tests: New file.
7858         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
7859         instead of assert.
7860
7861 2007-10-11  Bruno Haible  <bruno@clisp.org>
7862
7863         * modules/filenamecat-tests: New file.
7864         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
7865         * lib/filenamecat.c: Remove test code.
7866
7867 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7868
7869         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
7870
7871         * lib/strerror.c: Include <string.h> always, to test interface,
7872         and to remove the need for the dummy.
7873         Include intprops.h to compute width instead of doing it ourselves
7874         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
7875         (strerror): Define it to return NULL if there's no system strerror.
7876         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
7877         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
7878         ancient pre-strerror Unix systems well any more.  Saying "unknown
7879         system error" is enough.
7880         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
7881         simpler strerror.c implementation.
7882         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
7883         Simplify the tests to reflect the simpler strerror implementation.
7884         * modules/strerror (Depends-on): Add intprops.
7885
7886 2007-10-09  Eric Blake  <ebb9@byu.net>
7887
7888         Silence test-fpending.
7889         * modules/fpending-tests (Files): Add wrapper script.
7890         * tests/test-fpending.sh: New file.
7891
7892 2007-10-09  Bruno Haible  <bruno@clisp.org>
7893
7894         * MODULES.html.sh (func_module): Don't create a hyperlink for
7895         function names like 'printf_frexp'.
7896         (Misc): Add crc, memxor.
7897         (Characteristics of floating types): New section.
7898         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
7899         isnanf-nolibm, signbit, trunc, truncf, truncl.
7900         (Enhancements for ISO C 99 functions): New subsection Input/output.
7901         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
7902         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
7903         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
7904         (Compatibility checks for POSIX:2001 functions): Add clock-time.
7905         (Enhancements for POSIX:2001 functions): Add chdir-long.
7906         (File system functions): Add areadlink, chdir-safer, read-file.
7907         Remove cycle-check.
7908         (File system as inode set): New section.
7909         (Date and time): Add gethrxtime.
7910         (Multithreading): Add openmp.
7911         (Internationalization functions): Add localename.
7912         (Unicode string functions): Add unistr/u*-mbsnlen.
7913         (Support for maintaining and releasing projects): Add git-version-gen.
7914         (Lone files): Remove directories.
7915
7916 2007-10-08  Ben Pfaff  <blp@gnu.org>
7917
7918         * lib/xmalloca.h: Fix typo in comment.
7919
7920 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7921
7922         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
7923         when avoiding problems with integer overflow.  Use a portable test
7924         instead.
7925
7926 2007-10-08  Simon Josefsson  <simon@josefsson.org>
7927
7928         * modules/dummy (License): Change to LGPLv2+.
7929         * modules/float (License): Likewise
7930         * modules/realloc (License): Likewise
7931         * modules/stdlib (License): Likewise
7932
7933 2007-10-07  Bruno Haible  <bruno@clisp.org>
7934
7935         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
7936         * floor.c (TWO_MANT_DIG): Likewise.
7937         * ceil.c (TWO_MANT_DIG): Likewise.
7938         Reported by Ben Pfaff.
7939
7940 2007-10-07  Bruno Haible  <bruno@clisp.org>
7941
7942         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
7943         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
7944         * lib/frexp.c (FUNC): Likewise.
7945         * lib/printf-frexp.h (printf_frexp): Likewise.
7946         * lib/printf-frexpl.h (printf_frexpl): Likewise.
7947         * lib/printf-frexp.c (FUNC): Likewise.
7948         Suggested by Jim Meyering.
7949
7950 2007-10-07  Jim Meyering  <meyering@redhat.com>
7951
7952         Make xnanosleep's integer overflow test more robust.
7953         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
7954         so that gcc-4.3.0 doesn't optimize away this test for overflow.
7955
7956 2007-10-07  Bruno Haible  <bruno@clisp.org>
7957
7958         * NEWS: Mention the license change.
7959
7960         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
7961         abbreviations in the modules files.
7962
7963         Change copyright notice from GPLv2+ to GPLv3+.
7964         * README: Change copyright notice.
7965         * MODULES.html.sh: Likewise.
7966         * build-aux/bootstrap.conf: Likewise.
7967         * build-aux/config.libpath: Likewise.
7968         * build-aux/csharpcomp.sh.in: Likewise.
7969         * build-aux/csharpexec.sh.in: Likewise.
7970         * build-aux/install-reloc: Likewise.
7971         * build-aux/javacomp.sh.in: Likewise.
7972         * build-aux/javaexec.sh.in: Likewise.
7973         * build-aux/ldd.sh.in: Likewise.
7974         * build-aux/reloc-ldflags: Likewise.
7975         * build-aux/relocatable.sh.in: Likewise.
7976         * build-aux/x-to-1.in: Likewise.
7977         * check-module: Likewise.
7978         * config/srclistvars.sh: Likewise.
7979         * gnulib-tool: Likewise.
7980         * lib/acl-internal.h: Likewise.
7981         * lib/acl.c: Likewise.
7982         * lib/acl.h: Likewise.
7983         * lib/acl_entries.c: Likewise.
7984         * lib/areadlink-with-size.c: Likewise.
7985         * lib/areadlink.c: Likewise.
7986         * lib/areadlink.h: Likewise.
7987         * lib/argmatch.c: Likewise.
7988         * lib/argmatch.h: Likewise.
7989         * lib/argp-ba.c: Likewise.
7990         * lib/argp-eexst.c: Likewise.
7991         * lib/argp-fmtstream.c: Likewise.
7992         * lib/argp-fmtstream.h: Likewise.
7993         * lib/argp-fs-xinl.c: Likewise.
7994         * lib/argp-help.c: Likewise.
7995         * lib/argp-namefrob.h: Likewise.
7996         * lib/argp-parse.c: Likewise.
7997         * lib/argp-pin.c: Likewise.
7998         * lib/argp-pv.c: Likewise.
7999         * lib/argp-pvh.c: Likewise.
8000         * lib/argp-xinl.c: Likewise.
8001         * lib/argp.h: Likewise.
8002         * lib/at-func.c: Likewise.
8003         * lib/atanl.c: Likewise.
8004         * lib/backupfile.c: Likewise.
8005         * lib/backupfile.h: Likewise.
8006         * lib/basename.c: Likewise.
8007         * lib/binary-io.h: Likewise.
8008         * lib/byteswap.in.h: Likewise.
8009         * lib/c-stack.c: Likewise.
8010         * lib/c-stack.h: Likewise.
8011         * lib/c-strcasestr.c: Likewise.
8012         * lib/c-strcasestr.h: Likewise.
8013         * lib/c-strstr.c: Likewise.
8014         * lib/c-strstr.h: Likewise.
8015         * lib/c-strtod.c: Likewise.
8016         * lib/calloc.c: Likewise.
8017         * lib/canon-host.c: Likewise.
8018         * lib/canon-host.h: Likewise.
8019         * lib/canonicalize-lgpl.c: Likewise.
8020         * lib/canonicalize.c: Likewise.
8021         * lib/canonicalize.h: Likewise.
8022         * lib/ceil.c: Likewise.
8023         * lib/ceilf.c: Likewise.
8024         * lib/ceill.c: Likewise.
8025         * lib/chdir-long.c: Likewise.
8026         * lib/chdir-long.h: Likewise.
8027         * lib/chdir-safer.c: Likewise.
8028         * lib/chdir-safer.h: Likewise.
8029         * lib/chown.c: Likewise.
8030         * lib/classpath.c: Likewise.
8031         * lib/classpath.h: Likewise.
8032         * lib/clean-temp.c: Likewise.
8033         * lib/clean-temp.h: Likewise.
8034         * lib/cloexec.c: Likewise.
8035         * lib/close-stream.c: Likewise.
8036         * lib/closein.c: Likewise.
8037         * lib/closein.h: Likewise.
8038         * lib/closeout.c: Likewise.
8039         * lib/closeout.h: Likewise.
8040         * lib/concat-filename.c: Likewise.
8041         * lib/copy-file.c: Likewise.
8042         * lib/copy-file.h: Likewise.
8043         * lib/count-one-bits.h: Likewise.
8044         * lib/crc.c: Likewise.
8045         * lib/crc.h: Likewise.
8046         * lib/creat-safer.c: Likewise.
8047         * lib/csharpcomp.c: Likewise.
8048         * lib/csharpcomp.h: Likewise.
8049         * lib/csharpexec.c: Likewise.
8050         * lib/csharpexec.h: Likewise.
8051         * lib/cycle-check.c: Likewise.
8052         * lib/cycle-check.h: Likewise.
8053         * lib/diacrit.c: Likewise.
8054         * lib/diacrit.h: Likewise.
8055         * lib/diffseq.h: Likewise.
8056         * lib/dirchownmod.c: Likewise.
8057         * lib/dirent.in.h: Likewise.
8058         * lib/dirfd.c: Likewise.
8059         * lib/dirfd.h: Likewise.
8060         * lib/dirname.c: Likewise.
8061         * lib/dirname.h: Likewise.
8062         * lib/dummy.c: Likewise.
8063         * lib/dup-safer.c: Likewise.
8064         * lib/dup2.c: Likewise.
8065         * lib/eealloc.h: Likewise.
8066         * lib/error.c: Likewise.
8067         * lib/error.h: Likewise.
8068         * lib/euidaccess.c: Likewise.
8069         * lib/exclude.c: Likewise.
8070         * lib/exclude.h: Likewise.
8071         * lib/execute.c: Likewise.
8072         * lib/execute.h: Likewise.
8073         * lib/exitfail.c: Likewise.
8074         * lib/exitfail.h: Likewise.
8075         * lib/expl.c: Likewise.
8076         * lib/fatal-signal.c: Likewise.
8077         * lib/fatal-signal.h: Likewise.
8078         * lib/fbufmode.c: Likewise.
8079         * lib/fbufmode.h: Likewise.
8080         * lib/fchdir.c: Likewise.
8081         * lib/fchmodat.c: Likewise.
8082         * lib/fchownat.c: Likewise.
8083         * lib/fcntl--.h: Likewise.
8084         * lib/fcntl-safer.h: Likewise.
8085         * lib/fcntl.in.h: Likewise.
8086         * lib/fd-safer.c: Likewise.
8087         * lib/fflush.c: Likewise.
8088         * lib/file-has-acl.c: Likewise.
8089         * lib/file-set.c: Likewise.
8090         * lib/file-type.c: Likewise.
8091         * lib/file-type.h: Likewise.
8092         * lib/fileblocks.c: Likewise.
8093         * lib/filemode.c: Likewise.
8094         * lib/filemode.h: Likewise.
8095         * lib/filename.h: Likewise.
8096         * lib/filenamecat.c: Likewise.
8097         * lib/filenamecat.h: Likewise.
8098         * lib/findprog.c: Likewise.
8099         * lib/findprog.h: Likewise.
8100         * lib/float.in.h: Likewise.
8101         * lib/floor.c: Likewise.
8102         * lib/floorf.c: Likewise.
8103         * lib/floorl.c: Likewise.
8104         * lib/fopen-safer.c: Likewise.
8105         * lib/fopen.c: Likewise.
8106         * lib/fpending.c: Likewise.
8107         * lib/fpending.h: Likewise.
8108         * lib/fprintf.c: Likewise.
8109         * lib/fprintftime.h: Likewise.
8110         * lib/fpucw.h: Likewise.
8111         * lib/fpurge.c: Likewise.
8112         * lib/fpurge.h: Likewise.
8113         * lib/freadable.c: Likewise.
8114         * lib/freadable.h: Likewise.
8115         * lib/freadahead.c: Likewise.
8116         * lib/freadahead.h: Likewise.
8117         * lib/freading.c: Likewise.
8118         * lib/freading.h: Likewise.
8119         * lib/free.c: Likewise.
8120         * lib/freopen.c: Likewise.
8121         * lib/frexp.c: Likewise.
8122         * lib/frexpl.c: Likewise.
8123         * lib/fseek.c: Likewise.
8124         * lib/fseterr.c: Likewise.
8125         * lib/fseterr.h: Likewise.
8126         * lib/fstatat.c: Likewise.
8127         * lib/fstrcmp.c: Likewise.
8128         * lib/fstrcmp.h: Likewise.
8129         * lib/fsusage.c: Likewise.
8130         * lib/fsusage.h: Likewise.
8131         * lib/ftell.c: Likewise.
8132         * lib/ftello.c: Likewise.
8133         * lib/fts-cycle.c: Likewise.
8134         * lib/fts.c: Likewise.
8135         * lib/fts_.h: Likewise.
8136         * lib/full-read.c: Likewise.
8137         * lib/full-read.h: Likewise.
8138         * lib/full-write.c: Likewise.
8139         * lib/full-write.h: Likewise.
8140         * lib/fwritable.c: Likewise.
8141         * lib/fwritable.h: Likewise.
8142         * lib/fwriteerror.c: Likewise.
8143         * lib/fwriteerror.h: Likewise.
8144         * lib/fwriting.c: Likewise.
8145         * lib/fwriting.h: Likewise.
8146         * lib/gcd.c: Likewise.
8147         * lib/gcd.h: Likewise.
8148         * lib/getcwd.c: Likewise.
8149         * lib/getdate.h: Likewise.
8150         * lib/getdate.y: Likewise.
8151         * lib/getdomainname.c: Likewise.
8152         * lib/getdomainname.h: Likewise.
8153         * lib/getgroups.c: Likewise.
8154         * lib/gethostname.c: Likewise.
8155         * lib/gethrxtime.c: Likewise.
8156         * lib/gethrxtime.h: Likewise.
8157         * lib/getloadavg.c: Likewise.
8158         * lib/getndelim2.c: Likewise.
8159         * lib/getndelim2.h: Likewise.
8160         * lib/getnline.c: Likewise.
8161         * lib/getnline.h: Likewise.
8162         * lib/getopt.c: Likewise.
8163         * lib/getopt.in.h: Likewise.
8164         * lib/getopt1.c: Likewise.
8165         * lib/getopt_int.h: Likewise.
8166         * lib/getpagesize.h: Likewise.
8167         * lib/getsubopt.c: Likewise.
8168         * lib/gettime.c: Likewise.
8169         * lib/getugroups.c: Likewise.
8170         * lib/getugroups.h: Likewise.
8171         * lib/getusershell.c: Likewise.
8172         * lib/gl_anyavltree_list1.h: Likewise.
8173         * lib/gl_anyavltree_list2.h: Likewise.
8174         * lib/gl_anyhash_list1.h: Likewise.
8175         * lib/gl_anyhash_list2.h: Likewise.
8176         * lib/gl_anylinked_list1.h: Likewise.
8177         * lib/gl_anylinked_list2.h: Likewise.
8178         * lib/gl_anyrbtree_list1.h: Likewise.
8179         * lib/gl_anyrbtree_list2.h: Likewise.
8180         * lib/gl_anytree_list1.h: Likewise.
8181         * lib/gl_anytree_list2.h: Likewise.
8182         * lib/gl_anytree_oset.h: Likewise.
8183         * lib/gl_anytreehash_list1.h: Likewise.
8184         * lib/gl_anytreehash_list2.h: Likewise.
8185         * lib/gl_array_list.c: Likewise.
8186         * lib/gl_array_list.h: Likewise.
8187         * lib/gl_array_oset.c: Likewise.
8188         * lib/gl_array_oset.h: Likewise.
8189         * lib/gl_avltree_list.c: Likewise.
8190         * lib/gl_avltree_list.h: Likewise.
8191         * lib/gl_avltree_oset.c: Likewise.
8192         * lib/gl_avltree_oset.h: Likewise.
8193         * lib/gl_avltreehash_list.c: Likewise.
8194         * lib/gl_avltreehash_list.h: Likewise.
8195         * lib/gl_carray_list.c: Likewise.
8196         * lib/gl_carray_list.h: Likewise.
8197         * lib/gl_linked_list.c: Likewise.
8198         * lib/gl_linked_list.h: Likewise.
8199         * lib/gl_linkedhash_list.c: Likewise.
8200         * lib/gl_linkedhash_list.h: Likewise.
8201         * lib/gl_list.c: Likewise.
8202         * lib/gl_list.h: Likewise.
8203         * lib/gl_oset.c: Likewise.
8204         * lib/gl_oset.h: Likewise.
8205         * lib/gl_rbtree_list.c: Likewise.
8206         * lib/gl_rbtree_list.h: Likewise.
8207         * lib/gl_rbtree_oset.c: Likewise.
8208         * lib/gl_rbtree_oset.h: Likewise.
8209         * lib/gl_rbtreehash_list.c: Likewise.
8210         * lib/gl_rbtreehash_list.h: Likewise.
8211         * lib/gl_sublist.c: Likewise.
8212         * lib/gl_sublist.h: Likewise.
8213         * lib/group-member.c: Likewise.
8214         * lib/group-member.h: Likewise.
8215         * lib/hard-locale.c: Likewise.
8216         * lib/hard-locale.h: Likewise.
8217         * lib/hash-pjw.c: Likewise.
8218         * lib/hash-pjw.h: Likewise.
8219         * lib/hash-triple.c: Likewise.
8220         * lib/hash.c: Likewise.
8221         * lib/hash.h: Likewise.
8222         * lib/human.c: Likewise.
8223         * lib/human.h: Likewise.
8224         * lib/i-ring.c: Likewise.
8225         * lib/i-ring.h: Likewise.
8226         * lib/idcache.c: Likewise.
8227         * lib/imaxabs.c: Likewise.
8228         * lib/imaxdiv.c: Likewise.
8229         * lib/inet_pton.c: Likewise.
8230         * lib/inet_pton.h: Likewise.
8231         * lib/intprops.h: Likewise.
8232         * lib/inttostr.c: Likewise.
8233         * lib/inttostr.h: Likewise.
8234         * lib/inttypes.in.h: Likewise.
8235         * lib/isapipe.c: Likewise.
8236         * lib/isdir.c: Likewise.
8237         * lib/isnan.c: Likewise.
8238         * lib/isnan.h: Likewise.
8239         * lib/isnanf.c: Likewise.
8240         * lib/isnanf.h: Likewise.
8241         * lib/isnanl-nolibm.h: Likewise.
8242         * lib/isnanl.c: Likewise.
8243         * lib/isnanl.h: Likewise.
8244         * lib/javacomp.c: Likewise.
8245         * lib/javacomp.h: Likewise.
8246         * lib/javaexec.c: Likewise.
8247         * lib/javaexec.h: Likewise.
8248         * lib/javaversion.c: Likewise.
8249         * lib/javaversion.h: Likewise.
8250         * lib/javaversion.java: Likewise.
8251         * lib/lbrkprop.h: Likewise.
8252         * lib/lchmod.h: Likewise.
8253         * lib/lchown.c: Likewise.
8254         * lib/ldexpl.c: Likewise.
8255         * lib/linebreak.c: Likewise.
8256         * lib/linebreak.h: Likewise.
8257         * lib/linebuffer.c: Likewise.
8258         * lib/linebuffer.h: Likewise.
8259         * lib/locale.in.h: Likewise.
8260         * lib/logl.c: Likewise.
8261         * lib/long-options.c: Likewise.
8262         * lib/long-options.h: Likewise.
8263         * lib/lstat.c: Likewise.
8264         * lib/lstat.h: Likewise.
8265         * lib/math.in.h: Likewise.
8266         * lib/mbchar.c: Likewise.
8267         * lib/mbchar.h: Likewise.
8268         * lib/mbfile.h: Likewise.
8269         * lib/mbiter.h: Likewise.
8270         * lib/mbscasecmp.c: Likewise.
8271         * lib/mbscasestr.c: Likewise.
8272         * lib/mbschr.c: Likewise.
8273         * lib/mbscspn.c: Likewise.
8274         * lib/mbslen.c: Likewise.
8275         * lib/mbsncasecmp.c: Likewise.
8276         * lib/mbsnlen.c: Likewise.
8277         * lib/mbspbrk.c: Likewise.
8278         * lib/mbspcasecmp.c: Likewise.
8279         * lib/mbsrchr.c: Likewise.
8280         * lib/mbssep.c: Likewise.
8281         * lib/mbsspn.c: Likewise.
8282         * lib/mbsstr.c: Likewise.
8283         * lib/mbstok_r.c: Likewise.
8284         * lib/mbswidth.c: Likewise.
8285         * lib/mbswidth.h: Likewise.
8286         * lib/mbuiter.h: Likewise.
8287         * lib/memcasecmp.c: Likewise.
8288         * lib/memcasecmp.h: Likewise.
8289         * lib/memchr.c: Likewise.
8290         * lib/memcmp.c: Likewise.
8291         * lib/memcoll.c: Likewise.
8292         * lib/memcoll.h: Likewise.
8293         * lib/memcpy.c: Likewise.
8294         * lib/memrchr.c: Likewise.
8295         * lib/mkancesdirs.c: Likewise.
8296         * lib/mkdir-p.c: Likewise.
8297         * lib/mkdir-p.h: Likewise.
8298         * lib/mkdir.c: Likewise.
8299         * lib/mkdirat.c: Likewise.
8300         * lib/mkdtemp.c: Likewise.
8301         * lib/mkstemp-safer.c: Likewise.
8302         * lib/mkstemp.c: Likewise.
8303         * lib/modechange.c: Likewise.
8304         * lib/modechange.h: Likewise.
8305         * lib/mountlist.c: Likewise.
8306         * lib/mountlist.h: Likewise.
8307         * lib/mpsort.c: Likewise.
8308         * lib/nanosleep.c: Likewise.
8309         * lib/obstack.c: Likewise.
8310         * lib/obstack.h: Likewise.
8311         * lib/open-safer.c: Likewise.
8312         * lib/open.c: Likewise.
8313         * lib/openat-die.c: Likewise.
8314         * lib/openat-priv.h: Likewise.
8315         * lib/openat-proc.c: Likewise.
8316         * lib/openat.c: Likewise.
8317         * lib/openat.h: Likewise.
8318         * lib/pagealign_alloc.c: Likewise.
8319         * lib/pagealign_alloc.h: Likewise.
8320         * lib/physmem.c: Likewise.
8321         * lib/physmem.h: Likewise.
8322         * lib/pipe-safer.c: Likewise.
8323         * lib/pipe.c: Likewise.
8324         * lib/pipe.h: Likewise.
8325         * lib/posixtm.c: Likewise.
8326         * lib/posixtm.h: Likewise.
8327         * lib/posixver.c: Likewise.
8328         * lib/printf-frexp.c: Likewise.
8329         * lib/printf-frexp.h: Likewise.
8330         * lib/printf-frexpl.c: Likewise.
8331         * lib/printf-frexpl.h: Likewise.
8332         * lib/printf.c: Likewise.
8333         * lib/progname.c: Likewise.
8334         * lib/progname.h: Likewise.
8335         * lib/progreloc.c: Likewise.
8336         * lib/putenv.c: Likewise.
8337         * lib/quote.c: Likewise.
8338         * lib/quote.h: Likewise.
8339         * lib/quotearg.c: Likewise.
8340         * lib/quotearg.h: Likewise.
8341         * lib/raise.c: Likewise.
8342         * lib/readline.c: Likewise.
8343         * lib/readline.h: Likewise.
8344         * lib/readlink.c: Likewise.
8345         * lib/readtokens.c: Likewise.
8346         * lib/readtokens.h: Likewise.
8347         * lib/readtokens0.c: Likewise.
8348         * lib/readtokens0.h: Likewise.
8349         * lib/readutmp.c: Likewise.
8350         * lib/readutmp.h: Likewise.
8351         * lib/realloc.c: Likewise.
8352         * lib/relocwrapper.c: Likewise.
8353         * lib/rename-dest-slash.c: Likewise.
8354         * lib/rename.c: Likewise.
8355         * lib/rmdir.c: Likewise.
8356         * lib/rpmatch.c: Likewise.
8357         * lib/safe-read.c: Likewise.
8358         * lib/safe-read.h: Likewise.
8359         * lib/safe-write.c: Likewise.
8360         * lib/safe-write.h: Likewise.
8361         * lib/same-inode.h: Likewise.
8362         * lib/same.c: Likewise.
8363         * lib/same.h: Likewise.
8364         * lib/save-cwd.c: Likewise.
8365         * lib/save-cwd.h: Likewise.
8366         * lib/savedir.c: Likewise.
8367         * lib/savedir.h: Likewise.
8368         * lib/savewd.c: Likewise.
8369         * lib/savewd.h: Likewise.
8370         * lib/search.in.h: Likewise.
8371         * lib/setenv.c: Likewise.
8372         * lib/setenv.h: Likewise.
8373         * lib/settime.c: Likewise.
8374         * lib/sh-quote.c: Likewise.
8375         * lib/sh-quote.h: Likewise.
8376         * lib/sig2str.c: Likewise.
8377         * lib/sig2str.h: Likewise.
8378         * lib/signal.in.h: Likewise.
8379         * lib/signbitd.c: Likewise.
8380         * lib/signbitf.c: Likewise.
8381         * lib/signbitl.c: Likewise.
8382         * lib/sigprocmask.c: Likewise.
8383         * lib/sincosl.c: Likewise.
8384         * lib/sleep.c: Likewise.
8385         * lib/sprintf.c: Likewise.
8386         * lib/sqrtl.c: Likewise.
8387         * lib/stat-time.h: Likewise.
8388         * lib/stdio--.h: Likewise.
8389         * lib/stdio-safer.h: Likewise.
8390         * lib/stdlib--.h: Likewise.
8391         * lib/stdlib-safer.h: Likewise.
8392         * lib/stdlib.in.h: Likewise.
8393         * lib/stpcpy.c: Likewise.
8394         * lib/stpncpy.c: Likewise.
8395         * lib/strchrnul.c: Likewise.
8396         * lib/strcspn.c: Likewise.
8397         * lib/strerror.c: Likewise.
8398         * lib/strftime.c: Likewise.
8399         * lib/strftime.h: Likewise.
8400         * lib/striconveh.c: Likewise.
8401         * lib/striconveh.h: Likewise.
8402         * lib/striconveha.c: Likewise.
8403         * lib/striconveha.h: Likewise.
8404         * lib/stripslash.c: Likewise.
8405         * lib/strnlen1.c: Likewise.
8406         * lib/strnlen1.h: Likewise.
8407         * lib/strtod.c: Likewise.
8408         * lib/strtoimax.c: Likewise.
8409         * lib/strtok_r.c: Likewise.
8410         * lib/strtol.c: Likewise.
8411         * lib/strtoll.c: Likewise.
8412         * lib/strtoul.c: Likewise.
8413         * lib/strtoull.c: Likewise.
8414         * lib/sysexits.in.h: Likewise.
8415         * lib/tempname.c: Likewise.
8416         * lib/tempname.h: Likewise.
8417         * lib/timespec.h: Likewise.
8418         * lib/tls.c: Likewise.
8419         * lib/tls.h: Likewise.
8420         * lib/tmpdir.c: Likewise.
8421         * lib/tmpdir.h: Likewise.
8422         * lib/tmpfile-safer.c: Likewise.
8423         * lib/tmpfile.c: Likewise.
8424         * lib/trigl.c: Likewise.
8425         * lib/trigl.h: Likewise.
8426         * lib/trim.c: Likewise.
8427         * lib/trim.h: Likewise.
8428         * lib/trunc.c: Likewise.
8429         * lib/truncf.c: Likewise.
8430         * lib/truncl.c: Likewise.
8431         * lib/tsearch.c: Likewise.
8432         * lib/unicodeio.c: Likewise.
8433         * lib/unicodeio.h: Likewise.
8434         * lib/unistd--.h: Likewise.
8435         * lib/unistd-safer.h: Likewise.
8436         * lib/unistdio/ulc-fprintf.c: Likewise.
8437         * lib/unistdio/ulc-vfprintf.c: Likewise.
8438         * lib/unlinkdir.c: Likewise.
8439         * lib/unlinkdir.h: Likewise.
8440         * lib/unlocked-io.h: Likewise.
8441         * lib/unsetenv.c: Likewise.
8442         * lib/userspec.c: Likewise.
8443         * lib/utime.c: Likewise.
8444         * lib/utimecmp.c: Likewise.
8445         * lib/utimecmp.h: Likewise.
8446         * lib/utimens.c: Likewise.
8447         * lib/verify.h: Likewise.
8448         * lib/verror.c: Likewise.
8449         * lib/verror.h: Likewise.
8450         * lib/version-etc-fsf.c: Likewise.
8451         * lib/version-etc.c: Likewise.
8452         * lib/version-etc.h: Likewise.
8453         * lib/vfprintf.c: Likewise.
8454         * lib/vprintf.c: Likewise.
8455         * lib/vsprintf.c: Likewise.
8456         * lib/w32spawn.h: Likewise.
8457         * lib/wait-process.c: Likewise.
8458         * lib/wait-process.h: Likewise.
8459         * lib/wcwidth.c: Likewise.
8460         * lib/write-any-file.c: Likewise.
8461         * lib/xalloc-die.c: Likewise.
8462         * lib/xalloc.h: Likewise.
8463         * lib/xasprintf.c: Likewise.
8464         * lib/xgetcwd.c: Likewise.
8465         * lib/xgetcwd.h: Likewise.
8466         * lib/xgetdomainname.c: Likewise.
8467         * lib/xgetdomainname.h: Likewise.
8468         * lib/xgethostname.c: Likewise.
8469         * lib/xmalloc.c: Likewise.
8470         * lib/xmalloca.c: Likewise.
8471         * lib/xmalloca.h: Likewise.
8472         * lib/xmemcoll.c: Likewise.
8473         * lib/xnanosleep.c: Likewise.
8474         * lib/xreadlink.c: Likewise.
8475         * lib/xreadlink.h: Likewise.
8476         * lib/xsetenv.c: Likewise.
8477         * lib/xsetenv.h: Likewise.
8478         * lib/xstriconv.c: Likewise.
8479         * lib/xstriconv.h: Likewise.
8480         * lib/xstrndup.c: Likewise.
8481         * lib/xstrndup.h: Likewise.
8482         * lib/xstrtod.c: Likewise.
8483         * lib/xstrtod.h: Likewise.
8484         * lib/xstrtol-error.c: Likewise.
8485         * lib/xstrtol.c: Likewise.
8486         * lib/xstrtol.h: Likewise.
8487         * lib/xtime.h: Likewise.
8488         * lib/xvasprintf.c: Likewise.
8489         * lib/xvasprintf.h: Likewise.
8490         * lib/yesno.c: Likewise.
8491         * lib/yesno.h: Likewise.
8492         * posix-modules: Likewise.
8493         * tests/test-alloca-opt.c: Likewise.
8494         * tests/test-arcfour.c: Likewise.
8495         * tests/test-arctwo.c: Likewise.
8496         * tests/test-argmatch.c: Likewise.
8497         * tests/test-argp-2.sh: Likewise.
8498         * tests/test-argp.c: Likewise.
8499         * tests/test-arpa_inet.c: Likewise.
8500         * tests/test-array_list.c: Likewise.
8501         * tests/test-array_oset.c: Likewise.
8502         * tests/test-atexit.c: Likewise.
8503         * tests/test-avltree_list.c: Likewise.
8504         * tests/test-avltree_oset.c: Likewise.
8505         * tests/test-avltreehash_list.c: Likewise.
8506         * tests/test-base64.c: Likewise.
8507         * tests/test-binary-io.c: Likewise.
8508         * tests/test-byteswap.c: Likewise.
8509         * tests/test-c-ctype.c: Likewise.
8510         * tests/test-c-strcasecmp.c: Likewise.
8511         * tests/test-c-strcasestr.c: Likewise.
8512         * tests/test-c-strncasecmp.c: Likewise.
8513         * tests/test-c-strstr.c: Likewise.
8514         * tests/test-canonicalize-lgpl.c: Likewise.
8515         * tests/test-canonicalize.c: Likewise.
8516         * tests/test-carray_list.c: Likewise.
8517         * tests/test-ceilf.c: Likewise.
8518         * tests/test-ceill.c: Likewise.
8519         * tests/test-count-one-bits.c: Likewise.
8520         * tests/test-crc.c: Likewise.
8521         * tests/test-dirname.c: Likewise.
8522         * tests/test-fbufmode.c: Likewise.
8523         * tests/test-fcntl.c: Likewise.
8524         * tests/test-fflush.c: Likewise.
8525         * tests/test-floorf.c: Likewise.
8526         * tests/test-floorl.c: Likewise.
8527         * tests/test-fopen.c: Likewise.
8528         * tests/test-fprintf-posix.c: Likewise.
8529         * tests/test-fprintf-posix.h: Likewise.
8530         * tests/test-fpurge.c: Likewise.
8531         * tests/test-freadable.c: Likewise.
8532         * tests/test-freadahead.c: Likewise.
8533         * tests/test-freading.c: Likewise.
8534         * tests/test-freopen.c: Likewise.
8535         * tests/test-frexp.c: Likewise.
8536         * tests/test-frexpl.c: Likewise.
8537         * tests/test-fseek.c: Likewise.
8538         * tests/test-fseeko.c: Likewise.
8539         * tests/test-fseterr.c: Likewise.
8540         * tests/test-fstrcmp.c: Likewise.
8541         * tests/test-ftell.c: Likewise.
8542         * tests/test-ftello.c: Likewise.
8543         * tests/test-fwritable.c: Likewise.
8544         * tests/test-fwriting.c: Likewise.
8545         * tests/test-getaddrinfo.c: Likewise.
8546         * tests/test-getpass.c: Likewise.
8547         * tests/test-gettimeofday.c: Likewise.
8548         * tests/test-hmac-md5.c: Likewise.
8549         * tests/test-hmac-sha1.c: Likewise.
8550         * tests/test-iconv.c: Likewise.
8551         * tests/test-iconvme.c: Likewise.
8552         * tests/test-inttypes.c: Likewise.
8553         * tests/test-isnan.c: Likewise.
8554         * tests/test-isnanf.c: Likewise.
8555         * tests/test-isnanl-nolibm.c: Likewise.
8556         * tests/test-isnanl.c: Likewise.
8557         * tests/test-isnanl.h: Likewise.
8558         * tests/test-ldexpl.c: Likewise.
8559         * tests/test-linked_list.c: Likewise.
8560         * tests/test-linkedhash_list.c: Likewise.
8561         * tests/test-locale.c: Likewise.
8562         * tests/test-localename.c: Likewise.
8563         * tests/test-lock.c: Likewise.
8564         * tests/test-lseek.c: Likewise.
8565         * tests/test-malloca.c: Likewise.
8566         * tests/test-math.c: Likewise.
8567         * tests/test-mbscasecmp.c: Likewise.
8568         * tests/test-mbscasestr1.c: Likewise.
8569         * tests/test-mbscasestr2.c: Likewise.
8570         * tests/test-mbscasestr3.c: Likewise.
8571         * tests/test-mbscasestr4.c: Likewise.
8572         * tests/test-mbschr.c: Likewise.
8573         * tests/test-mbscspn.c: Likewise.
8574         * tests/test-mbsncasecmp.c: Likewise.
8575         * tests/test-mbspbrk.c: Likewise.
8576         * tests/test-mbspcasecmp.c: Likewise.
8577         * tests/test-mbsrchr.c: Likewise.
8578         * tests/test-mbsspn.c: Likewise.
8579         * tests/test-mbsstr1.c: Likewise.
8580         * tests/test-mbsstr2.c: Likewise.
8581         * tests/test-mbsstr3.c: Likewise.
8582         * tests/test-md5.c: Likewise.
8583         * tests/test-memmem.c: Likewise.
8584         * tests/test-netinet_in.c: Likewise.
8585         * tests/test-open.c: Likewise.
8586         * tests/test-printf-frexp.c: Likewise.
8587         * tests/test-printf-frexpl.c: Likewise.
8588         * tests/test-printf-posix.c: Likewise.
8589         * tests/test-printf-posix.h: Likewise.
8590         * tests/test-rbtree_list.c: Likewise.
8591         * tests/test-rbtree_oset.c: Likewise.
8592         * tests/test-rbtreehash_list.c: Likewise.
8593         * tests/test-read-file.c: Likewise.
8594         * tests/test-rijndael.c: Likewise.
8595         * tests/test-search.c: Likewise.
8596         * tests/test-signbit.c: Likewise.
8597         * tests/test-sleep.c: Likewise.
8598         * tests/test-snprintf-posix.c: Likewise.
8599         * tests/test-snprintf-posix.h: Likewise.
8600         * tests/test-snprintf.c: Likewise.
8601         * tests/test-sprintf-posix.c: Likewise.
8602         * tests/test-sprintf-posix.h: Likewise.
8603         * tests/test-stat-time.c: Likewise.
8604         * tests/test-stdbool.c: Likewise.
8605         * tests/test-stdint.c: Likewise.
8606         * tests/test-stdio.c: Likewise.
8607         * tests/test-stdlib.c: Likewise.
8608         * tests/test-stpncpy.c: Likewise.
8609         * tests/test-strcasestr.c: Likewise.
8610         * tests/test-striconv.c: Likewise.
8611         * tests/test-striconveh.c: Likewise.
8612         * tests/test-striconveha.c: Likewise.
8613         * tests/test-string.c: Likewise.
8614         * tests/test-sys_select.c: Likewise.
8615         * tests/test-sys_socket.c: Likewise.
8616         * tests/test-sys_stat.c: Likewise.
8617         * tests/test-sys_time.c: Likewise.
8618         * tests/test-sysexits.c: Likewise.
8619         * tests/test-time.c: Likewise.
8620         * tests/test-tls.c: Likewise.
8621         * tests/test-trunc.c: Likewise.
8622         * tests/test-truncf.c: Likewise.
8623         * tests/test-truncl.c: Likewise.
8624         * tests/test-unistd.c: Likewise.
8625         * tests/test-vasnprintf-posix.c: Likewise.
8626         * tests/test-vasnprintf-posix2.c: Likewise.
8627         * tests/test-vasnprintf.c: Likewise.
8628         * tests/test-vasprintf-posix.c: Likewise.
8629         * tests/test-vasprintf.c: Likewise.
8630         * tests/test-verify.c: Likewise.
8631         * tests/test-vfprintf-posix.c: Likewise.
8632         * tests/test-vprintf-posix.c: Likewise.
8633         * tests/test-vsnprintf-posix.c: Likewise.
8634         * tests/test-vsnprintf.c: Likewise.
8635         * tests/test-vsprintf-posix.c: Likewise.
8636         * tests/test-wchar.c: Likewise.
8637         * tests/test-wctype.c: Likewise.
8638         * tests/test-wcwidth.c: Likewise.
8639         * tests/test-xstrtol.c: Likewise.
8640         * tests/test-xvasprintf.c: Likewise.
8641         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
8642         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
8643         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8644         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8645         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8646         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
8647         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8648         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8649         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8650         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
8651         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8652         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8653         * tests/uniname/test-uninames.c: Likewise.
8654         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
8655         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
8656         * tests/unistdio/test-u16-printf1.h: Likewise.
8657         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
8658         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
8659         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
8660         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
8661         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
8662         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
8663         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
8664         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
8665         * tests/unistdio/test-u32-printf1.h: Likewise.
8666         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
8667         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
8668         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
8669         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
8670         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
8671         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
8672         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
8673         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
8674         * tests/unistdio/test-u8-printf1.h: Likewise.
8675         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
8676         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
8677         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
8678         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
8679         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
8680         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
8681         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
8682         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
8683         * tests/unistdio/test-ulc-printf1.h: Likewise.
8684         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
8685         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
8686         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
8687         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
8688         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
8689         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
8690         * tests/uniwidth/test-u16-strwidth.c: Likewise.
8691         * tests/uniwidth/test-u16-width.c: Likewise.
8692         * tests/uniwidth/test-u32-strwidth.c: Likewise.
8693         * tests/uniwidth/test-u32-width.c: Likewise.
8694         * tests/uniwidth/test-u8-strwidth.c: Likewise.
8695         * tests/uniwidth/test-u8-width.c: Likewise.
8696         * tests/uniwidth/test-uc_width.c: Likewise.
8697         * config/srclist-update: Likewise.
8698         (fixlicense): Update to GPLv3+.
8699
8700         Change copyright notice from LGPLv2.1+ to LGPLv3+.
8701         * tests/test-tsearch.c: Change copyright notice.
8702
8703         Change copyright notice from LGPLv2.0+ to LGPLv3+.
8704         * lib/c-strcaseeq.h: Change copyright notice.
8705         * lib/streq.h: Likewise.
8706         * lib/uniconv.h: Likewise.
8707         * lib/uniconv/u-conv-from-enc.h: Likewise.
8708         * lib/uniconv/u-conv-to-enc.h: Likewise.
8709         * lib/uniconv/u-strconv-from-enc.h: Likewise.
8710         * lib/uniconv/u-strconv-to-enc.h: Likewise.
8711         * lib/uniconv/u16-conv-from-enc.c: Likewise.
8712         * lib/uniconv/u16-conv-to-enc.c: Likewise.
8713         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
8714         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
8715         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
8716         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
8717         * lib/uniconv/u32-conv-from-enc.c: Likewise.
8718         * lib/uniconv/u32-conv-to-enc.c: Likewise.
8719         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
8720         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
8721         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
8722         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
8723         * lib/uniconv/u8-conv-from-enc.c: Likewise.
8724         * lib/uniconv/u8-conv-to-enc.c: Likewise.
8725         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
8726         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
8727         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
8728         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
8729         * lib/uniname.h: Likewise.
8730         * lib/uniname/uniname.c: Likewise.
8731         * lib/unistdio.h: Likewise.
8732         * lib/unistdio/u-asnprintf.h: Likewise.
8733         * lib/unistdio/u-asprintf.h: Likewise.
8734         * lib/unistdio/u-printf-args.c: Likewise.
8735         * lib/unistdio/u-printf-args.h: Likewise.
8736         * lib/unistdio/u-printf-parse.h: Likewise.
8737         * lib/unistdio/u-snprintf.h: Likewise.
8738         * lib/unistdio/u-sprintf.h: Likewise.
8739         * lib/unistdio/u-vasprintf.h: Likewise.
8740         * lib/unistdio/u-vsnprintf.h: Likewise.
8741         * lib/unistdio/u-vsprintf.h: Likewise.
8742         * lib/unistdio/u16-asnprintf.c: Likewise.
8743         * lib/unistdio/u16-asprintf.c: Likewise.
8744         * lib/unistdio/u16-printf-parse.c: Likewise.
8745         * lib/unistdio/u16-snprintf.c: Likewise.
8746         * lib/unistdio/u16-sprintf.c: Likewise.
8747         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
8748         * lib/unistdio/u16-u16-asprintf.c: Likewise.
8749         * lib/unistdio/u16-u16-snprintf.c: Likewise.
8750         * lib/unistdio/u16-u16-sprintf.c: Likewise.
8751         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
8752         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
8753         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
8754         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
8755         * lib/unistdio/u16-vasnprintf.c: Likewise.
8756         * lib/unistdio/u16-vasprintf.c: Likewise.
8757         * lib/unistdio/u16-vsnprintf.c: Likewise.
8758         * lib/unistdio/u16-vsprintf.c: Likewise.
8759         * lib/unistdio/u32-asnprintf.c: Likewise.
8760         * lib/unistdio/u32-asprintf.c: Likewise.
8761         * lib/unistdio/u32-printf-parse.c: Likewise.
8762         * lib/unistdio/u32-snprintf.c: Likewise.
8763         * lib/unistdio/u32-sprintf.c: Likewise.
8764         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
8765         * lib/unistdio/u32-u32-asprintf.c: Likewise.
8766         * lib/unistdio/u32-u32-snprintf.c: Likewise.
8767         * lib/unistdio/u32-u32-sprintf.c: Likewise.
8768         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
8769         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
8770         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
8771         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
8772         * lib/unistdio/u32-vasnprintf.c: Likewise.
8773         * lib/unistdio/u32-vasprintf.c: Likewise.
8774         * lib/unistdio/u32-vsnprintf.c: Likewise.
8775         * lib/unistdio/u32-vsprintf.c: Likewise.
8776         * lib/unistdio/u8-asnprintf.c: Likewise.
8777         * lib/unistdio/u8-asprintf.c: Likewise.
8778         * lib/unistdio/u8-printf-parse.c: Likewise.
8779         * lib/unistdio/u8-snprintf.c: Likewise.
8780         * lib/unistdio/u8-sprintf.c: Likewise.
8781         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
8782         * lib/unistdio/u8-u8-asprintf.c: Likewise.
8783         * lib/unistdio/u8-u8-snprintf.c: Likewise.
8784         * lib/unistdio/u8-u8-sprintf.c: Likewise.
8785         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
8786         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
8787         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
8788         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
8789         * lib/unistdio/u8-vasnprintf.c: Likewise.
8790         * lib/unistdio/u8-vasprintf.c: Likewise.
8791         * lib/unistdio/u8-vsnprintf.c: Likewise.
8792         * lib/unistdio/u8-vsprintf.c: Likewise.
8793         * lib/unistdio/ulc-asnprintf.c: Likewise.
8794         * lib/unistdio/ulc-asprintf.c: Likewise.
8795         * lib/unistdio/ulc-printf-parse.c: Likewise.
8796         * lib/unistdio/ulc-snprintf.c: Likewise.
8797         * lib/unistdio/ulc-sprintf.c: Likewise.
8798         * lib/unistdio/ulc-vasnprintf.c: Likewise.
8799         * lib/unistdio/ulc-vasprintf.c: Likewise.
8800         * lib/unistdio/ulc-vsnprintf.c: Likewise.
8801         * lib/unistdio/ulc-vsprintf.c: Likewise.
8802         * lib/unistr.h: Likewise.
8803         * lib/unistr/u-cpy-alloc.h: Likewise.
8804         * lib/unistr/u-cpy.h: Likewise.
8805         * lib/unistr/u-endswith.h: Likewise.
8806         * lib/unistr/u-move.h: Likewise.
8807         * lib/unistr/u-set.h: Likewise.
8808         * lib/unistr/u-startswith.h: Likewise.
8809         * lib/unistr/u-stpcpy.h: Likewise.
8810         * lib/unistr/u-stpncpy.h: Likewise.
8811         * lib/unistr/u-strcat.h: Likewise.
8812         * lib/unistr/u-strcpy.h: Likewise.
8813         * lib/unistr/u-strcspn.h: Likewise.
8814         * lib/unistr/u-strdup.h: Likewise.
8815         * lib/unistr/u-strlen.h: Likewise.
8816         * lib/unistr/u-strncat.h: Likewise.
8817         * lib/unistr/u-strncpy.h: Likewise.
8818         * lib/unistr/u-strnlen.h: Likewise.
8819         * lib/unistr/u-strpbrk.h: Likewise.
8820         * lib/unistr/u-strspn.h: Likewise.
8821         * lib/unistr/u-strstr.h: Likewise.
8822         * lib/unistr/u-strtok.h: Likewise.
8823         * lib/unistr/u16-check.c: Likewise.
8824         * lib/unistr/u16-chr.c: Likewise.
8825         * lib/unistr/u16-cmp.c: Likewise.
8826         * lib/unistr/u16-cpy-alloc.c: Likewise.
8827         * lib/unistr/u16-cpy.c: Likewise.
8828         * lib/unistr/u16-endswith.c: Likewise.
8829         * lib/unistr/u16-mblen.c: Likewise.
8830         * lib/unistr/u16-mbsnlen.c: Likewise.
8831         * lib/unistr/u16-mbtouc-aux.c: Likewise.
8832         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
8833         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
8834         * lib/unistr/u16-mbtouc.c: Likewise.
8835         * lib/unistr/u16-mbtoucr.c: Likewise.
8836         * lib/unistr/u16-move.c: Likewise.
8837         * lib/unistr/u16-next.c: Likewise.
8838         * lib/unistr/u16-prev.c: Likewise.
8839         * lib/unistr/u16-set.c: Likewise.
8840         * lib/unistr/u16-startswith.c: Likewise.
8841         * lib/unistr/u16-stpcpy.c: Likewise.
8842         * lib/unistr/u16-stpncpy.c: Likewise.
8843         * lib/unistr/u16-strcat.c: Likewise.
8844         * lib/unistr/u16-strchr.c: Likewise.
8845         * lib/unistr/u16-strcmp.c: Likewise.
8846         * lib/unistr/u16-strcpy.c: Likewise.
8847         * lib/unistr/u16-strcspn.c: Likewise.
8848         * lib/unistr/u16-strdup.c: Likewise.
8849         * lib/unistr/u16-strlen.c: Likewise.
8850         * lib/unistr/u16-strmblen.c: Likewise.
8851         * lib/unistr/u16-strmbtouc.c: Likewise.
8852         * lib/unistr/u16-strncat.c: Likewise.
8853         * lib/unistr/u16-strncmp.c: Likewise.
8854         * lib/unistr/u16-strncpy.c: Likewise.
8855         * lib/unistr/u16-strnlen.c: Likewise.
8856         * lib/unistr/u16-strpbrk.c: Likewise.
8857         * lib/unistr/u16-strrchr.c: Likewise.
8858         * lib/unistr/u16-strspn.c: Likewise.
8859         * lib/unistr/u16-strstr.c: Likewise.
8860         * lib/unistr/u16-strtok.c: Likewise.
8861         * lib/unistr/u16-to-u32.c: Likewise.
8862         * lib/unistr/u16-to-u8.c: Likewise.
8863         * lib/unistr/u16-uctomb-aux.c: Likewise.
8864         * lib/unistr/u16-uctomb.c: Likewise.
8865         * lib/unistr/u32-check.c: Likewise.
8866         * lib/unistr/u32-chr.c: Likewise.
8867         * lib/unistr/u32-cmp.c: Likewise.
8868         * lib/unistr/u32-cpy-alloc.c: Likewise.
8869         * lib/unistr/u32-cpy.c: Likewise.
8870         * lib/unistr/u32-endswith.c: Likewise.
8871         * lib/unistr/u32-mblen.c: Likewise.
8872         * lib/unistr/u32-mbsnlen.c: Likewise.
8873         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
8874         * lib/unistr/u32-mbtouc.c: Likewise.
8875         * lib/unistr/u32-mbtoucr.c: Likewise.
8876         * lib/unistr/u32-move.c: Likewise.
8877         * lib/unistr/u32-next.c: Likewise.
8878         * lib/unistr/u32-prev.c: Likewise.
8879         * lib/unistr/u32-set.c: Likewise.
8880         * lib/unistr/u32-startswith.c: Likewise.
8881         * lib/unistr/u32-stpcpy.c: Likewise.
8882         * lib/unistr/u32-stpncpy.c: Likewise.
8883         * lib/unistr/u32-strcat.c: Likewise.
8884         * lib/unistr/u32-strchr.c: Likewise.
8885         * lib/unistr/u32-strcmp.c: Likewise.
8886         * lib/unistr/u32-strcpy.c: Likewise.
8887         * lib/unistr/u32-strcspn.c: Likewise.
8888         * lib/unistr/u32-strdup.c: Likewise.
8889         * lib/unistr/u32-strlen.c: Likewise.
8890         * lib/unistr/u32-strmblen.c: Likewise.
8891         * lib/unistr/u32-strmbtouc.c: Likewise.
8892         * lib/unistr/u32-strncat.c: Likewise.
8893         * lib/unistr/u32-strncmp.c: Likewise.
8894         * lib/unistr/u32-strncpy.c: Likewise.
8895         * lib/unistr/u32-strnlen.c: Likewise.
8896         * lib/unistr/u32-strpbrk.c: Likewise.
8897         * lib/unistr/u32-strrchr.c: Likewise.
8898         * lib/unistr/u32-strspn.c: Likewise.
8899         * lib/unistr/u32-strstr.c: Likewise.
8900         * lib/unistr/u32-strtok.c: Likewise.
8901         * lib/unistr/u32-to-u16.c: Likewise.
8902         * lib/unistr/u32-to-u8.c: Likewise.
8903         * lib/unistr/u32-uctomb.c: Likewise.
8904         * lib/unistr/u8-check.c: Likewise.
8905         * lib/unistr/u8-chr.c: Likewise.
8906         * lib/unistr/u8-cmp.c: Likewise.
8907         * lib/unistr/u8-cpy-alloc.c: Likewise.
8908         * lib/unistr/u8-cpy.c: Likewise.
8909         * lib/unistr/u8-endswith.c: Likewise.
8910         * lib/unistr/u8-mblen.c: Likewise.
8911         * lib/unistr/u8-mbsnlen.c: Likewise.
8912         * lib/unistr/u8-mbtouc-aux.c: Likewise.
8913         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
8914         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
8915         * lib/unistr/u8-mbtouc.c: Likewise.
8916         * lib/unistr/u8-mbtoucr.c: Likewise.
8917         * lib/unistr/u8-move.c: Likewise.
8918         * lib/unistr/u8-next.c: Likewise.
8919         * lib/unistr/u8-prev.c: Likewise.
8920         * lib/unistr/u8-set.c: Likewise.
8921         * lib/unistr/u8-startswith.c: Likewise.
8922         * lib/unistr/u8-stpcpy.c: Likewise.
8923         * lib/unistr/u8-stpncpy.c: Likewise.
8924         * lib/unistr/u8-strcat.c: Likewise.
8925         * lib/unistr/u8-strchr.c: Likewise.
8926         * lib/unistr/u8-strcmp.c: Likewise.
8927         * lib/unistr/u8-strcpy.c: Likewise.
8928         * lib/unistr/u8-strcspn.c: Likewise.
8929         * lib/unistr/u8-strdup.c: Likewise.
8930         * lib/unistr/u8-strlen.c: Likewise.
8931         * lib/unistr/u8-strmblen.c: Likewise.
8932         * lib/unistr/u8-strmbtouc.c: Likewise.
8933         * lib/unistr/u8-strncat.c: Likewise.
8934         * lib/unistr/u8-strncmp.c: Likewise.
8935         * lib/unistr/u8-strncpy.c: Likewise.
8936         * lib/unistr/u8-strnlen.c: Likewise.
8937         * lib/unistr/u8-strpbrk.c: Likewise.
8938         * lib/unistr/u8-strrchr.c: Likewise.
8939         * lib/unistr/u8-strspn.c: Likewise.
8940         * lib/unistr/u8-strstr.c: Likewise.
8941         * lib/unistr/u8-strtok.c: Likewise.
8942         * lib/unistr/u8-to-u16.c: Likewise.
8943         * lib/unistr/u8-to-u32.c: Likewise.
8944         * lib/unistr/u8-uctomb-aux.c: Likewise.
8945         * lib/unistr/u8-uctomb.c: Likewise.
8946         * lib/unitypes.h: Likewise.
8947         * lib/uniwidth.h: Likewise.
8948         * lib/uniwidth/cjk.h: Likewise.
8949         * lib/uniwidth/u16-strwidth.c: Likewise.
8950         * lib/uniwidth/u16-width.c: Likewise.
8951         * lib/uniwidth/u32-strwidth.c: Likewise.
8952         * lib/uniwidth/u32-width.c: Likewise.
8953         * lib/uniwidth/u8-strwidth.c: Likewise.
8954         * lib/uniwidth/u8-width.c: Likewise.
8955         * lib/uniwidth/width.c: Likewise.
8956
8957 2007-10-07  Bruno Haible  <bruno@clisp.org>
8958
8959         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
8960         The file is still under LGPL (see modules/inttypes).
8961
8962 2007-10-06  Bruno Haible  <bruno@clisp.org>
8963
8964         * modules/trunc (Dependencies): Add 'extensions'.
8965         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
8966         Reported by Ben Pfaff <blp@gnu.org>.
8967
8968 2007-10-06  Bruno Haible  <bruno@clisp.org>
8969
8970         * modules/freopen-tests: New file.
8971         * tests/test-freopen.c: New file.
8972
8973         * modules/fopen-tests: New file.
8974         * tests/test-fopen.c: New file.
8975
8976         * modules/fopen: New file.
8977         * lib/fopen.c: New file.
8978         * m4/fopen.m4: New file.
8979         * modules/freopen: New file.
8980         * lib/freopen.c: New file.
8981         * m4/freopen.m4: New file.
8982         * lib/stdio.in.h (fopen, freopen): New declarations.
8983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
8984         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
8985         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
8986         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
8987         * doc/functions/fopen.texi: Mention the 'fopen' module.
8988         * doc/functions/freopen.texi: Mention the 'freopen' module.
8989
8990 2007-10-06  Bruno Haible  <bruno@clisp.org>
8991
8992         * modules/open-tests: New file.
8993         * tests/test-open.c: New file.
8994
8995         * modules/open: New file.
8996         * lib/open.c: New file.
8997         * m4/open.m4: New file.
8998         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
8999         lib/open.c does.
9000         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
9001         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
9002         macros.
9003         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
9004         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
9005         REPLACE_OPEN.
9006         * doc/functions/open.texi: Mention the 'open' module.
9007
9008 2007-10-04  Bruno Haible  <bruno@clisp.org>
9009
9010         * modules/ceill-tests: New file.
9011         * tests/test-ceill.c: New file.
9012
9013         * modules/ceill: New file.
9014         * lib/ceill.c: Replace entire file.
9015         * m4/ceill.m4: New file.
9016         * lib/math.in.h (ceill): Replace declaration.
9017         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
9018         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
9019         * doc/functions/ceill.texi: Mention the 'ceill' module.
9020         * modules/mathl (Files): Remove lib/ceill.c.
9021         (Depends-on): Add ceill.
9022
9023 2007-10-04  Bruno Haible  <bruno@clisp.org>
9024
9025         * modules/ceilf-tests: New file.
9026         * tests/test-ceilf.c: New file.
9027
9028         * modules/ceilf: New file.
9029         * lib/ceil.c: New file.
9030         * lib/ceilf.c: New file.
9031         * m4/ceilf.m4: New file.
9032         * lib/math.in.h (ceilf): New declaration.
9033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
9034         HAVE_DECL_CEILF.
9035         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
9036         HAVE_DECL_CEILF.
9037         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
9038
9039 2007-10-04  Bruno Haible  <bruno@clisp.org>
9040
9041         * modules/floorl-tests: New file.
9042         * tests/test-floorl.c: New file.
9043
9044         * modules/floorl: New file.
9045         * lib/floorl.c: Replace entire file.
9046         * m4/floorl.m4: New file.
9047         * lib/math.in.h (floorl): Replace declaration.
9048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
9049         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
9050         * doc/functions/floorl.texi: Mention the 'floorl' module.
9051         * modules/mathl (Files): Remove lib/floorl.c.
9052         (Depends-on): Add floorl.
9053
9054 2007-10-04  Bruno Haible  <bruno@clisp.org>
9055
9056         * modules/floorf-tests: New file.
9057         * tests/test-floorf.c: New file.
9058
9059         * modules/floorf: New file.
9060         * lib/floor.c: New file.
9061         * lib/floorf.c: New file.
9062         * m4/floorf.m4: New file.
9063         * lib/math.in.h (floorf): New declaration.
9064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
9065         HAVE_DECL_FLOORF.
9066         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
9067         HAVE_DECL_FLOORF.
9068         * doc/functions/floorf.texi: Mention the 'floorf' module.
9069
9070 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
9071             Bruno Haible  <bruno@clisp.org>
9072
9073         Advertise for the Git server instead of the CVS server.
9074         * doc/gnulib-intro.texi (Steady Development): Mention the Git
9075         repository instead of the CVS one.
9076         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
9077         about all VCS systems generically.
9078         * doc/gnulib.texi (Introduction): Capitalize `Git'.
9079
9080 2007-10-04  Bruno Haible  <bruno@clisp.org>
9081
9082         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
9083         means.
9084         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
9085
9086 2007-10-04  Bruno Haible  <bruno@clisp.org>
9087
9088         * modules/truncl-tests: New file.
9089         * tests/test-truncl.c: New file.
9090
9091         * modules/truncl: New file.
9092         * lib/truncl.c: New file.
9093         * m4/truncl.m4: New file.
9094         * lib/math.in.h (truncl): New declaration.
9095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
9096         HAVE_DECL_TRUNCL.
9097         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
9098         HAVE_DECL_TRUNCL.
9099         * doc/functions/truncl.texi: Mention the 'truncl' module.
9100
9101 2007-10-04  Bruno Haible  <bruno@clisp.org>
9102
9103         * modules/truncf-tests: New file.
9104         * tests/test-truncf.c: New file.
9105
9106         * modules/truncf: New file.
9107         * lib/trunc.c: Make paramerizable through USE_* macros.
9108         * lib/truncf.c: New file.
9109         * m4/truncf.m4: New file.
9110         * lib/math.in.h (truncf): New declaration.
9111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
9112         HAVE_DECL_TRUNCF.
9113         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
9114         HAVE_DECL_TRUNCF.
9115         * doc/functions/truncf.texi: Mention the 'truncf' module.
9116
9117 2007-10-03  Bruno Haible  <bruno@clisp.org>
9118
9119         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
9120         augmentation also for tests modules.
9121         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
9122         * modules/atexit-tests (Makefile.am): Likewise.
9123         * modules/binary-io-tests (Makefile.am): Likewise.
9124         * modules/c-strcase-tests (Makefile.am): Likewise.
9125         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
9126         * modules/canonicalize-tests (Makefile.am): Likewise.
9127         * modules/closein-tests (Makefile.am): Likewise.
9128         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9129         * modules/freadahead-tests (Makefile.am): Likewise.
9130         * modules/fseek-tests (Makefile.am): Likewise.
9131         * modules/fseeko-tests (Makefile.am): Likewise.
9132         * modules/ftell-tests (Makefile.am): Likewise.
9133         * modules/ftello-tests (Makefile.am): Likewise.
9134         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
9135         * modules/isnanl-tests (Makefile.am): Likewise.
9136         * modules/lseek-tests (Makefile.am): Likewise.
9137         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9138         * modules/mbscasestr-tests (Makefile.am): Likewise.
9139         * modules/mbschr-tests (Makefile.am): Likewise.
9140         * modules/mbscspn-tests (Makefile.am): Likewise.
9141         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9142         * modules/mbspbrk-tests (Makefile.am): Likewise.
9143         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9144         * modules/mbsrchr-tests (Makefile.am): Likewise.
9145         * modules/mbsspn-tests (Makefile.am): Likewise.
9146         * modules/mbsstr-tests (Makefile.am): Likewise.
9147         * modules/printf-posix-tests (Makefile.am): Likewise.
9148         * modules/snprintf-posix-tests (Makefile.am): Likewise.
9149         * modules/sprintf-posix-tests (Makefile.am): Likewise.
9150         * modules/tsearch-tests (Makefile.am): Likewise.
9151         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9152         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9153         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9154         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9155         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9156         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9157         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9158         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9159         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
9160         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
9161         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9162         * modules/xstrtol-tests (Makefile.am): Likewise.
9163         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9164         * modules/yesno-tests (Makefile.am): Likewise.
9165
9166 2007-10-03  Bruno Haible  <bruno@clisp.org>
9167
9168         * modules/trunc-tests: New file.
9169         * tests/test-trunc.c: New file.
9170
9171         * modules/trunc: New file.
9172         * lib/trunc.c: New file.
9173         * m4/trunc.m4: New file.
9174         * lib/math.in.h (trunc): New declaration.
9175         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
9176         HAVE_DECL_TRUNC.
9177         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
9178         HAVE_DECL_TRUNC.
9179         * doc/functions/trunc.texi: Mention the 'trunc' module.
9180
9181 2007-10-03  Bruno Haible  <bruno@clisp.org>
9182
9183         * tests/test-fpending.c: New file, mostly copied
9184         from coreutils/lib/t-fpending.c.
9185         * modules/fpending-tests: New file.
9186
9187 2007-10-03  Bruno Haible  <bruno@clisp.org>
9188
9189         Port the stdio extensions to QNX (untested).
9190         * lib/fseterr.c (fseterr): Add support for QNX.
9191         * lib/fbufmode.c (fbufmode): Likewise.
9192         * lib/freadable.c (freadable): Likewise.
9193         * lib/fwritable.c (fwritable): Likewise.
9194         * lib/freading.c (freading): Likewise.
9195         * lib/fwriting.c (fwriting): Likewise.
9196         * lib/freadahead.c (freadahed): Likewise.
9197         * lib/fpurge.c (fpurge): Likewise.
9198         * lib/fseeko.c (rpl_fseeko): Likewise.
9199
9200 2007-10-03  Bruno Haible  <bruno@clisp.org>
9201             Jim Meyering  <jim@meyering.net>
9202             Eric Blake  <ebb9@byu.net>
9203
9204         * doc/relocatable.texi: Use @command instead of @program.
9205
9206 2007-10-02  Jim Meyering  <jim@meyering.net>
9207
9208         Perform one more "_.h" -> ".in.h" substitution.
9209         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
9210         instead of unistd_.h here, too.
9211
9212 2007-10-01  Bruno Haible  <bruno@clisp.org>
9213
9214         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
9215         Needed for the alloca-opt module.
9216
9217 2007-09-30  Bruno Haible  <bruno@clisp.org>
9218
9219         * lib/alloca.in.h: Renamed from lib/alloca_.h.
9220         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
9221         alloca_.h.
9222         * lib/argz.in.h: Renamed from lib/argz_.h.
9223         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
9224         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
9225         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
9226         byteswap_.h.
9227         * lib/dirent.in.h: Renamed from lib/dirent_.h.
9228         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
9229         dirent_.h.
9230         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
9231         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
9232         fcntl_.h.
9233         * lib/float.in.h: Renamed from lib/float_.h.
9234         * modules/float (Files, Makefile.am): Use float.in.h instead of
9235         float_.h.
9236         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
9237         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
9238         fnmatch_.h.
9239         * lib/getopt.in.h: Renamed from lib/getopt_.h.
9240         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
9241         getopt_.h.
9242         * lib/glob.in.h: Renamed from lib/glob_.h.
9243         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
9244         * lib/iconv.in.h: Renamed from lib/iconv_.h.
9245         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
9246         iconv_.h.
9247         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
9248         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
9249         inttypes_.h.
9250         * lib/locale.in.h: Renamed from lib/locale_.h.
9251         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
9252         locale_.h.
9253         * lib/math.in.h: Renamed from lib/math_.h.
9254         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
9255         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
9256         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
9257         of netinet_in_.h. Add dependency.
9258         * lib/poll.in.h: Renamed from lib/poll_.h.
9259         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
9260         * lib/search.in.h: Renamed from lib/search_.h.
9261         * modules/search (Files, Makefile.am): Use search.in.h instead of
9262         search_.h.
9263         * lib/signal.in.h: Renamed from lib/signal_.h.
9264         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
9265         _signal.h.
9266         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
9267         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
9268         stdbool_.h.
9269         * lib/stdint.in.h: Renamed from lib/stdint_.h.
9270         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
9271         stdint_.h.
9272         * lib/stdio.in.h: Renamed from lib/stdio_.h.
9273         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
9274         stdio_.h.
9275         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
9276         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
9277         stdlib_.h.
9278         * lib/string.in.h: Renamed from lib/string_.h.
9279         * modules/string (Files, Makefile.am): Use string.in.h instead of
9280         string_.h.
9281         * doc/gnulib-tool.texi (Initial import): Update.
9282         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
9283         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
9284         of sys_select_.h. Add dependency.
9285         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
9286         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
9287         of sys_socket_.h.
9288         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
9289         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
9290         sys_stat_.h.
9291         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
9292         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
9293         sys_time_.h.
9294         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
9295         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
9296         sysexits_.h.
9297         * lib/time.in.h: Renamed from lib/time_.h.
9298         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
9299         * lib/unistd.in.h: Renamed from lib/unistd_.h.
9300         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
9301         unistd_.h.
9302         * lib/wchar.in.h: Renamed from lib/wchar_.h.
9303         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
9304         wchar_.h.
9305         * lib/wctype.in.h: Renamed from lib/wctype_.h.
9306         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
9307         wctype_.h.
9308         * build-aux/bootstrap (slurp): Update.
9309         * lib/.cppi-disable: Update.
9310
9311 2007-09-30  Bruno Haible  <bruno@clisp.org>
9312
9313         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
9314         Needed on BeOS.
9315
9316 2007-09-30  Bruno Haible  <bruno@clisp.org>
9317
9318         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
9319
9320 2007-09-29  Bruno Haible  <bruno@clisp.org>
9321
9322         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
9323
9324 2007-09-29  Bruno Haible  <bruno@clisp.org>
9325
9326         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
9327         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
9328         * build-aux/install-reloc: Compile also areadlink.c.
9329         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
9330
9331 2007-09-29  Bruno Haible  <bruno@clisp.org>
9332
9333         * gnulib-tool (func_emit_initmacro_done): Indentation.
9334
9335 2007-09-29  Bruno Haible  <bruno@clisp.org>
9336
9337         * README: Add CVS checkout update instructions.
9338         Info from Bob Proulx <bob@proulx.com>.
9339
9340 2007-09-28  Eric Blake  <ebb9@byu.net>
9341
9342         Provide move-if-change.
9343         * build-aux/move-if-change: New file, based on best practice
9344         rather than any canonical upstream location.
9345
9346 2007-09-28  Jim Meyering  <jim@meyering.net>
9347
9348         Fix canonicalize loop-detection corner case.
9349         Do not attempt to stat the symlink values stored via seen_triple.
9350         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
9351         on linux-2.6.18, (but not 2.6.22).
9352         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
9353         triple_compare.  The former compares dev,ino,filename, while the latter
9354         would actually stat dirname(filename) when dev and ino were equal.
9355         * lib/hash-triple.c: Install <string.h>.
9356         (STREQ): Define.
9357         (triple_compare_ino_str): New function.
9358         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
9359
9360 2007-09-28  Eric Blake  <ebb9@byu.net>
9361
9362         Enforce that AC_REPLACE_FUNCS files exist.
9363         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
9364         override check for typos.
9365
9366         Fix test-closein on Solaris 10.
9367         * tests/test-closein.c (main): Don't assume stdin can be inherited
9368         closed on all systems.
9369         * tests/test-closein.sh: Likewise.
9370         Reported by Piotr Tarnowski.
9371
9372 2007-09-28  Jim Meyering  <jim@meyering.net>
9373
9374         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
9375
9376 2007-09-27  Jim Meyering  <jim@meyering.net>
9377
9378         canonicalize: Avoid a false-positive cycle failure.
9379         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
9380         Sort.  Remove cycle-check.
9381         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
9382         not cycle-check.h.
9383         (seen_triple): New function.
9384         (canonicalize_filename_mode): Use it instead of cycle-check.
9385         * tests/test-canonicalize.c: Add a test for this bug.
9386         * tests/test-canonicalize.sh: Set up and run the test.
9387
9388         New module, file-set, from coreutils.
9389         * modules/file-set: Define it.
9390         * lib/file-set.c, lib/file-set.h: Implement.
9391
9392         New module, hash-triple, from coreutils.
9393         * modules/hash-triple: Define it.
9394         * lib/hash-triple.c, lib/hash-triple.h: Implement.
9395
9396 2007-09-25  Eric Blake  <ebb9@byu.net>
9397
9398         Fix strerror on Interix.
9399         * lib/string_.h (strerror): Declare replacement.
9400         * doc/functions/strerror.texi (strerror): Document the Interix
9401         shortcoming.
9402         * modules/string (Makefile.am): Support new hooks.
9403         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
9404         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
9405         gl_FUNC_STRERROR_SEPARATE.
9406         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
9407         * lib/strerror.c (rpl_strerror): Provide replacement.
9408         * modules/strerror (Depends-on): Add string.
9409         (configure.ac): Detect use of module.
9410         * tests/test-strerror.c: New file.
9411         * modules/strerror-tests: New test module.
9412         * modules/argp (Depends-on): Add strerror.
9413         * modules/error (Depends-on): Likewise.
9414         Reported by Martin Koeppe.
9415
9416 2007-09-24  Bruno Haible  <bruno@clisp.org>
9417
9418         * README: Update git instructions.
9419
9420 2007-09-24  Eric Blake  <ebb9@byu.net>
9421
9422         Revert fpending breakage from 2007-09-08.
9423         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
9424         __fpending.c.
9425
9426 2007-09-24  Jim Meyering  <jim@meyering.net>
9427
9428         filenamecat.c: Add a test.
9429         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
9430         showing how the function works when DIR is the empty string.
9431
9432 2007-09-21  Simon Josefsson  <simon@josefsson.org>
9433
9434         * tests/test-canonicalize.sh: Turn on executable bit.
9435
9436 2007-09-19  Eric Blake  <ebb9@byu.net>
9437
9438         * README: Update CVS instructions.
9439
9440 2007-09-18  Bruno Haible  <bruno@clisp.org>
9441
9442         * modules/areadlink: New file.
9443         * lib/areadlink.h (areadlink): New declaration.
9444         * lib/areadlink.c: New file, based on lib/xreadlink.c.
9445
9446 2007-09-17  Jim Meyering  <jim@meyering.net>
9447
9448         * lib/savewd.c (ESTALE) [!defined]: Define.
9449         Reported to be required on Interix by Martin Koeppe.
9450
9451 2007-09-17  Bruno Haible  <bruno@clisp.org>
9452
9453         * gnulib-tool (func_version): Use $version.
9454
9455 2007-09-16  Bruno Haible  <bruno@clisp.org>
9456
9457         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
9458         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
9459         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
9460         Reported by Greg Schafer <gschafer@zip.com.au>.
9461
9462 2007-09-15  Bruno Haible  <bruno@clisp.org>
9463
9464         * gnulib-tool (sed): Try a little harder to make bash understand the
9465         alias.
9466         Reported by Bruce Korb <bruce.korb@gmail.com>.
9467
9468 2007-09-13  Eric Blake  <ebb9@byu.net>
9469
9470         * ChangeLog: Remove conflict markers.
9471
9472 2007-09-13  Simon Josefsson  <simon@josefsson.org>
9473
9474         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
9475         Reported by Bruno Haible <bruno@clisp.org>.
9476
9477 2007-09-12  Bruno Haible  <bruno@clisp.org>
9478
9479         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
9480         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
9481         is not defined.
9482
9483 2007-09-12  Eric Blake  <ebb9@byu.net>
9484
9485         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
9486         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
9487         Autoconf definition.
9488         * modules/euidaccess (Depends-on): Add extensions, for
9489         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
9490         * modules/fnmatch (Depends-on): Likewise.
9491         * modules/getaddrinfo (Depends-on): Likewise.
9492         * modules/getdelim (Depends-on): Likewise.
9493         * modules/getline (Depends-on): Likewise.
9494         * modules/getsubopt (Depends-on): Likewise.
9495         * modules/gettext (Depends-on): Likewise.
9496         * modules/group-member (Depends-on): Likewise.
9497         * modules/mbchar (Depends-on): Likewise.
9498         * modules/memmem (Depends-on): Likewise.
9499         * modules/mempcpy (Depends-on): Likewise.
9500         * modules/memrchr (Depends-on): Likewise.
9501         * modules/pagealign_alloc (Depends-on): Likewise.
9502         * modules/readutmp (Depends-on): Likewise.
9503         * modules/stpcpy (Depends-on): Likewise.
9504         * modules/stpncpy (Depends-on): Likewise.
9505         * modules/strchrnul (Depends-on): Likewise.
9506         * modules/strndup (Depends-on): Likewise.
9507         * modules/strsep (Depends-on): Likewise.
9508         * modules/strverscmp (Depends-on): Likewise.
9509         * modules/vasprintf (Depends-on): Likewise.
9510         * modules/wcwidth (Depends-on): Likewise.
9511         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
9512         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
9513         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
9514         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
9515         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9516         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9517         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
9518         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
9519         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
9520         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
9521         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9522         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
9523         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
9524         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9525         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
9526         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9527         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9528         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
9529         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9530         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
9531         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
9532         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
9533         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
9534         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
9535         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
9536         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9537         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
9538         so that lock.m4 can be used in gettext without extensions module.
9539
9540 2007-09-11  Bruno Haible  <bruno@clisp.org>
9541
9542         * m4/isc-posix.m4: Remove file.
9543         Suggested by Eric Blake.
9544
9545 2007-09-11  Eric Blake  <ebb9@byu.net>
9546
9547         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
9548
9549 2007-09-10  Bruno Haible  <bruno@clisp.org>
9550
9551         * posix-modules: Fix typo in error message.
9552         Reported by Matt <mkraai@beckman.com>.
9553
9554 2007-09-09  Bruno Haible  <bruno@clisp.org>
9555
9556         * doc/functions/getdelim.texi: Update list of platforms lacking the
9557         function.
9558         * doc/functions/getline.texi: Likewise.
9559
9560 2007-09-09  Jim Meyering  <jim@meyering.net>
9561
9562         * lib/hash.c (hash_initialize): Detect calloc failure.
9563         Reported by Bruno Haible.
9564
9565 2007-09-09  Bruno Haible  <bruno@clisp.org>
9566
9567         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
9568         malloc or realloc fails.
9569
9570 2007-09-09  Bruno Haible  <bruno@clisp.org>
9571
9572         * modules/getcwd (Depends-on): Add malloc-posix.
9573         * modules/glob (Depends-on): Likewise.
9574         * modules/putenv (Depends-on): Likewise.
9575         * modules/strdup (Depends-on): Likewise.
9576         * modules/getdelim (Depends-on): Add realloc-posix.
9577         * modules/read-file (Depends-on): Likewise.
9578
9579 2007-09-09  Bruno Haible  <bruno@clisp.org>
9580
9581         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
9582         (gl_FUNC_MALLOC_POSIX): Require it.
9583         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
9584         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
9585         * modules/realloc (Files): Add m4/malloc.m4.
9586         * modules/calloc (Files): Likewise.
9587
9588 2007-09-09  Bruno Haible  <bruno@clisp.org>
9589
9590         * modules/malloc-posix: New file.
9591         * modules/malloc (Depends-on): Add malloc-posix.
9592         * lib/malloc.c: Include errno.h.
9593         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
9594         and a POSIX-compatible malloc into a single function. Set ENOMEM
9595         when returning NULL.
9596         * m4/malloc.m4: New file.
9597         * doc/functions/malloc.texi: Mention the malloc-posix module.
9598         * lib/stdlib_.h (malloc): New declaration.
9599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9600         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
9601         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
9602         and HAVE_MALLOC_POSIX.
9603
9604 2007-09-09  Bruno Haible  <bruno@clisp.org>
9605
9606         * modules/realloc-posix: New file.
9607         * modules/realloc (Depends-on): Add realloc-posix.
9608         * lib/realloc.c: Include errno.h.
9609         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
9610         and a POSIX-compatible realloc into a single function. Set ENOMEM
9611         when returning NULL.
9612         * m4/realloc.m4: New file.
9613         * doc/functions/realloc.texi: Mention the realloc-posix module.
9614         * lib/stdlib_.h (realloc): New declaration.
9615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9616         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
9617         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
9618         and HAVE_REALLOC_POSIX.
9619
9620 2007-09-09  Bruno Haible  <bruno@clisp.org>
9621
9622         * modules/calloc-posix: New file.
9623         * modules/calloc (Depends-on): Add calloc-posix.
9624         * lib/calloc.c: Include errno.h.
9625         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
9626         and a POSIX-compatible calloc into a single function. Set ENOMEM
9627         when returning NULL.
9628         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
9629         * doc/functions/calloc.texi: Mention the calloc-posix module.
9630         * lib/stdlib_.h (calloc): New declaration.
9631         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9632         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
9633         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
9634         and HAVE_CALLOC_POSIX.
9635
9636 2007-09-09  Bruno Haible  <bruno@clisp.org>
9637
9638         Allow for modules to show an arbitrary notice.
9639         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
9640         * gnulib-tool: New option --extract-notice.
9641         (func_usage): Document it.
9642         (sed_extract_prog): Update.
9643         (func_get_notice): New function.
9644         (func_modules_notice): New function.
9645         (func_import, func_create_testdir): Invoke it.
9646         Suggested by Jim Meyering.
9647
9648 2007-09-09  Bruno Haible  <bruno@clisp.org>
9649
9650         * gnulib-tool: New options --verbose, --quiet.
9651         (func_usage): Document them.
9652         (verbose): New variable.
9653         (func_execute_command): New function.
9654         (func_import): Don't show the module list and the file list if
9655         $verbose < 0.
9656         (func_create_testdir): Likewise. Use func_execute_command.
9657         (func_create_megatestdir): Use func_execute_command.
9658
9659 2007-09-08  Bruno Haible  <bruno@clisp.org>
9660
9661         * gnulib-tool (func_import): Prefer rsync over wget when available,
9662         for fetching the PO files.
9663
9664 2007-09-08  Bruno Haible  <bruno@clisp.org>
9665
9666         * posix-modules: New file. Portions copied from gnulib-tool.
9667         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
9668
9669 2007-09-08  Jim Meyering  <jim@meyering.net>
9670
9671         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
9672         * lib/fpending.h: Rename from __fpending.h.
9673         * lib/fpending.c: Rename from __fpending.c.
9674         Include "fpending.h", not "__fpending.h".
9675         * lib/__fpending.h, lib/__fpending.c: Remove files.
9676         * modules/fpending (Files): Reflect new file names.
9677         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
9678
9679 2007-09-08  Bruno Haible  <bruno@clisp.org>
9680
9681         * m4/inttypes-h.m4: Remove stub file.
9682
9683 2007-09-07  Simon Josefsson  <simon@josefsson.org>
9684
9685         * doc/headers/stdint.texi: Discuss #include_next issue.
9686
9687 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
9688
9689         * build-aux/bootstrap: Remove obsolete comment about wget --help.
9690
9691 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9692
9693         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
9694         in variable name.
9695
9696 2007-09-03  Jim Meyering  <jim@meyering.net>
9697
9698         New module: git-version-gen.
9699         * modules/git-version-gen: New file.
9700
9701         Import changes from coreutils for bootstrap script.
9702
9703         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
9704
9705         bootstrap: uses rsync to download the .po files
9706         * build-aux/bootstrap (po_download_command_format): New global.
9707         (download_po_files): Use rsync.
9708         (update_po_files): Don't remove .po files after download,
9709         so future rsync runs can take advantage of the copies.
9710
9711         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
9712
9713         Solve the unnecessary-.po-file-regeneration problem once and for all.
9714         * build-aux/bootstrap (download_po_files): New function, renamed from
9715         get_translations.  Now, downloads, but doesn't update LINGUAS.
9716         (update_po_files): New function.
9717
9718         bootstrap: Ignore more.
9719         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
9720         uniwidth to e.g., lib/.gitignore.
9721         (slurp): Handle the sys_stat_.h -> sys mapping, too.
9722
9723         * build-aux/bootstrap: New setting: vc_ignore.
9724         (insert_sorted_if_absent): Create $file if absent.
9725         Adapt to new, possibly empty, list: $vc_ignore.
9726
9727         bootstrap: generate more ignorable names
9728         * build-aux/bootstrap (slurp): When generating ignorable names,
9729         also map .sin to .sed, .gperf to .c, and .y to .c.
9730
9731 2007-09-03  Jim Meyering  <jim@meyering.net>
9732
9733         * build-aux/git-version-gen: New file, from coreutils.  For details, see
9734         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
9735
9736 2007-09-02  Bruno Haible  <bruno@clisp.org>
9737
9738         Fix mis-recognition of 'mcs' on QNX 6.
9739         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
9740         output contains the string "Mono".
9741         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
9742         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
9743
9744 2007-09-01  Bruno Haible  <bruno@clisp.org>
9745
9746         Fix collision between uniwidth/* and linebreak modules.
9747         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
9748         u32_width): Remove declarations.
9749         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
9750         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
9751         streq3, streq2, streq1, streq0): Remove functions.
9752         (STREQ): Remove macro.
9753         (is_cjk_encoding): Remove function.
9754         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
9755         (uc_width, u8_width, u16_width, u32_width): Remove functions.
9756         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
9757         * NEWS: Document the change.
9758
9759 2007-09-01  Bruno Haible  <bruno@clisp.org>
9760
9761         * lib/streq.h: Add double-inclusion guard.
9762
9763 2007-09-01  Karl Berry  <karl@gnu.org>
9764
9765         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
9766
9767 2007-08-28  Jim Meyering  <jim@meyering.net>
9768
9769         Rename mreadlink_with_size to areadlink_with_size.
9770         * NEWS: Document the change.
9771         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
9772         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
9773         * lib/mreadlink.h: Rename this to...
9774         * lib/areadlink.h: ...this.
9775         * modules/mreadlink-with-size: Rename this to...
9776         * modules/areadlink-with-size: ...this.
9777         * lib/canonicalize.c: Reflect the renaming.
9778         * modules/canonicalize: Likewise.
9779
9780 2007-08-26  Bruno Haible  <bruno@clisp.org>
9781
9782         * gnulib-tool (func_import): When deciding which files to remove,
9783         consider also dangling symbolic links.
9784         Reported by Eric Blake.
9785
9786 2007-08-26  Bruno Haible  <bruno@clisp.org>
9787
9788         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
9789
9790 2007-08-23  Simon Josefsson  <simon@josefsson.org>
9791
9792         * lib/readline.c: Don't include getline.h, the prototype is now
9793         found in stdio.h.
9794
9795 2007-08-23  Jim Meyering  <jim@meyering.net>
9796
9797         Getdelim touchup.
9798         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
9799         around the funlockfile call, since funlockfile never sets errno.
9800         Don't set errno upon failed realloc.
9801
9802 2007-08-22  Eric Blake  <ebb9@byu.net>
9803
9804         Getline touchups.
9805         * lib/getdelim.c (getdelim): Revert regression that required *n to
9806         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
9807         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
9808         getdelim, rather than whether implementation is missing.
9809         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
9810         * lib/stdio_.h (getline): Also declare if replacement is
9811         required.
9812         * doc/functions/getdelim.texi: New file.
9813         * doc/functions/getline.texi: Likewise.
9814         * doc/gnulib.texi (Function Substitutes): Add new files.
9815         Reported by Bruno Haible.
9816
9817 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
9818
9819         * users.txt: Add Guile.
9820
9821 2007-08-22  Eric Blake  <ebb9@byu.net>
9822
9823         * tests/test-getdelim.c (main): Use remove, not unlink.
9824         * tests/test-getline.c (main): Likewise.
9825
9826         Move getline and getdelim into stdio.h, per POSIX 200x.
9827         * modules/getline (Files): Remove getline.h.
9828         (Depends-on): Add stdio.
9829         (configure.ac): Add module indicator.
9830         * modules/getdelim (Files): Remove getdelim.h.
9831         (Depends-on): Add stdio.
9832         (configure.ac): Add module indicator.
9833         * modules/stdio (Makefile.am): Work with new indicators.
9834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9835         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
9836         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9837         * lib/getdelim.h: Delete.
9838         * lib/getline.h: Delete.
9839         * lib/stdio_.h (getdelim, getline): Declare.
9840         * modules/getdelim-tests: New module.
9841         * modules/getline-tests: Likewise.
9842         * tests/test-getdelim.c: New file.
9843         * tests/test-getline.c: Likewise.
9844         * NEWS: Document the change.
9845         * lib/getline.c: Update choice of header.
9846         * lib/csharpcomp.c: Likewise.
9847         * lib/getpass.c: Likewise.
9848         * lib/javacomp.c: Likewise.
9849         * lib/javaversion.c: Likewise.
9850         * lib/yesno.c: Likewise.
9851         * lib/getdelim.c: Likewise.
9852         (getdelim): Set errno on failure, and avoid memory leak.
9853
9854 2007-08-19  Bruno Haible  <bruno@clisp.org>
9855
9856         * modules/closein (Depends-on): Add freadahead.
9857         * lib/closein.c: Include freadahead.h.
9858         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
9859         is zero.
9860
9861 2007-08-19  Bruno Haible  <bruno@clisp.org>
9862
9863         * modules/freadahead-tests: New file.
9864         * tests/test-freadahead.sh: New file.
9865         * tests/test-freadahead.c: New file.
9866
9867         * modules/freadahead: New file.
9868         * lib/freadahead.h: New file.
9869         * lib/freadahead.c: New file.
9870         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
9871         fbufmode, fpurge, freadable, fwritable.
9872
9873 2007-08-19  Eric Blake  <ebb9@byu.net>
9874
9875         Test yesno in combination with closein.
9876         * lib/yesno.c (yesno): Document use of stdin.
9877         * modules/yesno-tests (Files): New module.
9878         * tests/test-yesno.c (main): New file.
9879         * tests/test-yesno.sh: Likewise.
9880
9881 2007-08-19  Bruno Haible  <bruno@clisp.org>
9882
9883         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
9884         * lib/fseeko.c (rpl_fseeko): Likewise.
9885         * lib/fseterr.c (fseterr): Likewise.
9886
9887 2007-08-19  Bruno Haible  <bruno@clisp.org>
9888
9889         * tests/test-lseek.c (main): Disable a test for BeOS.
9890         * doc/functions/lseek.texi: Document the BeOS bug.
9891
9892 2007-08-19  Bruno Haible  <bruno@clisp.org>
9893             Eric Blake  <ebb9@byu.net>
9894
9895         * lib/lseek.c: Include <sys/stat.h>.
9896         (rpl_lseek): Add workaround code also for Unix platforms.
9897         Needed for BeOS.
9898         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
9899         * doc/functions/lseek.texi: Document BeOS definiency.
9900
9901 2007-08-18  Bruno Haible  <bruno@clisp.org>
9902
9903         * modules/fstrcmp-tests: New file.
9904         * tests/test-fstrcmp.c: New file.
9905
9906 2007-08-18  Bruno Haible  <bruno@clisp.org>
9907
9908         * modules/fstrcmp: New file, from GNU gettext with modifications.
9909         * lib/fstrcmp.h: New file, from GNU gettext.
9910         * lib/fstrcmp.c: New file, from GNU gettext.
9911         * MODULES.html.sh (String handling): Add fstrcmp.
9912
9913 2007-08-18  Bruno Haible  <bruno@clisp.org>
9914
9915         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
9916         'bool'.
9917         (diag, compareseq): Remove const from the ctxt argument.
9918         (USE_HEURISTIC): Undefine at the end.
9919
9920 2007-08-18  Jim Meyering  <jim@meyering.net>
9921
9922         New file: lib/idcache.h
9923         * NEWS: Mention the addition.
9924         * modules/idcache (Files): Add lib/idcache.h
9925         * lib/idcache.c: Include "idcache.h".
9926         Don't include <sys/types.h>.
9927         Add a FIXME comment.
9928         Move file-scoped "static" declarations to the top.
9929         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
9930
9931 2007-08-17  Bruno Haible  <bruno@clisp.org>
9932         and Paul Eggert  <eggert@cs.ucla.edu>
9933
9934         * MODULES.html.sh: Add diffseq.
9935         * modules/diffseq: New file.
9936         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
9937         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
9938
9939 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
9940
9941         Import changes from coreutils for bootstrap script.
9942
9943         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
9944
9945         * build-aux/bootstrap (slurp): Work even in environments where
9946         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
9947         current code does not slurp files whose names start with ".", and
9948         this looks like it might be a troublesome area.
9949
9950         2007-07-11  Jim Meyering  <jim@meyering.net>
9951
9952         If there's a GPL vN copyright comment, require that N == 3.
9953
9954         2007-07-08  Jim Meyering  <jim@meyering.net>
9955
9956         Run the coreutils-specific code only if tests/Makefile.am.in exists.
9957         * build-aux/bootstrap (mam_template): Move definition out of loop.
9958
9959         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
9960
9961         * build-aux/bootstrap (symlink_to_dir): Rename function from
9962         symlink_to_gnulib.  Add a directory parameter.  Update all
9963         callers.
9964         (cp_mark_as_generated): Also check for -- and link to -- files in
9965         gl/.
9966
9967         2007-07-08  Jim Meyering  <jim@meyering.net>
9968
9969         Adapt to deeper hierarchy in gnulib.
9970         * build-aux/bootstrap (symlink_to_dir): If the destination
9971         directory doesn't exist, create it. This is required at least for
9972         "lib/uniwidth/cjk.h".
9973
9974         2007-05-15  Jim Meyering  <jim@meyering.net>
9975
9976         * build-aux/bootstrap: Now that generated Makefile.am files
9977         are no longer under version control, they must be created at
9978         bootstrap time.
9979
9980 2007-08-14  Ben Pfaff  <blp@gnu.org>
9981
9982         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
9983
9984 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
9985
9986         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
9987         given the changes below.
9988         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
9989         even on hosts that have padding bits beyond the supported 64.
9990
9991 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9992
9993         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
9994         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
9995         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
9996         depends on it.
9997         (xstrtol_error): Remove.
9998         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
9999         but with a different signature.
10000         (ATTRIBUTE_NORETURN, __attribute__): New macros.
10001         * lib/xstrtol-error.c: Include exitfail.h.
10002         (xstrtol_fatal): New function, with a different signature from the
10003         old xstrtol_error, so that the caller need not worry about passing
10004         in an exit status, or about storage management of the option argument.
10005         (xstrtol_error): Now a static function.  Redo signature to
10006         implement xstrtol_fatal.  Output the correct number of hyphens in
10007         front of the option so that the caller need not worry about
10008         storage management.
10009         (N_): New macro.
10010         (_): Remove; not used now.
10011         * modules/xstrtol: Depend on getopt.
10012         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
10013         of old STRTOL_FATAL_ERROR macro.
10014         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
10015         of test program.
10016         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
10017         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
10018
10019 2007-08-08  Eric Blake  <ebb9@byu.net>
10020
10021         * lib/xstrtol-error.c: Add missing include.
10022
10023         Move xstrtol messages into gnulib domain, when --pobase is used.
10024         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
10025         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
10026         * modules/xstrtol (Files): Distribute new file.
10027         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
10028         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
10029         * tests/test-xstrtol.c: ...into new file.
10030         * tests/test-xstrtoul.c: Also test xstrtoul.
10031         * tests/test-xstrtoimax.c: Also test xstrtoimax.
10032         * tests/test-xstrtoumax.c: Also test xstrtoumax.
10033         * tests/test-xstrtol.sh: Drive the tests.
10034         * tests/test-xstrtoimax.sh: Likewise.
10035         * tests/test-xstrtoumax.sh: Likewise.
10036         * modules/xstrtol-tests: New module.
10037         * modules/xstrtoimax-tests: Likewise.
10038         * modules/xstrtoumax-tests: Likewise.
10039
10040 2007-08-08  Jim Meyering  <jim@meyering.net>
10041
10042         New function: mfile_name_concat.
10043         * lib/filenamecat.c (mfile_name_concat): New function, just like
10044         file_name_concat, but return NULL upon failure rather than exiting
10045         with a diagnostic.
10046         * lib/filenamecat.h: Declare it.
10047
10048 2007-08-07  Bruno Haible  <bruno@clisp.org>
10049
10050         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
10051         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
10052         warning from gcc.
10053         Reported by Eric Blake.
10054
10055 2007-08-07  Simon Josefsson  <simon@josefsson.org>
10056
10057         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
10058         * modules/crypto/arcfour (License): Likewise.
10059         * modules/crypto/des-tests (License): Likewise.
10060         * modules/crypto/gc-arctwo-tests (License): Likewise.
10061         * modules/crypto/gc-des-tests (License): Likewise.
10062         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
10063         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
10064         * modules/crypto/gc-md2-tests (License): Likewise.
10065         * modules/crypto/gc-md4-tests (License): Likewise.
10066         * modules/crypto/gc-md5-tests (License): Likewise.
10067         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
10068         * modules/crypto/gc-rijndael-tests (License): Likewise.
10069         * modules/crypto/gc-sha1-tests (License): Likewise.
10070         * modules/crypto/gc-tests (License): Likewise.
10071         * modules/crypto/hmac-md5 (License): Likewise.
10072         * modules/crypto/hmac-sha1 (License): Likewise.
10073         * modules/crypto/md2-tests (License): Likewise.
10074         * modules/crypto/md4-tests (License): Likewise.
10075         * modules/crypto/md5 (License): Likewise.
10076         * modules/crypto/rijndael (License): Likewise.
10077         * modules/crypto/sha1 (License): Likewise.
10078         * modules/memxor (License): Likewise.
10079
10080 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
10081         and Bruno Haible  <bruno@clisp.org>
10082
10083         * NEWS: Describe interface changes to human, xstrtol.
10084         * lib/human.h: Include <xstrtol.h>.
10085         (human_options): Return enum strtol_error, not int.  Remove
10086         bool arg; take int * instead.
10087         * lib/human.c: Don't include "gettext.h".
10088         (_): Remove; no longer used.
10089         Don't include <xstrtol.h>, since human.h does it.
10090         (human_options): Adjust to abovementioned interface changes.
10091         Do not report error to stderr; that's now the caller's
10092         responsibility.
10093         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
10094         interface change.
10095         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
10096         Str, Argument_type_string.  All uses changed.  Put " argument"
10097         in diagnostics to make them clearer.  Change wording of suffix
10098         message for clarity.
10099         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
10100         Argument_type_string.
10101         (STRTOL_FATAL_WARN): Remove; no longer used.
10102         * modules/human (Depends-on): Remove gettext-h.
10103
10104 2007-08-06  Simon Josefsson  <simon@josefsson.org>
10105
10106         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
10107
10108 2007-07-31  Bruno Haible  <bruno@clisp.org>
10109
10110         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
10111         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
10112         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
10113
10114 2007-07-31  Bruno Haible  <bruno@clisp.org>
10115
10116         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
10117         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
10118
10119 2007-07-30  Bruno Haible  <bruno@clisp.org>
10120
10121         * modules/base64 (License): Use the synonymous term "LGPLv2+".
10122         * modules/c-ctype (License): Likewise.
10123         * modules/c-strcase (License): Likewise.
10124         * modules/check-version (License): Likewise.
10125         * modules/iconv (License): Likewise.
10126         * modules/iconv_open (License): Likewise.
10127         * modules/read-file (License): Likewise.
10128         * modules/striconv (License): Likewise.
10129         * modules/strverscmp (License): Likewise.
10130         * modules/vasprintf (License): Likewise.
10131         * modules/crypto/des (License): Likewise.
10132         * modules/crypto/gc (License): Likewise.
10133         * modules/crypto/gc-arcfour (License): Likewise.
10134         * modules/crypto/gc-arctwo (License): Likewise.
10135         * modules/crypto/gc-des (License): Likewise.
10136         * modules/crypto/gc-hmac-md5 (License): Likewise.
10137         * modules/crypto/gc-hmac-sha1 (License): Likewise.
10138         * modules/crypto/gc-md2 (License): Likewise.
10139         * modules/crypto/gc-md4 (License): Likewise.
10140         * modules/crypto/gc-md5 (License): Likewise.
10141         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
10142         * modules/crypto/gc-random (License): Likewise.
10143         * modules/crypto/gc-rijndael (License): Likewise.
10144         * modules/crypto/gc-sha1 (License): Likewise.
10145         * modules/crypto/md2 (License): Likewise.
10146         * modules/crypto/md4 (License): Likewise.
10147
10148 2007-07-30  Jim Meyering  <jim@meyering.net>
10149
10150         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
10151         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
10152         it has valid stat data.  This bug would cause du not to count the
10153         sizes of inaccessible directories.
10154         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
10155         in <http://bugzilla.redhat.com/250077>.
10156
10157 2007-07-25  Peter O'Gorman  <peter@pogma.com>
10158             Bruno Haible  <bruno@clisp.org>
10159
10160         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
10161         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
10162         #include_next, gives a diagnostic about it, but reports no error in
10163         the exit code.
10164         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
10165
10166 2007-07-24  Ben Pfaff  <blp@gnu.org>
10167
10168         Improve name: "count-one-bits" is better than "popcount".
10169         * MODULES.html.sh: Update name.
10170         * lib/popcount.h: Renamed lib/count-one-bits.h.
10171         (popcount): Renamed count_one_bits.
10172         (popcountl): Renamed count_one_bits_l.
10173         (popcountll): Renamed count_one_bits_ll.
10174         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
10175         * modules/popcount: Renamed module/count-one-bits.
10176         * modules/popcount-tests: Renamed module/count-one-bits-tests.
10177         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
10178
10179 2007-07-23  Ben Pfaff  <blp@gnu.org>
10180
10181         * lib/popcount.h (popcount32): Reduce size of constants, to allow
10182         better code generation, and add U to large constants to avoid
10183         warnings, in non-GCC case.
10184         Suggested by Bruno Haible.
10185
10186 2007-07-23  Ben Pfaff  <blp@gnu.org>
10187
10188         * lib/popcount.h: Use verify_true instead of if...abort.
10189         * modules/popcount: Depend on verify module.
10190         Suggested by Jim Meyering.
10191
10192 2007-07-23  Bruno Haible  <bruno@clisp.org>
10193
10194         * gnulib-tool (func_import): Create a .cvsignore file also when the
10195         directory is not yet in CVS but the toplevel directory is. When
10196         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
10197         Reported by Karl Berry.
10198
10199 2007-07-22  Ben Pfaff  <blp@gnu.org>
10200
10201         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
10202         case.
10203         Suggested by Eric Blake.
10204
10205 2007-07-22  Ben Pfaff  <blp@gnu.org>
10206
10207         New module: popcount.
10208         * MODULES.html.sh: Add popcount.
10209         * modules/popcount: New file.
10210         * modules/popcount-tests: New file.
10211         * tests/test-popcount.c: New file.
10212         * lib/popcount.h: New file.
10213         * m4/popcount.m4: New file.
10214
10215 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10216
10217         * build-aux/announce-gen: Update to GPLv3.
10218
10219         * build-aux/config.guess: Update from config.
10220
10221 2007-07-21  Bruno Haible  <bruno@clisp.org>
10222
10223         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
10224         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
10225
10226 2007-07-20  Jim Meyering  <jim@meyering.net>
10227
10228         * check-module: Diagnose a self-dependency.
10229
10230 2007-07-19  Bruno Haible  <bruno@clisp.org>
10231
10232         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
10233         empty.
10234         Reported by Eric Blake.
10235
10236 2007-07-18  Bruno Haible  <bruno@clisp.org>
10237
10238         * gnulib-tool: New options --po-base, --po-domain.
10239         (func_usage): Document them.
10240         (pobase, po_domain): New variables.
10241         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
10242         DEFAULT_TEXT_DOMAIN.
10243         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
10244         (func_import): Consider pobase and po_domain. Create a po/ directory.
10245         (func_create_testdir): Set pobase and po_domain to empty.
10246         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
10247         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
10248
10249 2007-07-18  Bruno Haible  <bruno@clisp.org>
10250
10251         * gnulib-tool (func_get_automake_snippet): Synthesize also an
10252         EXTRA_DIST augmentation for files in build-aux/.
10253
10254 2007-07-16  Bruno Haible  <bruno@clisp.org>
10255
10256         * modules/lseek (License): Use the synonymous term "LGPLv2+".
10257         * modules/getdelim (License): Likewise.
10258
10259 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10260
10261         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
10262         * modules/d-type (License): Likewise.
10263         * modules/extensions (License): Likewise.
10264         * modules/fnmatch (License): Likewise.
10265         * modules/fseeko (License): Likewise.
10266         * modules/getaddrinfo (License): Likewise.
10267         * modules/getline (License): Likewise.
10268         * modules/getlogin_r (License): Likewise.
10269         * modules/getpass (License): Likewise.
10270         * modules/gettimeofday (License): Likewise.
10271         * modules/glob (License): Likewise.
10272         * modules/inet_ntop (License): Likewise.
10273         * modules/malloc (License): Likewise.
10274         * modules/malloca (License): Likewise.
10275         * modules/memmem (License): Likewise.
10276         * modules/mempcpy (License): Likewise.
10277         * modules/memset (License): Likewise.
10278         * modules/minmax (License): Likewise.
10279         * modules/mktime (License): Likewise.
10280         * modules/netinet_in (License): Likewise.
10281         * modules/pathmax (License): Likewise.
10282         * modules/poll (License): Likewise.
10283         * modules/regex (License): Likewise.
10284         * modules/snprintf (License): Likewise.
10285         * modules/stdbool (License): Likewise.
10286         * modules/stdint (License): Likewise.
10287         * modules/stdio (License): Likewise.
10288         * modules/strcase (License): Likewise.
10289         * modules/strcasestr (License): Likewise.
10290         * modules/strdup (License): Likewise.
10291         * modules/string (License): Likewise.
10292         * modules/strndup (License): Likewise.
10293         * modules/strnlen (License): Likewise.
10294         * modules/strpbrk (License): Likewise.
10295         * modules/strptime (License): Likewise.
10296         * modules/strsep (License): Likewise.
10297         * modules/sys_select (License): Likewise.
10298         * modules/sys_socket (License): Likewise.
10299         * modules/sys_stat (License): Likewise.
10300         * modules/sys_time (License): Likewise.
10301         * modules/time (License): Likewise.
10302         * modules/time_r (License): Likewise.
10303         * modules/timegm (License): Likewise.
10304         * modules/unistd (License): Likewise.
10305         * modules/vsnprintf (License): Likewise.
10306         * modules/wctype (License): Likewise.
10307
10308 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10309
10310         * modules/argz (License): LGPLv2+.
10311
10312 2007-07-15  Karl Berry  <karl@gnu.org>
10313
10314         * doc/gnulib.texi: revise node structure per new fdl.texi.
10315
10316 2007-07-14  Bruno Haible  <bruno@clisp.org>
10317
10318         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
10319         the output file.
10320         * lib/uniname/uninames.h: Regenerated.
10321
10322 2007-07-14  Karl Berry  <karl@gnu.org>
10323
10324         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
10325         omitting sectioning and index commands.
10326
10327 2007-07-13  Bruno Haible  <bruno@clisp.org>
10328
10329         New gnulib-tool option --more-symlinks.
10330         * gnulib-tool (func_usage): Document --more-symlinks.
10331         (do_copyrights): New variable.
10332         Recognize option --more-symlinks.
10333         (func_import): Don't add a copyright notice transform to
10334         sed_transform_lib_file if do_copyrights is empty.
10335
10336 2007-07-13  Bruno Haible  <bruno@clisp.org>
10337
10338         * lib/vasnprintf.c (decimal_point_char): Define also if
10339         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
10340         && !NEED_PRINTF_DIRECTIVE_A.
10341         Reported by Clemens Koller <clemens.koller@anagramm.de> via
10342         Gary V. Vaughan <gary@gnu.org>.
10343
10344 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
10345
10346         * lib/inttypes_.h: Undo previous change, since it was fixed
10347         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
10348
10349 2007-07-13  Bruno Haible  <bruno@clisp.org>
10350
10351         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
10352         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
10353
10354 2007-07-13  Jim Meyering  <jim@meyering.net>
10355
10356         df: Don't fail for Tru64's "file-on-file mount".
10357         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
10358         so we fall through and use statfs instead.  Details here:
10359         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
10360         Reported by Albert Chin.
10361
10362 2007-07-13  Bruno Haible  <bruno@clisp.org>
10363
10364         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
10365         * modules/configmake (License): Likewise.
10366         * modules/gettext (License): Likewise.
10367         * modules/gettext-h (License): Likewise.
10368         * modules/include_next (License): Likewise.
10369         * modules/link-warning (License): Likewise.
10370         * modules/localcharset (License): Likewise.
10371         * modules/localename (License): Likewise.
10372         * modules/lock (License): Likewise.
10373         * modules/relocatable-lib-lgpl (License): Likewise.
10374         * modules/size_max (License): Likewise.
10375         * modules/vasnprintf (License): Likewise.
10376         * modules/wchar (License): Likewise.
10377         * modules/xsize (License): Likewise.
10378
10379 2007-07-13  Bruno Haible  <bruno@clisp.org>
10380
10381         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
10382         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
10383
10384 2007-07-12  Bruno Haible  <bruno@clisp.org>
10385
10386         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
10387         in the modules files.
10388
10389 2007-07-11  Karl Berry  <karl@gnu.org>
10390
10391         * MODULES.html.sh (func_module): use
10392          sed -e '\|^'"${includefile}"'$|d'
10393          instead of /.../d, to avoid errors on $includefile's containing /.
10394
10395 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
10396
10397         * gnulib-tool (func_import): Avoid duplication of --avoid
10398         statements
10399         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
10400         names to `_' in variable names.
10401
10402 2007-07-10  Eric Blake  <ebb9@byu.net>
10403
10404         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
10405         * NEWS: Document this change.
10406
10407 2007-07-08  Bruno Haible  <bruno@clisp.org>
10408
10409         Update to Unicode 5.0.
10410         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
10411         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
10412         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
10413         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
10414         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
10415         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
10416         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
10417         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
10418         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
10419         U+10A3F, U+1D242..U+1D244.
10420         (nonspacing_table_ind): Update.
10421         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
10422         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
10423
10424 2007-07-08  Bruno Haible  <bruno@clisp.org>
10425
10426         Update to Unicode 5.0.
10427         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
10428         code transform. Extend the name index field of unicode_name_to_code and
10429         unicode_code_to_name from 16 to 24 bits.
10430         * lib/uniname/uniname.c (unicode_character_name,
10431         unicode_name_character): Add the range 0x12xxx to the code transform.
10432         * lib/uniname/uninames.h: Regenerated.
10433         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
10434
10435 2007-07-07  Bruno Haible  <bruno@clisp.org>
10436
10437         * modules/wcwidth-tests: New file.
10438         * tests/test-wcwidth.c: New file.
10439
10440         Work around MacOS X wcwidth() bug.
10441         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
10442         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
10443         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
10444         original wcwidth in non-UTF-8 locales.
10445         * modules/wcwidth (Depends-on): Add localcharset, streq,
10446         uniwidth/width.
10447         * doc/functions/wcwidth.texi: Update.
10448
10449 2007-07-07  Bruno Haible  <bruno@clisp.org>
10450
10451         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
10452         (wcwidth): New declaration.
10453         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
10454         macros.
10455         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
10456         here. Prepare for creating <wchar.h> unconditionally.
10457         * modules/wchar (Depends-on): Add link-warning.
10458         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
10459         REPLACE_WCWIDTH, and GL_LINK_WARNING.
10460         * lib/wcwidth.h: Remove file.
10461         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
10462         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
10463         * modules/wcwidth (Files): Remove lib/wcwidth.h.
10464         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
10465         (Include): Replace wcwidth.h with <wchar.h>.
10466         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
10467         * lib/mbchar.h: Don't include wcwidth.h.
10468         * lib/mbswidth.c: Likewise.
10469         * NEWS: Mention the change.
10470
10471 2007-07-07  Bruno Haible  <bruno@clisp.org>
10472
10473         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
10474         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
10475         definition with an external declaration.
10476         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
10477         defined as a function. Remove AC_C_INLINE requirement.
10478         * modules/wcwidth (Files): Add lib/wcwidth.c.
10479         (Makefile.am): Remove redundant statement.
10480
10481 2007-07-07  Bruno Haible  <bruno@clisp.org>
10482
10483         * MODULES.html.sh (Unicode string functions): Add the new modules.
10484
10485         * tests/uniwidth/test-u32-strwidth.c: New file.
10486         * modules/uniwidth/u32-strwidth-tests: New file.
10487
10488         * lib/uniwidth/u32-strwidth.c: New file.
10489         * modules/uniwidth/u32-strwidth: New file.
10490
10491         * tests/uniwidth/test-u16-strwidth.c: New file.
10492         * modules/uniwidth/u16-strwidth-tests: New file.
10493
10494         * lib/uniwidth/u16-strwidth.c: New file.
10495         * modules/uniwidth/u16-strwidth: New file.
10496
10497         * tests/uniwidth/test-u8-strwidth.c: New file.
10498         * modules/uniwidth/u8-strwidth-tests: New file.
10499
10500         * lib/uniwidth/u8-strwidth.c: New file.
10501         * modules/uniwidth/u8-strwidth: New file.
10502
10503         * tests/uniwidth/test-u32-width.c: New file.
10504         * modules/uniwidth/u32-width-tests: New file.
10505
10506         * lib/uniwidth/u32-width.c: New file.
10507         * modules/uniwidth/u32-width: New file.
10508
10509         * tests/uniwidth/test-u16-width.c: New file.
10510         * modules/uniwidth/u16-width-tests: New file.
10511
10512         * lib/uniwidth/u16-width.c: New file.
10513         * modules/uniwidth/u16-width: New file.
10514
10515         * tests/uniwidth/test-u8-width.c: New file.
10516         * modules/uniwidth/u8-width-tests: New file.
10517
10518         * lib/uniwidth/u8-width.c: New file.
10519         * modules/uniwidth/u8-width: New file.
10520
10521         * tests/uniwidth/test-uc_width.c: New file.
10522         * modules/uniwidth/width-tests: New file.
10523
10524         * lib/uniwidth/width.c: New file, from GNU libiconv.
10525         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
10526         * modules/uniwidth/width: New file.
10527
10528         * lib/uniwidth.h: New file, from GNU libiconv.
10529         * modules/uniwidth/base: New file.
10530
10531 2007-07-07  Bruno Haible  <bruno@clisp.org>
10532
10533         * lib/uniname.h: New file, from GNU gettext.
10534         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
10535         * lib/uniname/uninames.h: New file, from GNU gettext.
10536         * lib/uniname/uniname.c: New file, from GNU gettext.
10537         * tests/uniname/test-uninames.sh: New file.
10538         * tests/uniname/test-uninames.c: New file, from GNU gettext.
10539         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
10540         * modules/uniname/base: New file.
10541         * modules/uniname/uniname: New file.
10542         * modules/uniname/uniname-tests: New file.
10543         * MODULES.html.sh (Unicode string functions): Add the new modules.
10544
10545 2007-07-06  Bruno Haible  <bruno@clisp.org>
10546
10547         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
10548
10549 2007-07-06  Bruno Haible  <bruno@clisp.org>
10550
10551         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
10552         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
10553         includes <cygwin/sys_time.h> which includes <sys/select.h> which
10554         include <sys/time.h>.
10555         Reported by Eric Blake.
10556
10557 2007-07-06  Eric Blake  <ebb9@byu.net>
10558
10559         Fix testing canonicalize on cygwin.
10560         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
10561         Revert patch from 2007-06-19.
10562         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
10563         canonicalize module is also in use.
10564         * tests/test-canonicalize.c: New file.
10565         * tests/test-canonicalize.sh: Likewise.
10566         * modules/canonicalize-tests: Likewise.
10567
10568 2007-07-06  Jim Meyering  <jim@meyering.net>
10569
10570         * lib/getugroups.c (getugroups): Detect getgrent failure.
10571         Adjust comment to reflect reality: this function may return -1.
10572
10573 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
10574
10575         * build-aux/bootstrap (TP_URL,get_translations): Update to use
10576         the new TP address.
10577         (usage): Fix typo
10578         (gnulib_mk): New variable.
10579
10580 2007-07-05  Jim Meyering  <jim@meyering.net>
10581
10582         Don't let endgrent clobber errno, no matter how improbable.
10583         * lib/getugroups.c (getugroups): Save and restore errno around
10584         endgrent call.
10585
10586         Close the group DB even when failing with 2^31 or more members.
10587         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
10588
10589 2007-07-04  Jim Meyering  <jim@meyering.net>
10590
10591         * lib/getugroups.h: New file.
10592         * lib/getugroups.c: Include "getugroups.h".
10593         Remove uses of "register" keyword.
10594         Move local variable, "cp", down into scope where used.
10595         Give "username" parameter the "const" attribute.
10596         * modules/getugroups (Files): Add lib/getugroups.h
10597
10598 2007-07-04  Karl Berry  <karl@gnu.org>
10599
10600         * MODULES.html.sh (func_all_modules): Complete rename of
10601         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
10602
10603 2007-07-02  Bruno Haible  <bruno@clisp.org>
10604
10605         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
10606         mode, when inttypes.h comes from gnulib.
10607         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
10608
10609 2007-07-02  Simon Josefsson  <simon@josefsson.org>
10610
10611         * NEWS: Mention lgpl module name change.
10612
10613         * modules/lgpl-2.1: Renamed from lgpl.
10614
10615         * NEWS: Mention gpl module name change.
10616
10617         * modules/gpl-3.0: New file, based on gpl-2.0.
10618
10619         * modules/gpl-2.0: Renamed from gpl.
10620
10621         * modules/gpl: Fix filename, doc/gpl.texi is now found at
10622         doc/gpl-2.0.texi.
10623
10624 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
10625
10626         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
10627         #define __STDC_LIMIT_MACROS temporarily while including
10628         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
10629         Problem reported by Joel E. Denny in
10630         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
10631
10632 2007-07-01  Bruno Haible  <bruno@clisp.org>
10633
10634         * lib/unistdio.h: New file.
10635         * lib/unistdio/u-asnprintf.h: New file.
10636         * lib/unistdio/u-asprintf.h: New file.
10637         * lib/unistdio/u-printf-args.c: New file.
10638         * lib/unistdio/u-printf-args.h: New file.
10639         * lib/unistdio/u-printf-parse.h: New file.
10640         * lib/unistdio/u-snprintf.h: New file.
10641         * lib/unistdio/u-sprintf.h: New file.
10642         * lib/unistdio/u-vasprintf.h: New file.
10643         * lib/unistdio/u-vsnprintf.h: New file.
10644         * lib/unistdio/u-vsprintf.h: New file.
10645         * lib/unistdio/ulc-asnprintf.c: New file.
10646         * lib/unistdio/ulc-asprintf.c: New file.
10647         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
10648         * lib/unistdio/ulc-printf-parse.c: New file.
10649         * lib/unistdio/ulc-snprintf.c: New file.
10650         * lib/unistdio/ulc-sprintf.c: New file.
10651         * lib/unistdio/ulc-vasnprintf.c: New file.
10652         * lib/unistdio/ulc-vasprintf.c: New file.
10653         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
10654         * lib/unistdio/ulc-vsnprintf.c: New file.
10655         * lib/unistdio/ulc-vsprintf.c: New file.
10656         * lib/unistdio/u8-asnprintf.c: New file.
10657         * lib/unistdio/u8-asprintf.c: New file.
10658         * lib/unistdio/u8-printf-parse.c: New file.
10659         * lib/unistdio/u8-snprintf.c: New file.
10660         * lib/unistdio/u8-sprintf.c: New file.
10661         * lib/unistdio/u8-vasnprintf.c: New file.
10662         * lib/unistdio/u8-vasprintf.c: New file.
10663         * lib/unistdio/u8-vsnprintf.c: New file.
10664         * lib/unistdio/u8-vsprintf.c: New file.
10665         * lib/unistdio/u8-u8-asnprintf.c: New file.
10666         * lib/unistdio/u8-u8-asprintf.c: New file.
10667         * lib/unistdio/u8-u8-snprintf.c: New file.
10668         * lib/unistdio/u8-u8-sprintf.c: New file.
10669         * lib/unistdio/u8-u8-vasnprintf.c: New file.
10670         * lib/unistdio/u8-u8-vasprintf.c: New file.
10671         * lib/unistdio/u8-u8-vsnprintf.c: New file.
10672         * lib/unistdio/u8-u8-vsprintf.c: New file.
10673         * lib/unistdio/u16-asnprintf.c: New file.
10674         * lib/unistdio/u16-asprintf.c: New file.
10675         * lib/unistdio/u16-printf-parse.c: New file.
10676         * lib/unistdio/u16-snprintf.c: New file.
10677         * lib/unistdio/u16-sprintf.c: New file.
10678         * lib/unistdio/u16-vasnprintf.c: New file.
10679         * lib/unistdio/u16-vasprintf.c: New file.
10680         * lib/unistdio/u16-vsnprintf.c: New file.
10681         * lib/unistdio/u16-vsprintf.c: New file.
10682         * lib/unistdio/u16-u16-asnprintf.c: New file.
10683         * lib/unistdio/u16-u16-asprintf.c: New file.
10684         * lib/unistdio/u16-u16-snprintf.c: New file.
10685         * lib/unistdio/u16-u16-sprintf.c: New file.
10686         * lib/unistdio/u16-u16-vasnprintf.c: New file.
10687         * lib/unistdio/u16-u16-vasprintf.c: New file.
10688         * lib/unistdio/u16-u16-vsnprintf.c: New file.
10689         * lib/unistdio/u16-u16-vsprintf.c: New file.
10690         * lib/unistdio/u32-asnprintf.c: New file.
10691         * lib/unistdio/u32-asprintf.c: New file.
10692         * lib/unistdio/u32-printf-parse.c: New file.
10693         * lib/unistdio/u32-snprintf.c: New file.
10694         * lib/unistdio/u32-sprintf.c: New file.
10695         * lib/unistdio/u32-vasnprintf.c: New file.
10696         * lib/unistdio/u32-vasprintf.c: New file.
10697         * lib/unistdio/u32-vsnprintf.c: New file.
10698         * lib/unistdio/u32-vsprintf.c: New file.
10699         * lib/unistdio/u32-u32-asnprintf.c: New file.
10700         * lib/unistdio/u32-u32-asprintf.c: New file.
10701         * lib/unistdio/u32-u32-snprintf.c: New file.
10702         * lib/unistdio/u32-u32-sprintf.c: New file.
10703         * lib/unistdio/u32-u32-vasnprintf.c: New file.
10704         * lib/unistdio/u32-u32-vasprintf.c: New file.
10705         * lib/unistdio/u32-u32-vsnprintf.c: New file.
10706         * lib/unistdio/u32-u32-vsprintf.c: New file.
10707         * tests/unistdio/test-ulc-asnprintf1.c: New file.
10708         * tests/unistdio/test-ulc-asnprintf1.h: New file.
10709         * tests/unistdio/test-ulc-printf1.h: New file.
10710         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
10711         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
10712         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
10713         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
10714         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
10715         * tests/unistdio/test-ulc-vasprintf1.c: New file.
10716         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
10717         * tests/unistdio/test-ulc-vsprintf1.c: New file.
10718         * tests/unistdio/test-u8-asnprintf1.c: New file.
10719         * tests/unistdio/test-u8-asnprintf1.h: New file.
10720         * tests/unistdio/test-u8-printf1.h: New file.
10721         * tests/unistdio/test-u8-vasnprintf1.c: New file.
10722         * tests/unistdio/test-u8-vasnprintf2.c: New file.
10723         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
10724         * tests/unistdio/test-u8-vasnprintf3.c: New file.
10725         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
10726         * tests/unistdio/test-u8-vasprintf1.c: New file.
10727         * tests/unistdio/test-u8-vsnprintf1.c: New file.
10728         * tests/unistdio/test-u8-vsprintf1.c: New file.
10729         * tests/unistdio/test-u16-asnprintf1.c: New file.
10730         * tests/unistdio/test-u16-asnprintf1.h: New file.
10731         * tests/unistdio/test-u16-printf1.h: New file.
10732         * tests/unistdio/test-u16-vasnprintf1.c: New file.
10733         * tests/unistdio/test-u16-vasnprintf2.c: New file.
10734         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
10735         * tests/unistdio/test-u16-vasnprintf3.c: New file.
10736         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
10737         * tests/unistdio/test-u16-vasprintf1.c: New file.
10738         * tests/unistdio/test-u16-vsnprintf1.c: New file.
10739         * tests/unistdio/test-u16-vsprintf1.c: New file.
10740         * tests/unistdio/test-u32-asnprintf1.c: New file.
10741         * tests/unistdio/test-u32-asnprintf1.h: New file.
10742         * tests/unistdio/test-u32-printf1.h: New file.
10743         * tests/unistdio/test-u32-vasnprintf1.c: New file.
10744         * tests/unistdio/test-u32-vasnprintf2.c: New file.
10745         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
10746         * tests/unistdio/test-u32-vasnprintf3.c: New file.
10747         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
10748         * tests/unistdio/test-u32-vasprintf1.c: New file.
10749         * tests/unistdio/test-u32-vsnprintf1.c: New file.
10750         * tests/unistdio/test-u32-vsprintf1.c: New file.
10751         * modules/unistdio/base: New file.
10752         * modules/unistdio/u-printf-args: New file.
10753         * modules/unistdio/ulc-asnprintf: New file.
10754         * modules/unistdio/ulc-asprintf: New file.
10755         * modules/unistdio/ulc-fprintf: New file.
10756         * modules/unistdio/ulc-printf-parse: New file.
10757         * modules/unistdio/ulc-snprintf: New file.
10758         * modules/unistdio/ulc-sprintf: New file.
10759         * modules/unistdio/ulc-vasnprintf: New file.
10760         * modules/unistdio/ulc-vasprintf: New file.
10761         * modules/unistdio/ulc-vfprintf: New file.
10762         * modules/unistdio/ulc-vsnprintf: New file.
10763         * modules/unistdio/ulc-vsprintf: New file.
10764         * modules/unistdio/u8-asnprintf: New file.
10765         * modules/unistdio/u8-asprintf: New file.
10766         * modules/unistdio/u8-printf-parse: New file.
10767         * modules/unistdio/u8-snprintf: New file.
10768         * modules/unistdio/u8-sprintf: New file.
10769         * modules/unistdio/u8-vasnprintf: New file.
10770         * modules/unistdio/u8-vasprintf: New file.
10771         * modules/unistdio/u8-vsnprintf: New file.
10772         * modules/unistdio/u8-vsprintf: New file.
10773         * modules/unistdio/u8-u8-asnprintf: New file.
10774         * modules/unistdio/u8-u8-asprintf: New file.
10775         * modules/unistdio/u8-u8-snprintf: New file.
10776         * modules/unistdio/u8-u8-sprintf: New file.
10777         * modules/unistdio/u8-u8-vasnprintf: New file.
10778         * modules/unistdio/u8-u8-vasprintf: New file.
10779         * modules/unistdio/u8-u8-vsnprintf: New file.
10780         * modules/unistdio/u8-u8-vsprintf: New file.
10781         * modules/unistdio/u16-asnprintf: New file.
10782         * modules/unistdio/u16-asprintf: New file.
10783         * modules/unistdio/u16-printf-parse: New file.
10784         * modules/unistdio/u16-snprintf: New file.
10785         * modules/unistdio/u16-sprintf: New file.
10786         * modules/unistdio/u16-vasnprintf: New file.
10787         * modules/unistdio/u16-vasprintf: New file.
10788         * modules/unistdio/u16-vsnprintf: New file.
10789         * modules/unistdio/u16-vsprintf: New file.
10790         * modules/unistdio/u16-u16-asnprintf: New file.
10791         * modules/unistdio/u16-u16-asprintf: New file.
10792         * modules/unistdio/u16-u16-snprintf: New file.
10793         * modules/unistdio/u16-u16-sprintf: New file.
10794         * modules/unistdio/u16-u16-vasnprintf: New file.
10795         * modules/unistdio/u16-u16-vasprintf: New file.
10796         * modules/unistdio/u16-u16-vsnprintf: New file.
10797         * modules/unistdio/u16-u16-vsprintf: New file.
10798         * modules/unistdio/u32-asnprintf: New file.
10799         * modules/unistdio/u32-asprintf: New file.
10800         * modules/unistdio/u32-printf-parse: New file.
10801         * modules/unistdio/u32-snprintf: New file.
10802         * modules/unistdio/u32-sprintf: New file.
10803         * modules/unistdio/u32-vasnprintf: New file.
10804         * modules/unistdio/u32-vasprintf: New file.
10805         * modules/unistdio/u32-vsnprintf: New file.
10806         * modules/unistdio/u32-vsprintf: New file.
10807         * modules/unistdio/u32-u32-asnprintf: New file.
10808         * modules/unistdio/u32-u32-asprintf: New file.
10809         * modules/unistdio/u32-u32-snprintf: New file.
10810         * modules/unistdio/u32-u32-sprintf: New file.
10811         * modules/unistdio/u32-u32-vasnprintf: New file.
10812         * modules/unistdio/u32-u32-vasprintf: New file.
10813         * modules/unistdio/u32-u32-vsnprintf: New file.
10814         * modules/unistdio/u32-u32-vsprintf: New file.
10815         * modules/unistdio/ulc-asnprintf-tests: New file.
10816         * modules/unistdio/ulc-vasnprintf-tests: New file.
10817         * modules/unistdio/ulc-vasprintf-tests: New file.
10818         * modules/unistdio/ulc-vsnprintf-tests: New file.
10819         * modules/unistdio/ulc-vsprintf-tests: New file.
10820         * modules/unistdio/u8-asnprintf-tests: New file.
10821         * modules/unistdio/u8-vasnprintf-tests: New file.
10822         * modules/unistdio/u8-vasprintf-tests: New file.
10823         * modules/unistdio/u8-vsnprintf-tests: New file.
10824         * modules/unistdio/u8-vsprintf-tests: New file.
10825         * modules/unistdio/u16-asnprintf-tests: New file.
10826         * modules/unistdio/u16-vasnprintf-tests: New file.
10827         * modules/unistdio/u16-vasprintf-tests: New file.
10828         * modules/unistdio/u16-vsnprintf-tests: New file.
10829         * modules/unistdio/u16-vsprintf-tests: New file.
10830         * modules/unistdio/u32-asnprintf-tests: New file.
10831         * modules/unistdio/u32-vasnprintf-tests: New file.
10832         * modules/unistdio/u32-vasprintf-tests: New file.
10833         * modules/unistdio/u32-vsnprintf-tests: New file.
10834         * modules/unistdio/u32-vsprintf-tests: New file.
10835         * MODULES.html.sh (Unicode string functions): Add the new modules.
10836
10837 2007-07-01  Bruno Haible  <bruno@clisp.org>
10838
10839         * lib/sprintf.c (sprintf): Limit the available length estimation,
10840         to avoid address wraparound.
10841         * lib/vsprintf.c (vsprintf): Likewise.
10842         * modules/sprintf-posix (Dependencies): Add stdint.
10843         * modules/vsprintf-posix (Dependencies): Likewise.
10844
10845 2007-07-01  Bruno Haible  <bruno@clisp.org>
10846
10847         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
10848         Windows PATH as well. Conservative double-quoting. Comments.
10849
10850 2007-07-01  Bruno Haible  <bruno@clisp.org>
10851             Eric Blake  <ebb9@byu.net>
10852             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10853
10854         * gnulib-tool (self_abspathname): Fix algorithm to cope with
10855         empty components in $PATH, denoting '.'.
10856
10857 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10858
10859         * gnulib-tool: Fix indentation.
10860         (func_create_megatestdir): Likewise.
10861         Report by Bruno Haible.
10862
10863 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10864
10865         Sync from Automake.
10866         * build-aux/gnupload: Fix shell portability issues with for loops.
10867         Report by Karl Berry.
10868
10869 2007-06-29  Simon Josefsson  <simon@josefsson.org>
10870
10871         * build-aux/maint.mk (POURL): Use translationproject.org.
10872
10873 2007-06-27  Simon Josefsson  <simon@josefsson.org>
10874             Bruno Haible  <bruno@clisp.org>
10875
10876         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
10877         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
10878         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
10879         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
10880         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
10881
10882 2007-06-27  Bruno Haible  <bruno@clisp.org>
10883
10884         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
10885         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
10886
10887 2007-06-26  Karl Berry  <karl@gnu.org>
10888
10889         * MODULES.html.sh: remove xreadlink-with-size.
10890
10891 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10892
10893         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
10894         method that I hope also handles the double-include problem noted
10895         by Bruno Haible in
10896         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
10897
10898 2007-06-23  Bruno Haible  <bruno@clisp.org>
10899
10900         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10901         Don't let the 'mostlyclean' target fail if the last subdirectory could
10902         not be removed.
10903         Reported by Karl Berry.
10904
10905 2007-06-23  Bruno Haible  <bruno@clisp.org>
10906
10907         * gnulib-tool (echo): Add a speedier workaround for ksh.
10908         * tests/test-echo.sh: Likewise.
10909
10910 2007-06-23  Bruno Haible  <bruno@clisp.org>
10911
10912         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
10913         * tests/test-echo.sh: Likewise.
10914
10915 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10916
10917         * gnulib-tool (IFS): Initialize early, so we don't set it to
10918         empty later.
10919         (self_abspathname): Rewrite algorithm to set it, reindent.
10920         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
10921         (func_create_megatestdir): Merge some sed scripts.
10922
10923 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10924
10925         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
10926         exposed by Sun Studio 11 cc on Solaris 8.
10927
10928 2007-06-22  Bruno Haible  <bruno@clisp.org>
10929
10930         * gnulib-tool (echo): Ensure the echo primitive does not interpret
10931         backslashes.
10932         * tests/test-echo.sh: New file.
10933
10934 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10935
10936         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
10937         simplify `sed_replace_build_aux' scripts, they are portable but
10938         echoing them with `echo' is not.
10939         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
10940
10941 2007-06-21  Karl Berry  <karl@gnu.org>
10942
10943         * config/srclist.txt: guess we can't handle the licenses via
10944         srclist at the moment.
10945
10946 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
10947
10948         * MODULES.html.sh: Add include_next.
10949         * modules/include_next: New file.
10950
10951 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
10952
10953         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
10954         INCLUDE_NEXT.
10955         (gl_CHECK_NEXT_HEADERS): New macro.
10956         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
10957         the obsolescent gl_ABSOLUTE_HEADER.
10958         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
10959         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
10960         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
10961         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10962         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10963         * m4/math_h.m4 (gl_MATH_H): Likewise.
10964         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
10965         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10966         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10967         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10968         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
10969         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
10970         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
10971         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10972         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10973         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10974         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
10975         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10976         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10977         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10978         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10979         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10980         * m4/inttypes.m4 (gl_INTTYPES_H): Define
10981         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
10982         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
10983         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
10984         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
10985         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
10986         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
10987         * lib/float_.h: Likewise.
10988         * lib/inttypes_.h: Likewise.
10989         * lib/math_.h: Likewise.
10990         * lib/search_.h: Likewise.
10991         * lib/signal_.h: Likewise.
10992         * lib/stdint_.h: Likewise.
10993         * lib/stdio_.h: Likewise.
10994         * lib/stdlib_.h: Likewise.
10995         * lib/string_.h: Likewise.
10996         * lib/sys_stat_.h: Likewise.
10997         * lib/sys_time_.h: Likewise.
10998         * lib/time_.h: Likewise.
10999         * lib/unistd_.h: Likewise.
11000         * lib/wchar_.h: Likewise.
11001         * lib/wctype_.h: Likewise.
11002         * lib/dirent_.h: Likewise.
11003         * lib/iconv_.h: Likewise.
11004         * lib/locale_.h: Likewise.
11005         * lib/netinet_in_.h: Likewise.
11006         * lib/sys_select_.h: Likewise.
11007         * lib/sys_socket_.h: Likewise.
11008         * lib/sysexits_.h: Likewise.
11009         * modules/fcntl (Depends-on): Depend on include_next, not
11010         absolute_header.
11011         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
11012         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
11013         * modules/fchdir: Likewise.
11014         * modules/float: Likewise.
11015         * modules/iconv_open: Likewise.
11016         * modules/inttypes: Likewise.
11017         * modules/locale: Likewise.
11018         * modules/math: Likewise.
11019         * modules/netinet_in: Likewise.
11020         * modules/search: Likewise.
11021         * modules/signal: Likewise.
11022         * modules/stdint: Likewise.
11023         * modules/stdio: Likewise.
11024         * modules/stdlib: Likewise.
11025         * modules/string: Likewise.
11026         * modules/sys_select: Likewise.
11027         * modules/sys_socket: Likewise.
11028         * modules/sys_stat: Likewise.
11029         * modules/sys_time: Likewise.
11030         * modules/sysexits: Likewise.
11031         * modules/time: Likewise.
11032         * modules/unistd: Likewise.
11033         * modules/wchar: Likewise.
11034         * modules/wctype: Likewise.
11035         * modules/sys_stat: Change maintainer to "all".
11036         * modules/unistd: Likewise.
11037
11038 2007-06-20  Karl Berry  <karl@gnu.org>
11039
11040         * config/srclist.txt: track www changes in license files.
11041
11042 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
11043
11044         * build-aux/bootstrap: Remove stray dot.
11045         Make sure build_aux settings are honored when linking
11046         gnulib_extra_files.
11047
11048 2007-06-19  Eric Blake  <ebb9@byu.net>
11049
11050         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
11051         Allow compilation on cygwin.
11052
11053 2007-06-19  Jim Meyering  <jim@meyering.net>
11054
11055         xreadlink-with-size: Remove module.  No longer used.
11056         Ex-callers now use xreadlink or mreadlink-with-size.
11057         * modules/xreadlink-with-size: Remove module.
11058         * lib/xreadlink-with-size.c: Remove file.
11059         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
11060         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
11061         just before the function definition *is* accurate.
11062
11063         Eliminate one way canonicalize_filename_mode could exit.
11064         * lib/canonicalize.c (canonicalize_filename_mode):
11065         Use mreadlink_with_size, not xreadlink_with_size.
11066
11067 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
11068
11069         Detect porting problems to FreeBSD/arm, which has time_t wider than
11070         long int.  Original problem reported for GNU diff by Xin Li in
11071         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
11072         * modules/getdate (Depends-on): Add intprops, verify.
11073         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
11074         is an integer type no wider than long int.
11075
11076 2007-06-18  Jim Meyering  <jim@meyering.net>
11077
11078         New module: mreadlink-with-size.
11079         * MODULES.html.sh: Add mreadlink-with-size.
11080         * modules/mreadlink-with-size: New module
11081         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
11082         not xreadlink-with-size.
11083         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
11084
11085 2007-06-16  Bruno Haible  <bruno@clisp.org>
11086
11087         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
11088         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
11089         Reported by Gary V. Vaughan <gary@gnu.org>.
11090
11091 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11092
11093         Revamp lchown so that it lives in unistd.h where it belongs.
11094         * lib/lchown.h: Remove.
11095         * lib/dirchownmod.c: Don't include lib/lchown.h.
11096         * lib/fchownat.c: Likewise.
11097         * lib/openat.c: Likewise.
11098         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
11099         does not follow symlinks.
11100         (EOPNOTSUPP): Define if not defined.
11101         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
11102         is defined to 0.
11103         (lchown): New decl.
11104         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
11105         Do not check for lchown decl.
11106         Set REPLACE_LCHOWN.
11107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
11108         REPLACE_LCHOWN.
11109         * modules/chown: Make it clear it follows symlinks.
11110         * modules/lchown: Make it clear it doesn't follow symlinks.
11111         (Files): Remove lib/lchown.h
11112         (Depends-on): Add unistd.
11113         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
11114         (Include): Include <unistd.h>, not "lchown.h".
11115         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
11116         REPLACE_LCHOWN.
11117
11118 2007-06-15  Jim Meyering  <jim@meyering.net>
11119
11120         Change license (GPL to LGPL) of fsusage and dependents.
11121         * modules/fsusage (License): Change to LGPL.
11122         * modules/full-read (License): Likewise.
11123         * modules/full-write (License): Likewise.
11124         * modules/safe-read (License): Likewise.
11125         * modules/safe-write (License): Likewise.
11126
11127 2007-06-14  Ben Pfaff  <blp@gnu.org>
11128
11129         Missing part of allocsa -> malloca transition.
11130         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
11131         gl_MALLOCA.
11132
11133 2007-06-12  Bruno Haible  <bruno@clisp.org>
11134
11135         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
11136         to ia64, x86_64, i386.
11137         Reported by Eric Blake.
11138
11139 2007-06-12  Bruno Haible  <bruno@clisp.org>
11140
11141         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
11142         cross-compiling to x86_64.
11143
11144 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
11145
11146         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
11147         glitch reported by Ralf Wildenhues in
11148         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
11149
11150         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
11151         Vin Shelton.
11152
11153 2007-06-11  Bruno Haible  <bruno@clisp.org>
11154
11155         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
11156         replacement string.
11157         Reported by Eric Blake.
11158
11159 2007-06-10  Bruno Haible  <bruno@clisp.org>
11160
11161         Prepare vasnprintf code for use with Unicode strings.
11162         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
11163         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
11164         TYPE_U32_STRING.
11165         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
11166         a_u32_string variants.
11167         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
11168         * lib/printf-args.c: Don't include config.h and the specification
11169         header if PRINTF_FETCHARGS is already defined.
11170         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
11171         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
11172         TYPE_U16_STRING, TYPE_U32_STRING.
11173         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
11174         u16_directive, u16_directives, u32_directive, u32_directives): New
11175         types.
11176         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
11177         New declarations.
11178         * lib/printf-parse.c: Don't include config.h and the specification
11179         header if PRINTF_PARSE is already defined. Eliminate the set of
11180         parameters for WIDE_CHAR_VERSION; the user of this file must provide
11181         them now. Include c-ctype.h.
11182         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
11183         directive and CHAR_T_ONLY_ASCII.
11184         * lib/vasnprintf.c: Don't include config.h and the specification header
11185         if VASNPRINTF is already defined.
11186         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
11187         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
11188         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
11189         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
11190         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
11191         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
11192         code accordingly.
11193         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
11194         pad_ourselves also in this case, with the 'c' and 's' directives, and
11195         with a different notion of "width".
11196         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
11197
11198 2007-06-10  Bruno Haible  <bruno@clisp.org>
11199
11200         * modules/unistr/u32-mbsnlen: New file.
11201         * lib/unistr/u32-mbsnlen.c: New file.
11202
11203         * modules/unistr/u16-mbsnlen: New file.
11204         * lib/unistr/u16-mbsnlen.c: New file.
11205
11206         * modules/unistr/u8-mbsnlen: New file.
11207         * lib/unistr/u8-mbsnlen.c: New file.
11208
11209         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
11210         declarations.
11211
11212 2007-06-10  Bruno Haible  <bruno@clisp.org>
11213
11214         * lib/string_.h (mbsnlen): New declaration.
11215         * lib/mbsnlen.c: New file.
11216         * m4/mbsnlen.m4: New file.
11217         * modules/mbsnlen: New file.
11218         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
11219         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
11220         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
11221
11222 2007-06-10  Bruno Haible  <bruno@clisp.org>
11223
11224         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
11225
11226 2007-06-10  Bruno Haible  <bruno@clisp.org>
11227
11228         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
11229         * lib/mbuiter.h: Likewise.
11230
11231 2007-06-10  Bruno Haible  <bruno@clisp.org>
11232
11233         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
11234         declaration.
11235
11236 2007-06-10  Karl Berry  <karl@gnu.org>
11237
11238         * config/srclist.txt: remove gettext entries, Bruno prefers
11239         to update individually.
11240
11241 2007-06-10  Bruno Haible  <bruno@clisp.org>
11242
11243         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
11244         'maxlen'. Ensure only length + width bytes are allocated, not
11245         length + 1 + width.
11246
11247 2007-06-09  Bruno Haible  <bruno@clisp.org>
11248
11249         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
11250         (CHAR_T): Remove macro.
11251         (VASNPRINTF): Update.
11252
11253 2007-06-09  Bruno Haible  <bruno@clisp.org>
11254
11255         * MODULES.html.sh (Unicode string functions): Add the new modules.
11256
11257         * modules/uniconv/u32-conv-to-enc: New file.
11258         * lib/uniconv/u32-conv-to-enc.c: New file.
11259         * modules/uniconv/u32-conv-to-enc-tests: New file.
11260         * tests/uniconv/test-u32-conv-to-enc.c: New file.
11261
11262         * modules/uniconv/u16-conv-to-enc: New file.
11263         * lib/uniconv/u16-conv-to-enc.c: New file.
11264         * lib/uniconv/u-conv-to-enc.h: New file.
11265         * modules/uniconv/u16-conv-to-enc-tests: New file.
11266         * tests/uniconv/test-u16-conv-to-enc.c: New file.
11267
11268         * modules/uniconv/u8-conv-to-enc: New file.
11269         * lib/uniconv/u8-conv-to-enc.c: New file.
11270         * modules/uniconv/u8-conv-to-enc-tests: New file.
11271         * tests/uniconv/test-u8-conv-to-enc.c: New file.
11272
11273         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
11274         u32_conv_to_encoding): New declarations.
11275
11276 2007-06-09  Bruno Haible  <bruno@clisp.org>
11277
11278         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
11279
11280 2007-06-09  Bruno Haible  <bruno@clisp.org>
11281
11282         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
11283         * modules/malloca: Renamed from modules/allocsa, updated.
11284         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
11285         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
11286         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
11287         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
11288         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
11289         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
11290         * modules/xmalloca: Renamed from modules/xallocsa, updated.
11291         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
11292         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
11293         * modules/c-strcasestr (Depends-on): Update.
11294         * lib/c-strcasestr.c: Update.
11295         * modules/c-strstr (Depends-on): Update.
11296         * lib/c-strstr.c: Update.
11297         * modules/canonicalize-lgpl (Depends-on): Update.
11298         * lib/canonicalize-lgpl.c: Update.
11299         * modules/clean-temp (Depends-on): Update.
11300         * lib/clean-temp.c: Update.
11301         * modules/csharpcomp (Depends-on): Update.
11302         * lib/csharpcomp.c: Update.
11303         * modules/csharpexec (Depends-on): Update.
11304         * lib/csharpexec.c: Update.
11305         * modules/javacomp (Depends-on): Update.
11306         * lib/javacomp.c: Update.
11307         * modules/javaexec (Depends-on): Update.
11308         * lib/javaexec.c: Update.
11309         * modules/mbscasestr (Depends-on): Update.
11310         * lib/mbscasestr.c: Update.
11311         * modules/mbsstr (Depends-on): Update.
11312         * lib/mbsstr.c: Update.
11313         * modules/setenv (Depends-on): Update.
11314         * lib/setenv.c: Update.
11315         * modules/strcasestr (Depends-on): Update.
11316         * lib/strcasestr.c: Update.
11317         * modules/striconveha (Depends-on): Update.
11318         * lib/striconveha.c: Update.
11319         * modules/relocatable-prog-wrapper (Files): Update.
11320         * lib/relocwrapper.c: Update.
11321         * build-aux/install-reloc: Update.
11322         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
11323
11324 2007-06-08  Bruno Haible  <bruno@clisp.org>
11325
11326         Port to uClibc.
11327         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
11328         * lib/fpurge.c (fpurge): Likewise.
11329         * lib/freading.c (freading): Likewise.
11330         * lib/fseeko.c (rpl_fseeko): Likewise.
11331         * lib/fseterr.c (fseterr): Likewise.
11332         * lib/fwriting.c (fwriting): Likewise.
11333         * tests/test-fflush.c (main): Avoid a failure on uClibc.
11334
11335 2007-06-08  Bruno Haible  <bruno@clisp.org>
11336
11337         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
11338         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
11339         * modules/gettext (Files): Add m4/intlmacosx.m4.
11340
11341 2007-06-07  Bruno Haible  <bruno@clisp.org>
11342
11343         * modules/localename-tests: New file.
11344         * tests/test-localename.c: New file.
11345
11346         New module 'localename'.
11347         * lib/localename.h: New file.
11348         * lib/localename.c: New file, from GNU gettext.
11349         * m4/localename.m4: New file.
11350         * modules/localename: New file.
11351
11352 2007-06-07  Bruno Haible  <bruno@clisp.org>
11353
11354         Work around the lack of <wchar.h> on some builds of uClibc.
11355         * doc/headers/wchar.texi: Update.
11356         * lib/wchar_.h: Include <wchar.h> only if it exists.
11357         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
11358         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
11359         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
11360         doesn't exist.
11361         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
11362         * modules/mbfile (Depends-on): Add wchar.
11363         * modules/mbiter (Depends-on): Likewise.
11364         * modules/mbuiter (Depends-on): Likewise.
11365         Reported by Simon Josefsson.
11366
11367 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
11368
11369         Work around problem reported by Steven M. Schweda in
11370         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
11371         Tru64 5.1B with the Compaq compiler environment installed declares
11372         an 'isblank' function but does not define it in the C library.
11373         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
11374         * lib/regex_internal.h (isblank): Likewise.
11375         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
11376         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11377
11378 2007-06-05  Bruno Haible  <bruno@clisp.org>
11379
11380         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
11381         ia64.
11382         * modules/printf-safe: New file.
11383         * modules/fprintf-posix (Depends-on): Add printf-safe.
11384         * modules/printf-posix (Depends-on): Likewise.
11385         * modules/snprintf-posix (Depends-on): Likewise.
11386         * modules/sprintf-posix (Depends-on): Likewise.
11387         * modules/vasnprintf-posix (Depends-on): Likewise.
11388         * modules/vasprintf-posix (Depends-on): Likewise.
11389         * modules/vfprintf-posix (Depends-on): Likewise.
11390         * modules/vprintf-posix (Depends-on): Likewise.
11391         * modules/vsnprintf-posix (Depends-on): Likewise.
11392         * modules/vsprintf-posix (Depends-on): Likewise.
11393         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11394         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
11395         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
11396         "no" on i386, x86_64, ia64.
11397         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
11398         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11399         on i386, x86_64, ia64.
11400         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
11401         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11402         on i386, x86_64, ia64.
11403         * tests/test-vasnprintf-posix.c: Include float.h.
11404         (LDBL80_WORDS): New macro.
11405         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11406         on i386, x86_64, ia64.
11407         * tests/test-vasprintf-posix.c: Include float.h.
11408         (LDBL80_WORDS): New macro.
11409         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11410         on i386, x86_64, ia64.
11411         * tests/test-snprintf-posix.c: Include float.h.
11412         * tests/test-sprintf-posix.c: Likewise.
11413         * tests/test-vsnprintf-posix.c: Likewise.
11414         * tests/test-vsprintf-posix.c: Likewise.
11415
11416 2007-06-05  Bruno Haible  <bruno@clisp.org>
11417
11418         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
11419         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
11420         non-IEEE numbers on i386, x86_64, ia64.
11421         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
11422         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
11423         * tests/test-isnanl.h: Include float.h.
11424         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
11425
11426 2007-06-05  Bruno Haible  <bruno@clisp.org>
11427
11428         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
11429         also the %a / %A. Handle the %a / %A code before this extra handling.
11430
11431 2007-06-05  Bruno Haible  <bruno@clisp.org>
11432
11433         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
11434         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
11435
11436 2007-06-05  Bruno Haible  <bruno@clisp.org>
11437
11438         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
11439         typo in variable name.
11440
11441 2007-06-05  Eric Blake  <ebb9@byu.net>
11442
11443         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
11444         Reported by Simon Josefsson.
11445
11446 2007-06-04  Bruno Haible  <bruno@clisp.org>
11447
11448         Avoid test failures on some PowerPC platforms.
11449         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
11450         Define differently for PowerPC.
11451         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
11452         Reported by Gary V. Vaughan <gary@gnu.org>.
11453
11454 2007-06-02  Bruno Haible  <bruno@clisp.org>
11455
11456         Fix test-stdint failure on FreeBSD/ia64.
11457         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
11458         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
11459         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
11460         * doc/headers/stdint.texi: Update.
11461
11462 2007-06-01  Bruno Haible  <bruno@clisp.org>
11463
11464         * tests/test-binary-io.c (main): Pass a third argument to open().
11465         Reported by Gary V. Vaughan <gary@gnu.org>.
11466
11467 2007-06-01  Bruno Haible  <bruno@clisp.org>
11468
11469         * doc/functions/frexpl.texi: Update for mingw.
11470
11471 2007-06-01  Bruno Haible  <bruno@clisp.org>
11472
11473         * tests/test-lseek.c (main): Disable test of errno for invalid third
11474         argument.
11475         * doc/functions/lseek.texi: Update.
11476         Reported by Gary V. Vaughan <gary@gnu.org>.
11477
11478 2007-05-28  Bruno Haible  <bruno@clisp.org>
11479
11480         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
11481
11482 2007-05-31  Eric Blake  <ebb9@byu.net>
11483
11484         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
11485         cross compiling.
11486
11487 2007-05-30  Eric Blake  <ebb9@byu.net>
11488         and Bruno Haible  <bruno@clisp.org>
11489
11490         Work around mingw test failures exposed by m4-1.4.9b.
11491         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
11492         * tests/test-unistd.c: Disable uid_t and git_t tests for the
11493         moment.
11494
11495 2007-05-30  Bruno Haible  <bruno@clisp.org>
11496
11497         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
11498         assuming that they are closed. Needed on HP-UX 11.
11499
11500 2007-05-29  Bruno Haible  <bruno@clisp.org>
11501
11502         Fix a problem with #include_next.
11503         * lib/dirent_.h: Split the double-inclusion guard.
11504         * lib/fcntl_.h: Likewise.
11505         * lib/float_.h: Likewise.
11506         * lib/iconv_.h: Likewise.
11507         * lib/inttypes_.h: Likewise.
11508         * lib/locale_.h: Likewise.
11509         * lib/math_.h: Likewise.
11510         * lib/netinet_in_.h: Likewise.
11511         * lib/search_.h: Likewise.
11512         * lib/signal_.h: Likewise.
11513         * lib/stdint_.h: Likewise.
11514         * lib/stdio_.h: Likewise.
11515         * lib/stdlib_.h: Likewise.
11516         * lib/string_.h: Likewise.
11517         * lib/sys_select_.h: Likewise.
11518         * lib/sys_socket_.h: Likewise.
11519         * lib/sys_stat_.h: Likewise.
11520         * lib/sys_time_.h: Likewise.
11521         * lib/sysexits_.h: Likewise.
11522         * lib/time_.h: Likewise.
11523         * lib/unistd_.h: Likewise.
11524         * lib/wchar_.h: Likewise.
11525         * lib/wctype_.h: Likewise.
11526
11527 2007-05-29  Bruno Haible  <bruno@clisp.org>
11528
11529         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
11530         for the moment.
11531
11532 2007-05-29  Bruno Haible  <bruno@clisp.org>
11533
11534         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
11535         invocation.
11536         Reported by Eric Blake.
11537
11538 2007-05-29  Bruno Haible  <bruno@clisp.org>
11539
11540         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
11541         compiling case.
11542
11543 2007-05-29  Eric Blake  <ebb9@byu.net>
11544             Bruno Haible  <bruno@clisp.org>
11545
11546         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
11547         cross compiles.
11548
11549 2007-05-28  Eric Blake  <ebb9@byu.net>
11550
11551         * modules/closein-tests (test_closein_LDADD): Support test on
11552         cygwin with libtool.
11553
11554 2007-05-28  Bruno Haible  <bruno@clisp.org>
11555
11556         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
11557         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11558         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11559         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11560         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11561         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11562         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11563         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11564         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11565
11566 2007-05-28  Eric Blake  <ebb9@byu.net>
11567
11568         Unconditionally include <config.h> in unit tests.
11569         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
11570         * tests/test-allocsa.c, tests/test-arcfour.c,
11571         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
11572         tests/test-array_list.c, tests/test-array_oset.c,
11573         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
11574         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
11575         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
11576         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
11577         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
11578         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
11579         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
11580         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
11581         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
11582         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
11583         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
11584         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
11585         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
11586         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
11587         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
11588         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
11589         test-md5.c, test-memmem.c, test-printf-posix.c,
11590         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
11591         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
11592         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
11593         test-strcasestr.c, test-striconv.c, test-striconveh.c,
11594         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
11595         test-vasnprintf-posix2.c, test-vasnprintf.c,
11596         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
11597         test-vfprintf-posix.c, test-vprintf-posix.c,
11598         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
11599         test-xvasprintf.c: Likewise.
11600
11601 2007-05-28  Bruno Haible  <bruno@clisp.org>
11602
11603         * gnulib-tool (func_import): Remember the --with-tests command-line
11604         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
11605         Reported by Eric Blake.
11606
11607 2007-05-28  Bruno Haible  <bruno@clisp.org>
11608
11609         * modules/ftell-tests: New file.
11610         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
11611         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
11612
11613         * lib/ftell.c: New file.
11614         * modules/ftell: New file.
11615         * m4/ftell.m4: New file.
11616         * doc/functions/ftell.texi: Update.
11617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
11618         REPLACE_FTELL.
11619         * lib/stdio_.h (rpl_ftell): New declaration.
11620         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
11621         REPLACE_FTELL.
11622
11623 2007-05-28  Eric Blake  <ebb9@byu.net>
11624
11625         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
11626
11627 2007-05-28  Bruno Haible  <bruno@clisp.org>
11628
11629         * modules/fseek-tests: New file.
11630         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
11631         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
11632
11633         * lib/fseek.c: New file.
11634         * modules/fseek: New file.
11635         * m4/fseek.m4: New file.
11636         * doc/functions/fseek.texi: Update.
11637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
11638         REPLACE_FSEEK.
11639         * lib/stdio_.h (rpl_fseek): New declaration.
11640         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
11641         REPLACE_FSEEK.
11642
11643 2007-05-28  Bruno Haible  <bruno@clisp.org>
11644
11645         * lib/stdio_.h (fflush): More comments.
11646
11647 2007-05-28  Bruno Haible  <bruno@clisp.org>
11648
11649         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
11650         runtime test.
11651
11652 2007-05-28  Eric Blake  <ebb9@byu.net>
11653
11654         Improve lseek module.
11655         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
11656         * lib/unistd_.h (lseek): Scale back link warning message.
11657         * tests/test-lseek.c: Beef up test.
11658         * tests/test-lseek.sh: Exercise more facets of lseek.
11659         Reported by Bruno Haible.
11660
11661 2007-05-28  Bruno Haible  <bruno@clisp.org>
11662
11663         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
11664         to define.
11665
11666 2007-05-27  Bruno Haible  <bruno@clisp.org>
11667
11668         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
11669
11670 2007-05-27  Bruno Haible  <bruno@clisp.org>
11671
11672         * modules/openmp: New file.
11673         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
11674         Noah Misch.
11675
11676 2007-05-26  Bruno Haible  <bruno@clisp.org>
11677
11678         * modules/chdir-long (Depends-on): Add fchdir.
11679         * modules/chdir-safer (Depends-on): Likewise.
11680         * modules/fts (Depends-on): Likewise.
11681         * modules/fts-lgpl (Depends-on): Likewise.
11682         * modules/openat (Depends-on): Likewise.
11683         * modules/savewd (Depends-on): Likewise.
11684
11685 2007-05-24  Eric Blake  <ebb9@byu.net>
11686
11687         Fix lseek on mingw.
11688         * modules/lseek: New module.
11689         * m4/lseek.m4: New file.
11690         * lib/lseek.c: New file.
11691         * modules/lseek-tests: New file.
11692         * tests/test-lseek.c: New file.
11693         * tests/test-lseek.sh: New file.
11694         * MODULES.html.sh: Document lseek module.
11695         * modules/fflush (Depends-on): Add lseek, fseeko.
11696         * modules/fseeko (Depends-on): Likewise.
11697         * modules/ftello (Depends-on): Likewise.
11698         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
11699         broken.
11700         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
11701         broken.
11702         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
11703         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
11704         * lib/ftello.c (rpl_ftello): Likewise.
11705         * tests/test-fseeko.c (main): Test this.
11706         * tests/test-fseeko.sh: Likewise.
11707         * tests/test-ftello.c (main): Likewise.
11708         * tests/test-ftello.sh: Likewise.
11709         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
11710         implies replacing fseek.
11711         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
11712         HAVE_FTELLO.
11713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
11714         * modules/unistd (Makefile.am): Likewise.
11715         * lib/unistd_.h (lseek): Declare a replacement.
11716         * doc/functions/lseek.texi (lseek): Document this fix.
11717         * doc/functions/fseek.texi (fseek): Likewise.
11718         * doc/functions/ftell.texi (ftell): Likewise.
11719
11720 2007-05-24  Bruno Haible  <bruno@clisp.org>
11721
11722         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
11723         in the printed representation of a NaN.
11724         * tests/test-vasprintf-posix.c (test_function): Likewise.
11725         * tests/test-snprintf-posix.h (test_function): Likewise.
11726         * tests/test-sprintf-posix.h (test_function): Likewise.
11727         Reported by Eric Blake.
11728
11729 2007-05-23  Eric Blake  <ebb9@byu.net>
11730
11731         Fix fseeko/ftello on cygwin 1.5.24.
11732         * doc/functions/fseeko.texi (fseeko): Document the fix.
11733         * doc/functions/ftello.texi (ftello): Document the fix.
11734         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
11735         * doc/functions/stdout.text (stdout): New file.
11736         * doc/functions/stderr.text (stderr): New file.
11737         * doc/gnulib.texi (Function Substitutes): Use new files.
11738         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
11739         prior to 1.7.0.
11740         * tests/test-ftello.c (main): Likewise for ftello.
11741         * tests/test-fseeko.sh: New file.
11742         * tests/test-ftello.sh: New file.
11743         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
11744         with seekable stdin.
11745         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
11746         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
11747         (gl_REPLACE_FSEEKO): New macro.
11748         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
11749         * modules/fseeko (Files): Distribute fseeko.c.
11750         * modules/ftello (Files): Distribute ftello.c.
11751         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
11752         mode.
11753         * lib/ftello.c (rpl_ftello): New file.
11754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
11755         fseeko, ftello.
11756         (gl_STDIN_LARGE_OFFSET): New macro.
11757         * modules/stdio (Makefile.am): Perform the replacement.
11758         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
11759
11760 2007-05-23  Bruno Haible  <bruno@clisp.org>
11761
11762         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
11763         GNULIB_POSIXCHECK is defined.
11764
11765 2007-05-21  Bruno Haible  <bruno@clisp.org>
11766
11767         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
11768         Check also the output for NaN arguments. When cross-compiling, guess
11769         no on IRIX.
11770         * lib/vasnprintf.c: Update comments.
11771         * tests/test-vasnprintf-posix.c (strisnan): New function.
11772         (test_function): Use it.
11773         * tests/test-vasprintf-posix.c (strisnan): New function.
11774         (test_function): Use it.
11775         * tests/test-snprintf-posix.h (strisnan): New function.
11776         (test_function): Use it.
11777         * tests/test-sprintf-posix.h (strisnan): New function.
11778         (test_function): Use it.
11779         Reported by Eric Blake.
11780
11781 2007-05-20  Bruno Haible  <bruno@clisp.org>
11782
11783         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
11784         numbers that fails on BeOS.
11785         * doc/functions/frexpl.texi: Update.
11786
11787 2007-05-20  Jim Meyering  <jim@meyering.net>
11788
11789         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
11790         forced upon us by glibc-2.6.
11791
11792 2007-05-20  Bruno Haible  <bruno@clisp.org>
11793
11794         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
11795         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
11796         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
11797         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
11798         NEED_PRINTF_INFINITE.
11799         (is_infinitel): New function.
11800         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
11801         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
11802         gl_PREREQ_VASNPRINTF_INFINITE.
11803         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
11804         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11805         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
11806         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
11807         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
11808         gl_PREREQ_VASNPRINTF_INFINITE.
11809         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
11810         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11811         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11812         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11813         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
11814         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11815         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11816         * doc/functions/fprintf.texi: Update.
11817         * doc/functions/printf.texi: Update.
11818         * doc/functions/snprintf.texi: Update.
11819         * doc/functions/sprintf.texi: Update.
11820         * doc/functions/vfprintf.texi: Update.
11821         * doc/functions/vprintf.texi: Update.
11822         * doc/functions/vsnprintf.texi: Update.
11823         * doc/functions/vsprintf.texi: Update.
11824
11825 2007-05-20  Bruno Haible  <bruno@clisp.org>
11826
11827         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
11828         was not found in libc.
11829         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11830
11831 2007-05-20  Bruno Haible  <bruno@clisp.org>
11832
11833         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
11834         printed as "-nan" instead of "nan".
11835         * tests/test-vasprintf-posix.c (test_function): Likewise.
11836         * tests/test-snprintf-posix.h (test_function): Likewise.
11837         * tests/test-sprintf-posix.h (test_function): Likewise.
11838         Needed for HP-UX 11.
11839
11840 2007-05-20  Jim Meyering  <jim@meyering.net>
11841
11842         Fix buggy test for the fchownat-deref bug.
11843         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
11844         symlink required for the run-test.  Without it, this test would
11845         always declare that fchownat doesn't work, and client code would
11846         unnecessarily use the replacement function with fixed libc.
11847         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
11848         Reported by Greg Schafer.
11849
11850 2007-05-19  Bruno Haible  <bruno@clisp.org>
11851
11852         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
11853         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
11854         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
11855         Needed for IRIX 6.5 and Solaris 2.5.1.
11856
11857 2007-05-19  Bruno Haible  <bruno@clisp.org>
11858
11859         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
11860         (test_function): Skip tests involving -0.0 on platforms where
11861         -0.0 = 0.0.
11862         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
11863         (test_function): Skip tests involving -0.0 on platforms where
11864         -0.0 = 0.0.
11865         * tests/test-snprintf-posix.h (have_minus_zero): New function.
11866         (test_function): Skip tests involving -0.0 on platforms where
11867         -0.0 = 0.0.
11868         * tests/test-sprintf-posix.h (have_minus_zero): New function.
11869         (test_function): Skip tests involving -0.0 on platforms where
11870         -0.0 = 0.0.
11871         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
11872         tests.
11873         * tests/test-printf-posix.h (test_function): Likewise.
11874         * tests/test-printf-posix.output: Remove all -0.0 related results.
11875         Needed for IRIX 6.5.
11876
11877 2007-05-19  Bruno Haible  <bruno@clisp.org>
11878
11879         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
11880         printed as "nan0x7fffffff" instead of "nan".
11881         * tests/test-vasprintf-posix.c (test_function): Likewise.
11882         * tests/test-snprintf-posix.h (test_function): Likewise.
11883         * tests/test-sprintf-posix.h (test_function): Likewise.
11884         * tests/test-fprintf-posix.h (NaN): Remove macro.
11885         (test_function): Remove all NaN related tests.
11886         * tests/test-printf-posix.h (NaN): Remove macro.
11887         (test_function): Remove all NaN related tests.
11888         * tests/test-printf-posix.output: Remove all NaN related results.
11889         Needed for IRIX 6.5.
11890
11891 2007-05-19  Bruno Haible  <bruno@clisp.org>
11892
11893         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
11894         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11895
11896 2007-05-19  Bruno Haible  <bruno@clisp.org>
11897
11898         * lib/float_.h: New file.
11899         * m4/float_h.m4: New file.
11900         * modules/float: New file.
11901         * modules/isnanl (Dependencies): Add float.
11902         * modules/isnanl-nolibm (Dependencies): Likewise.
11903         * modules/mathl (Dependencies): Likewise.
11904         * modules/printf-frexpl (Dependencies): Likewise.
11905         * modules/signbit (Dependencies): Likewise.
11906         * modules/vasnprintf (Dependencies): Likewise.
11907         * doc/headers/float.texi: Update.
11908
11909 2007-05-19  Jim Meyering  <jim@meyering.net>
11910
11911         * lib/utimens.c (gl_futimens): Rename from futimens,
11912         now that glibc-2.6 declares futimens.
11913         * lib/utimens.h: Likewise.
11914
11915 2007-05-19  Bruno Haible  <bruno@clisp.org>
11916
11917         Avoid test failures on mingw.
11918         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
11919         * tests/test-printf-posix.sh: Likewise.
11920         * tests/test-vfprintf-posix.sh: Likewise.
11921         * tests/test-vprintf-posix.sh: Likewise.
11922
11923 2007-05-19  Bruno Haible  <bruno@clisp.org>
11924
11925         Fix *printf result for NaN, Inf, -0.0 on mingw.
11926         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
11927         * lib/vasnprintf.c: Include math.h and isnan.h.
11928         (is_infinite_or_zero): New function.
11929         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
11930         values in the %f, %F, %e, %E, %g, %G directives.
11931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
11932         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11933         gl_PRINTF_INFINITE and test its result. Invoke
11934         gl_PREREQ_VASNPRINTF_INFINITE.
11935         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
11936         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11937         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11938         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11939         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
11940         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11941         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11942         * doc/functions/fprintf.texi: Update.
11943         * doc/functions/printf.texi: Update.
11944         * doc/functions/snprintf.texi: Update.
11945         * doc/functions/sprintf.texi: Update.
11946         * doc/functions/vfprintf.texi: Update.
11947         * doc/functions/vprintf.texi: Update.
11948         * doc/functions/vsnprintf.texi: Update.
11949         * doc/functions/vsprintf.texi: Update.
11950
11951 2007-05-19  Bruno Haible  <bruno@clisp.org>
11952
11953         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
11954         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
11955         Instead of multiplying with 10^k, set extra_zeroes to k.
11956         (scale10_round_long_double): Remove function.
11957
11958 2007-05-18  Bruno Haible  <bruno@clisp.org>
11959
11960         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
11961         introduced on 2007-05-06.
11962
11963 2007-05-18  Bruno Haible  <bruno@clisp.org>
11964
11965         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
11966         %g directives.
11967         * tests/test-vasprintf-posix.c (test_function): Likewise.
11968         * tests/test-snprintf-posix.h (test_function): Likewise.
11969         * tests/test-sprintf-posix.h (test_function): Likewise.
11970
11971 2007-05-18  Bruno Haible  <bruno@clisp.org>
11972
11973         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
11974         (strmatch): New function.
11975         (test_function): Test the %f directive on numbers of various exponents.
11976         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
11977         (strmatch): New function.
11978         (test_function): Test the %f directive on numbers of various exponents.
11979         * tests/test-snprintf-posix.h (strmatch): New function.
11980         (test_function): Test the %f directive on numbers of various exponents.
11981         * tests/test-sprintf-posix.h (strmatch): New function.
11982         (test_function): Test the %f directive on numbers of various exponents.
11983         * tests/test-snprintf-posix.c (SIZEOF): New macro.
11984         * tests/test-sprintf-posix.c (SIZEOF): New macro.
11985         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
11986         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
11987
11988 2007-05-18  Bruno Haible  <bruno@clisp.org>
11989
11990         Add support for 'long double' number output.
11991         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
11992         * lib/vasnprintf.c: Include math.h and float+.h.
11993         (mp_limb_t): New type.
11994         (GMP_LIMB_BITS): New macro.
11995         (mp_twolimb_t): New type.
11996         (GMP_TWOLIMB_BITS): New macro.
11997         (mpn_t): New type.
11998         (multiply, divide, convert_to_decimal, decode_long_double,
11999         scale10_round_long_double, scale10_round_decimal_long_double,
12000         floorlog10l): New functions.
12001         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
12002         for the %f, %F, %e, %E, %g, %G directives.
12003         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
12004         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12005         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
12006         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
12007         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12008         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12009         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12010         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12011         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12012         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12013         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12014         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
12015         * modules/snprintf-posix (Depends-on): Likewise.
12016         * modules/sprintf-posix (Depends-on): Likewise.
12017         * modules/vasnprintf-posix (Depends-on): Likewise.
12018         * modules/vasprintf-posix (Depends-on): Likewise.
12019         * modules/vfprintf-posix (Depends-on): Likewise.
12020         * modules/vsnprintf-posix (Depends-on): Likewise.
12021         * modules/vsprintf-posix (Depends-on): Likewise.
12022         * modules/vasnprintf (Files): Add lib/float+.h.
12023         * doc/functions/fprintf.texi: Update.
12024         * doc/functions/printf.texi: Update.
12025         * doc/functions/snprintf.texi: Update.
12026         * doc/functions/sprintf.texi: Update.
12027         * doc/functions/vfprintf.texi: Update.
12028         * doc/functions/vprintf.texi: Update.
12029         * doc/functions/vsnprintf.texi: Update.
12030         * doc/functions/vsprintf.texi: Update.
12031
12032 2007-05-18  Bruno Haible  <bruno@clisp.org>
12033
12034         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
12035
12036 2007-05-18  Bruno Haible  <bruno@clisp.org>
12037
12038         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
12039         for printing 64-bit integers. Needed for mingw.
12040
12041 2007-05-18  Bruno Haible  <bruno@clisp.org>
12042
12043         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
12044         gl_FUNC_FREXPL_WORKS.
12045         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
12046
12047 2007-05-18  Bruno Haible  <bruno@clisp.org>
12048
12049         * modules/frexpl-nolibm-tests: New file.
12050
12051         * modules/frexpl-nolibm: New file.
12052         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
12053
12054 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12055
12056         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
12057         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
12058         GCC 4.2, which otherwise issues a lot of warnings.
12059         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
12060         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
12061         Likewise.
12062         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
12063         * modules/iconv_open (iconv.h): Likewise.
12064         * modules/locale (locale.h): Likewise.
12065         * modules/netinet_in (netinet/in.h): Likewise.
12066         * modules/sys_select (sys_select.h): Likewise.
12067         * modules/sys_socket (sys/socket.h): Likewise.
12068         * modules/sys_stat (sys/stat.h): Likewise.
12069         * modules/sysexits (sysexits.h): Likewise.
12070         * modules/unistd (unistd.h): Likewise.
12071
12072 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12073
12074         * modules/closein-tests (Makefile.am): Distribute
12075         `test-closein.sh'.
12076
12077 2007-05-17  Bruno Haible  <bruno@clisp.org>
12078
12079         * tests/test-printf-posix.output: Renamed from
12080         tests/test-fprintf-posix.out.
12081         * modules/fprintf-posix-tests: Update.
12082         * modules/printf-posix-tests: Update.
12083         * modules/vfprintf-posix-tests: Update.
12084         * modules/vprintf-posix-tests: Update.
12085         * tests/test-fprintf-posix.sh: Update.
12086         * tests/test-printf-posix.sh: Update.
12087         * tests/test-vfprintf-posix.sh: Update.
12088         * tests/test-vprintf-posix.sh: Update.
12089         Reported by Ralf Wildenhues.
12090
12091 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12092
12093         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
12094         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
12095         GCC 4.2, which otherwise issues a lot of warnings.
12096         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
12097         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
12098         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
12099         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
12100         it should no longer be needed.
12101         * lib/string_.h: Likewise.
12102         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
12103         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
12104         * modules/inttypes (inttypes.h): Likewise.
12105         * modules/math (math.h): Likewise.
12106         * modules/search (search.h): Likewise.
12107         * modules/signal (signal.h): Likewise.
12108         * modules/stdint (stdint.h): Likewise.
12109         * modules/stdio (stdio.h): Likewise.
12110         * modules/stdlib (stdlib.h): Likewise.
12111         * modules/string (string.h): Likewise.
12112         * modules/sys_time (sys/time.h): Likewise.
12113         * modules/time (time.h): Likewise.
12114         * modules/wchar (wchar.h): Likewise.
12115         * modules/wctype (wtype.h): Likewise.
12116
12117 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12118
12119         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
12120
12121 2007-05-13  Bruno Haible  <bruno@clisp.org>
12122
12123         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
12124         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12125         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
12126         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
12127         (gl_PREREQ_STRTOK_R): Don't require it here.
12128
12129 2007-05-13  Bruno Haible  <bruno@clisp.org>
12130
12131         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
12132         when used in C++ mode.
12133
12134 2007-05-12  Bruno Haible  <bruno@clisp.org>
12135
12136         * lib/linebuffer.h: Tweak doc.
12137         * lib/linebuffer.c: Likewise.
12138
12139 2007-05-12  James Youngman  <jay@gnu.org>
12140
12141         * lib/linebuffer.c (readlinebuffer_delim): New function,
12142         like readlinebuffer, but use a caller-specified delimiter.
12143         (readlinebuffer): Just call readlinebuffer_delim with '\n'
12144         as the delimiter.
12145         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
12146
12147 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12148
12149         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
12150         * modules/openat (Files): Remove openat-die.c.
12151         (Depends-on): Add openat-die.
12152         * modules/openat-die: New module.
12153
12154 2007-05-06  Bruno Haible  <bruno@clisp.org>
12155
12156         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
12157         Update with info about Cygwin.
12158         * doc/functions/fprintf.texi: Update.
12159         * doc/functions/printf.texi: Update.
12160         * doc/functions/snprintf.texi: Update.
12161         * doc/functions/sprintf.texi: Update.
12162         * doc/functions/vfprintf.texi: Update.
12163         * doc/functions/vprintf.texi: Update.
12164         * doc/functions/vsnprintf.texi: Update.
12165         * doc/functions/vsprintf.texi: Update.
12166         Reported by Eric Blake.
12167
12168 2007-05-06  Bruno Haible  <bruno@clisp.org>
12169
12170         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
12171         padding ourselves for the floating-point directives.
12172         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
12173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
12174         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12175         gl_PRINTF_FLAG_ZERO and test its result. Invoke
12176         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
12177         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12178         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
12179         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12180         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12181         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12182         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12183         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12184         * tests/test-snprintf-posix.h (test_function): Also check the width
12185         and some flags in the %f directive.
12186         * tests/test-sprintf-posix.h (test_function): Likewise.
12187         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12188         * tests/test-vasprintf-posix.c (test_function): Likewise.
12189         * doc/functions/fprintf.texi: Update.
12190         * doc/functions/printf.texi: Update.
12191         * doc/functions/snprintf.texi: Update.
12192         * doc/functions/sprintf.texi: Update.
12193         * doc/functions/vfprintf.texi: Update.
12194         * doc/functions/vprintf.texi: Update.
12195         * doc/functions/vsnprintf.texi: Update.
12196         * doc/functions/vsprintf.texi: Update.
12197
12198 2007-05-06  Bruno Haible  <bruno@clisp.org>
12199
12200         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
12201         pass the ' flag character to sprintf or snprintf.
12202         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
12203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
12204         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12205         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
12206         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
12207         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12208         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
12209         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12210         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12211         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12212         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12213         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12214         * tests/test-snprintf-posix.h (test_function): Also check the grouping
12215         flag.
12216         * tests/test-sprintf-posix.h (test_function): Likewise.
12217         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12218         * tests/test-vasprintf-posix.c (test_function): Likewise.
12219         * doc/functions/fprintf.texi: Update.
12220         * doc/functions/printf.texi: Update.
12221         * doc/functions/snprintf.texi: Update.
12222         * doc/functions/sprintf.texi: Update.
12223         * doc/functions/vfprintf.texi: Update.
12224         * doc/functions/vprintf.texi: Update.
12225         * doc/functions/vsnprintf.texi: Update.
12226         * doc/functions/vsprintf.texi: Update.
12227
12228 2007-05-01  Bruno Haible  <bruno@clisp.org>
12229
12230         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
12231
12232 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
12233
12234         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
12235         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
12236
12237 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
12238
12239         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
12240         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
12241         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
12242
12243 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
12244
12245         * lib/argp-help.c (struct hol_entry): New member `ord'.
12246         (HOL_ENTRY_PTRCMP): Use ord for comparison
12247         (hol_sort): Initialize ord.
12248
12249 2007-05-01  Bruno Haible  <bruno@clisp.org>
12250
12251         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
12252         Reported by Eric Blake.
12253         * doc/gnulib.texi (Function Substitutes): Update.
12254
12255 2007-05-01  Bruno Haible  <bruno@clisp.org>
12256
12257         * doc/functions.texi: Remove file, now redundant through
12258         doc/functions/*.texi.
12259
12260 2007-05-01  Bruno Haible  <bruno@clisp.org>
12261
12262         * modules/argp (Depends-on): Add sleep.
12263
12264 2007-05-01  Bruno Haible  <bruno@clisp.org>
12265
12266         * modules/sleep-tests: New file.
12267         * tests/test-sleep.c: New file.
12268
12269         * modules/sleep: New file.
12270         * lib/sleep.c: New file.
12271         * m4/sleep.m4: New file.
12272         * lib/unistd_.h (sleep): New declaration.
12273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
12274         HAVE_SLEEP.
12275         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
12276         * doc/functions/sleep.texi: Document the sleep module.
12277
12278 2007-05-01  Bruno Haible  <bruno@clisp.org>
12279
12280         * lib/sigprocmask.h: Remove file.
12281         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
12282         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
12283         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
12284         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
12285         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12286         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
12287         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
12288         HAVE_SIGSET_T as a shell variable.
12289         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
12290         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
12291         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
12292         (Depends-on): Add signal. Remove verify.
12293         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
12294         (Include): Mention <signal.h> instead of sigprocmask.h.
12295         * NEWS: Mention the change.
12296         * lib/fatal-signal.c: Don't include sigprocmask.h.
12297
12298 2007-05-01  Bruno Haible  <bruno@clisp.org>
12299
12300         * modules/signal: New file.
12301         * lib/signal_.h: New file.
12302         * m4/signal_h.m4: New file.
12303
12304 2007-05-01  Bruno Haible  <bruno@clisp.org>
12305
12306         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
12307         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
12308         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
12309         HAVE_WCTYPE_CTMP_BUG into wctype.h.
12310
12311 2007-05-01  Bruno Haible  <bruno@clisp.org>
12312
12313         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
12314         configure time.
12315         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
12316         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
12317         * modules/sys_stat (Makefile.am): Substitute their values into
12318         sys/stat.h.
12319
12320 2007-05-01  Bruno Haible  <bruno@clisp.org>
12321
12322         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
12323         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
12324         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
12325
12326 2007-05-01  Bruno Haible  <bruno@clisp.org>
12327
12328         * doc/header/assert.texi: Undo last change: don't mention the gnulib
12329         'assert' module here.
12330
12331 2007-05-01  Bruno Haible  <bruno@clisp.org>
12332
12333         * doc/functions/*.texi: New files.
12334         * doc/functions/google-ranking.txt: New file.
12335         * doc/gnulib.texi (Function Substitutes): New chapter.
12336         (ctime, inet_ntoa): Remove sections.
12337         * doc/ctime.texi: Remove file.
12338         * doc/inet_ntoa.texi: Remove file.
12339         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
12340         dependencies.
12341         (%.info): New rule, specifying a --reference-limit.
12342
12343 2007-05-01  Bruno Haible  <bruno@clisp.org>
12344
12345         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
12346
12347 2007-05-01  Bruno Haible  <bruno@clisp.org>
12348
12349         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
12350         the portability of 'mkdir' to mingw systems.
12351
12352 2007-05-01  Bruno Haible  <bruno@clisp.org>
12353
12354         * doc/headers/google-ranking.txt: New file.
12355
12356 2007-04-30  Eric Blake  <ebb9@byu.net>
12357
12358         Prefer fseeko to fseek.
12359         * modules/getpass (Depends-on): Add fseeko.
12360         * lib/getpass.c (getpass): Use fseeko, not fseek.
12361
12362 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
12363
12364         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
12365         assumes the sorting is stable, while most qsort implementations
12366         are not.  Use argument addresses to ensure they never compare as
12367         equal.
12368
12369         * tests/test-argp-2.sh (usage-indent test): Fix output
12370         (func_compare): Restore diff options
12371         * tests/test-argp.c: Restore #include "progname.h"
12372
12373 2007-04-29  Bruno Haible  <bruno@clisp.org>
12374
12375         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
12376         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12377         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
12378         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12379         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
12380         (configure.ac): Define CHECK_SNPRINTF_POSIX.
12381         (TESTS, check_PROGRAMS): Add test-snprintf.
12382         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
12383         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
12384         (TESTS, check_PROGRAMS): Add test-vsnprintf.
12385         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
12386         assertions that fail on HP-UX, OSF/1, or IRIX.
12387         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
12388
12389 2007-04-29  Bruno Haible  <bruno@clisp.org>
12390
12391         * MODULES.html.sh (posix_functions): Remove 'contents'.
12392
12393 2007-04-29  Karl Berry  <karl@gnu.org>
12394
12395         * config/srclist.txt (gendocs_template_min): new entry.
12396
12397 2007-04-29  Bruno Haible  <bruno@clisp.org>
12398
12399         Work around fpurge bug on BSD systems.
12400         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
12401         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
12402         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
12403         fpurge to rpl_fpurge if the system already has this function.
12404         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
12405         the case where the system already has this function. Correct invariants
12406         on BSD systems.
12407         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
12408         BSD systems.
12409
12410 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
12411
12412         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
12413         proposed by Sven Verdoolaege.
12414
12415         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
12416         options.
12417         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
12418         (usage and help tests): Update
12419
12420 2007-04-29  Bruno Haible  <bruno@clisp.org>
12421
12422         * tests/test-fflush.c (main): Use a file of size 17, not 10.
12423         Print more information in case of failure. Disable a test on BeOS.
12424
12425 2007-04-29  Bruno Haible  <bruno@clisp.org>
12426
12427         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
12428         This helps debugging on systems on which no gdb is available.
12429
12430 2007-04-29  Bruno Haible  <bruno@clisp.org>
12431
12432         * lib/freading.h: Improve comments.
12433         * lib/fwriting.h: Likewise.
12434         * tests/test-freading.c (main): Don't check freading immediately after
12435         repositioning. Needed for glibc.
12436
12437 2007-04-29  Bruno Haible  <bruno@clisp.org>
12438
12439         * lib/freading.c (freading): Trivial simplification.
12440
12441 2007-04-28  Bruno Haible  <bruno@clisp.org>
12442
12443         * tests/test-fwriting.c (main): Also test the interaction between
12444         fflush and fwriting.
12445         * modules/fwriting-tests (Depends-on): Add fflush.
12446
12447         * tests/test-freading.c (main): Also test the interaction between
12448         fflush and freading.
12449         * modules/freading-tests (Depends-on): Add fflush.
12450
12451 2007-04-28  Bruno Haible  <bruno@clisp.org>
12452
12453         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
12454         fseeko and ftello.
12455         Suggested by Eric Blake.
12456
12457 2007-04-28  Jim Meyering  <jim@meyering.net>
12458
12459         Avoid false-negative in gl_STDINT_H's C99 conformance test.
12460         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
12461         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
12462
12463 2007-04-27  Eric Blake  <ebb9@byu.net>
12464
12465         * doc/headers/assert.texi (assert.h): Document assert module use.
12466
12467 2007-04-27  Bruno Haible  <bruno@clisp.org>
12468
12469         * doc/headers/*.texi: New files.
12470         * doc/gnulib.texi (Header File Substitutes): New chapter.
12471         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
12472         dependencies.
12473         (standards.info ,standards.html, standards.dvi): Update dependencies.
12474         (mostlyclean, clean): New targets.
12475
12476 2007-04-27  Bruno Haible  <bruno@clisp.org>
12477
12478         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
12479         * modules/sysexits (Files, Makefile.am): Update.
12480
12481         * lib/sys_socket_.h: Renamed from lib/socket_.h.
12482         * modules/sys_socket (Files, Makefile.am): Update.
12483
12484         * lib/sys_stat_.h: Renamed from lib/stat_.h.
12485         * modules/sys_stat (Files, Makefile.am): Update.
12486
12487 2007-04-27  Eric Blake  <ebb9@byu.net>
12488
12489         * lib/freading.h: Improve comments.
12490         * lib/fwriting.h: Likewise.
12491         * lib/fflush.c: Likewise.
12492
12493         Fix closein for mingw.
12494         * modules/closein-tests: Add tests for closein.
12495         * tests/test-closein.c: New file.
12496         * tests/test-closein.sh: Likewise.
12497         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
12498         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
12499
12500 2007-04-27  Bruno Haible  <bruno@clisp.org>
12501
12502         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
12503         version is < 6.
12504         * lib/math_.h [__DECC]: Likewise.
12505         * lib/stdio_.h [__DECC]: Likewise.
12506         * lib/stdlib_.h [__DECC]: Likewise.
12507         * lib/string_.h [__DECC]: Likewise.
12508         * lib/time_.h [__DECC]: Likewise.
12509         * lib/wchar_.h [__DECC]: Likewise.
12510         * lib/wctype_.h [__DECC]: Likewise.
12511
12512 2007-04-27  Bruno Haible  <bruno@clisp.org>
12513
12514         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
12515
12516 2007-04-27  Bruno Haible  <bruno@clisp.org>
12517
12518         * lib/fflush.c: Add comments.
12519         * modules/fpurge-tests (Depends-on): Add fflush.
12520         * modules/freadable-tests (Depends-on): Likewise.
12521         * modules/fwritable-tests (Depends-on): Likewise.
12522
12523 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
12524
12525         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
12526         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
12527         Report by Bruno Haible <bruno@clisp.org>.
12528
12529 2007-04-26  Eric Blake  <ebb9@byu.net>
12530
12531         Fix fflush on mingw.
12532         * modules/fflush (Depends-on): Add freading.
12533         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
12534         but unread data.
12535
12536 2007-04-26  Eric Blake  <ebb9@byu.net>
12537         and Bruno Haible  <bruno@clisp.org>
12538
12539         Implement freading and fwriting.
12540         * lib/freading.c: New file.
12541         * lib/freading.h: Likewise.
12542         * m4/freading.m4: Likewise.
12543         * modules/freading: Likewise.
12544         * modules/freading-tests: Likewise.
12545         * tests/test-freading.c: Likewise.
12546         * lib/fwriting.c: New file.
12547         * lib/fwriting.h: Likewise.
12548         * m4/fwriting.m4: Likewise.
12549         * modules/fwriting: Likewise.
12550         * modules/fwriting-tests: Likewise.
12551         * tests/test-fwriting.c: Likewise.
12552         * MODULES.html.sh (File stream based Input/Output): Mention them.
12553
12554 2007-04-26  Bruno Haible  <bruno@clisp.org>
12555
12556         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
12557         'long' when we assume it.
12558         Suggested by Eric Blake.
12559
12560 2007-04-26  Bruno Haible  <bruno@clisp.org>
12561
12562         Ensure fseeko, ftello are declared on glibc systems.
12563         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
12564         * modules/fseeko (configure.ac-early): Likewise.
12565         * modules/ftello (configure.ac-early): Likewise.
12566         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
12567         AC_FUNC_FSEEKO for this.
12568         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
12569         (gl_CHECK_FSEEKO): Remove macro.
12570
12571 2007-04-26  Bruno Haible  <bruno@clisp.org>
12572
12573         * tests/test-fflush.c (main): Also check the ftell result after
12574         fflush and fseek/fseeko.
12575         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
12576         file descriptor position cache in the stream.
12577         * lib/fseeko.c (rpl_fseeko): Likewise.
12578
12579 2007-04-26  Bruno Haible  <bruno@clisp.org>
12580
12581         * modules/fflush-tests (Depends-on): Add fseeko.
12582
12583 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
12584             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12585
12586         * lib/argz_.h: ensure error_t definition is obtained in same
12587         mechanism system argz.h would have.
12588         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
12589         argz facilities are known bad.  Err on the side of caution if
12590         cross-compiling.
12591
12592 2007-04-25  Eric Blake  <ebb9@byu.net>
12593
12594         * lib/fpurge.c (includes): Use stdlib.h for free.
12595         * tests/test-fflush.c (main): Also test fflush-fseeko.
12596
12597 2007-04-25  Bruno Haible  <bruno@clisp.org>
12598
12599         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
12600         * lib/fseeko.c: New file.
12601         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
12602         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
12603         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
12604         gl_FUNC_FSEEKO.
12605         (gl_FUNC_FSEEKO): Invoke it.
12606         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
12607         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
12608         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
12609
12610 2007-04-25  Bruno Haible  <bruno@clisp.org>
12611
12612         * modules/fflush (Depends-on): Add ftello.
12613
12614 2007-04-25  Bruno Haible  <bruno@clisp.org>
12615
12616         * modules/ftello-tests: New file.
12617         * tests/test-ftello.c: New file.
12618
12619         * modules/ftello: New file.
12620         * m4/ftello.m4: New file.
12621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
12622         HAVE_FTELLO.
12623         * lib/stdio_.h (ftello): New declaration.
12624         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
12625         HAVE_FTELLO.
12626
12627 2007-04-25  Bruno Haible  <bruno@clisp.org>
12628
12629         * modules/fseeko-tests: New file.
12630         * tests/test-fseeko.c: New file.
12631
12632         * modules/fseeko: New file.
12633         * m4/fseeko.m4: New file.
12634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
12635         HAVE_FSEEKO.
12636         * lib/stdio_.h (fseeko): New declaration.
12637         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
12638         HAVE_FSEEKO.
12639
12640 2007-04-25  Bruno Haible  <bruno@clisp.org>
12641
12642         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
12643
12644 2007-04-25  Bruno Haible  <bruno@clisp.org>
12645
12646         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
12647         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
12648         * tests/test-unistd.c: Likewise.
12649         * tests/test-fcntl.c: Likewise.
12650
12651 2007-04-23  Eric Blake  <ebb9@byu.net>
12652
12653         * lib/fflush.c: Fix missing include.
12654         Reported by Bruno Haible.
12655
12656 2007-04-23  Bruno Haible  <bruno@clisp.org>
12657
12658         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
12659         Reported by Eric Blake.
12660
12661 2007-04-23  Bruno Haible  <bruno@clisp.org>
12662
12663         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
12664
12665 2007-04-23  Bruno Haible  <bruno@clisp.org>
12666
12667         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
12668
12669 2007-04-23  Bruno Haible  <bruno@clisp.org>
12670
12671         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
12672         Needed on HP-UX 11.
12673
12674 2007-04-16  Eric Blake  <ebb9@byu.net>
12675
12676         Make fflush rely on fpurge.
12677         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
12678         open coding all variants.
12679         * modules/fflush (Depends-on): Add fpurge and unistd.
12680         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
12681         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
12682
12683         Fix --with-tests compilation on cygwin.
12684         * modules/argmatch-tests (Makefile.am): List gnulib library first
12685         in LDADD.
12686         * modules/argp-tests (Makefile.am): Likewise.
12687         * modules/array-list-tests (Makefile.am): Likewise.
12688         * modules/array-oset-tests (Makefile.am): Likewise.
12689         * modules/avltree-list-tests (Makefile.am): Likewise.
12690         * modules/avltree-oset-tests (Makefile.am): Likewise.
12691         * modules/avltreehash-list-tests (Makefile.am): Likewise.
12692         * modules/carray-list-tests (Makefile.am): Likewise.
12693         * modules/dirname-tests (Makefile.am): Likewise.
12694         * modules/frexp-tests (Makefile.am): Likewise.
12695         * modules/isnanl-tests (Makefile.am): Likewise.
12696         * modules/linked-list-tests (Makefile.am): Likewise.
12697         * modules/linkedhash-list-tests (Makefile.am): Likewise.
12698         * modules/lock-tests (Makefile.am): Likewise.
12699         * modules/rbtree-list-tests (Makefile.am): Likewise.
12700         * modules/rbtree-oset-tests (Makefile.am): Likewise.
12701         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
12702         * modules/tls-tests (Makefile.am): Likewise.
12703         * modules/tsearch-tests (Makefile.am): Likewise.
12704         * modules/xvasprintf-tests (Makefile.am): Likewise.
12705
12706         Fix fpurge for cygwin.
12707         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
12708         value.
12709         * modules/fpurge-tests (Depends-on): Clean up trash.
12710
12711 2007-04-16  Simon Josefsson  <simon@josefsson.org>
12712
12713         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
12714
12715         * m4/autobuild.m4: Re-indent.
12716
12717 2007-04-13  Bruno Haible  <bruno@clisp.org>
12718
12719         * modules/fpurge-tests: New file.
12720         * tests/test-fpurge.c: New file.
12721
12722         * modules/fpurge: New file.
12723         * lib/fpurge.h: New file.
12724         * lib/fpurge.c: New file.
12725         * m4/fpurge.m4: New file.
12726
12727 2007-04-13  Bruno Haible  <bruno@clisp.org>
12728
12729         * modules/fbufmode-tests: New file.
12730         * tests/test-fbufmode.c: New file.
12731
12732         * modules/fbufmode: New file.
12733         * lib/fbufmode.h: New file.
12734         * lib/fbufmode.c: New file.
12735         * m4/fbufmode.m4: New file.
12736
12737 2007-04-13  Bruno Haible  <bruno@clisp.org>
12738
12739         * modules/fwritable-tests: New file.
12740         * tests/test-fwritable.c: New file.
12741
12742         * modules/fwritable: New file.
12743         * lib/fwritable.h: New file.
12744         * lib/fwritable.c: New file.
12745         * m4/fwritable.m4: New file.
12746
12747 2007-04-13  Bruno Haible  <bruno@clisp.org>
12748
12749         * modules/freadable-tests: New file.
12750         * tests/test-freadable.c: New file.
12751
12752         * modules/freadable: New file.
12753         * lib/freadable.h: New file.
12754         * lib/freadable.c: New file.
12755         * m4/freadable.m4: New file.
12756
12757 2007-04-13  Bruno Haible  <bruno@clisp.org>
12758
12759         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
12760         MOSTLYCLEANFILES.
12761
12762 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
12763
12764         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
12765         gzip bootstrap.conf to avoid dragging in i18n machinery.
12766         (gnulib_tool_option): Use it.
12767
12768 2007-04-13  Bruno Haible  <bruno@clisp.org>
12769
12770         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
12771         %F directives.
12772         * tests/test-vasprintf-posix.c (test_function): Likewise.
12773         * tests/test-snprintf-posix.h (test_function): Likewise.
12774         * tests/test-sprintf-posix.h (test_function): Likewise.
12775         * tests/test-fprintf-posix.h (test_function): Likewise.
12776         * tests/test-printf-posix.h (test_function): Likewise.
12777         * tests/test-fprintf-posix.out: Likewise.
12778
12779 2007-04-13  Bruno Haible  <bruno@clisp.org>
12780
12781         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
12782         * modules/tls-tests (configure.ac): Likewise.
12783         Reported by Arto C. Nirkko <anirkko@insel.ch>.
12784
12785 2007-04-13  Bruno Haible  <bruno@clisp.org>
12786
12787         * lib/tls.c (glthread_tls_get): Fix return type.
12788         Patch by Arto C. Nirkko <anirkko@insel.ch>.
12789
12790 2007-04-12  Eric Blake  <ebb9@byu.net>
12791
12792         * modules/gettime (Depends-on): Remove gettime.
12793         Reported by Dmitry V. Levin.
12794
12795 2007-04-12  Bruno Haible  <bruno@clisp.org>
12796
12797         * modules/fflush (Include): Mention <stdio.h>.
12798         * modules/strtoimax (Include): Mention <inttypes.h>.
12799         * modules/strtoumax (Include): Likewise.
12800
12801 2007-04-12  Eric Blake  <ebb9@byu.net>
12802
12803         * .cvsignore: New file.
12804         * .gitignore: Likewise.
12805
12806 2007-04-12  Bruno Haible  <bruno@clisp.org>
12807
12808         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
12809         not before, since $(LDADD) often contains libgnu.a.
12810         * modules/striconv-tests (test_striconv_LDADD): Likewise.
12811         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
12812         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
12813         Needed on Cygwin.
12814
12815 2007-04-12  Eric Blake  <ebb9@byu.net>
12816
12817         Work around glibc's failure to flush stdin on fclose.
12818         * lib/closein.c (close_stdin): Flush stdin before closing.
12819
12820         Work around glibc's failure to reset seekable stdin on exit.
12821         * modules/closein: New module.
12822         * lib/closein.c: New file.
12823         * lib/closein.h: Likewise.
12824         * m4/closein.m4: Likewise.
12825         * MODULES.html.sh (File stream based Input/Output): Document it.
12826
12827 2007-04-12  Simon Josefsson  <simon@josefsson.org>
12828
12829         * gnulib-tool: Rename generated 'autobuild' script to
12830         'do-autobuild' in --create-megatestdir output.
12831
12832         * doc/gnulib.texi (Build robot for gnulib): Fix.
12833
12834 2007-04-12  Simon Josefsson  <simon@josefsson.org>
12835
12836         * modules/sysexits (Depends-on): Add absolute-header.
12837
12838 2007-04-12  Eric Blake  <ebb9@byu.net>
12839
12840         No need to preserve errno on success.
12841         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
12842         Reported by Bruno Haible.
12843
12844 2007-04-12  Simon Josefsson  <simon@josefsson.org>
12845
12846         * MODULES.html.sh (Support for maintaining and releasing
12847         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
12848
12849 2007-04-12  Simon Josefsson  <simon@josefsson.org>
12850
12851         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
12852
12853 2007-04-12  Simon Josefsson  <simon@josefsson.org>
12854
12855         * modules/autobuild: New module.
12856
12857         * m4/autobuild.m4: New file.
12858
12859 2007-04-11  Bruno Haible  <bruno@clisp.org>
12860
12861         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
12862         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
12863         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
12864         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
12865         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12866         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12867         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12868         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12869         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12870         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12871         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
12872         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12873         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12874         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
12875         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12876         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12877         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
12878         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12879         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12880         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
12881         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12882         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12883         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
12884         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12885         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12886         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
12887         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12888         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12889         Reported by Eric Blake.
12890
12891 2007-04-11  Bruno Haible  <bruno@clisp.org>
12892
12893         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
12894
12895 2007-04-10  Bruno Haible  <bruno@clisp.org>
12896
12897         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
12898         for NaN and Infinity. Needed on FreeBSD 6.1.
12899         * tests/test-vasnprintf-posix.c (test_function): Undo last change
12900         regarding results for "%010a" of Infinity and NaN.
12901         * tests/test-vasprintf-posix.c (test_function): Likewise.
12902         * tests/test-snprintf-posix.h (test_function): Likewise.
12903         * tests/test-sprintf-posix.h (test_function): Likewise.
12904         * tests/test-fprintf-posix.h (test_function): Likewise.
12905         * tests/test-printf-posix.h (test_function): Likewise.
12906         * tests/test-fprintf-posix.out: Likewise.
12907
12908 2007-04-10  Bruno Haible  <bruno@clisp.org>
12909
12910         * modules/locale-tests: New file.
12911         * tests/test-locale.c: New file.
12912
12913         * modules/locale: New file.
12914         * lib/locale_.h: New file.
12915         * m4/locale_h.m4: New file.
12916
12917 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
12918             Bruno Haible  <bruno@clisp.org>
12919
12920         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
12921         be determined, test for availability of the copysignf, copysign,
12922         copysignl functions.
12923         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
12924         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
12925         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
12926
12927 2007-04-09  Eric Blake  <ebb9@byu.net>
12928
12929         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
12930         * modules/stdio (Makefile.am): Support fflush.
12931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12932         * modules/fflush: New file.
12933         * lib/fflush.c: Likewise.
12934         * m4/fflush.m4: Likewise.
12935         * modules/fflush-tests: New test.
12936         * tests/test-fflush.c: Likewise.
12937         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
12938
12939 2007-04-06  Bruno Haible  <bruno@clisp.org>
12940
12941         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
12942         (VASNPRINTF): Use signbit for faster determination whether to print a
12943         minus sign.
12944         * modules/vasnprintf (Files): Remove lib/float+.h.
12945         * modules/fprintf-posix (Depends-on): Add signbit.
12946         * modules/snprintf-posix (Depends-on): Likewise.
12947         * modules/sprintf-posix (Depends-on): Likewise.
12948         * modules/vasnprintf-posix (Depends-on): Likewise.
12949         * modules/vasprintf-posix (Depends-on): Likewise.
12950         * modules/vfprintf-posix (Depends-on): Likewise.
12951         * modules/vsnprintf-posix (Depends-on): Likewise.
12952         * modules/vsprintf-posix (Depends-on): Likewise.
12953
12954 2007-04-06  Bruno Haible  <bruno@clisp.org>
12955
12956         * tests/test-frexp.c (main): Test also the sign bit of zero results.
12957         * tests/test-frexpl.c (main): Likewise.
12958         * tests/test-ldexpl.c (main): Likewise.
12959         * modules/frexp-tests (Depends-on): Add signbit.
12960         * modules/frexpl-tests (Depdends-on): Likewise.
12961         * modules/ldexpl-tests (Depdends-on): Likewise.
12962
12963 2007-04-06  Bruno Haible  <bruno@clisp.org>
12964
12965         * modules/signbit-tests: New file.
12966         * tests/test-signbit.c: New file.
12967
12968         * modules/signbit: New file.
12969         * lib/signbitf.c: New file.
12970         * lib/signbitd.c: New file.
12971         * lib/signbitl.c: New file.
12972         * m4/signbit.m4: New file.
12973         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
12974         (signbit): New macro.
12975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
12976         REPLACE_SIGNBIT.
12977         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
12978         REPLACE_FREXPL into math.h.
12979
12980 2007-04-06  Bruno Haible  <bruno@clisp.org>
12981
12982         * modules/isnanf-nolibm-tests: New file.
12983         * tests/test-isnanf.c: New file.
12984
12985         * modules/isnanf-nolibm: New file.
12986         * lib/isnanf.h: New file.
12987         * lib/isnanf.c: New file.
12988         * lib/isnan.c: Consider the USE_FLOAT macro.
12989         * m4/isnanf.m4: New file.
12990
12991 2007-04-06  Bruno Haible  <bruno@clisp.org>
12992
12993         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
12994         (Link): New section.
12995
12996         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
12997
12998 2007-04-06  Bruno Haible  <bruno@clisp.org>
12999
13000         Assume the 'long double' type.
13001         * m4/longdouble.m4: Remove file.
13002         * config/srclist.txt: Don't mention longdouble.m4.
13003         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
13004         * lib/float+.h: Likewise.
13005         * lib/frexp.c: Likewise.
13006         * lib/printf-args.h: Likewise.
13007         * lib/printf-args.c: Likewise.
13008         * lib/printf-frexp.c: Likewise.
13009         * lib/printf-parse.c: Likewise.
13010         * lib/vasnprintf.c: Likewise.
13011         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
13012         * m4/intl.m4: Likewise.
13013         * m4/isnanl.m4: Likewise.
13014         * m4/printf.m4: Likewise.
13015         * m4/printf-frexpl.m4: Likewise.
13016         * m4/vasnprintf.m4: Likewise.
13017         * modules/allocsa (Files): Remove m4/longdouble.m4.
13018         * modules/gettext (Files): Likewise.
13019         * modules/relocatable-prog-wrapper (Files): Likewise.
13020         * modules/vasnprintf (Files): Likewise.
13021         * modules/isnanl (Files): Likewise.
13022         (Include): Simplify.
13023         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
13024         (Include): Simplify.
13025         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
13026         (Include): Simplify.
13027         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
13028         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13029         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
13030         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13031         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
13032         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13033         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
13034         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13035         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
13036         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13037         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
13038         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13039         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
13040         * tests/test-isnanl.c: Likewise.
13041         * tests/test-snprintf-posix.h: Likewise.
13042         * tests/test-sprintf-posix.h: Likewise.
13043         * tests/test-vasnprintf-posix.c: Likewise.
13044         * tests/test-vasnprintf-posix2.c: Likewise.
13045         * tests/test-vasprintf-posix.c: Likewise.
13046
13047 2007-04-06  Bruno Haible  <bruno@clisp.org>
13048
13049         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
13050         * lib/math_.h [__DECC]: Include the overridden include file through
13051         #include_next, outside the double-inclusion guard.
13052         * lib/stdio_.h [__DECC]: Likewise.
13053         * lib/stdlib_.h [__DECC]: Likewise.
13054         * lib/string_.h [__DECC]: Likewise.
13055         * lib/time_.h [__DECC]: Likewise.
13056         * lib/wchar_.h [__DECC]: Likewise.
13057         * lib/wctype_.h [__DECC]: Likewise.
13058         * lib/inttypes_.h [__DECC]: Likewise.
13059         Reported by Albert Chin <china@thewrittenword.com> in
13060         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
13061
13062 2007-04-04  Eric Blake  <ebb9@byu.net>
13063
13064         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
13065         1.5.x.
13066
13067 2007-04-04  Bruno Haible  <bruno@clisp.org>
13068
13069         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
13070         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
13071
13072 2007-04-04  Bruno Haible  <bruno@clisp.org>
13073
13074         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
13075         results for "%010a" of Infinity and NaN.
13076         * tests/test-vasprintf-posix.c (test_function): Likewise.
13077         * tests/test-snprintf-posix.h (test_function): Likewise.
13078         * tests/test-sprintf-posix.h (test_function): Likewise.
13079         * tests/test-fprintf-posix.h (test_function): Remove these tests.
13080         * tests/test-printf-posix.h (test_function): Likewise.
13081         * tests/test-fprintf-posix.out: Update.
13082         Needed for FreeBSD 6.1.
13083
13084 2007-04-04  Bruno Haible  <bruno@clisp.org>
13085
13086         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
13087         directly used by the gnulib modules nor by gnulib-tool.
13088
13089 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
13090
13091         * DEPENDENCIES: Give overall description of version dependency
13092         desirability.  Use more-typical names for apps.
13093         Add shell, coreutils, diffutils, grep, tar, gzip.
13094
13095 2007-04-04  Simon Josefsson  <simon@josefsson.org>
13096
13097         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
13098
13099 2007-04-04  Karl Berry  <karl@gnu.org>
13100
13101         * MODULES.html.sh (func_module): missing '.
13102
13103 2007-04-03  Bruno Haible  <bruno@clisp.org>
13104
13105         * modules/argmatch-tests (Makefile.am): New variable
13106         test_argmatch_LDADD.
13107         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
13108         * modules/array-list-tests (Makefile.am): New variable
13109         test_array_list_LDADD.
13110         * modules/array-oset-tests (Makefile.am): New variable
13111         test_array_oset_LDADD.
13112         * modules/avltree-list-tests (Makefile.am): New variable
13113         test_avltree_list_LDADD.
13114         * modules/avltree-oset-tests (Makefile.am): New variable
13115         test_avltree_oset_LDADD.
13116         * modules/avltreehash-list-tests (Makefile.am): New variable
13117         test_avltreehash_list_LDADD.
13118         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
13119         test_canonicalize_lgpl_LDADD.
13120         * modules/carray-list-tests (Makefile.am): New variable
13121         test_carray_list_LDADD.
13122         * modules/dirname-tests (Makefile.am): New variable
13123         test_dirname_LDADD.
13124         * modules/linked-list-tests (Makefile.am): New variable
13125         test_linked_list_LDADD.
13126         * modules/linkedhash-list-tests (Makefile.am): New variable
13127         test_linkedhash_list_LDADD.
13128         * modules/rbtree-list-tests (Makefile.am): New variable
13129         test_rbtree_list_LDADD.
13130         * modules/rbtree-oset-tests (Makefile.am): New variable
13131         test_rbtree_oset_LDADD.
13132         * modules/rbtreehash-list-tests (Makefile.am): New variable
13133         test_rbtreehash_list_LDADD.
13134         * modules/xvasprintf-tests (Makefile.am): New variable
13135         test_xvasprintf_LDADD.
13136         Reported by Eric Blake.
13137
13138 2007-04-03  Eric Blake  <ebb9@byu.net>
13139
13140         * DEPENDENCIES: Weaken m4 requirements.
13141
13142 2007-04-03  Bruno Haible  <bruno@clisp.org>
13143
13144         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
13145         * modules/isnanl-tests (configure.ac): Likewise.
13146
13147 2007-04-03  Ben Pfaff  <blp@gnu.org>
13148
13149         * modules/iconv_open: Add $(srcdir)/ to source directory
13150         references in Makefile fragments that call gperf, to fix VPATH
13151         builds.
13152
13153 2007-04-03  Bruno Haible  <bruno@clisp.org>
13154
13155         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
13156         * lib/ldexpl.c: Undo last change.
13157
13158 2007-04-03  Bruno Haible  <bruno@clisp.org>
13159
13160         * modules/printf-frexpl (Depends-on): Undo last change.
13161         (Files): Add m4/ldexpl.m4.
13162
13163 2007-04-03  Bruno Haible  <bruno@clisp.org>
13164
13165         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
13166         * modules/isnanl (Link): New section.
13167
13168         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
13169         * modules/frexp (Link): New section.
13170
13171         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
13172         * modules/frexpl (Link): New section.
13173
13174         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
13175         * modules/ldexpl (Link): New section.
13176
13177 2007-04-03  Bruno Haible  <bruno@clisp.org>
13178
13179         * modules/TEMPLATE-EXTENDED: New file.
13180         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
13181
13182 2007-04-03  Bruno Haible  <bruno@clisp.org>
13183
13184         * DEPENDENCIES: New file.
13185         Suggested by Simon Josefsson.
13186
13187 2007-04-03  Bruno Haible  <bruno@clisp.org>
13188
13189         * doc/gnulib.texi: Escape @.
13190
13191 2007-04-03  James Youngman  <jay@gnu.org>
13192         and Paul Eggert  <eggert@cs.ucla.edu>
13193
13194         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
13195         birthtime on all systems that have birthtime, not just those which
13196         use st_birthtimensec rather than st_birthtim.  Putting zero in
13197         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
13198         that the birth time is not available for files on an NFS mount.
13199
13200 2007-04-03  Simon Josefsson  <simon@josefsson.org>
13201
13202         * modules/memxor: Move back from crypto/, suggested by Bruno.
13203         * modules/crypto/hmac-sha1: Fix memxor dependency.
13204
13205         * modules/crypto/gc: Moved from ../.
13206
13207 2007-04-02  Eric Blake  <ebb9@byu.net>
13208
13209         * lib/ldexpl.c (includes): Avoid libm.
13210
13211         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
13212
13213 2007-04-02  Bruno Haible  <bruno@clisp.org>
13214
13215         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
13216         on IRIX.
13217
13218 2007-04-02  Bruno Haible  <bruno@clisp.org>
13219
13220         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
13221         x86 or x86_64 platforms running MacOS X.
13222         Reported by Ryan Schmidt <@ryandesign.com>.
13223
13224 2007-04-02  Bruno Haible  <bruno@clisp.org>
13225
13226         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
13227         i386.
13228
13229 2007-04-01  Simon Josefsson  <simon@josefsson.org>
13230
13231         * modules/crypto/arcfour: Moved from ../.
13232         * modules/crypto/arcfour-tests: Moved from ../.
13233         * modules/crypto/arctwo: Moved from ../.
13234         * modules/crypto/arctwo-tests: Moved from ../.
13235         * modules/crypto/des: Moved from ../.
13236         * modules/crypto/des-tests: Moved from ../.
13237         * modules/crypto/gc-arcfour: Moved from ../.
13238         * modules/crypto/gc-arcfour-tests: Moved from ../.
13239         * modules/crypto/gc-arctwo: Moved from ../.
13240         * modules/crypto/gc-arctwo-tests: Moved from ../.
13241         * modules/crypto/gc-des: Moved from ../.
13242         * modules/crypto/gc-des-tests: Moved from ../.
13243         * modules/crypto/gc-hmac-md5: Moved from ../.
13244         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
13245         * modules/crypto/gc-hmac-sha1: Moved from ../.
13246         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
13247         * modules/crypto/gc-md2: Moved from ../.
13248         * modules/crypto/gc-md2-tests: Moved from ../.
13249         * modules/crypto/gc-md4: Moved from ../.
13250         * modules/crypto/gc-md4-tests: Moved from ../.
13251         * modules/crypto/gc-md5: Moved from ../.
13252         * modules/crypto/gc-md5-tests: Moved from ../.
13253         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
13254         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
13255         * modules/crypto/gc-random: Moved from ../.
13256         * modules/crypto/gc-rijndael: Moved from ../.
13257         * modules/crypto/gc-rijndael-tests: Moved from ../.
13258         * modules/crypto/gc-sha1: Moved from ../.
13259         * modules/crypto/gc-sha1-tests: Moved from ../.
13260         * modules/crypto/gc-tests: Moved from ../.
13261         * modules/crypto/hmac-md5: Moved from ../.
13262         * modules/crypto/hmac-md5-tests: Moved from ../.
13263         * modules/crypto/hmac-sha1: Moved from ../.
13264         * modules/crypto/hmac-sha1-tests: Moved from ../.
13265         * modules/crypto/md2: Moved from ../.
13266         * modules/crypto/md2-tests: Moved from ../.
13267         * modules/crypto/md4: Moved from ../.
13268         * modules/crypto/md4-tests: Moved from ../.
13269         * modules/crypto/md5: Moved from ../.
13270         * modules/crypto/md5-tests: Moved from ../.
13271         * modules/crypto/memxor: Moved from ../.
13272         * modules/crypto/rijndael: Moved from ../.
13273         * modules/crypto/rijndael-tests: Moved from ../.
13274         * modules/crypto/sha1: Moved from ../.
13275
13276 2007-03-30  James Youngman  <jay@gnu.org>
13277
13278         * tests/test-stat-time.c (prepare_test): use chmod() rather than
13279         rename() to change the ctime of a file (because ctime is unaffected
13280         by rename on jfs2 on AIX 5.1).
13281         (main): Start by doing cleanup, in case a previous run failed leaving
13282         test files behind.
13283
13284 2007-03-31  Bruno Haible  <bruno@clisp.org>
13285
13286         Support old proprietary implementations of iconv.
13287         * modules/iconv_open: New file.
13288         * lib/iconv_.h: New file.
13289         * m4/iconv_h.m4: New file.
13290         * lib/iconv_open.c: New file.
13291         * lib/iconv_open-aix.gperf: New file.
13292         * lib/iconv_open-hpux.gperf: New file.
13293         * lib/iconv_open-irix.gperf: New file.
13294         * lib/iconv_open-osf.gperf: New file.
13295         * m4/iconv_open.m4: New file.
13296         * modules/linebreak (Depends-on): Add iconv_open.
13297         * modules/striconv (Depends-on): Likewise.
13298         * modules/striconveh (Depends-on): Likewise.
13299         * modules/unicodeio (Depends-on): Likewise.
13300         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
13301         (iconv_t)(-1).
13302         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
13303         conversion if cd is (iconv_t)(-1).
13304         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
13305         is not possible.
13306
13307 2007-03-31  Bruno Haible  <bruno@clisp.org>
13308
13309         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
13310         work on Solaris either. Protect also second use of "autodetect_jp".
13311
13312 2007-03-31  Bruno Haible  <bruno@clisp.org>
13313
13314         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
13315         the function is not present.
13316
13317 2007-03-31  Bruno Haible  <bruno@clisp.org>
13318
13319         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
13320         the function is not present.
13321
13322 2007-03-31  Bruno Haible  <bruno@clisp.org>
13323
13324         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
13325         a bug in HP-UX iconv_open().
13326
13327 2007-03-31  Bruno Haible  <bruno@clisp.org>
13328
13329         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
13330         (Mathematics <math.h>): New section, add fpieee.
13331         (Input/output <stdio.h>): Add fseterr.
13332         (Mathematics <math.h>): New section, add printf-frexp.
13333         (Container data structures): Add sublist.
13334         (Core language properties): Add fpucw, inline.
13335         (Functions for greatest-width integer types <inttypes.h>): Add
13336         imaxabs, imaxdiv, inttypes.
13337         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
13338         isnanl-nolibm, ldexp.
13339         (Mathematics <math.h>): New section, add printf-frexpl.
13340         (Support for systems lacking POSIX:2001): Add fprintf-posix,
13341         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
13342         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
13343         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
13344         (Unicode string functions): Add unistr/u*-mbtoucr.
13345         (Java): Add javacomp-script, javaexec-script.
13346         (C#): Add csharpcomp-script, csharpexec-script.
13347         (Support for building libraries and executables): Add havelib,
13348         relocatable-*.
13349         (Support for maintaining and releasing projects): Renamed from
13350         'Support for maintaining and release projects'. Add announce-gen.
13351
13352 2007-03-31  Bruno Haible  <bruno@clisp.org>
13353
13354         * README: Talk primarily about git.
13355         (git and CVS): Renamed from CVS.
13356         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
13357         gnulib is available through git.
13358         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
13359
13360 2007-03-30  Bruno Haible  <bruno@clisp.org>
13361
13362         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
13363         * lib/poll_.h: Likewise.
13364         * lib/stat_.h: Likewise.
13365         * lib/sys_time_.h: Likewise.
13366         * lib/sysexit_.h: Likewise.
13367         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
13368         * lib/stdbool_.h: Likewise.
13369         * lib/byteswap_.h: Add double-inclusion guard.
13370
13371 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
13372
13373         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
13374
13375 2007-03-30  Karl Berry  <karl@gnu.org>
13376
13377         * config/srclist-update: double space after USA in the license
13378         substitution, since that's how it's usually (?) written.
13379
13380 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
13381
13382         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
13383         reported by Bruno Haible.
13384
13385 2007-03-29  Bruno Haible  <bruno@clisp.org>
13386
13387         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
13388         a bug in AIX iconv().
13389
13390 2007-03-29  Bruno Haible  <bruno@clisp.org>
13391
13392         * modules/ldexpl-tests: New file.
13393         * tests/test-ldexpl.c: New file.
13394
13395 2007-03-29  Bruno Haible  <bruno@clisp.org>
13396
13397         * lib/ldexpl.c: Include fpucw.h.
13398         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
13399         multiplication.
13400         * modules/ldexpl (Depends-on): Add fpucw.
13401
13402 2007-03-29  Bruno Haible  <bruno@clisp.org>
13403
13404         * modules/ldexpl: New file.
13405         * m4/ldexpl.m4: New file.
13406         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
13407         set.
13408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
13409         REPLACE_LDEXPL.
13410         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
13411         REPLACE_LDEXPL.
13412         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
13413         gl_FUNC_LDEXPL_WORKS.
13414         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
13415         * modules/mathl (Files): Remove lib/ldexpl.c.
13416         (Depends-on): Add ldexpl.
13417
13418 2007-03-29  Bruno Haible  <bruno@clisp.org>
13419
13420         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
13421
13422 2007-03-29  Bruno Haible  <bruno@clisp.org>
13423
13424         * tests/test-striconveh.c (main): Don't assume that a direct conversion
13425         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
13426         and possibly also HP-UX.
13427         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
13428         work on AIX, IRIX, HP-UX, OSF/1.
13429         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
13430         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
13431         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
13432         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
13433         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
13434         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
13435
13436 2007-03-29  Bruno Haible  <bruno@clisp.org>
13437
13438         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
13439
13440 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
13441
13442         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
13443         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
13444
13445 2007-03-29  Eric Blake  <ebb9@byu.net>
13446
13447         * lib/acl-internal.h: Remove redundant include.
13448         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
13449         Cygwin when a file is locked.
13450
13451 2007-03-29  Bruno Haible  <bruno@clisp.org>
13452
13453         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
13454         file.
13455         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
13456
13457 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
13458
13459         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
13460         try to remove a parent directory if the child couldn't be removed
13461         (except for the first rmdir, which could fail because the child
13462         doesn't exist).  Problem reported by Jeff Blaine in
13463         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
13464
13465 2007-03-28  Bruno Haible  <bruno@clisp.org>
13466
13467         * lib/striconveh.c (utf8conv_carefully): New function.
13468         (mem_cd_iconveh_internal): Invoke it.
13469
13470 2007-03-28  Bruno Haible  <bruno@clisp.org>
13471
13472         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
13473         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
13474         input.
13475         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
13476         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
13477         unistr/u8-uctomb.
13478
13479 2007-03-28  Bruno Haible  <bruno@clisp.org>
13480
13481         * modules/unistr/u8-mbtoucr: New file.
13482         * lib/unistr/u8-mbtoucr.c: New file.
13483         * modules/unistr/u16-mbtoucr: New file.
13484         * lib/unistr/u16-mbtoucr.c: New file.
13485         * modules/unistr/u16-mbtoucr: New file.
13486         * lib/unistr/u16-mbtoucr.c: New file.
13487         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
13488
13489 2007-03-27  Simon Josefsson  <simon@josefsson.org>
13490             Bruno Haible  <bruno@clisp.org>
13491
13492         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
13493         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
13494         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
13495
13496         * m4/stdio_h.m4: Add stubs for vasprintf too.
13497
13498         * modules/stdio: Support vasprintf in sed command.
13499
13500         * modules/vasprintf: Depend on stdio for prototypes.  Remove
13501         vasprintf.h.  Add stdio module indicator.
13502
13503         * lib/stdio_.h: Declare asprintf and vasprintf, based on
13504         vasprintf.h.
13505
13506         * lib/vasprintf.h: File removed.
13507
13508         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
13509         * lib/vasprintf.c: Ditto.
13510         * lib/xvasprintf.c: Ditto.
13511         * tests/test-vasprintf-posix.c: Ditto.
13512         * tests/test-vasprintf.c: Ditto.
13513
13514 2007-03-27  Bruno Haible  <bruno@clisp.org>
13515
13516         Make vasnprintf multithread-safe.
13517         * lib/vasnprintf.c (decimal_point_char): New function.
13518         (VASNPRINTF): Use it.
13519         Suggested by Simon Josefsson.
13520
13521 2007-03-27  Eric Blake  <ebb9@byu.net>
13522
13523         Support sub-second birthtime on cygwin.
13524         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
13525         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
13526         (get_stat_birthtime): Also work with st_birthtim.
13527
13528 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
13529
13530         * lib/stat-time.h (USE_BIRTHTIME): Remove.
13531         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
13532         (get_stat_birthtime_ns): Do not try to use "spare" fields.
13533         (get_stat_birthtime_ns): Simplify compile-time tests.
13534         (get_stat_birthtime): Change the API to look like
13535         get_stat_mtime etc., except return a negative tv_nsec on error.
13536         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
13537         Don't check for "spare" fields.
13538         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
13539         or for struct stat.st_birthtime, as these tests aren't used.
13540         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
13541
13542 2007-03-27  Bruno Haible  <bruno@clisp.org>
13543
13544         * lib/stat-time.h: Include <sys/stat.h>.
13545
13546 2007-03-27  James Youngman  <jay@gnu.org>
13547
13548         * lib/stat-time.h (get_stat_birthtime): New function for
13549           retrieving st_birthtime as provided by UFS2 (hence *BSD).
13550         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
13551           and its variants.
13552         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
13553         * modules/stat-time-test: New file.
13554         * tests/test-stat-time.c: New test, devised by Bruno Haible.
13555
13556 2007-03-26  Bruno Haible  <bruno@clisp.org>
13557
13558         Better support of signalling NaNs.
13559         * lib/atanl.c: Include isnanl.h.
13560         (atanl): Perform test for NaN at the beginning of the function and
13561         through a call to isnanl.
13562         * lib/cosl.c: Include isnanl.h.
13563         (cosl): Perform test for NaN at the beginning of the function and
13564         through a call to isnanl.
13565         * lib/ldexpl.c: Include isnanl.h.
13566         (ldexpl): Perform test for NaN through a call to isnanl.
13567         * lib/logl.c: Include isnanl.h.
13568         (logl): Perform test for NaN at the beginning of the function and
13569         through a call to isnanl.
13570         * lib/sinl.c: Include isnanl.h.
13571         (sinl): Perform test for NaN at the beginning of the function and
13572         through a call to isnanl.
13573         * lib/sqrtl.c: Include isnanl.h.
13574         (sqrtl): Perform test for NaN at the beginning of the function and
13575         through a call to isnanl.
13576         * lib/tanl.c: Include isnanl.h.
13577         (tanl): Perform test for NaN at the beginning of the function and
13578         through a call to isnanl.
13579         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
13580         * modules/mathl (Depends-on): Add isnanl.
13581
13582 2007-03-26  Eric Blake  <ebb9@byu.net>
13583
13584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
13585         regression in logic sense of previous patch.
13586
13587 2007-03-26  Bruno Haible  <bruno@clisp.org>
13588
13589         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
13590         unportable shell command "if ! ...".
13591         Reported by Ralf Wildenhues.
13592
13593 2007-03-25  Bruno Haible  <bruno@clisp.org>
13594
13595         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
13596         <sysexits.h> file, and only add EX_CONFIG.
13597         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
13598         absolute file name and whether it is sufficient. Substitute also
13599         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
13600         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
13601         ABSOLUTE_SYSEXITS_H into sysexits.h.
13602
13603 2007-03-25  Bruno Haible  <bruno@clisp.org>
13604
13605         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
13606         hints is NULL.
13607
13608 2007-03-25  Bruno Haible  <bruno@clisp.org>
13609
13610         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
13611         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
13612
13613 2007-03-25  Bruno Haible  <bruno@clisp.org>
13614
13615         * lib/vasnprintf.c: Include langinfo.h.
13616         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
13617         multithread-safe.
13618         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
13619         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
13620         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13621         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13622         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13623         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13624         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13625         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
13626         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13627         Reported by Simon Josefsson.
13628
13629 2007-03-25  Bruno Haible  <bruno@clisp.org>
13630
13631         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
13632         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
13633         * modules/vasnprintf (Depends-on): Add stdint.
13634
13635 2007-03-25  Bruno Haible  <bruno@clisp.org>
13636
13637         * modules/fpieee: New file.
13638         * m4/fpieee.m4: New file.
13639         * modules/isnan-nolibm (Depends-on): Add fpieee.
13640         * modules/isnanl-nolibm (Depends-on): Add fpieee.
13641         * modules/isnanl (Depends-on): Add fpieee.
13642
13643 2007-03-25  Bruno Haible  <bruno@clisp.org>
13644
13645         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
13646
13647 2007-03-25  Bruno Haible  <bruno@clisp.org>
13648
13649         Avoid test failures on IRIX 6.5.
13650         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
13651         (main): Use it.
13652         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
13653         macros.
13654         (main): Use them.
13655
13656 2007-03-25  Bruno Haible  <bruno@clisp.org>
13657
13658         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
13659         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
13660         exists but doesn't work.
13661         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
13662         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
13663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
13664         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
13665
13666 2007-03-25  Bruno Haible  <bruno@clisp.org>
13667
13668         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
13669         returns inf. Needed on IRIX 6.5.
13670
13671 2007-03-25  Bruno Haible  <bruno@clisp.org>
13672
13673         * tests/test-frexpl.c: Include isnanl-nolibm.h.
13674         (main): Use isnanl instead of x != x idiom.
13675         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
13676
13677         * tests/test-frexp.c: Include isnan.h.
13678         (main): Use isnan instead of x != x idiom.
13679         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
13680
13681 2007-03-25  Bruno Haible  <bruno@clisp.org>
13682
13683         * tests/test-frexp.c (NaN): New function/macro.
13684         (main): Use it instead of 0.0 / 0.0.
13685         * tests/test-isnan.c (NaN): New function/macro.
13686         (main): Use it instead of 0.0 / 0.0.
13687         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
13688         (test_function): Use it instead of 0.0 / 0.0.
13689         * tests/test-vasprintf-posix.c (NaN): New function/macro.
13690         (test_function): Use it instead of 0.0 / 0.0.
13691         * tests/test-snprintf-posix.h (NaN): New function/macro.
13692         (test_function): Use it instead of 0.0 / 0.0.
13693         * tests/test-sprintf-posix.h (NaN): New function/macro.
13694         (test_function): Use it instead of 0.0 / 0.0.
13695         * tests/test-fprintf-posix.h (NaN): New function/macro.
13696         (test_function): Use it instead of 0.0 / 0.0.
13697         * tests/test-printf-posix.h (NaN): New function/macro.
13698         (test_function): Use it instead of 0.0 / 0.0.
13699
13700         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
13701
13702 2007-03-25  Bruno Haible  <bruno@clisp.org>
13703
13704         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
13705
13706 2007-03-25  Bruno Haible  <bruno@clisp.org>
13707
13708         * lib/regexec.c (merge_state_with_log): Make static.
13709
13710 2007-03-25  Bruno Haible  <bruno@clisp.org>
13711
13712         * lib/trigl.c (kernel_rem_pio2): Make static.
13713
13714 2007-03-25  Bruno Haible  <bruno@clisp.org>
13715
13716         * lib/sincosl.c (sincosl_table): Make static.
13717
13718 2007-03-25  Bruno Haible  <bruno@clisp.org>
13719
13720         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
13721         if the compiler does not support C99.
13722
13723 2007-03-25  Bruno Haible  <bruno@clisp.org>
13724
13725         * modules/time (Makefile.am): Ensure all rule action lines start with a
13726         tab.
13727
13728 2007-03-24  Bruno Haible  <bruno@clisp.org>
13729
13730         * modules/tsearch-tests: New file.
13731         * tests/test-tsearch.sh: New file.
13732         * tests/test-tsearch.c: New file, mostly copied from glibc.
13733
13734         * modules/search-tests: New file.
13735         * tests/test-search.c: New file.
13736
13737         * modules/search: New file.
13738         * lib/search_.h: New file, incorporating lib/tsearch.h.
13739         * m4/search_h.m4: New file.
13740         * lib/tsearch.h: Remove file.
13741         * lib/tsearch.c: Include search.h instead of tsearch.h.
13742         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
13743         HAVE_TSEARCH.
13744         * modules/tsearch (Files): Remove lib/tsearch.h.
13745         (Depends-on): Add search.
13746         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
13747         (Include): Change tsearch.h into search.h.
13748
13749 2007-03-24  Bruno Haible  <bruno@clisp.org>
13750
13751         * modules/fpucw: New file.
13752         * lib/fpucw.h: New file.
13753         * lib/frexp.c: Include fpucw.h.
13754         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
13755         (FUNC): Use them.
13756         * lib/printf-frexp.c: Include fpucw.h.
13757         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
13758         (FUNC): Use them.
13759         * lib/vasnprintf.c: Include fpucw.h.
13760         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
13761         'long double' calculations.
13762         * tests/test-frexpl.c: Include fpucw.h.
13763         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
13764         * tests/test-printf-frexpl.c: Include fpucw.h.
13765         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
13766         * modules/frexpl (Depends-on): Add fpucw.
13767         * modules/printf-frexpl (Depends-on): Likewise.
13768         * modules/fprintf-posix (Depends-on): Likewise.
13769         * modules/snprintf-posix (Depends-on): Likewise.
13770         * modules/sprintf-posix (Depends-on): Likewise.
13771         * modules/vasnprintf-posix (Depends-on): Likewise.
13772         * modules/vasprintf-posix (Depends-on): Likewise.
13773         * modules/vfprintf-posix (Depends-on): Likewise.
13774         * modules/vsnprintf-posix (Depends-on): Likewise.
13775         * modules/vsprintf-posix (Depends-on): Likewise.
13776         * modules/frexpl-tests (Depends-on): Likewise.
13777         * modules/printf-frexpl-tests (Depends-on): Likewise.
13778
13779 2007-03-24  Bruno Haible  <bruno@clisp.org>
13780
13781         * lib/float+.h: New file.
13782         * lib/isnan.c: Include float+.h.
13783         (SIZE): New macro.
13784         (FUNC): Compare only SIZE bytes of the value.
13785         * lib/vasnprintf.c: Include float+.h.
13786         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
13787         SIZEOF_LDBL or SIZEOF_DBL bytes.
13788         * modules/isnan-nolibm (Files): Add lib/float+.h.
13789         * modules/isnanl-nolibm (Files): Add lib/float+.h.
13790         * modules/isnanl (Files): Add lib/float+.h.
13791         * modules/vasnprintf (Files): Add lib/float+.h.
13792
13793 2007-03-24  Bruno Haible  <bruno@clisp.org>
13794
13795         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
13796         include isnanl-nolibm.h.
13797
13798 2007-03-24  Bruno Haible  <bruno@clisp.org>
13799
13800         * tests/test-read-file.c (main): Don't produce spurious output for
13801         expected situations. Make the test fail if it encountered unexpected
13802         results.
13803
13804 2007-03-24  Bruno Haible  <bruno@clisp.org>
13805
13806         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
13807         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
13808
13809 2007-03-24  Bruno Haible  <bruno@clisp.org>
13810
13811         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
13812
13813 2007-03-24  Bruno Haible  <bruno@clisp.org>
13814
13815         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
13816         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
13817
13818         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
13819         * modules/utf8-ucs4: Turn into a symbolic link to module
13820         unistr/u8-mbtouc.
13821
13822         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
13823         utf8-ucs4-unsafe.
13824         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
13825         unistr/u8-mbtouc-unsafe.
13826
13827         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
13828         * modules/utf16-ucs4: Turn into a symbolic link to module
13829         unistr/u16-mbtouc.
13830
13831         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
13832         utf16-ucs4-unsafe.
13833         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
13834         unistr/u16-mbtouc-unsafe.
13835
13836         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
13837         * modules/ucs4-utf8: Turn into a symbolic link to module
13838         unistr/u8-ubtomb.
13839
13840         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
13841         * modules/ucs4-utf16: Turn into a symbolic link to module
13842         unistr/u16-ubtomb.
13843
13844 2007-03-24  Bruno Haible  <bruno@clisp.org>
13845
13846         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
13847         Enable the function only if HAVE_INLINE.
13848         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
13849         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
13850         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
13851         Enable the function only if HAVE_INLINE.
13852         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
13853         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
13854         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
13855         Enable the function only if HAVE_INLINE.
13856         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
13857         Enable the function only if HAVE_INLINE.
13858         * modules/utf8-ucs4: Update.
13859         * modules/utf8-ucs4-unsafe: Update.
13860         * modules/utf16-ucs4: Update.
13861         * modules/utf16-ucs4-unsafe: Update.
13862         * modules/ucs4-utf8: Update.
13863         * modules/ucs4-utf16: Update.
13864
13865 2007-03-24  Bruno Haible  <bruno@clisp.org>
13866
13867         * lib/utf8-ucs4.h: Remove file.
13868         * lib/utf8-ucs4-unsafe.h: Remove file.
13869         * lib/utf16-ucs4.h: Remove file.
13870         * lib/utf16-ucs4-unsafe.h: Remove file.
13871         * lib/ucs4-utf8.h: Remove file.
13872         * lib/ucs4-utf16.h: Remove file.
13873         * lib/unistr.h: Include their previous contents.
13874         * m4/utf-ucs4.m4: Remove file.
13875         * m4/ucs4-utf.m4: Remove file.
13876         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
13877         (Depends-on): Add unistr/base.
13878         (configure.ac): Remove gl_UTF_UCS4.
13879         (Makefile.am): Update.
13880         (Include): Change to unistr.h.
13881         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
13882         (Depends-on): Add unistr/base.
13883         (configure.ac): Remove gl_UTF_UCS4.
13884         (Makefile.am): Update.
13885         (Include): Change to unistr.h.
13886         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
13887         (Depends-on): Add unistr/base.
13888         (configure.ac): Remove gl_UTF_UCS4.
13889         (Makefile.am): Update.
13890         (Include): Change to unistr.h.
13891         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
13892         (Depends-on): Add unistr/base.
13893         (configure.ac): Remove gl_UTF_UCS4.
13894         (Makefile.am): Update.
13895         (Include): Change to unistr.h.
13896         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
13897         (Depends-on): Add unistr/base.
13898         (configure.ac): Remove gl_UCS4_UTF.
13899         (Makefile.am): Update.
13900         (Include): Change to unistr.h.
13901         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
13902         (Depends-on): Add unistr/base.
13903         (configure.ac): Remove gl_UCS4_UTF.
13904         (Makefile.am): Update.
13905         (Include): Change to unistr.h.
13906         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
13907         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
13908         utf8-ucs4-unsafe.h.
13909         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
13910         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
13911         utf16-ucs4-unsafe.h.
13912         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
13913         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
13914         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
13915         * lib/unistr/u8-strchr.c: Likewise.
13916         * lib/unistr/u8-strrchr.c: Likewise.
13917         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
13918         * lib/unistr/u16-strchr.c: Likewise.
13919         * lib/unistr/u16-strrchr.c: Likewise.
13920         * lib/striconveh.c: Update.
13921         * lib/linebreak.c: Update.
13922
13923 2007-03-24  Bruno Haible  <bruno@clisp.org>
13924
13925         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
13926         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
13927
13928 2007-03-22  Bruno Haible  <bruno@clisp.org>
13929
13930         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
13931
13932 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
13933
13934         * MODULES.html.sh (File system functions): New module write-any-file.
13935         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
13936         * m4/write-any-file.m4: New files.
13937
13938 2007-03-23  Eric Blake  <ebb9@byu.net>
13939
13940         * gnulib-tool: Rearrange space-tab sequences, since some editors
13941         like to eat them.
13942
13943 2007-03-23  Eric Blake  <ebb9@byu.net>
13944
13945         * lib/version-etc.c (version_etc_va): Update license wording to
13946         be more concise.  Recommended by Richard Stallman.
13947
13948 2007-03-22  Bruno Haible  <bruno@clisp.org>
13949
13950         * lib/poll.c (MSG_PEEK): New fallback definition.
13951
13952 2007-03-22  Bruno Haible  <bruno@clisp.org>
13953
13954         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
13955         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
13956         (main): Update.
13957         Fixes a compilation error on BeOS.
13958
13959 2007-03-22  Bruno Haible  <bruno@clisp.org>
13960
13961         * modules/frexpl-tests: New file.
13962         * tests/test-frexpl.c: New file.
13963
13964         * modules/frexpl: New file.
13965         * m4/frexpl.m4: New file.
13966         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
13967         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
13968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
13969         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
13970         (Depends-on): Add frexpl. Remove isnanl-nolibm.
13971         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
13972
13973 2007-03-22  Bruno Haible  <bruno@clisp.org>
13974
13975         * lib/frexpl.c: Share code with lib/frexp.c.
13976         * modules/mathl (Files): Add lib/frexp.c.
13977         (Depends-on): Add isnanl-nolibm.
13978
13979 2007-03-22  Bruno Haible  <bruno@clisp.org>
13980
13981         * modules/printf-frexp (Files): Add m4/frexp.m4.
13982         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
13983         only if the found frexp function actually works.
13984
13985 2007-03-22  Bruno Haible  <bruno@clisp.org>
13986
13987         * lib/frexp.c: Remove older implementation that uses divisions.
13988
13989 2007-03-21  Bruno Haible  <bruno@clisp.org>
13990
13991         * modules/frexp-tests: New file.
13992         * tests/test-frexp.c: New file.
13993
13994         * modules/frexp: New file.
13995         * lib/frexp.c: New file.
13996         * m4/frexp.m4: New file.
13997         * lib/math_.h (frexp): New declaration.
13998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
13999         REPLACE_FREXP.
14000         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
14001
14002 2007-03-21  Bruno Haible  <bruno@clisp.org>
14003
14004         * modules/isnanl-tests: New file.
14005         * tests/test-isnanl.c: New file.
14006
14007         * modules/isnanl: New file.
14008         * lib/isnanl.h: New file.
14009         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
14010         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
14011         gl_FUNC_ISNANL_WORKS.
14012         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
14013         New macros.
14014
14015 2007-03-21  Bruno Haible  <bruno@clisp.org>
14016
14017         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
14018         lib/isnanl.h.
14019         (Include): Update.
14020         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
14021         * lib/vasnprintf.c: Update.
14022         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
14023         tests/test-isnanl.h, remove tests/test-isnanl.c.
14024         (Makefile.am): Update.
14025         * tests/test-isnanl-nolibm.c: New file.
14026         * tests/test-isnanl.h: New file.
14027         * tests/test-isnanl.c: Remove file.
14028
14029 2007-03-21  Jim Meyering  <jim@meyering.net>
14030
14031         When trying to open ".", treat ESTALE like EACCES.
14032         * lib/savewd.c (savewd_save): Resort to forking not just upon
14033         failure with EACCES, but also when errno is ESTALE.
14034
14035 2007-03-20  Bruno Haible  <bruno@clisp.org>
14036
14037         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
14038         Needed on AIX 5.1. Reported by Matthew Woehlke.
14039
14040 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14041
14042         Suggestions by Bruno Haible:
14043         * lib/acl-internal.h: Include "gettext.h" rather than rolling
14044         our own.
14045         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
14046         * modules/acl (Depends-on): Add gettext.
14047
14048 2007-03-19  Bruno Haible  <bruno@clisp.org>
14049
14050         * modules/iconvme: Remove file.
14051         * lib/iconvme.h: Remove file.
14052         * lib/iconvme.c: Remove file.
14053         * m4/iconvme.m4: Remove file.
14054
14055 2007-03-19  Bruno Haible  <bruno@clisp.org>
14056
14057         * doc/relocatable-maint.texi: Break long shell script line.
14058         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
14059
14060 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14061
14062         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
14063         handle file_has_acl.
14064         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
14065         * lib/acl.c: Move header inclusions and related macro defns into
14066         lib/acl-internal.h.
14067         (S_ISLNK): Remove defn, since that's now done for us.
14068         (file_has_acl): Move to lib/file-has-acl.c.
14069         Call acl_trivial if available.  This is the crucial part of the fix.
14070         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
14071         shared within the library.  Rewrite a bit, partly to make it compatible
14072         with the GNU coding style.
14073         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
14074         Remove unnecessary double-quotes.
14075         Don't test for acl_to_text; the build will catch that.
14076         Replace acl_entries if it doesn't exist and it is needed.
14077         Check for -lsec and acl_trivial (as used on Solaris 10).
14078         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
14079         lib/file-has-acl.c.
14080         (Depends-on): Add sys_stat, for S_ISLNK.
14081
14082 2007-03-19  Ben Pfaff  <blp@gnu.org>
14083
14084         * doc/gnulib.texi: Fix typos.
14085         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
14086
14087 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14088
14089         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
14090         If size is zero here, buf must be zero.
14091
14092 2007-03-19  Simon Josefsson  <simon@josefsson.org>
14093
14094         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
14095         <bruno@clisp.org>.
14096
14097 2007-03-18  Bruno Haible  <bruno@clisp.org>
14098
14099         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
14100         Suggested by Eric Blake.
14101
14102 2007-03-18  Ben Pfaff  <blp@gnu.org>
14103
14104         * doc/relocatable.texi: Recommend using as prefix a directory
14105         that does not exist and will never be created.  Based on
14106         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
14107         and others.
14108
14109 2007-03-17  Bruno Haible  <bruno@clisp.org>
14110
14111         * lib/fchownat.c: Include lchown.h.
14112
14113 2007-03-17  Bruno Haible  <bruno@clisp.org>
14114
14115         Fix endless loop when the given allocated size was > INT_MAX.
14116         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
14117         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
14118         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
14119         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
14120         * lib/sprintf.c (sprintf): Likewise.
14121
14122 2007-03-17  Bruno Haible  <bruno@clisp.org>
14123
14124         * tests/test-argp-2.sh (func_compare): Output a context diff.
14125
14126 2007-03-17  Bruno Haible  <bruno@clisp.org>
14127
14128         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
14129         locale's decimal-point character.
14130
14131 2007-03-17  Bruno Haible  <bruno@clisp.org>
14132
14133         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
14134         before comparing it. Needed because on some platforms (e.g. x86) a
14135         'long double' occupies less bytes than sizeof (long double).
14136
14137 2007-03-17  Bruno Haible  <bruno@clisp.org>
14138
14139         * tests/test-crc.c (main): Make printf statements 64-bit clean.
14140         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
14141         * tests/test-getaddrinfo.c (simple): Likewise.
14142         * tests/test-read-file.c (main): Likewise.
14143
14144 2007-03-17  Bruno Haible  <bruno@clisp.org>
14145
14146         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
14147
14148 2007-03-17  Bruno Haible  <bruno@clisp.org>
14149
14150         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
14151         unused variable.
14152
14153 2007-03-17  Bruno Haible  <bruno@clisp.org>
14154
14155         * tests/test-c-strcasecmp.c: Include c-strcase.h.
14156         * tests/test-c-strncasecmp.c: Likewise.
14157
14158 2007-03-17  Bruno Haible  <bruno@clisp.org>
14159
14160         * modules/stdlib (Depends-on): Add unistd.
14161         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
14162         Needed for MacOS X 10.3.
14163
14164 2007-03-17  Bruno Haible  <bruno@clisp.org>
14165
14166         * lib/unistr/u-strdup.h: Include <stdlib.h>.
14167
14168 2007-03-17  Bruno Haible  <bruno@clisp.org>
14169
14170         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
14171
14172 2007-03-17  Bruno Haible  <bruno@clisp.org>
14173
14174         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
14175         to reflect files copied from gnulib (with or without modifications).
14176         Suggested by Jim Meyering.
14177
14178 2007-03-17  Eric Blake  <ebb9@byu.net>
14179
14180         * NEWS: Document stdlib change from 2007-02-18.
14181
14182 2007-03-17  Jim Meyering  <jim@meyering.net>
14183
14184         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
14185         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
14186         someone uses a name containing shell meta-characters.
14187         Reported by Alfred M. Szmidt.
14188
14189         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
14190
14191 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
14192
14193         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
14194         and copy gettext configuration files only if configure.ac contains
14195         a use of AM_GNU_GETTEXT_VERSION.
14196
14197 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
14198
14199         * build-aux/bootstrap (gnulib_name): New variable.
14200         (gnulib_tool_options): Use it.
14201
14202 2007-03-13  Simon Josefsson  <simon@josefsson.org>
14203
14204         * tests/test-des.c: Use new namespace.
14205
14206 2007-03-15  Bruno Haible  <bruno@clisp.org>
14207
14208         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
14209         Reported by James Youngman <jay@gnu.org>.
14210
14211 2007-03-15  Bruno Haible  <bruno@clisp.org>
14212
14213         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
14214         declared prototype. Needed with cc on OSF/1 5.1.
14215
14216 2007-03-15  Bruno Haible  <bruno@clisp.org>
14217
14218         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
14219         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
14220         (struct gl_list_implementation): Add dispose_fn argument to the
14221         'create_empty', 'create' methods.
14222         (struct gl_list_impl_base): Add field 'dispose_fn'.
14223         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
14224         argument.
14225         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
14226         dispose_fn argument.
14227         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
14228         dispose_fn on the dropped values.
14229         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
14230         dispose_fn argument.
14231         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
14232         dropped values.
14233         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
14234         (gl_tree_remove_node): Call dispose_fn on the dropped value.
14235         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
14236         (gl_tree_remove_node): Call dispose_fn on the dropped value.
14237         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
14238         argument.
14239         (gl_tree_list_free): Call dispose_fn on the dropped values.
14240         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
14241         the dropped values.
14242         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
14243         Add dispose_fn argument.
14244         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
14245         Call dispose_fn on the dropped values.
14246         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
14247         Add dispose_fn argument.
14248         (gl_sublist_create): Initialize the 'dispose_fn' field.
14249         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
14250         * tests/test-array_list.c (main): Update.
14251         * tests/test-carray_list.c (main): Update.
14252         * tests/test-avltree_list.c (main): Update.
14253         * tests/test-rbtree_list.c (main): Update.
14254         * tests/test-avltreehash_list.c (main): Update.
14255         * tests/test-rbtreehash_list.c (main): Update.
14256         * tests/test-linked_list.c (main): Update.
14257         * tests/test-linkedhash_list.c (main): Update.
14258         * tests/test-array_oset.c (main): Update.
14259
14260 2007-03-15  Bruno Haible  <bruno@clisp.org>
14261
14262         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
14263         (gl_oset_create_empty): Add dispose_fn argument.
14264         (struct gl_oset_implementation): Add dispose_fn argument to
14265         'create_empty' method.
14266         (struct gl_oset_impl_base): Add dispose_fn field.
14267         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
14268         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
14269         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
14270         values.
14271         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
14272         (gl_tree_oset_free): Call dispose_fn on the dropped values.
14273         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
14274         dropped value.
14275         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
14276         dropped value.
14277         * tests/test-array_oset.c (main): Update.
14278         * tests/test-avltree_oset.c (main): Update.
14279         * tests/test-rbtree_oset.c (main): Update.
14280         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
14281
14282 2007-03-13  Bruno Haible  <bruno@clisp.org>
14283
14284         * tests/test-stdbool.c (i): Update after last patch.
14285
14286 2007-03-12  Bruno Haible  <bruno@clisp.org>
14287
14288         * lib/quotearg.c: Include <wctype.h> early, before the definition of
14289         the iswprint macro. Needed on Solaris 2.5.1.
14290
14291 2007-03-12  Bruno Haible  <bruno@clisp.org>
14292
14293         * tests/test-printf-frexp.c (main): Declare x as volatile.
14294
14295 2007-03-12  Simon Josefsson  <simon@josefsson.org>
14296
14297         * doc/gnulib.texi (Build robot for gnulib): New section.
14298
14299 2007-03-12  Jim Meyering  <jim@meyering.net>
14300
14301         * build-aux/bootstrap: New file.
14302         * build-aux/bootstrap.conf: New file, from coreutils.
14303
14304 2007-03-11  Bruno Haible  <bruno@clisp.org>
14305
14306         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
14307
14308 2007-03-12  Simon Josefsson  <simon@josefsson.org>
14309
14310         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
14311         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
14312         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
14313
14314 2007-03-11  Bruno Haible  <bruno@clisp.org>
14315
14316         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
14317         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
14318
14319 2007-03-11  Bruno Haible  <bruno@clisp.org>
14320
14321         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
14322         formula. Needed for SunPRO C 5.0.
14323
14324 2007-03-11  Bruno Haible  <bruno@clisp.org>
14325
14326         * modules/long-options (Depends-on): Add getopt.
14327
14328 2007-03-11  Bruno Haible  <bruno@clisp.org>
14329
14330         * modules/modechange (Depends-on): Add stdbool.
14331
14332 2007-03-11  Bruno Haible  <bruno@clisp.org>
14333
14334         * modules/i-ring (Depends-on): Add stdbool.
14335
14336 2007-03-11  Bruno Haible  <bruno@clisp.org>
14337
14338         * modules/gc-des (Depends-on): Add stdbool.
14339
14340 2007-03-11  Bruno Haible  <bruno@clisp.org>
14341
14342         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
14343
14344 2007-03-11  Bruno Haible  <bruno@clisp.org>
14345
14346         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
14347
14348 2007-03-11  Bruno Haible  <bruno@clisp.org>
14349
14350         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
14351
14352 2007-03-11  Bruno Haible  <bruno@clisp.org>
14353
14354         * lib/vasnprintf.c (sprintf): Undefine.
14355
14356 2007-03-11  Bruno Haible  <bruno@clisp.org>
14357
14358         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
14359         initializers in SunPRO C and Compaq C compilers.
14360
14361 2007-03-11  Bruno Haible  <bruno@clisp.org>
14362
14363         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
14364         decrementing code ANSI C compliant.
14365
14366 2007-03-11  Bruno Haible  <bruno@clisp.org>
14367
14368         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
14369         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
14370
14371 2007-03-11  Bruno Haible  <bruno@clisp.org>
14372
14373         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
14374         <stdbool.h> substitute doesn't pass.
14375
14376 2007-03-11  Bruno Haible  <bruno@clisp.org>
14377
14378         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
14379
14380 2007-03-11  Bruno Haible  <bruno@clisp.org>
14381
14382         * gnulib-tool (func_create_megatestdir): Create also an autobuild
14383         script, for submission to autobuild.josefsson.org.
14384
14385 2007-03-10  Bruno Haible  <bruno@clisp.org>
14386
14387         * modules/canonicalize-lgpl-tests: New file.
14388         * tests/test-canonicalize-lgpl.sh: New file.
14389         * tests/test-canonicalize-lgpl.c: New file.
14390
14391         * modules/c-strcase-tests: New file.
14392         * tests/test-c-strcase.sh: New file.
14393         * tests/test-c-strcasecmp.c: New file.
14394         * tests/test-c-strncasecmp.c: New file.
14395
14396         * modules/atexit-tests: New file.
14397         * tests/test-atexit.sh: New file.
14398         * tests/test-atexit.c: New file.
14399
14400 2007-03-10  Bruno Haible  <bruno@clisp.org>
14401
14402         * tests/test-binary-io.sh: Use temporary filenames that are not so
14403         likely to clash with those of other tests (in a parallel make).
14404         * tests/test-binary-io.c: Likewise.
14405
14406 2007-03-10  Bruno Haible  <bruno@clisp.org>
14407
14408         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
14409         fallback; use #error instead.
14410         Suggested by Simon Josefsson.
14411
14412 2007-03-10  Bruno Haible  <bruno@clisp.org>
14413
14414         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
14415         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
14416         first and the last.
14417
14418 2007-03-10  Bruno Haible  <bruno@clisp.org>
14419
14420         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
14421
14422 2007-03-10  Bruno Haible  <bruno@clisp.org>
14423
14424         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
14425         "make distcheck".
14426         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
14427         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
14428         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
14429
14430 2007-03-10  Bruno Haible  <bruno@clisp.org>
14431
14432         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
14433         variable.
14434         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
14435         variable.
14436
14437 2007-03-09  Eric Blake  <ebb9@byu.net>
14438         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
14439
14440         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
14441         types are not being provided by gnulib.
14442         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
14443         types are supported.
14444
14445 2007-03-10  Bruno Haible  <bruno@clisp.org>
14446
14447         * lib/stdio_.h (__attribute__): New macro.
14448         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
14449         vsprintf): Specify __attribute__ __format__ for GCC.
14450         Suggested by Eric Blake.
14451
14452 2007-03-09  Bruno Haible  <bruno@clisp.org>
14453
14454         * modules/printf-posix-tests: New file.
14455         * tests/test-printf-posix.sh: New file.
14456         * tests/test-printf-posix.c: New file.
14457
14458         * modules/printf-posix: New file.
14459         * lib/printf.c: New file.
14460         * m4/printf-posix-rpl.m4: New file.
14461         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
14462         REPLACE_PRINTF.
14463         * lib/stdio_.h (printf): New declaration.
14464         (format, __format__, ____printf____, ____scanf____, ____strftime____,
14465         ____strfmon____): New macros.
14466         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
14467         REPLACE_PRINTF.
14468
14469 2007-03-09  Bruno Haible  <bruno@clisp.org>
14470
14471         * tests/test-vasnprintf-posix2.sh: New file.
14472         * tests/test-vasnprintf-posix2.c: New file.
14473         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
14474         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
14475         (Makefile.am): Activate test-vasnprintf-posix2.sh.
14476
14477         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
14478         a locale dependent decimal point, rather than always '.'.
14479
14480 2007-03-09  Eric Blake  <ebb9@byu.net>
14481
14482         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
14483         spite of platforms like Tandem/NSK that define it to -1.
14484
14485 2007-03-08  Bruno Haible  <bruno@clisp.org>
14486
14487         * modules/vprintf-posix-tests: New file.
14488         * tests/test-vprintf-posix.sh: New file.
14489         * tests/test-vprintf-posix.c: New file.
14490         * tests/test-printf-posix.h: New file.
14491
14492         * modules/vprintf-posix: New file.
14493         * lib/vprintf.c: New file.
14494         * m4/vprintf-posix.m4: New file.
14495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
14496         REPLACE_VPRINTF.
14497         * lib/stdio_.h (vprintf): New declaration.
14498         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
14499         REPLACE_VPRINTF.
14500
14501 2007-03-08  Bruno Haible  <bruno@clisp.org>
14502
14503         * modules/fprintf-posix-tests: New file.
14504         * tests/test-fprintf-posix.sh: New file.
14505         * tests/test-fprintf-posix.c: New file.
14506
14507         * modules/fprintf-posix: New file.
14508         * lib/fprintf.c: New file.
14509         * m4/fprintf-posix.m4: New file.
14510         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
14511         REPLACE_FPRINTF.
14512         * lib/stdio_.h (fprintf): New declaration.
14513         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
14514         REPLACE_FPRINTF.
14515
14516 2007-03-08  Bruno Haible  <bruno@clisp.org>
14517
14518         * modules/vfprintf-posix-tests: New file.
14519         * tests/test-vfprintf-posix.sh: New file.
14520         * tests/test-vfprintf-posix.c: New file.
14521         * tests/test-fprintf-posix.h: New file.
14522         * tests/test-fprintf-posix.out: New file.
14523
14524         * modules/vfprintf-posix: New file.
14525         * lib/vfprintf.c: New file.
14526         * m4/vfprintf-posix.m4: New file.
14527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
14528         REPLACE_VFPRINTF.
14529         * lib/stdio_.h (vfprintf): New declaration.
14530         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
14531         REPLACE_VFPRINTF.
14532
14533 2007-03-08  Bruno Haible  <bruno@clisp.org>
14534
14535         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
14536
14537 2007-03-08  Bruno Haible  <bruno@clisp.org>
14538
14539         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
14540         instead of 'expr' invocations.
14541         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14542         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14543         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14544         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14545         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14546         Suggested by Paul Eggert.
14547
14548 2007-03-08  Bruno Haible  <bruno@clisp.org>
14549
14550         * modules/fseterr-tests: New file.
14551         * tests/test-fseterr.c: New file.
14552
14553         * modules/fseterr: New file.
14554         * lib/fseterr.h: New file.
14555         * lib/fseterr.c: New file.
14556
14557 2007-03-08  Bruno Haible  <bruno@clisp.org>
14558
14559         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
14560         * lib/getopt_.h: Likewise.
14561         * lib/mbswidth.h: Likewise.
14562         * lib/setenv.h: Likewise.
14563         * lib/vasnprintf.h: Likewise.
14564         * lib/vasprintf.h: Likewise.
14565         * lib/verror.h: Likewise.
14566         * lib/xsetenv.h: Likewise.
14567         * lib/xvasprintf.h: Likewise.
14568
14569 2007-03-08  Jim Meyering  <jim@meyering.net>
14570
14571         * users.txt: Add parted.
14572
14573         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
14574
14575 2007-03-07  Bruno Haible  <bruno@clisp.org>
14576
14577         * m4/printf.m4: Make the shell script snippets copy&pastable.
14578
14579 2007-03-02  Bruno Haible  <bruno@clisp.org>
14580
14581         * lib/netinet_in_.h: New file.
14582         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
14583         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
14584         * modules/netinet_in (Files): Add lib/netinet_in_.h.
14585         (Depends-on): Add absolute-header.
14586         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
14587         into netinet/in.h.
14588
14589 2007-03-03  Bruno Haible  <bruno@clisp.org>
14590
14591         * lib/sys_select_.h: New file.
14592         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
14593         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
14594         * modules/sys_select (Files): Add lib/sys_select_.h.
14595         (Depends-on): Add absolute-header.
14596         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
14597         into sys/select.h.
14598
14599 2007-03-02  Bruno Haible  <bruno@clisp.org>
14600
14601         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
14602         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
14603         values.
14604         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
14605         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
14606         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
14607         * modules/sys_socket (Depends-on): Add absolute-header.
14608         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
14609         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
14610         (Include): Remove requirement of inclusion of <sys/types.h>.
14611
14612 2007-03-02  Bruno Haible  <bruno@clisp.org>
14613
14614         * lib/byteswap_.h (bswap_32): Fix formula.
14615
14616 2007-03-06  Bruno Haible  <bruno@clisp.org>
14617
14618         * modules/sprintf-posix-tests: New file.
14619         * tests/test-sprintf-posix.c: New file.
14620
14621         * modules/sprintf-posix: New file.
14622         * lib/sprintf.c: New file.
14623         * m4/sprintf-posix.m4: New file.
14624         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
14625         REPLACE_SPRINTF.
14626         * lib/stdio_.h (sprintf): New declaration.
14627         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
14628         REPLACE_SPRINTF.
14629
14630 2007-03-06  Bruno Haible  <bruno@clisp.org>
14631
14632         * modules/vsprintf-posix-tests: New file.
14633         * tests/test-vsprintf-posix.c: New file.
14634         * tests/test-sprintf-posix.h: New file.
14635
14636         * modules/vsprintf-posix: New file.
14637         * lib/vsprintf.c: New file.
14638         * m4/vsprintf-posix.m4: New file.
14639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
14640         REPLACE_VSPRINTF.
14641         * lib/stdio_.h (vsprintf): New declaration.
14642         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
14643         REPLACE_VSPRINTF.
14644
14645 2007-03-06  Bruno Haible  <bruno@clisp.org>
14646
14647         * modules/vsnprintf (Depend-on): Remove minmax.
14648
14649 2007-03-06  Bruno Haible  <bruno@clisp.org>
14650
14651         * modules/snprintf-posix-tests: New file.
14652         * tests/test-snprintf-posix.c: New file.
14653
14654         * modules/snprintf-posix: New file.
14655         * m4/snprintf-posix.m4: New file.
14656         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
14657         gl_FUNC_SNPRINTF.
14658         (gl_FUNC_SNPRINTF): Invoke it.
14659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
14660         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
14661         is set.
14662         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
14663
14664 2007-03-06  Bruno Haible  <bruno@clisp.org>
14665
14666         * modules/vsnprintf-posix-tests: New file.
14667         * tests/test-vsnprintf-posix.c: New file.
14668         * tests/test-snprintf-posix.h: New file.
14669
14670         * modules/vsnprintf-posix: New file.
14671         * m4/vsnprintf-posix.m4: New file.
14672         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
14673         gl_FUNC_VSNPRINTF.
14674         (gl_FUNC_VSNPRINTF): Invoke it.
14675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
14676         * lib/stdio_.h (vsnprintf): Define as a replacement if
14677         REPLACE_VSNPRINTF is set.
14678         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
14679
14680 2007-03-06  Bruno Haible  <bruno@clisp.org>
14681
14682         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
14683         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
14684
14685 2007-03-06  Bruno Haible  <bruno@clisp.org>
14686
14687         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
14688         (asinl): Declare also if HAVE_DECL_ASINL is set.
14689         (atanl): Declare also if HAVE_DECL_ATANL is set.
14690         (ceill): Declare also if HAVE_DECL_CEILL is set.
14691         (cosl): Declare also if HAVE_DECL_COSL is set.
14692         (expl): Declare also if HAVE_DECL_EXPL is set.
14693         (floorl): Declare also if HAVE_DECL_FLOORL is set.
14694         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
14695         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
14696         (logl): Declare also if HAVE_DECL_LOGL is set.
14697         (sinl): Declare also if HAVE_DECL_SINL is set.
14698         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
14699         (tanl): Declare also if HAVE_DECL_TANL is set.
14700         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
14701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
14702         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
14703         declaration of frexpl, ldexpl.
14704         * modules/printf-frexpl (Depends-on): Add math.
14705         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
14706
14707 2007-03-05  Bruno Haible  <bruno@clisp.org>
14708
14709         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
14710         frexpl and ldexpl are declared.
14711         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
14712
14713 2007-03-05  Bruno Haible  <bruno@clisp.org>
14714
14715         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
14716         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
14717
14718 2007-03-05  Bruno Haible  <bruno@clisp.org>
14719
14720         * lib/stdio_.h: Include <stddef.h>.
14721
14722 2007-03-05  Bruno Haible  <bruno@clisp.org>
14723
14724         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
14725
14726 2007-03-05  Bruno Haible  <bruno@clisp.org>
14727
14728         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
14729         NetBSD 4, from Ralf Wildenhues.
14730
14731 2007-03-04  Bruno Haible  <bruno@clisp.org>
14732
14733         * lib/vasprintf.h: Update #if logic for the case when the functions
14734         exist but are overridden.
14735
14736 2007-03-04  Bruno Haible  <bruno@clisp.org>
14737
14738         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
14739         implementations: glibc-2.4 and MacOS X 10.3.
14740         * tests/test-vasnprintf-posix.c (test_function): Test also the case
14741         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
14742         * tests/test-vasprintf-posix.c (test_function): Likewise.
14743
14744 2007-03-04  Bruno Haible  <bruno@clisp.org>
14745
14746         * modules/vasprintf-posix-tests: New file.
14747         * tests/test-vasprintf-posix.c: New file.
14748
14749         * modules/vasprintf-posix: New file.
14750         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
14751         defined.
14752         * m4/vasprintf-posix.m4: New file.
14753         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
14754         gl_FUNC_VASPRINTF.
14755         (gl_FUNC_VASPRINTF): Invoke it.
14756         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
14757         here.
14758         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
14759
14760 2007-03-04  Bruno Haible  <bruno@clisp.org>
14761
14762         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
14763         REPLACE_GETTIMEOFDAY.
14764         * modules/sys_time (Makefile.am): Likewise.
14765         * m4/sys_time_h.m4: Likewise.
14766         * m4/gettimeofday.m4: Likewise.
14767
14768 2007-03-04  Bruno Haible  <bruno@clisp.org>
14769
14770         * modules/vasnprintf-posix-tests: New file.
14771         * tests/test-vasnprintf-posix.c: New file.
14772
14773         * modules/vasnprintf-posix: New file.
14774         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
14775         printf-frexpl.h.
14776         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
14777         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
14778         REPLACE_VASNPRINTF is defined.
14779         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
14780         gl_FUNC_VASNPRINTF.
14781         (gl_FUNC_VASNPRINTF): Invoke it.
14782         * m4/vasnprintf-posix.m4: New file.
14783         * m4/printf.m4: New file.
14784
14785 2007-03-04  Bruno Haible  <bruno@clisp.org>
14786
14787         Compile progreloc.c only if --enable-relocatable is specified.
14788         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
14789         if --enable-relocatable was specified.
14790         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
14791         lib_SOURCES.
14792
14793 2007-03-04  Jim Meyering  <jim@meyering.net>
14794
14795         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
14796         Use it consistently, rather than enumerating errno constants.
14797
14798 2007-03-04  Bruno Haible  <bruno@clisp.org>
14799
14800         * modules/xvasprintf-tests: New file.
14801         * tests/test-xvasprintf.c: New file.
14802
14803         * modules/vasprintf-tests: New file.
14804         * tests/test-vasprintf.c: New file.
14805
14806         * modules/vasnprintf-tests: New file.
14807         * tests/test-vasnprintf.c: New file.
14808
14809         * modules/vsnprintf-tests: New file.
14810         * tests/test-vsnprintf.c: New file.
14811
14812         * modules/snprintf-tests: New file.
14813         * tests/test-snprintf.c: New file.
14814
14815 2007-03-04  Bruno Haible  <bruno@clisp.org>
14816
14817         Compile relocatable.c only if --enable-relocatable is specified.
14818         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
14819         gl_RELOCATABLE_LIBRARY.
14820         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
14821         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
14822         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
14823         gl_RELOCATABLE_LIBRARY.
14824         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
14825         (Makefile.am): Remove lib_SOURCES.
14826         * modules/relocatable-lib-lgpl (configure.ac): Invoke
14827         gl_RELOCATABLE_LIBRARY.
14828         (Makefile.am): Remove lib_SOURCES.
14829         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
14830         always.
14831         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14832         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
14833
14834 2007-03-04  Bruno Haible  <bruno@clisp.org>
14835
14836         * modules/argmatch-tests: New file.
14837         * tests/test-argmatch.c: New file.
14838
14839         * tests/test-allocsa.c (main): Halve the number of loop runs.
14840
14841         * modules/alloca-opt-tests: New file.
14842         * tests/test-alloca-opt.c: New file.
14843
14844 2007-03-04  Jim Meyering  <jim@meyering.net>
14845
14846         Work around difference between Linux ACLs and Solaris 10 ZFS.
14847         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
14848         for EINVAL.
14849
14850 2007-03-03  Bruno Haible  <bruno@clisp.org>
14851
14852         * modules/relocatable-prog (Depends-on): Add back progreloc's
14853         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
14854
14855 2007-03-03  Bruno Haible  <bruno@clisp.org>
14856
14857         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
14858         * modules/relocatable-lib: New file.
14859
14860 2007-03-03  Bruno Haible  <bruno@clisp.org>
14861
14862         * modules/relocatable-prog: Renamed from modules/relocatable.
14863         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
14864
14865 2007-03-03  Bruno Haible  <bruno@clisp.org>
14866
14867         * modules/relocatable-script (Files): Add doc/relocatable.texi,
14868         m4/relocatable-lib.m4.
14869         (Depends-on): Remove 'relocatable'.
14870         (configure.ac): Add gl_RELOCATABLE_NOP.
14871
14872 2007-03-03  Bruno Haible  <bruno@clisp.org>
14873
14874         * modules/relocatable-prog-wrapper: New file.
14875         * modules/relocatable (Depends-on): Add it. Remove all other
14876         dependencies except progname.
14877         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
14878
14879         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
14880         (gl_FUNC_STRERROR): Nop.
14881         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
14882
14883         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
14884         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
14885
14886         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
14887         (gl_FUNC_READLINK): Update.
14888
14889         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
14890
14891 2007-03-03  Bruno Haible  <bruno@clisp.org>
14892
14893         * lib/xreadlink.c: Include <unistd.h> unconditionally.
14894         * modules/xreadlink (Depends-on): Add unistd.
14895         * modules/xreadlink-with-size (Depends-on): Likewise.
14896
14897 2007-03-03  Bruno Haible  <bruno@clisp.org>
14898
14899         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
14900         extracted from gt_FUNC_SETENV.
14901         (gt_FUNC_SETENV): Remove macro.
14902         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
14903         remove gt_FUNC_SETENV.
14904
14905 2007-03-03  Bruno Haible  <bruno@clisp.org>
14906
14907         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
14908         ENABLE_RELOCATABLE here.
14909         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
14910
14911 2007-03-03  Bruno Haible  <bruno@clisp.org>
14912
14913         * modules/rbtreehash-list-tests (Depends-on): Add progname.
14914         * tests/test-rbtreehash_list.c: Include progname.h.
14915         (main): Call set_program_name.
14916
14917         * modules/rbtree-oset-tests (Depends-on): Add progname.
14918         * tests/test-rbtree_oset.c: Include progname.h.
14919         (main): Call set_program_name.
14920
14921         * modules/rbtree-list-tests (Depends-on): Add progname.
14922         * tests/test-rbtree_list.c: Include progname.h.
14923         (main): Call set_program_name.
14924
14925         * modules/linked-list-tests (Depends-on): Add progname.
14926         * tests/test-linked_list.c: Include progname.h.
14927         (main): Call set_program_name.
14928
14929 2007-03-03  Bruno Haible  <bruno@clisp.org>
14930
14931         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
14932         All uses of __restrict changed to _Restrict_.
14933         * lib/glob_.h (__restrict): Remove macro.
14934
14935 2007-03-02  Bruno Haible  <bruno@clisp.org>
14936
14937         * modules/gettext (configure.ac): Require gettext infrastructure
14938         from version 0.16.1.
14939
14940 2007-03-02  Bruno Haible  <bruno@clisp.org>
14941
14942         * modules/linkedhash-list-tests (Depends-on): Add progname.
14943         * tests/test-linkedhash_list.c: Include progname.h.
14944         (main): Call set_program_name.
14945
14946         * modules/carray-list-tests (Depends-on): Add progname.
14947         * tests/test-carray_list.c: Include progname.h.
14948         (main): Call set_program_name.
14949
14950         * modules/avltreehash-list-tests (Depends-on): Add progname.
14951         * tests/test-avltreehash_list.c: Include progname.h.
14952         (main): Call set_program_name.
14953
14954         * modules/avltree-oset-tests (Depends-on): Add progname.
14955         * tests/test-avltree_oset.c: Include progname.h.
14956         (main): Call set_program_name.
14957
14958         * modules/avltree-list-tests (Depends-on): Add progname.
14959         * tests/test-avltree_list.c: Include progname.h.
14960         (main): Call set_program_name.
14961
14962         * modules/array-oset-tests (Depends-on): Add progname.
14963         * tests/test-array_oset.c: Include progname.h.
14964         (main): Call set_program_name.
14965
14966         * modules/array-list-tests (Depends-on): Add progname.
14967         * tests/test-array_list.c: Include progname.h.
14968         (main): Call set_program_name.
14969
14970         * modules/argp-tests (Depends-on): Add progname.
14971         * tests/test-argp.c: Include argp.h first. Include progname.h.
14972         (main): Call set_program_name.
14973
14974 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
14975
14976         * doc/gnulib-tool.texi (Initial import): Reword description of
14977         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
14978         limited effect even if defined after the first system include.
14979
14980 2007-03-01  Bruno Haible  <bruno@clisp.org>
14981
14982         * build-aux/config.libpath: Update to libtool-1.5.22.
14983         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14984
14985 2007-03-01  Bruno Haible  <bruno@clisp.org>
14986
14987         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
14988         foo_CFLAGS.
14989         Reported by Ralf Wildenhues.
14990
14991 2007-03-01  Bruno Haible  <bruno@clisp.org>
14992
14993         * build-aux/install-reloc: Remove object files left over by some
14994         compilers.
14995         Reported by Ralf Wildenhues.
14996
14997 2007-03-01  Bruno Haible  <bruno@clisp.org>
14998
14999         * build-aux/install-reloc: Break long lines.
15000
15001 2007-03-01  Bruno Haible  <bruno@clisp.org>
15002
15003         * doc/relocatable.texi: Document that it may not work on OpenBSD.
15004         Reported by Ralf Wildenhues.
15005
15006 2007-03-01  Bruno Haible  <bruno@clisp.org>
15007
15008         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
15009         include ordering constraints.
15010
15011 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
15012
15013         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
15014         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
15015         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
15016         as another example.
15017         * lib/time_.h: Fix misspelling.
15018         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
15019         Require gl_HEADER_TIME_H_DEFAULTS.
15020         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
15021         * m4/time_r.m4 (gl_TIME_R): Likewise.
15022         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
15023
15024 2007-03-01  Bruno Haible  <bruno@clisp.org>
15025
15026         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
15027         * m4/utimens.m4 (gl_UTIMENS): Likewise.
15028
15029 2007-03-01  Jim Meyering  <jim@meyering.net>
15030
15031         * modules/xreadlink (Maintainer): Add my name.
15032         * modules/xreadlink-with-size (Depends-on): Alphabetize.
15033
15034 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
15035             Bruno Haible  <bruno@clisp.org>
15036
15037         * build-aux/install-reloc: Compile also c-ctype.c.
15038         * build-aux/relocatable.sh.in: New file.
15039         * doc/relocatable.texi: New file.
15040         * doc/relocatable-maint.texi: New file.
15041         * doc/gnulib.texi: Include relocatable-maint.texi.
15042         * lib/progreloc.c: Include unistd.h unconditionally.
15043         * lib/relocwrapper.c: Include unistd.h unconditionally.
15044         Include c-ctype.h.
15045         (add_dotbin): Use c_tolower.
15046         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
15047         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
15048         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
15049         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
15050         to m4/relocatable-lib.m4.
15051         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
15052         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
15053         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
15054         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
15055         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
15056         * modules/relocatable: New file.
15057         * modules/relocatable-lib: New file.
15058         * modules/relocatable-script: New file.
15059
15060 2007-02-28  Bruno Haible  <bruno@clisp.org>
15061
15062         Import --enable-relocatable infrastructure.
15063         * build-aux/config.libpath: New file, from GNU gettext.
15064         * build-aux/install-reloc: New file, from GNU gettext.
15065         * build-aux/reloc-ldflags: New file, from GNU gettext.
15066         * lib/relocatable.h: New file, from GNU gettext.
15067         * lib/relocatable.c: New file, from GNU gettext.
15068         * lib/relocwrapper.c: New file, from GNU gettext.
15069         * m4/relocatable.m4: New file, from GNU gettext.
15070
15071 2007-02-28  Bruno Haible  <bruno@clisp.org>
15072
15073         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
15074
15075         * modules/xreadlink: New file, from GNU gettext with modifications.
15076         * lib/xreadlink.c: New file, from GNU gettext.
15077         * lib/xreadlink.h: Add comments.
15078         (xreadlink): New declaration.
15079
15080         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
15081         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
15082         lib/xreadlink-with-size.c.
15083         (configure.ac): Remove gl_XREADLINK invocation.
15084         (Makefile.am): Augment lib_SOURCES.
15085         * m4/xreadlink.m4: Remove file.
15086         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
15087         (xreadlink_with_size): Renamed from xreadink.
15088         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
15089         * modules/canonicalize (Depends-on): Replace xreadlink with
15090         xreadlink-with-size.
15091         * lib/canonicalize.c (canonicalize_filename_mode): Update.
15092
15093 2007-02-25  Jim Meyering  <jim@meyering.net>
15094
15095         * build-aux/announce-gen: When complaining about excess arguments,
15096         list them.
15097
15098 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15099
15100         * README: Document signed integer overflow situation more
15101         accurately.
15102
15103 2007-02-25  Bruno Haible  <bruno@clisp.org>
15104
15105         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
15106         'a' or 'A' conversion.
15107
15108 2007-02-25  Bruno Haible  <bruno@clisp.org>
15109
15110         * modules/filename: Renamed from modules/pathname.
15111         (Files): Replace lib/pathname.h with lib/filename.h. Replace
15112         lib/concatpath.c with lib/concat-filename.c.
15113         (Makefile.am): Update.
15114         (Include): Replace pathname.h with filename.h.
15115         * lib/filename.h: Renamed from lib/pathname.h.
15116         (concatenated_filename): Renamed from concatenated_pathname.
15117         * lib/concat-filename.c: Renamed from lib/concatpath.c.
15118         (concatenated_filename): Renamed from concatenated_pathname.
15119         * lib/findprog.c: Include filename.h instead of pathname.h.
15120         (find_in_path): Update.
15121         * lib/javacomp.c: Include filename.h instead of pathname.h.
15122         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
15123         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
15124         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
15125         is_oldgcj_14_13_usable, is_javac_usable): Update.
15126         * lib/javaexec.c: Include filename.h instead of pathname.h.
15127         (execute_java_class): Update.
15128         * modules/findprog: Update.
15129         * modules/javacomp: Update.
15130         * modules/javaexec: Update.
15131         * MODULES.html.sh (File system functions): Add 'filename', remove
15132         'pathname'.
15133
15134 2007-02-25  Bruno Haible  <bruno@clisp.org>
15135
15136         * modules/printf-frexpl-tests: New file.
15137         * tests/test-printf-frexpl.c: New file.
15138
15139         * modules/printf-frexpl: New file.
15140         * lib/printf-frexpl.h: New file.
15141         * lib/printf-frexpl.c: New file.
15142         * m4/printf-frexpl.m4: New file.
15143
15144 2007-02-25  Bruno Haible  <bruno@clisp.org>
15145
15146         * modules/printf-frexp-tests: New file.
15147         * tests/test-printf-frexp.c: New file.
15148
15149         * modules/printf-frexp: New file.
15150         * lib/printf-frexp.h: New file.
15151         * lib/printf-frexp.c: New file.
15152         * m4/printf-frexp.m4: New file.
15153
15154 2007-02-25  Bruno Haible  <bruno@clisp.org>
15155
15156         Assume automake >= 1.10 for the tests.
15157         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
15158         * modules/arctwo-tests: Likewise.
15159         * modules/argp-tests: Likewise.
15160         * modules/avltree-list-tests: Likewise.
15161         * modules/avltree-oset-tests: Likewise.
15162         * modules/avltreehash-list-tests: Likewise.
15163         * modules/carray-list-tests: Likewise.
15164         * modules/crc-tests: Likewise.
15165         * modules/des-tests: Likewise.
15166         * modules/gc-arcfour-tests: Likewise.
15167         * modules/gc-arctwo-tests: Likewise.
15168         * modules/gc-des-tests: Likewise.
15169         * modules/gc-hmac-md5-tests: Likewise.
15170         * modules/gc-hmac-sha1-tests: Likewise.
15171         * modules/gc-md2-tests: Likewise.
15172         * modules/gc-md4-tests: Likewise.
15173         * modules/gc-md5-tests: Likewise.
15174         * modules/gc-pbkdf2-sha1-tests: Likewise.
15175         * modules/gc-rijndael-tests: Likewise.
15176         * modules/gc-sha1-tests: Likewise.
15177         * modules/gc-tests: Likewise.
15178         * modules/getaddrinfo-tests: Likewise.
15179         * modules/hmac-md5-tests: Likewise.
15180         * modules/hmac-sha1-tests: Likewise.
15181         * modules/linked-list-tests: Likewise.
15182         * modules/linkedhash-list-tests: Likewise.
15183         * modules/lock-tests: Likewise.
15184         * modules/md2-tests: Likewise.
15185         * modules/md4-tests: Likewise.
15186         * modules/md5-tests: Likewise.
15187         * modules/rbtree-list-tests: Likewise.
15188         * modules/rbtree-oset-tests: Likewise.
15189         * modules/rbtreehash-list-tests: Likewise.
15190         * modules/read-file-tests: Likewise.
15191         * modules/rijndael-tests: Likewise.
15192         * modules/stdint-tests: Likewise.
15193         * modules/tls-tests: Likewise.
15194
15195 2007-02-24  Bruno Haible  <bruno@clisp.org>
15196
15197         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
15198         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
15199         function; instead check whether isnan with a double argument links.
15200         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
15201         function; instead check whether isnan with a 'long double' argument
15202         links.
15203         Reported by Eric Blake <ebb9@byu.net>.
15204
15205 2007-02-24  Bruno Haible  <bruno@clisp.org>
15206
15207         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
15208         defined.
15209         * lib/isnanl.c: Remove all code. Just include isnan.c.
15210         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
15211
15212 2007-02-25  Jim Meyering  <jim@meyering.net>
15213
15214         Avoid conflicting types for 'unsetenv' on FreeBSD.
15215         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
15216         conflicting with FreeBSD's (5.0 and 6.1) function declaration
15217         in stdlib.h.
15218
15219 2007-02-24  Bruno Haible  <bruno@clisp.org>
15220
15221         * modules/isnanl-nolibm-tests: New file.
15222         * tests/test-isnanl.c: New file.
15223
15224         * modules/isnanl-nolibm: New file.
15225         * lib/isnanl.h: New file.
15226         * lib/isnanl.c: New file.
15227         * m4/isnanl.m4: New file.
15228
15229 2007-02-24  Bruno Haible  <bruno@clisp.org>
15230
15231         * modules/isnan-nolibm-tests: New file.
15232         * tests/test-isnan.c: New file.
15233
15234         * modules/isnan-nolibm: New file.
15235         * lib/isnan.h: New file.
15236         * lib/isnan.c: New file.
15237         * m4/isnan.m4: New file.
15238
15239 2007-02-24  Bruno Haible  <bruno@clisp.org>
15240
15241         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
15242         assume that an exponent fits in 20 bits.
15243
15244 2007-02-24  Jim Meyering  <jim@meyering.net>
15245
15246         * m4/regex.m4: Update the description of the configure-time option,
15247         --without-included-regex, to state accurately what the defaults are,
15248         and perhaps to give people an idea why using this option is risky.
15249
15250 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15251
15252         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
15253         loops on small arguments.  This attempts to avoid the problem
15254         Bruno Haible reported for AIX 4.3.2 in
15255         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
15256
15257 2007-02-23  Bruno Haible  <bruno@clisp.org>
15258
15259         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
15260         Needed for help2man.
15261
15262 2007-02-23  Karl Berry  <karl@gnu.org>
15263
15264         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
15265         exists, foo.h should be cvs-ignored, not committed.
15266
15267 2007-02-23  Eric Blake  <ebb9@byu.net>
15268
15269         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
15270         * lib/stat-time.h (includes): Likewise.
15271         * lib/utimecmp.c (includes): Likewise.
15272         * lib/utimens.h (includes): Likewise.
15273         * lib/getdate.y (includes): Also include "timespec.h" for use
15274         internal to the module.
15275         * modules/utimens (Depends-on): Revert yesterday's patch.
15276         * modules/nanosleep (Depends-on): Add missing dependency.
15277
15278 2007-02-22  Bruno Haible  <bruno@clisp.org>
15279
15280         * lib/glob.c: Don't include getlogin_r.h.
15281
15282 2007-02-22  Jim Meyering  <jim@meyering.net>
15283
15284         * modules/utimens (Depends-on): Add timespec, required for
15285         utimens.h's inclusion of timespec.h.
15286
15287 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
15288
15289         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
15290         long unreadable paths in GNU/Linux.  Problem reported by Andreas
15291         Schwab in
15292         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
15293         I'll try to think of a better way to fix the Solaris problem.
15294
15295         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
15296         like glibc; on Solaris 10, it fails with errno == EINVAL.
15297         POSIX says the behavior is unspecified if the first argument is NULL,
15298         so play it safe and never pass NULL to the system getcwd.
15299
15300 2007-02-21  Jim Meyering  <jim@meyering.net>
15301
15302         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
15303         of gettimeofday.  It would conflict with the one now always
15304         provided via sys_time_.h.  Reported by Matthew Woehlke, as
15305         an IRIX 6.5 build failure.
15306
15307 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15308
15309         Minor fixups to port to Solaris 10 with Sun C 5.8.
15310         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
15311         * modules/getcwd (Depends-on): Add dirfd.
15312         * lib/putenv.c (putenv): #undef it.
15313         (rpl_putenv): New decl.
15314         (malloc, free): Include <stdlib.h> rather than prototyping separately.
15315
15316 2007-02-20  Bruno Haible  <bruno@clisp.org>
15317
15318         * modules/stdio-tests: New file.
15319         * tests/test-stdio.c: New file.
15320
15321         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
15322         (Depends-on): Add stdio.
15323         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15324         (Include): Use <stdio.h> instead of vsnprintf.h.
15325         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
15326         HAVE_DECL_VSNPRINTF.
15327         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
15328
15329         * modules/snprintf (Files): Remove lib/snprintf.h.
15330         (Depends-on): Add stdio.
15331         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15332         (Include): Use <stdio.h> instead of snprintf.h.
15333         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
15334         HAVE_DECL_SNPRINTF.
15335         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
15336         * lib/getaddrinfo.c: Likewise.
15337
15338         * modules/stdio: New file.
15339         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
15340         * lib/snprintf.h: Remove file.
15341         * lib/vsnprintf.h: Remove file.
15342         * lib/.cppi-disable: Remove snprintf.h.
15343         * m4/stdio_h.m4: New file.
15344         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
15345
15346 2007-02-20  Jim Meyering  <jim@meyering.net>
15347
15348         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
15349         used by e.g., mingw.  From Bruno Haible.
15350
15351 2007-02-19  Bruno Haible  <bruno@clisp.org>
15352
15353         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
15354         warnings.
15355         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15356
15357 2007-02-19  Bruno Haible  <bruno@clisp.org>
15358
15359         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
15360         from mingw users.
15361
15362 2007-02-19  Bruno Haible  <bruno@clisp.org>
15363
15364         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
15365         warnings.
15366         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
15367
15368 2007-02-19  Jim Meyering  <jim@meyering.net>
15369
15370         Don't use FD after a successful "fdopendir (fd)".
15371         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
15372         Reset it by calling dirfd on the just-obtained DIR*.
15373
15374         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
15375         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
15376
15377 2007-02-18  Bruno Haible  <bruno@clisp.org>
15378
15379         * lib/readlink.c: Include <unistd.h>.
15380         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
15381         HAVE_READLINK.
15382         * modules/readlink (Depends-on): Add unistd.
15383         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15384         (Include): Add <unistd.h>.
15385
15386         * lib/getlogin_r.h: Remove file.
15387         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
15388         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
15389         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
15390         HAVE_DECL_GETLOGIN_R.
15391         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
15392         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15393         (Include): Use <unistd.h> instead of getlogin_r.h.
15394
15395         * lib/getcwd.h: Remove file.
15396         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
15397         * lib/xgetcwd.c: Likewise.
15398         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
15399         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
15400         * modules/getcwd (Files): Remove lib/getcwd.h.
15401         (Depends-on): Add unistd.
15402         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15403         (Include): Use <unistd.h> instad of getcwd.h.
15404
15405         * lib/ftruncate.c: Include <unistd.h> first.
15406         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
15407         Set HAVE_FTRUNCATE.
15408         * modules/ftruncate (Depends-on): Add unistd.
15409         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15410
15411         * lib/fchdir.c: Include <unistd.h> first.
15412         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
15413         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
15414         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
15415         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15416         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
15417
15418         * lib/dup2.c: Include <unistd.h> first.
15419         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
15420         HAVE_DUP2.
15421         * modules/dup2 (Depends-on): Add unistd.
15422         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15423
15424         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
15425         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
15426         REPLACE_CHOWN. Don't define chown as a macro here.
15427         * modules/chown (Depends-on): Add unistd.
15428         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15429
15430         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
15431         Add definition for GL_LINK_WARNING.
15432         (chown, dup2): New declarations.
15433         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
15434         link warning.
15435         (ftruncate): New declaration.
15436         (getcwd): New declaration, taken from old getcwd.h.
15437         (getlogin_r): New declaration, taken from old getlogin_r.h.
15438         (readlink): New declaration.
15439         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
15440         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
15441         (gl_PREREQ_UNISTD): Remove macro.
15442         (gl_UNISTD_MODULE_INDICATOR): New macro.
15443         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
15444         many new variables. Don't set UNISTD_H.
15445         * modules/unistd (Description): Change.
15446         (Depends-on): Add link-warning.
15447         (configure.ac): Update.
15448         (Makefile.am): Create unistd.h always. Substitute many new variables
15449         into it.
15450
15451 2007-02-18  Bruno Haible  <bruno@clisp.org>
15452
15453         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
15454         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
15455         HAVE_GETSUBOPT.
15456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
15457         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
15458         * lib/getsubopt.h: Remove file.
15459         * modules/getsubopt (Files): Remove lib/getsubopt.h.
15460         (Depends-on): Add stdlib.
15461         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15462         (Includes): Use <stdlib.h> instead of getsubopt.h.
15463         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
15464         Set HAVE_GETSUBOPT.
15465         * lib/getsubopt.c: Don't include getsubopt.h.
15466
15467 2007-02-18  Bruno Haible  <bruno@clisp.org>
15468
15469         * modules/fchdir (Depends-on): Add dup2.
15470
15471 2007-02-18  Bruno Haible  <bruno@clisp.org>
15472
15473         * lib/stdlib_.h: Handle glibc's special invocation convention
15474         specially.
15475
15476 2007-02-18  Bruno Haible  <bruno@clisp.org>
15477
15478         * modules/stdlib-tests: New file.
15479         * tests/test-stdlib.c: New file.
15480
15481         * modules/mkstemp (Files): Remove lib/mkstemp.h.
15482         (Depends-on): Add stdlib.
15483         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15484         (Includes): Use <stdlib.h> instead of mkstemp.h.
15485         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
15486         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
15487         * lib/mkstemp.c: Don't include mkstemp.h.
15488         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
15489         * lib/stdlib--.h: Don't include mkstemp.h.
15490
15491         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
15492         (Depends-on): Add stdlib.
15493         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15494         (Includes): Use <stdlib.h> instead of mkdtemp.h.
15495         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
15496         HAVE_MKDTEMP.
15497         * lib/mkdtemp.c: Don't include mkdtemp.h.
15498         * lib/clean-temp.c: Don't include mkdtemp.h.
15499
15500         * modules/exit (Files): Remove lib/exit.h.
15501         (Depends-on): Add stdlib.
15502         (Makefile.am): Remove lib_SOURCES.
15503         (Include): Use <stdlib.h> instead of exit.h.
15504         * lib/argmatch.c: Don't include exit.h.
15505         * lib/execute.c: Likewise.
15506         * lib/pagealign_alloc.c: Likewise.
15507         * lib/pipe.c: Likewise.
15508         * lib/wait-process.c: Likewise.
15509         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
15510         * lib/exitfail.c: Likewise.
15511         * lib/savewd.c: Likewise.
15512         * lib/xsetenv.c: Likewise.
15513
15514         * modules/stdlib: New file.
15515         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
15516         and extra comments about mkstemp().
15517         * lib/exit.h: Remove file.
15518         * lib/mkdtemp.h: Remove file.
15519         * lib/mkstemp.h: Remove file.
15520         * m4/stdlib_h.m4: New file.
15521         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
15522
15523 2007-02-18  Bruno Haible  <bruno@clisp.org>
15524
15525         * modules/math-tests: New file.
15526         * tests/test-math.c: New file.
15527
15528         * modules/math: New file.
15529         * modules/mathl (Files): Remove lib/mathl.h.
15530         (Depends-on): Add math.
15531         (Makefile.am): Don't mention mathl.h.
15532         (Include): Use <math.h> instead of mathl.h.
15533         * lib/math_.h: New file.
15534         * lib/mathl.h: Remove file.
15535         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
15536         mathl.h.
15537         * lib/asinl.c: Likewise.
15538         * lib/atanl.c: Likewise.
15539         * lib/ceill.c: Likewise.
15540         * lib/cosl.c: Likewise.
15541         * lib/expl.c: Likewise.
15542         * lib/floorl.c: Likewise.
15543         * lib/frexpl.c: Likewise.
15544         * lib/ldexpl.c: Likewise.
15545         * lib/logl.c: Likewise.
15546         * lib/sincosl.c: Likewise.
15547         * lib/sinl.c: Likewise.
15548         * lib/sqrtl.c: Likewise.
15549         * lib/tanl.c: Likewise.
15550         * lib/trigl.c: Likewise.
15551         * m4/math_h.m4: New file.
15552         * MODULES.html.sh (Mathematics): Add math.
15553
15554 2007-02-17  Bruno Haible  <bruno@clisp.org>
15555
15556         * modules/wctype-tests: New file.
15557         * tests/test-wctype.c: New file.
15558
15559         * modules/wchar-tests: New file.
15560         * tests/test-wchar.c: New file.
15561
15562         * modules/unistd-tests: New file.
15563         * tests/test-unistd.c: New file.
15564
15565         * modules/time-tests: New file.
15566         * tests/test-time.c: New file.
15567
15568         * modules/sysexits-tests: New file.
15569         * tests/test-sysexits.c: New file.
15570
15571         * modules/sys_time-tests: New file.
15572         * tests/test-sys_time.c: New file.
15573
15574         * modules/sys_stat-tests: New file.
15575         * tests/test-sys_stat.c: New file.
15576
15577         * modules/sys_socket-tests: New file.
15578         * tests/test-sys_socket.c: New file.
15579
15580         * modules/sys_select-tests: New file.
15581         * tests/test-sys_select.c: New file.
15582
15583         * modules/string-tests: New file.
15584         * tests/test-string.c: New file.
15585
15586         * modules/stdbool-tests: New file.
15587         * tests/test-stdbool.c: New file.
15588
15589         * modules/netinet_in-tests: New file.
15590         * tests/test-netinet_in.c: New file.
15591
15592         * modules/inttypes-tests: New file.
15593         * tests/test-inttypes.c: New file.
15594
15595         * modules/fcntl-tests: New file.
15596         * tests/test-fcntl.c: New file.
15597
15598         * modules/byteswap-tests: New file.
15599         * tests/test-byteswap.c: New file.
15600
15601         * modules/arpa_inet-tests: New file.
15602         * tests/test-arpa_inet.c: New file.
15603
15604 2007-02-17  Bruno Haible  <bruno@clisp.org>
15605
15606         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
15607         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
15608         if the corresponding module is not enabled. Emit link warnings if
15609         the function is used nevertheless.
15610         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
15611         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
15612         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
15613         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
15614         * modules/inttypes (Depends-on): Add link-warning.
15615         (Makefile.am): Copy the contents of build-aux/link-warning.h into
15616         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
15617         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
15618         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
15619         * modules/imaxdiv (configure.ac): Likewise.
15620         * modules/strtoimax (configure.ac): Likewise.
15621         * modules/strtoumax (configure.ac): Likewise.
15622
15623 2007-02-17  Bruno Haible  <bruno@clisp.org>
15624
15625         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
15626         gl_STRING_MODULE_INDICATOR_DEFAULTS.
15627         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
15628         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
15629
15630 2007-02-17  Bruno Haible  <bruno@clisp.org>
15631
15632         * modules/link-warning: New file.
15633         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
15634         * lib/string_.h (GL_LINK_WARNING): Remove definition.
15635         * modules/string (Depends-on): Add link-warning.
15636         (Makefile.am): Copy the contents of build-aux/link-warning.h into
15637         string.h.
15638         * MODULES.html.sh (Support for building libraries and executables): Add
15639         link-warning.
15640
15641 2007-02-17  Bruno Haible  <bruno@clisp.org>
15642
15643         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
15644         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
15645         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
15646         long lines.
15647
15648 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
15649             Bruno Haible  <bruno@clisp.org>
15650
15651         * modules/tmpfile: New file.
15652         * lib/tmpfile.c: New file.
15653         * m4/tmpfile.m4: New file.
15654         * MODULES.html.sh (func_all_modules): New section "Input/output".
15655
15656 2007-02-15  Bruno Haible  <bruno@clisp.org>
15657
15658         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
15659         (supports_delete_on_close): New function.
15660         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
15661
15662 2007-02-14  Bruno Haible  <bruno@clisp.org>
15663
15664         * modules/mbspcasecmp-tests: New file.
15665         * tests/test-mbspcasecmp.sh: New file.
15666         * tests/test-mbspcasecmp.c: New file.
15667
15668         New module mbspcasecmp.
15669         * modules/mbspcasecmp: New file.
15670         * lib/mbspcasecmp.c: New file.
15671         * lib/string_.h (strncasecmp): Change warning message.
15672         (mbspcasecmp): New declaration.
15673         * m4/mbspcasecmp.m4: New file.
15674         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15675         GNULIB_MBSPCASECMP.
15676         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
15677         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
15678
15679 2007-02-14  Bruno Haible  <bruno@clisp.org>
15680
15681         * modules/mbsncasecmp-tests: New file.
15682         * tests/test-mbsncasecmp.sh: New file.
15683         * tests/test-mbsncasecmp.c: New file.
15684
15685         New module mbsncasecmp.
15686         * modules/mbsncasecmp: New file.
15687         * lib/mbsncasecmp.c: New file.
15688         * lib/string_.h (mbsncasecmp): New declaration.
15689         * m4/mbsncasecmp.m4: New file.
15690         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15691         GNULIB_MBSNCASECMP.
15692         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
15693         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
15694
15695 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
15696
15697         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
15698         Verify that it doesn't overlap with our flags.
15699         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
15700         do not have the desired effect in multibyte locales; instead, use
15701         mbscasecmp.
15702         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
15703         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
15704         we don't require GNU fnmatch ourselves (if our users require it, they
15705         should do so explicitly).
15706
15707         Fix regex code so it doesn't rely on strcasecmp.
15708         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
15709         Otherwise, include gnulib's langinfo.h.
15710         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
15711         undesirable behavior in non-C locales.  Instead, rely on localecharset.
15712         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
15713         * modules/regex (FILES): Remove m4/codeset.m4.
15714         (Depends-on): Add localcharset.  Remove strcase.
15715
15716 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15717
15718         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
15719         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
15720
15721 2007-02-13  Bruno Haible  <bruno@clisp.org>
15722
15723         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
15724         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15725
15726 2007-02-12  Bruno Haible  <bruno@clisp.org>
15727
15728         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
15729         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
15730         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
15731         time warning rather than a link error.
15732
15733 2007-02-12  Bruno Haible  <bruno@clisp.org>
15734
15735         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
15736         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15737         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15738
15739 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15740
15741         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
15742         args, not 2.
15743
15744 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15745
15746         New module 'time', so that apps can include <time.h> as per
15747         POSIX and GNU instead of separate include files like time_r.h
15748         and timegm.h.  This implementation tries out a simpler approach
15749         for replacing decls in standard include files (as compared to
15750         the string module), somewhat as an experiment.
15751
15752         * config/srclist.txt: Comment out mktime.c for now.
15753         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
15754         since it doesn't apply any more.  Use generic wording instead.
15755         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
15756         'time'.
15757         * lib/time_.h, m4/time_h.m4, modules/time: New files.
15758         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
15759         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
15760         Don't include <sys/types.h>; no longer needed since we assume C89.
15761         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
15762         * lib/strftime.c: Likewise.
15763         * lib/time_r.c: Likewise.
15764         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
15765         * lib/nanosleep.c: Include <time.h> first, to check interface.
15766         * lib/strptime.c: Likewise.
15767         * lib/time_r.c: Likewise.
15768         * lib/timegm.c: Likewise.
15769         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
15770         needed.
15771         * lib/timegm.c: Don't include timegm.h; no longer needed.
15772         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
15773         time.h now handles any problems in that area.
15774         (struct timespec, nanosleep): Remove; time.h now arranges for these.
15775         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
15776         that time.h defines struct timespec.
15777         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
15778         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
15779         handles that.
15780         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
15781         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
15782         needed.  Set REPLACE_LOCALTIME.
15783         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
15784         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
15785         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
15786         nanosleep; time_h.m4 now does that.  Don't require
15787         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
15788         module handles this now.
15789         * modules/getdate (Depends-on): Remove timespec.  Add time.
15790         * modules/nanosleep (Depends-on): Likewise.
15791         * modules/stat-time (Depends-on): Likewise.
15792         * modules/nanosleep (Include): Include time.h, not timespec.h.
15793         * modules/strptime (Files): Remove lib/strptime.h.
15794         (Depends-on): Add extensions, time.
15795         (Include): Include time.h, not strptime.h.
15796         * modules/time_r (Files): Remove lib/time_r.h.
15797         (Depends-on): Add time.
15798         (Include): Include time.h, not time_r.h.
15799         * modules/timegm: Likewise.
15800         * modules/timespec (Description): Now does timespec-related decls
15801         of our own, instead of struct timespec itself.
15802         (Depends-on): Add time; remove extensions.
15803         (Maintainer): Add self.
15804         * modules/utimecmp (Depends-on): Add time; remove timespec.
15805         * modules/utimens (Depends-on): Likewise.
15806         * modules/xnanosleep (Depends-on): Likewise.
15807
15808 2007-02-11  Bruno Haible  <bruno@clisp.org>
15809
15810         * lib/c-strstr.c: Include allocsa.h.
15811         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
15812         * lib/c-strcasestr.c: Include allocsa.h.
15813         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
15814         * lib/strcasestr.c: Include allocsa.h.
15815         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
15816         * lib/mbsstr.c: Include allocsa.h.
15817         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
15818         allocsa/freesa instead of malloc/free.
15819         * lib/mbscasestr.c: Include allocsa.h.
15820         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
15821         allocsa/freesa instead of malloc/free.
15822         * modules/c-strstr (Depends-on): Add allocsa.
15823         * modules/c-strcasestr (Depends-on): Likewise.
15824         * modules/strcasestr (Depends-on): Likewise.
15825         * modules/mbsstr (Depends-on): Likewise.
15826         * modules/mbscasestr (Depends-on): Likewise.
15827
15828 2007-02-11  Bruno Haible  <bruno@clisp.org>
15829
15830         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
15831
15832         * modules/mbsspn-tests: New file.
15833         * tests/test-mbsspn.sh: New file.
15834         * tests/test-mbsspn.c: New file.
15835
15836 2007-02-11  Bruno Haible  <bruno@clisp.org>
15837
15838         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
15839
15840         * modules/mbspbrk-tests: New file.
15841         * tests/test-mbspbrk.sh: New file.
15842         * tests/test-mbspbrk.c: New file.
15843
15844 2007-02-11  Bruno Haible  <bruno@clisp.org>
15845
15846         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
15847         unneeded cast.
15848
15849         * modules/mbscspn-tests: New file.
15850         * tests/test-mbscspn.sh: New file.
15851         * tests/test-mbscspn.c: New file.
15852
15853 2007-02-11  Bruno Haible  <bruno@clisp.org>
15854
15855         * modules/mbscasecmp-tests: New file.
15856         * tests/test-mbscasecmp.sh: New file.
15857         * tests/test-mbscasecmp.c: New file.
15858
15859 2007-02-11  Bruno Haible  <bruno@clisp.org>
15860
15861         Ensure O(n) worst-case complexity of mbscasestr.
15862         * lib/mbscasestr.c: Include stdbool.h.
15863         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
15864         functions.
15865         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
15866         the bookkeeping indicates that it's worth it.
15867         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
15868
15869         * modules/mbscasestr-tests: New file.
15870         * tests/test-mbscasestr1.c: New file.
15871         * tests/test-mbscasestr2.sh: New file.
15872         * tests/test-mbscasestr2.c: New file.
15873         * tests/test-mbscasestr3.sh: New file.
15874         * tests/test-mbscasestr3.c: New file.
15875         * tests/test-mbscasestr4.sh: New file.
15876         * tests/test-mbscasestr4.c: New file.
15877         * m4/locale-tr.m4: New file.
15878
15879 2007-02-11  Bruno Haible  <bruno@clisp.org>
15880
15881         Ensure O(n) worst-case complexity of mbsstr.
15882         * lib/mbsstr.c: Include stdbool.h.
15883         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
15884         functions.
15885         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
15886         bookkeeping indicates that it's worth it.
15887         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
15888
15889         * modules/mbsstr-tests: New file.
15890         * tests/test-mbsstr1.c: New file.
15891         * tests/test-mbsstr2.sh: New file.
15892         * tests/test-mbsstr2.c: New file.
15893         * tests/test-mbsstr3.sh: New file.
15894         * tests/test-mbsstr3.c: New file.
15895         * m4/locale-fr.m4: New file.
15896
15897 2007-02-11  Bruno Haible  <bruno@clisp.org>
15898
15899         * lib/mbsrchr.c (mbsrchr): Fix bug.
15900
15901         * modules/mbsrchr-tests: New file.
15902         * tests/test-mbsrchr.sh: New file.
15903         * tests/test-mbsrchr.c: New file.
15904
15905 2007-02-11  Bruno Haible  <bruno@clisp.org>
15906
15907         * lib/mbschr.c (mbschr): Fix bug.
15908
15909         * modules/mbschr-tests: New file.
15910         * tests/test-mbschr.sh: New file.
15911         * tests/test-mbschr.c: New file.
15912         * m4/locale-zh.m4: New file.
15913
15914 2007-02-11  Bruno Haible  <bruno@clisp.org>
15915
15916         Support for copying multibyte string iterators.
15917         * lib/mbiter.h: Include <string.h>.
15918         (mbiter_multi_copy): New function.
15919         (mbi_copy): New macro.
15920         * lib/mbuiter.h: Include <string.h>.
15921         (mbuiter_multi_copy): New function.
15922         (mbui_copy): New macro.
15923
15924 2007-02-11  Bruno Haible  <bruno@clisp.org>
15925
15926         New module mbslen.
15927         * modules/mbslen: New file.
15928         * lib/mbslen.c: New file.
15929         * lib/string_.h (mbslen): New declaration.
15930         * m4/mbslen.m4: New file.
15931         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15932         GNULIB_MBSLEN.
15933         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
15934         * MODULES.html.sh (Internationalization functions): Add mbslen.
15935
15936 2007-02-11  Bruno Haible  <bruno@clisp.org>
15937
15938         Ensure O(n) worst-case complexity of strcasestr substitute.
15939         * lib/strcasestr.c: Include stdbool.h.
15940         (knuth_morris_pratt): New function.
15941         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
15942         bookkeeping indicates that it's worth it.
15943         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
15944
15945         * modules/strcasestr-tests: New file.
15946         * tests/test-strcasestr.c: New file.
15947
15948 2007-02-11  Bruno Haible  <bruno@clisp.org>
15949
15950         Ensure O(n) worst-case complexity of c_strcasestr.
15951         * lib/c-strcasestr.c: Include stdbool.h, string.h.
15952         (knuth_morris_pratt): New function.
15953         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
15954         the bookkeeping indicates that it's worth it.
15955         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
15956
15957         * modules/c-strcasestr-tests: New file.
15958         * tests/test-c-strcasestr.c: New file.
15959
15960 2007-02-11  Bruno Haible  <bruno@clisp.org>
15961
15962         Ensure O(n) worst-case complexity of c_strstr.
15963         * lib/c-strstr.c: Include stdbool.h, string.h.
15964         (knuth_morris_pratt): New function.
15965         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
15966         bookkeeping indicates that it's worth it.
15967         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
15968
15969         * lib/c-strstr.c: Complete rewrite for maintainability.
15970
15971         * modules/c-strstr-tests: New file.
15972         * tests/test-c-strstr.c: New file.
15973
15974 2007-02-11  Bruno Haible  <bruno@clisp.org>
15975
15976         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
15977         5.2.1 and earlier, whereby \055 was treated just like the range
15978         delimiter '-'.
15979         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
15980
15981 2007-02-08  Bruno Haible  <bruno@clisp.org>
15982
15983         * modules/regex (Depends-on): Add stdbool.
15984         Reported by Dalibor Topic <robilad@kaffe.org>.
15985
15986 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
15987
15988         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
15989         Prefer returning from main to exiting from it.
15990         Remove unnecessary parens after sizeof.
15991
15992 2007-02-05  Bruno Haible  <bruno@clisp.org>
15993
15994         New module mbssep.
15995         * modules/mbssep: New file.
15996         * lib/mbssep.c: New file.
15997         * lib/string_.h (strsep): Add a conditional link warning.
15998         (mbssep): New declaration.
15999         * m4/mbssep.m4: New file.
16000         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16001         GNULIB_MBSSEP.
16002         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
16003         * MODULES.html.sh (Internationalization functions): Add mbssep.
16004
16005 2007-02-05  Bruno Haible  <bruno@clisp.org>
16006
16007         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
16008         Optimize search in case of 1 delimiter.
16009
16010 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16011
16012         * lib/acl.h: Include sys/types.h before sys/acl.h.
16013
16014 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16015
16016         Merge upstream fix for glibc bugzilla #3957:
16017
16018         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
16019
16020         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
16021         bit for RE_HAT_LISTS_NOT_NEWLINE.
16022         (build_charclass_op): Remove bogus comment.
16023
16024 2007-02-05  Simon Josefsson  <simon@josefsson.org>
16025
16026         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
16027
16028 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16029
16030         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
16031         * lib/memmem.c [!defined _LIBC]: Include config.h.
16032
16033 2007-02-04  Bruno Haible  <bruno@clisp.org>
16034
16035         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
16036         warning message.
16037
16038 2007-02-04  Bruno Haible  <bruno@clisp.org>
16039
16040         New module mbstok_r.
16041         * modules/mbstok_r: New file.
16042         * lib/mbstok_r.c: New file.
16043         * lib/string_.h (strtok_r): Change argument names to match the
16044         comments. Add a conditional link warning.
16045         (mbstok_r): New declaration.
16046         * m4/mbstok_r.m4: New file.
16047         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16048         GNULIB_MBSTOK_R.
16049         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
16050         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
16051
16052 2007-02-04  Bruno Haible  <bruno@clisp.org>
16053
16054         New module mbsspn.
16055         * modules/mbsspn: New file.
16056         * lib/mbsspn.c: New file.
16057         * lib/string_.h (strspn): Add a conditional link warning.
16058         (mbsspn): New declaration.
16059         * m4/mbsspn.m4: New file.
16060         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16061         GNULIB_MBSSPN.
16062         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
16063         * MODULES.html.sh (Internationalization functions): Add mbsspn.
16064
16065 2007-02-04  Bruno Haible  <bruno@clisp.org>
16066
16067         New module mbspbrk.
16068         * modules/mbspbrk: New file.
16069         * lib/mbspbrk.c: New file.
16070         * lib/string_.h (strpbrk): Add a conditional link warning.
16071         (mbspbrk): New declaration.
16072         * m4/mbspbrk.m4: New file.
16073         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16074         GNULIB_MBSPBRK.
16075         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
16076         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
16077
16078 2007-02-04  Bruno Haible  <bruno@clisp.org>
16079
16080         New module mbscspn.
16081         * modules/mbscspn: New file.
16082         * lib/mbscspn.c: New file.
16083         * lib/string_.h (strcspn): Add a conditional link warning.
16084         (mbscspn): New declaration.
16085         * m4/mbscspn.m4: New file.
16086         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16087         GNULIB_MBSCSPN.
16088         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
16089         * MODULES.html.sh (Internationalization functions): Add mbscspn.
16090
16091 2007-02-04  Bruno Haible  <bruno@clisp.org>
16092
16093         New module mbscasestr, reduced goal of strcasestr.
16094         * modules/mbscasestr: New file.
16095         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
16096         (mbscasestr): Renamed from strcasestr.
16097         * lib/strcasestr.c: Don't include mbuiter.h.
16098         (strcasestr): Remove support for multibyte locales.
16099         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
16100         Change the conditional link warning.
16101         (mbscasestr): New declaration.
16102         * m4/mbscasestr.m4: New file.
16103         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
16104         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
16105         REPLACE_STRCASESTR.
16106         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
16107         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16108         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
16109         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
16110         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
16111         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
16112         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
16113         (Depends-on): Remove mbuiter.
16114         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
16115
16116 2007-02-04  Bruno Haible  <bruno@clisp.org>
16117
16118         Simplify handling of strncasecmp.
16119         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
16120         the conditional link warning.
16121         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16122         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
16123         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
16124         * modules/strcase (configure.ac): Don't invoke
16125         gl_STRING_MODULE_INDICATOR.
16126         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
16127
16128 2007-02-04  Bruno Haible  <bruno@clisp.org>
16129
16130         New module mbscasecmp, reduced goal of strcasecmp.
16131         * modules/mbscasecmp: New file.
16132         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
16133         (mbscasecmp): Renamed from strcasecmp.
16134         * lib/strcasecmp.c: Don't include mbuiter.h.
16135         (strcasecmp): Remove support for multibyte locales.
16136         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
16137         Change the conditional link warning.
16138         (mbscasecmp): New declaration.
16139         * m4/mbscasecmp.m4: New file.
16140         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
16141         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
16142         REPLACE_STRCASECMP.
16143         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
16144         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16145         GNULIB_MBSCASECMP.
16146         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
16147         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
16148         * modules/strcase (Files): Remove m4/mbrtowc.m4.
16149         (Depends-on): Remove mbuiter.
16150         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
16151
16152 2007-02-04  Bruno Haible  <bruno@clisp.org>
16153
16154         New module mbsstr. Remove module strstr.
16155         * modules/mbsstr: New file.
16156         * modules/strstr: Remove file.
16157         * lib/mbsstr.c: Renamed from lib/strstr.c.
16158         (mbsstr): Renamed from strstr.
16159         * lib/string_.h (strstr): Remove declaration. Change the conditional
16160         link warning.
16161         (mbsstr): New declaration.
16162         * m4/mbsstr.m4: New file.
16163         * m4/strstr.m4: Remove file.
16164         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16165         REPLACE_STRSTR.
16166         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
16167         Don't initialize GNULIB_STRSTR.
16168         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
16169         substitute GNULIB_STRSTR and REPLACE_STRSTR.
16170         * MODULES.html.sh (Internationalization functions): Add mbsstr.
16171         (Support for systems lacking ANSI C 89): Remove strstr.
16172
16173 2007-02-04  Bruno Haible  <bruno@clisp.org>
16174
16175         New module mbsrchr.
16176         * modules/mbsrchr: New file.
16177         * lib/mbsrchr.c: New file.
16178         * lib/string_.h (strrchr): Add a conditional link warning.
16179         (mbsrchr): New declaration.
16180         * m4/mbsrchr.m4: New file.
16181         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16182         GNULIB_MBSRCHR.
16183         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
16184         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
16185
16186 2007-02-04  Bruno Haible  <bruno@clisp.org>
16187
16188         New module mbschr.
16189         * modules/mbschr: New file.
16190         * lib/mbschr.c: New file.
16191         * lib/string_.h (strchr): Add a conditional link warning.
16192         (mbschr): New declaration.
16193         * m4/mbschr.m4: New file.
16194         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16195         GNULIB_MBSCHR.
16196         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
16197         * MODULES.html.sh (Internationalization functions): Add mbschr.
16198
16199 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16200
16201         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
16202
16203         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
16204
16205 2007-02-04  Bruno Haible  <bruno@clisp.org>
16206
16207         New module description section 'configure.ac-early'.
16208         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
16209         (func_get_autoconf_early_snippet): New function.
16210         (func_import, func_create_testdir): Use it. Remove special cases for
16211         modules 'extensions' and 'lock'.
16212         * modules/extensions (configure.ac-early): Require
16213         gl_USE_SYSTEM_EXTENSIONS.
16214         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
16215
16216 2007-02-04  Bruno Haible  <bruno@clisp.org>
16217
16218         Make use of gcj-4.3's -fsource and -ftarget option.
16219         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
16220         and if so try the options -fsource and -ftarget.
16221         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
16222         source_version, ftarget_option, target_version arguments.
16223         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
16224         (is_envjavac_oldgcj_14_14_usable): Renamed from
16225         is_envjavac_gcj_14_14_usable.
16226         (is_envjavac_oldgcj_14_13_usable): Renamed from
16227         is_envjavac_gcj_14_13_usable.
16228         (is_gcj_present): Update.
16229         (is_gcj_43, is_gcj43_usable): New functions.
16230         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
16231         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
16232         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
16233         try the options -fsource and -ftarget.
16234
16235 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
16236
16237         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
16238         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
16239         larger value.
16240
16241 2007-02-03  Jim Meyering  <jim@meyering.net>
16242
16243         Give tools a better chance to allocate space for very large buffers.
16244         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
16245
16246         Make pwd and readlink work also when run with an unreadable parent dir
16247         on systems with openat support.
16248         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
16249         provided getcwd function, even when we have openat support.
16250         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
16251
16252 2007-02-02  Bruno Haible  <bruno@clisp.org>
16253
16254         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
16255         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
16256         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
16257         portability problems if one of these functions is only used on specific
16258         platforms.
16259         Reported by Paul Eggert.
16260
16261 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16262
16263         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
16264         is causing more trouble than it's curing.
16265         * lib/regex_internal.h (__mempcpy): Remove.
16266         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
16267         (and make the code a tad smaller to boot).
16268         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
16269
16270 2007-02-02  Jim Meyering  <jim@meyering.net>
16271
16272         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
16273         section, not in the Makefile.am: one.
16274
16275 2007-02-02  Eric Blake  <ebb9@byu.net>
16276
16277         * lib/strchrnul.c: Always include config.h first.
16278
16279         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
16280         gnulib strstr is not necessary here.
16281
16282 2007-02-02  Simon Josefsson  <simon@josefsson.org>
16283
16284         * m4/socklen.m4: Fix typo.
16285
16286 2007-02-02  Eric Blake  <ebb9@byu.net>
16287
16288         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
16289         * modules/netinet_in (Makefile.am): Likewise.
16290
16291 2007-02-01  Bruno Haible  <bruno@clisp.org>
16292
16293         * lib/string_.h (GL_LINK_WARNING): New macro.
16294         (strcasecmp, strstr, strcasestr): If provided by the system,
16295         conditionally define as a macro that leads to a warning instead of to
16296         an error.
16297         (strncasecmp): Conditionally define as a macro that leads to a warning.
16298
16299 2007-02-01  Karl Berry  <karl@gnu.org>
16300
16301         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
16302
16303 2007-02-01  Bruno Haible  <bruno@clisp.org>
16304
16305         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
16306         renamings.
16307
16308 2007-02-01  Eric Blake  <ebb9@byu.net>
16309
16310         * modules/regex (Depends-on): Revert dependence on mempcpy.
16311         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
16312         module's definition of mempcpy.
16313         Reported by Paul Eggert.
16314
16315 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
16316
16317         * lib/string_.h: If the gnulib module XYZ is not present, undefine
16318         the symbol XYZ before redefining it.  This fixes a problem with
16319         programs that don't use XYZ, when compiled on systems that define
16320         XYZ to something else.
16321
16322 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
16323
16324         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
16325         occurs when "mkdir -m foo" creates a setgid directory that is (1)
16326         writeable to group or other and (2) is intended to have a special
16327         mode bit that is set or cleared.  In such a case, the directory
16328         should be neither group- nor other-writeable until the special
16329         mode bits are right.
16330
16331 2007-01-31  Eric Blake  <ebb9@byu.net>
16332
16333         * modules/mountlist (Depends-on): Add strstr.
16334
16335         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
16336         bug.
16337         * modules/string (Makefile.am): Remove redundant replacement.
16338         * modules/regex (Depends-on): Add mempcpy.
16339
16340 2007-01-31  Bruno Haible  <bruno@clisp.org>
16341
16342         New module description field 'Link'.
16343         * gnulib-tool (func_usage): Document --extract-link-directive.
16344         (sed_extract_prog): Recognize 'Link' directive.
16345         (func_get_link_directive): New function.
16346         (func_import): Show summary of link directives.
16347         Handle --extract-link-directive option.
16348         * modules/acl (Link): New section.
16349         * modules/clock-time (Link): New section.
16350         * modules/euidaccess (Link): New section.
16351         * modules/gettext (Link): New section.
16352         * modules/iconv (Link): New section.
16353         * modules/lock (Link): New section.
16354         * modules/nanosleep (Link): New section.
16355         * modules/readline (Link): New section.
16356
16357 2007-01-27  Bruno Haible  <bruno@clisp.org>
16358
16359         Enforce the use of gnulib modules for unportable <string.h> functions.
16360         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
16361         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
16362         (gl_HEADER_STRING_H_BODY): Require it.
16363         * lib/string_.h: If the gnulib module XYZ is not present, redefine
16364         the symbol XYZ to one that gives a link error.
16365         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
16366         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
16367         * modules/mempcpy (configure.ac): Likewise.
16368         * modules/memrchr (configure.ac): Likewise.
16369         * modules/stpcpy (configure.ac): Likewise.
16370         * modules/stpncpy (configure.ac): Likewise.
16371         * modules/strcase (configure.ac): Likewise.
16372         * modules/strcasestr (configure.ac): Likewise.
16373         * modules/strchrnul (configure.ac): Likewise.
16374         * modules/strdup (configure.ac): Likewise.
16375         * modules/strndup (configure.ac): Likewise.
16376         * modules/strnlen (configure.ac): Likewise.
16377         * modules/strpbrk (configure.ac): Likewise.
16378         * modules/strsep (configure.ac): Likewise.
16379         * modules/strstr (configure.ac): Likewise.
16380         * modules/strtok_r (configure.ac): Likewise.
16381
16382 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
16383
16384         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
16385
16386 2007-01-30  Jim Meyering  <jim@meyering.net>
16387
16388         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
16389
16390 2007-01-29  Bruno Haible  <bruno@clisp.org>
16391
16392         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
16393         * lib/execute.c: Likewise.
16394         * lib/pipe.c: Likewise.
16395         * lib/printf-args.h: Likewise.
16396         * lib/printf-args.c: Likewise.
16397         * lib/printf-parse.c: Likewise.
16398         * lib/vasnprintf.c: Likewise.
16399
16400 2007-01-29  Eric Blake  <ebb9@byu.net>
16401
16402         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
16403         declaration.
16404
16405 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16406
16407         * lib/strptime.h (strptime): Use 'restrict' for args where
16408         POSIX requires this.
16409         * lib/strptime.c (strptime): Likewise.
16410         Change license notice from LGPL to GPL, since gnulib-tool will
16411         change this as needed.
16412         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
16413         defined.
16414         Include "strptime.h" first, to check interface.
16415         Do not #undef _LIBC and _NL_CURRENT.
16416         Do not include <stdlib.h>; no longer needed.
16417         Include "time_r.h" and declare ptime_locale_status
16418         only if _LIBC is not defined.
16419         (__P): Remove unused macro.
16420         (match_string): Bring back glibc version, but use it only if _LIBC
16421         is defined.
16422         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
16423         Remove unnecessary assertion and abort() call.
16424         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
16425         * m4/strptime.m4: Fix serial number comment.
16426         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
16427         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
16428         (Depends-on): Add time_r.
16429
16430 2007-01-29  Bruno Haible  <bruno@clisp.org>
16431
16432         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16433         strptime.
16434         * modules/strptime (Depends-on): Add stdbool.
16435         * lib/strptime.h: Include <time.h> always. Add comments.
16436
16437 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
16438
16439         * modules/strptime: New file.
16440         * lib/strptime.h: New file.
16441         * lib/strptime.c: New file.
16442         * m4/strptime.m4: New file.
16443
16444 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16445
16446         * MODULES.html.sh: New module mpsort.
16447         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
16448
16449         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
16450         a circularity problem with HP-UX ia64 reported by Bob Proulx in
16451         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
16452         All uses changed.
16453         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
16454         All uses changed.
16455         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
16456         to _Restrict_.
16457         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
16458         the parameter matches the prototype.
16459
16460 2007-01-28  Jim Meyering  <jim@meyering.net>
16461
16462         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
16463         sys/time.h here, reverting that part of the previous patch:
16464         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
16465
16466 2007-01-28  Bruno Haible  <bruno@clisp.org>
16467
16468         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
16469         value of $(SYS_TIME_H).
16470         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
16471         remove it conditionally, too. [added by Jim Meyering]
16472         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
16473         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
16474         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
16475         GETTIMEOFDAY_REPLACEMENT to 1.
16476
16477 2007-01-28  Bruno Haible  <bruno@clisp.org>
16478
16479         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
16480         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
16481         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
16482         Set UNISTD_H instead of UNISTD_H2.
16483         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
16484
16485 2007-01-28  Bruno Haible  <bruno@clisp.org>
16486
16487         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
16488         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
16489
16490 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16491
16492         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
16493         (func_create_testdir): Ensure C locale for `grep' and `tr'
16494         character ranges.
16495         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
16496         ACLOCAL_AMFLAGS parsing state machine.
16497
16498 2007-01-27  Bruno Haible  <bruno@clisp.org>
16499
16500         * modules/unistr/base: Update.
16501
16502 2007-01-27  Bruno Haible  <bruno@clisp.org>
16503
16504         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
16505         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
16506         * modules/unistr/u32-mbtouc-unsafe: Renamed from
16507         modules/unistr/u32-mbtouc.
16508         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
16509         * lib/unistr.h: Update.
16510         * lib/linebreak.c: Update.
16511         * modules/unistr/u32-mbtouc: Renamed from
16512         modules/unistr/u32-mbtouc-safe.
16513         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
16514         * lib/unistr.h: Update.
16515         * lib/unistr/u32-to-u8.c: Update.
16516         * lib/unistr/u32-to-u16.c: Update.
16517
16518 2007-01-27  Bruno Haible  <bruno@clisp.org>
16519
16520         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
16521         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
16522         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
16523         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
16524         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
16525         * modules/unistr/u16-mbtouc-unsafe: Renamed from
16526         modules/unistr/u16-mbtouc.
16527         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
16528         * lib/unistr.h: Update.
16529         * lib/linebreak.c: Update.
16530         * modules/linebreak: Update.
16531         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
16532         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
16533         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
16534         * modules/unistr/u16-mbtouc: Renamed from
16535         modules/unistr/u16-mbtouc-safe.
16536         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
16537         * lib/unistr.h: Update.
16538         * lib/unistr/u16-to-u8.c: Update.
16539         * modules/unistr/u16-to-u8: Update.
16540         * lib/unistr/u16-to-u32.c: Update.
16541         * modules/unistr/u16-to-u32: Update.
16542
16543 2007-01-27  Bruno Haible  <bruno@clisp.org>
16544
16545         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
16546         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
16547         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
16548         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
16549         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
16550         * modules/unistr/u8-mbtouc-unsafe: Renamed from
16551         modules/unistr/u8-mbtouc.
16552         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
16553         * lib/unistr.h: Update.
16554         * lib/striconveh.c: Update.
16555         * modules/striconveh: Update.
16556         * lib/linebreak.c: Update.
16557         * modules/linebreak: Update.
16558         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
16559         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
16560         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
16561         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
16562         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
16563         * lib/unistr.h: Update.
16564         * lib/striconveh.c: Update.
16565         * modules/striconveh: Update.
16566         * lib/unistr/u8-to-u16.c: Update.
16567         * modules/unistr/u8-to-u16: Update.
16568         * lib/unistr/u8-to-u32.c: Update.
16569         * modules/unistr/u8-to-u32: Update.
16570
16571 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16572
16573         Sync from Libtool.
16574         * lib/argz.c: Do not include strings.h nor memory.h, include
16575         string.h unconditionally.  Patch by Simon Josefsson.
16576
16577 2007-01-27  Bruno Haible  <bruno@clisp.org>
16578
16579         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
16580         from gl_HEADER_STRING_H_BODY.
16581         (gl_HEADER_STRING_H_BODY): Require it.
16582         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
16583         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
16584         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
16585         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
16586         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16587         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
16588         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16589         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
16590         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
16591         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
16592         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
16593         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
16594         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
16595         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16596         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
16597
16598 2007-01-27  Bruno Haible  <bruno@clisp.org>
16599
16600         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
16601         check_PROGRAMS into noinst_PROGRAMS.
16602         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
16603         check_PROGRAMS in this case.
16604         (func_import): Set for_test to false.
16605         (func_create_testdir): Set for_test to true.
16606
16607 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16608             Bruno Haible  <bruno@clisp.org>
16609
16610         * modules/strcasestr (Files): Remove lib/strcasestr.h.
16611         (Depends-on): Add string.
16612         (Includes): Use <string.h> instead of strcasestr.h.
16613         * modules/string (Makefile.am): Also substitute the value of
16614         REPLACE_STRCASESTR.
16615         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
16616         assume strcasestr is declared in <string.h> not <strings.h>. Also
16617         set REPLACE_STRCASESTR.
16618         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
16619         REPLACE_STRCASESTR.
16620         * lib/strcasestr.h: Remove file.
16621         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
16622         * lib/string_.h (strcasestr): New declaration.
16623
16624 2007-01-27  Bruno Haible  <bruno@clisp.org>
16625
16626         * lib/string_.h: Use 'extern'.
16627
16628 2007-01-27  Jim Meyering  <jim@meyering.net>
16629
16630         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
16631         of set-but-not-used local, "q".
16632
16633         * lib/mempcpy.c: Include <config.h> before <string.h>.
16634         This fixes a compilation error on HP-UX, due to the system's
16635         "restrict"-using mempcpy prototype.
16636
16637 2007-01-26  Bruno Haible  <bruno@clisp.org>
16638
16639         Small optimization.
16640         * lib/javacomp.c: Include c-strstr.h.
16641          (is_envjavac_gcj): Use c_strstr instead of strstr.
16642         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
16643
16644 2007-01-26  Bruno Haible  <bruno@clisp.org>
16645
16646         * MODULES.html.sh (Unicode string functions): Add the new modules.
16647
16648         * modules/uniconv/u32-strconv-to-locale: New file.
16649         * lib/uniconv/u32-strconv-to-locale.c: New file.
16650
16651         * modules/uniconv/u16-strconv-to-locale: New file.
16652         * lib/uniconv/u16-strconv-to-locale.c: New file.
16653
16654         * modules/uniconv/u8-strconv-to-locale: New file.
16655         * lib/uniconv/u8-strconv-to-locale.c: New file.
16656
16657         * modules/uniconv/u32-strconv-from-locale: New file.
16658         * lib/uniconv/u32-strconv-from-locale.c: New file.
16659
16660         * modules/uniconv/u16-strconv-from-locale: New file.
16661         * lib/uniconv/u16-strconv-from-locale.c: New file.
16662
16663         * modules/uniconv/u8-strconv-from-locale: New file.
16664         * lib/uniconv/u8-strconv-from-locale.c: New file.
16665
16666         * modules/uniconv/u32-strconv-to-enc: New file.
16667         * lib/uniconv/u32-strconv-to-enc.c: New file.
16668         * modules/uniconv/u32-strconv-to-enc-tests: New file.
16669         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
16670
16671         * modules/uniconv/u16-strconv-to-enc: New file.
16672         * lib/uniconv/u16-strconv-to-enc.c: New file.
16673         * lib/uniconv/u-strconv-to-enc.h: New file.
16674         * modules/uniconv/u16-strconv-to-enc-tests: New file.
16675         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
16676
16677         * modules/uniconv/u8-strconv-to-enc: New file.
16678         * lib/uniconv/u8-strconv-to-enc.c: New file.
16679         * modules/uniconv/u8-strconv-to-enc-tests: New file.
16680         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
16681
16682         * modules/uniconv/u32-strconv-from-enc: New file.
16683         * lib/uniconv/u32-strconv-from-enc.c: New file.
16684         * modules/uniconv/u32-strconv-from-enc-tests: New file.
16685         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
16686
16687         * modules/uniconv/u16-strconv-from-enc: New file.
16688         * lib/uniconv/u16-strconv-from-enc.c: New file.
16689         * modules/uniconv/u16-strconv-from-enc-tests: New file.
16690         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
16691
16692         * modules/uniconv/u8-strconv-from-enc: New file.
16693         * lib/uniconv/u8-strconv-from-enc.c: New file.
16694         * lib/uniconv/u-strconv-from-enc.h: New file.
16695         * modules/uniconv/u8-strconv-from-enc-tests: New file.
16696         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
16697
16698         * modules/uniconv/u32-conv-from-enc: New file.
16699         * lib/uniconv/u32-conv-from-enc.c: New file.
16700         * modules/uniconv/u32-conv-from-enc-tests: New file.
16701         * tests/uniconv/test-u32-conv-from-enc.c: New file.
16702
16703         * modules/uniconv/u16-conv-from-enc: New file.
16704         * lib/uniconv/u16-conv-from-enc.c: New file.
16705         * lib/uniconv/u-conv-from-enc.h: New file.
16706         * modules/uniconv/u16-conv-from-enc-tests: New file.
16707         * tests/uniconv/test-u16-conv-from-enc.c: New file.
16708
16709         * modules/uniconv/u8-conv-from-enc: New file.
16710         * lib/uniconv/u8-conv-from-enc.c: New file.
16711         * modules/uniconv/u8-conv-from-enc-tests: New file.
16712         * tests/uniconv/test-u8-conv-from-enc.c: New file.
16713
16714         * modules/uniconv/base: New file.
16715         * lib/uniconv.h: New file.
16716
16717 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
16718
16719         * doc/gnulib-tool.texi (Initial import): Update to match current
16720         behavior with strdup module.
16721         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
16722         * lib/memmem.h: Remove; all uses removed.  This is now done
16723         by <string.h>.
16724         * lib/mempcpy.h: Likewise.
16725         * lib/memrchr.h: Likewise.
16726         * lib/stpcpy.h: Likewise.
16727         * lib/stpncpy.h: Likewise.
16728         * lib/strcase.h: Likewise.
16729         * lib/strchrnul.h: Likewise.
16730         * lib/strdup.h: Likewise.
16731         * lib/strndup.h: Likewise.
16732         * lib/strnlen.h: Likewise.
16733         * lib/strpbrk.h: Likewise.
16734         * lib/strsep.h: Likewise.
16735         * lib/strstr.h: Likewise.
16736         * lib/strtok_r.h: Likewise.
16737         * lib/string_.h: New file.
16738         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
16739         Rely on <string.h> instead.
16740         * lib/canon-host.c: Likewise.
16741         * lib/chdir-long.c: Likewise.
16742         * lib/concatpath.c: Likewise.
16743         * lib/exclude.c: Likewise.
16744         * lib/fchdir.c: Likewise.
16745         * lib/getaddrinfo.c: Likewise.
16746         * lib/getcwd.c: Likewise.
16747         * lib/getsubopt.c: Likewise.
16748         * lib/glob.c: Likewise.
16749         * lib/hard-locale.c: Likewise.
16750         * lib/iconvme.c: Likewise.
16751         * lib/javacomp.c: Likewise.
16752         * lib/mempcpy.c: Likewise.
16753         * lib/memrchr.c: Likewise.
16754         * lib/regex_internal.h: Likewise.
16755         * lib/stpncpy.c: Likewise.
16756         * lib/strcasecmp.c: Likewise.
16757         * lib/strchrnul.c: Likewise.
16758         * lib/strdup.c: Likewise.
16759         * lib/striconv.c: Likewise.
16760         * lib/striconveh.c: Likewise.
16761         * lib/striconveha.c: Likewise.
16762         * lib/strncasecmp.c: Likewise.
16763         * lib/strndup.c: Likewise.
16764         * lib/strnlen.c: Likewise.
16765         * lib/strsep.c: Likewise.
16766         * lib/strstr.c: Likewise.
16767         * lib/strtok_r.c: Likewise.
16768         * lib/userspec.c: Likewise.
16769         * lib/w32spawn.h: Likewise.
16770         * lib/xstrndup.c: Likewise.
16771         * lib/mountlist.c (strstr): Remove decl.
16772         * m4/string_h.m4: New file.
16773         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
16774         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
16775         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
16776         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
16777         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
16778         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
16779         Set REPLACE_STRCASECMP if necessary.
16780         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
16781         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
16782         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
16783         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
16784         HAVE_DECL_STRDUP if necessary.
16785         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
16786         since gl_FUNC_STRNDUP does that now.
16787         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
16788         Check for decl here...
16789         (gl_PREREQ_STRNLEN): ... not here.
16790         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
16791         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
16792         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
16793         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
16794         necessary.
16795         * modules/string: New file.
16796         * modules/memmem (Files): Remove special-purpose include file.
16797         (Depends-on): Add string.
16798         (Include): Include <string.h>, not the removed file.
16799         * modules/mempcpy: Likewise.
16800         * modules/memrchr: Likewise.
16801         * modules/stpcpy: Likewise.
16802         * modules/stpncpy: Likewise.
16803         * modules/strcase: Likewise.
16804         * modules/strchrnul: Likewise.
16805         * modules/strdup: Likewise.
16806         * modules/strndup: Likewise.
16807         * modules/strnlen: Likewise.
16808         * modules/strpbrk: Likewise.
16809         * modules/strsep: Likewise.
16810         * modules/strstr: Likewise.
16811         * modules/strtok_r: Likewise.
16812         * tests/test-dirname.c: Don't include "strdup.h", since
16813         <string.h> now suffices.
16814         * tests/test-memmem.c: Don't include "memmem.h", since
16815         <string.h> now suffices.
16816
16817 2007-01-25  Bruno Haible  <bruno@clisp.org>
16818
16819         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
16820         *resultp is 0.
16821
16822         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
16823         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
16824         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
16825         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
16826
16827         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
16828         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
16829         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
16830         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
16831         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
16832         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
16833
16834 2007-01-24  Bruno Haible  <bruno@clisp.org>
16835
16836         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
16837         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
16838         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
16839         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
16840         gl_FUNC_FTS_CORE.
16841         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
16842         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
16843         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
16844         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
16845         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
16846         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
16847         gl_FUNC_FCHOWNAT.
16848         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
16849         gl_FUNC_STRFTIME.
16850         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
16851         Reported by Ralf Wildenhues.
16852
16853 2007-01-24  Bruno Haible  <bruno@clisp.org>
16854
16855         Drop AC_REQUIRE calls that are redundant with the module dependencies.
16856         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
16857         gl_GETADDRINFO.
16858         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
16859         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
16860         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
16861
16862 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
16863
16864         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
16865         Don't use 'exit'; just return from 'main'.
16866         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
16867
16868         * lib/fnmatch_.h: Readjust white space and comments to match
16869         glibc, to avoid spurious diffs.
16870
16871 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16872
16873         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
16874         2004-12-01 change by Jakub Jelinek, since this code won't compile
16875         if !LIBC.  Problem reported by Bob Proulx.
16876
16877 2007-01-23  Bruno Haible  <bruno@clisp.org>
16878
16879         * lib/striconveh.c: Include c-strcaseeq.h.
16880         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
16881         * modules/striconveh (Depends-on): Add c-strcaseeq.
16882
16883 2007-01-23  Bruno Haible  <bruno@clisp.org>
16884
16885         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
16886
16887         * modules/c-strcaseeq: New file.
16888         * lib/c-strcaseeq.h: New file.
16889
16890         * modules/streq: New file.
16891         * lib/streq.h: New file.
16892
16893 2007-01-23  Bruno Haible  <bruno@clisp.org>
16894
16895         * modules/striconveha-tests: New file.
16896         * tests/test-striconveha.c: New file.
16897
16898         * lib/striconveha.h: Include <stdbool.h>.
16899         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
16900         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
16901         (mem_iconveha_notranslit): Renamed from mem_iconveha.
16902         (mem_iconveha): New function.
16903         (str_iconveha_notranslit): Renamed from str_iconveha.
16904         (str_iconveha): New function.
16905         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
16906         c-strcase.
16907
16908 2007-01-23  Bruno Haible  <bruno@clisp.org>
16909
16910         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
16911         encodings without forgiving before trying any encoding with handler.
16912         (str_iconveha): Try all encodings without forgiving before trying any
16913         encoding with handler.
16914
16915 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16916
16917         Import the following changes from libc.
16918
16919         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
16920
16921         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
16922
16923         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
16924
16925         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
16926         normal_bracket label.
16927
16928         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
16929
16930         [BZ #361]
16931         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
16932         to normal_bracket after fetching the next character.
16933
16934 2007-01-22  Bruno Haible  <bruno@clisp.org>
16935
16936         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
16937         argument.
16938         * lib/striconveh.c (iconv_carefully_1): New function.
16939         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
16940         argument.
16941         (str_cd_iconveh): Update.
16942         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
16943         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
16944         * tests/test-striconveh.c (MAGIC): New macro.
16945         (new_offsets): New function.
16946         (main): Test call with and without offsets.
16947
16948 2007-01-22  Bruno Haible  <bruno@clisp.org>
16949
16950         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
16951         * modules/sys_select (Makefile.am): Likewise.
16952         * modules/sys_socket (Makefile.am): Likewise.
16953         * modules/sys_time (Makefile.am): Likewise.
16954
16955 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
16956
16957         * modules/gettimeofday (License): Change from GPL to LGPL, since
16958         gettimeofday is a library function.
16959
16960 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16961
16962         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
16963
16964 2007-01-21  Bruno Haible  <bruno@clisp.org>
16965
16966         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
16967
16968 2007-01-21  Bruno Haible  <bruno@clisp.org>
16969
16970         * modules/striconveha: New file.
16971         * lib/striconveha.h: New file.
16972         * lib/striconveha.c: New file.
16973         * MODULES.html.sh (Internationalization functions): Add striconveha.
16974         * lib/striconv.c (str_iconv): Optimize the case of an empty input
16975         string.
16976         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
16977
16978 2007-01-21  Bruno Haible  <bruno@clisp.org>
16979
16980         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
16981         * lib/striconveh.c (str_iconveh): Likewise.
16982
16983 2007-01-21  Bruno Haible  <bruno@clisp.org>
16984
16985         * lib/striconveh.h (mem_iconveh): New declaration.
16986         * lib/striconveh.c (mem_iconveh): New function.
16987         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
16988
16989 2007-01-21  Bruno Haible  <bruno@clisp.org>
16990
16991         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
16992
16993         * lib/striconveh.h (mem_cd_iconveh): Change specification.
16994         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
16995         original result buffer.
16996         (str_cd_iconveh): Update.
16997         * tests/test-striconveh.c (main): Update.
16998
16999         * lib/striconv.h (mem_cd_iconv): Change specification.
17000         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
17001         result buffer.
17002         (str_cd_iconv): Update.
17003         * tests/test-striconv.c (main): Update.
17004
17005 2007-01-21  Bruno Haible  <bruno@clisp.org>
17006
17007         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
17008
17009 2007-01-20  Jim Meyering  <jim@meyering.net>
17010
17011         * lib/userspec.c (parse_with_separator): If a user or group string
17012         starts with "+", skip the corresponding name-to-ID look-up, since
17013         such a look-up must fail: user and group names may not include "+".
17014
17015 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17016
17017         * lib/poll.c: Include sys/time.h and time.h unconditionally,
17018         since we now assume the sys_time module.
17019         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
17020         check for sys/time.h; no longer needed.
17021         * modules/poll (Depends-on): Depend on sys_time.
17022
17023 2007-01-18  Bruno Haible  <bruno@clisp.org>
17024
17025         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
17026         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
17027
17028         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
17029         gettimeofday.
17030
17031         * tests/test-gettimeofday.c: Include <time.h>.
17032         (dummy): Remove variable.
17033
17034         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
17035         gl_HEADER_SYS_TIME_H.
17036         (gl_HEADER_SYS_TIME_H): New macro.
17037
17038         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
17039         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17040         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17041         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
17042         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17043         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
17044         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
17045         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17046         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
17047         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
17048         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17049
17050         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
17051         last change; it caused a compilation error when cross-compiling to
17052         Cygwin.
17053
17054 2007-01-18  Jim Meyering  <jim@meyering.net>
17055
17056         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
17057         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
17058         than the race-prone "test -d sys || mkdir sys".
17059         (configure.ac): Use AC_PROG_MKDIR_P.
17060         * modules/sys_select: Likewise.
17061         * modules/sys_socket: Likewise.
17062         * modules/sys_time: Likewise.
17063
17064 2007-01-18  Eric Blake  <ebb9@byu.net>
17065
17066         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
17067         replace gettimeofday.
17068         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
17069         name, to avoid infinite recursion.
17070
17071 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
17072
17073         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
17074         module sys_time.
17075         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
17076         assume timespec.h defines struct timeval.
17077         * lib/settime.c: Likewise.
17078         * lib/utimens.c: Likewise.
17079         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
17080         since we now assume the gettimeofday module.
17081         * lib/tempname.c (__gen_tempname): Likewise.
17082         * lib/gettimeofday.h: Remove.
17083         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
17084         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
17085         Include <time.h>, for 'time()'.
17086         (localtime_buffer_addr): Also use this workaround if
17087         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
17088         to simplify the uses.  All uses changed.
17089         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
17090         that #undef is inside {}, and 'const' follows type name consistently.
17091         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
17092         (gettimeofday): Do not use the maximum possible value for
17093         tv->tv_usec, since that might break usages other than ls.c.
17094         Instead, we'll leave ls.c alone.  This undoes today's patch
17095         by Bruno.  Add a compile-time warning for 1s-clock resolution;
17096         we've never observed the problem but might as well keep the
17097         canary.
17098         * lib/nanosleep.c: Include timespec.h first, for interface check.
17099         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
17100         now assume the sys_time module.
17101         * lib/tempname.c: Likewise.
17102         * lib/timespec.h: Likewise.
17103         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
17104         needed.
17105         * lib/strftime.c: Likewise.
17106         * lib/timespec.h: Likewise.
17107         * lib/posixtm.c: Include posixtm.h first, for interface check.
17108         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
17109         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
17110         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
17111         * lib/sys_time_.h: New file.
17112         * lib/timespec.h (struct timespec): Use long int, not long.
17113         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
17114         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
17115         Remove obsolescent call to AC_HEADER_TIME.
17116         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17117         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17118         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
17119         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
17120         Likewise.
17121         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
17122         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
17123         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
17124         into the sys_time module.  Check for gettimeofday just once.
17125         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
17126         for gettimeofday signature to just check the signature.  Merely
17127         compile it, since linking doesn't test signature.  Improve test for
17128         whether gettimeofday.o is actually needed.
17129         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
17130         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
17131         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
17132         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17133         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
17134         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
17135         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
17136         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
17137         than worrying about sys/time.h.
17138         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17139         Don't bother worrying about TIME_WITH_SYS_TIME.
17140         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17141         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
17142         * m4/sys_time_h.m4: New file.
17143         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
17144         Don't include sys/time.h.  Return from main rather than exiting.
17145         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
17146         all uses changed.
17147         * modules/gethrxtime (Depends-on): Add sys_time.
17148         * modules/gettime (Depends-on): Likewise.
17149         * modules/gettimeofday (Depends-on): Likewise.
17150         * modules/nanosleep (Depends-on): Likewise.
17151         * modules/settime (Depends-on): Likewise.
17152         * modules/tempname (Depends-on): Likewise.
17153         * modules/utimens (Depends-on): Likewise.
17154         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
17155         (Include:) Change back to <sys/time.h>.
17156         (Maintainer:) Add self.
17157         * modules/sys_time: New file.
17158         * modules/tempname (Depends-on): Add gettimeofday.
17159         * tests/test-gettimeofday.c: Include <sys/time.h>
17160         rather than gettimeofday.h.
17161
17162 2007-01-17  Bruno Haible  <bruno@clisp.org>
17163
17164         * gnulib-tool (func_get_license): Revert last patch. Instead, let
17165         the license default to GPL.
17166         (func_create_testdir): Don't complain if a module is LGPL and its
17167         tests module depends on GPLed modules.
17168
17169 2007-01-17  Bruno Haible  <bruno@clisp.org>
17170
17171         * lib/gettimeofday.c (gettimeofday): Add code for the case
17172         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
17173         maximum possible value for tv->tv_usec, rather than the minimum one.
17174
17175 2005-10-08  Martin Lambers  <marlam@marlam.de>
17176 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17177 2007-01-16  Bruno Haible  <bruno@clisp.org>
17178
17179         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
17180         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
17181         gl_FUNC_GETTIMEOFDAY.
17182         (Include): Add gettimeofday.h.
17183         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
17184         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
17185         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
17186         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
17187         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
17188         * lib/gettimeofday.h: New file.
17189         * lib/gettimeofday.c: Include <sys/timeb.h>.
17190         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
17191         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17192         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
17193         fall back on time().
17194
17195         * tests/test-gettimeofday.c: New file.
17196         * modules/gettimeofday-tests: New file.
17197
17198 2007-01-16  Eric Blake  <ebb9@byu.net>
17199
17200         * modules/fnmatch (Depends-on): Depend on wchar.
17201         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
17202         * m4/fnmatch.m4: Likewise.
17203         * modules/mbchar (Makefile.am): Assume <wchar.h>.
17204         * m4/mbchar.m4: Likewise.
17205         * modules/mbswidth (Depends-on): Depend on wchar.
17206         * lib/mbswidth.c: Assume <wchar.h>.
17207         * m4/mbswidth.m4: Likewise.
17208         * modules/quotearg (Depends-on): Depend on wchar.
17209         * lib/quotearg.c: Assume <wchar.h>.
17210         * m4/quotearg.m4: Likewise.
17211         * modules/regex (Depends-on): Depend on wchar.
17212         * lib/regex_internal.h: Assume <wchar.h>.
17213         * m4/regex.m4: Likewise.
17214         * modules/stdint (Depends-on): Depend on wchar.
17215         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
17216         * m4/stdint.m4: Likewise.
17217         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
17218         * modules/strftime (Depends-on): Depend on wchar.
17219         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
17220         * modules/strtol (Depends-on): Depend on wchar.
17221         * lib/strtol.c: Assume <wchar.h>.
17222         * modules/wcwidth (Depends-on): Depend on wchar.
17223         * lib/wcwidth.h: Assume <wchar.h>.
17224         * m4/wcwidth.m4: Likewise.
17225
17226 2007-01-16  Bruno Haible  <bruno@clisp.org>
17227
17228         * modules/csharpexec-script: New, created from...
17229         * modules/csharpexec: ... this.
17230
17231 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
17232
17233         * modules/javaexec-script: New, created from...
17234         * modules/javaexec: ... this.
17235
17236 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17237
17238         * modules/poll (Dependencies): Add sys_select.
17239
17240 2007-01-15  Jim Meyering  <jim@meyering.net>
17241
17242         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
17243         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
17244         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
17245         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
17246
17247 2007-01-15  Bruno Haible  <bruno@clisp.org>
17248
17249         * modules/striconveh: New file.
17250         * lib/striconveh.h: New file.
17251         * lib/striconveh.c: New file.
17252         * MODULES.html.sh (Internationalization functions): Add striconveh.
17253
17254         * modules/striconveh-tests: New file.
17255         * tests/test-striconveh.c: New file.
17256
17257 2007-01-15  Bruno Haible  <bruno@clisp.org>
17258
17259         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
17260         not from GNU libiconv or GNU libc.
17261
17262 2007-01-15  Bruno Haible  <bruno@clisp.org>
17263
17264         * doc/gnulib-intro.texi (Copyright): Explain the different license
17265         terms for module descriptions, autoconf macros, tests, documentation.
17266
17267 2007-01-14  Bruno Haible  <bruno@clisp.org>
17268
17269         * modules/striconv-tests: New file.
17270         * tests/test-striconv.c: New file.
17271
17272 2007-01-14  Bruno Haible  <bruno@clisp.org>
17273
17274         * modules/iconv-tests: New file.
17275         * tests/test-iconv.c: New file.
17276
17277 2007-01-14  Bruno Haible  <bruno@clisp.org>
17278
17279         * gnulib-tool (func_get_license): For test modules, use the license of
17280         the main module.
17281
17282 2007-01-14  Bruno Haible  <bruno@clisp.org>
17283
17284         * modules/iconv (Include): Clarify that <iconv.h> can only be included
17285         if iconv is found to exist.
17286
17287 2007-01-14  Bruno Haible  <bruno@clisp.org>
17288
17289         * modules/c-ctype-tests: New file.
17290         * tests/test-c-ctype.c: New file.
17291
17292 2007-01-14  Bruno Haible  <bruno@clisp.org>
17293
17294         * modules/binary-io-tests: New file.
17295         * tests/test-binary-io.sh: New file.
17296         * tests/test-binary-io.c: New file.
17297
17298 2007-01-14  Bruno Haible  <bruno@clisp.org>
17299
17300         * modules/array-oset-tests: New file.
17301         * tests/test-array_oset.c: New file.
17302
17303 2007-01-14  Bruno Haible  <bruno@clisp.org>
17304
17305         * modules/array-list-tests: New file.
17306         * tests/test-array_list.c: New file.
17307
17308 2007-01-14  Bruno Haible  <bruno@clisp.org>
17309
17310         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
17311         and make.
17312         Reported by Simon Josefsson in
17313         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
17314
17315 2007-01-14  Bruno Haible  <bruno@clisp.org>
17316
17317         * modules/allocsa-tests: New file.
17318         * tests/test-allocsa.c: New file.
17319
17320 2007-01-14  Bruno Haible  <bruno@clisp.org>
17321
17322         * modules/fchdir (Depends-on): Add absolute-header.
17323         * modules/unistd (Depends-on): Likewise.
17324
17325 2006-12-30  Bruno Haible  <bruno@clisp.org>
17326
17327         * modules/fchdir: New file.
17328         * modules/unistd (Files): Add lib/unistd_.h.
17329         (Makefile.am): Generate unistd.h from unistd_.h.
17330         * lib/fchdir.c: New file.
17331         * lib/dirent_.h: New file.
17332         * lib/unistd_.h: New file.
17333         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
17334         * m4/fchdir.m4: New file.
17335         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
17336         (gl_HEADER_UNISTD): Invoke it.
17337         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
17338         function.
17339         * lib/backupfile.c (opendir, closedir): Undefine.
17340         * lib/chown.c (open, close): Undefine.
17341         * lib/clean-temp.c (open, close): Undefine.
17342         * lib/copy-file.c (open, close): Undefine.
17343         * lib/execute.c (open, close): Undefine.
17344         * lib/fsusage.c (open, close): Undefine.
17345         * lib/gc-gnulib.c (open, close): Undefine.
17346         * lib/getcwd.c (opendir, closedir): Undefine.
17347         * lib/glob.c (opendir, closedir): Undefine.
17348         * lib/javacomp.c (open, close): Undefine.
17349         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
17350         * lib/openat-proc.c (open, close): Undefine.
17351         * lib/pagealign_alloc.c (open, close): Undefine.
17352         * lib/pipe.c (open, close): Undefine.
17353         * lib/progreloc.c (open, close): Undefine.
17354         * lib/savedir.c (opendir, closedir): Undefine.
17355         * lib/utime.c (open, close): Undefine.
17356         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
17357
17358 2007-01-10  Bruno Haible  <bruno@clisp.org>
17359
17360         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
17361
17362 2007-01-12  Eric Blake  <ebb9@byu.net>
17363
17364         Provide a robust <wchar.h>.  Further simplifications are now
17365         possible in other modules, but not included here.
17366         * modules/wchar: New module.
17367         * m4/wchar.m4: New file.
17368         * lib/wchar_.h: Likewise.
17369         * modules/mbchar (Depends-on): Depend on wchar, as the first use
17370         of the new module.
17371         * MODULES.html.sh (Extended multibyte and wide character utilities):
17372         New section.
17373
17374 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
17375
17376         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
17377         to a reasonable default for memory allocation.
17378         (xreadlink): Don't allocate a huge buffer, to work around a buggy
17379         file system that reports garbage st_size values for symlinks.
17380         Problem reported by Liyang Hu.
17381
17382 2007-01-11  Simon Josefsson  <simon@josefsson.org>
17383
17384         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
17385         Emacs .#* auto-save files).
17386
17387 2007-01-11  Bruno Haible  <bruno@clisp.org>
17388
17389         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
17390         directory.
17391
17392 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17393
17394         Use @...@ consistently in lib/wctype_.h.
17395         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
17396         on it being set to 1 or 0.
17397         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
17398         go back to AC_SUBSTing it.
17399         * modules/wctype (Makefile.am): Undo previous change.
17400
17401 2007-01-10  Eric Blake  <ebb9@byu.net>
17402
17403         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
17404         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
17405         * modules/wctype (Makefile.am): Likewise.
17406         Reported by Chris McGuire.
17407
17408 2007-01-10  Jim Meyering  <jim@meyering.net>
17409
17410         fts.c: a small readability/maintainability improvement
17411         * lib/fts.c (fts_read): Make this code slightly more readable and
17412         maintainable by hoisting the "sp->fts_cur = p" assignments to
17413         immediately follow the statements that set P.  Derived from
17414         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
17415
17416 2007-01-10  Eric Blake  <ebb9@byu.net>
17417
17418         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
17419         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
17420         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17421         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17422         Reported by Chris McGuire.
17423
17424 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17425
17426         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
17427         in sed script.
17428
17429 2007-01-09  Bruno Haible  <bruno@clisp.org>
17430
17431         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
17432         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
17433         variables.
17434         (func_module): Use them.
17435
17436 2007-01-09  Bruno Haible  <bruno@clisp.org>
17437
17438         * modules/unistr/base: New file.
17439         * lib/unistr.h: New file.
17440
17441         * modules/unistr/u8-to-u16: New file.
17442         * lib/unistr/u8-to-u16.c: New file.
17443
17444         * modules/unistr/u8-to-u32: New file.
17445         * lib/unistr/u8-to-u32.c: New file.
17446
17447         * modules/unistr/u16-to-u8: New file.
17448         * lib/unistr/u16-to-u8.c: New file.
17449
17450         * modules/unistr/u16-to-u32: New file.
17451         * lib/unistr/u16-to-u32.c: New file.
17452
17453         * modules/unistr/u32-to-u8: New file.
17454         * lib/unistr/u32-to-u8.c: New file.
17455
17456         * modules/unistr/u32-to-u16: New file.
17457         * lib/unistr/u32-to-u16.c: New file.
17458
17459         * modules/unistr/u8-check: New file.
17460         * modules/unistr/u16-check: New file.
17461         * modules/unistr/u32-check: New file.
17462         * lib/unistr/u8-check.c: New file.
17463         * lib/unistr/u16-check.c: New file.
17464         * lib/unistr/u32-check.c: New file.
17465
17466         * modules/unistr/u8-chr: New file.
17467         * modules/unistr/u16-chr: New file.
17468         * modules/unistr/u32-chr: New file.
17469         * lib/unistr/u8-chr.c: New file.
17470         * lib/unistr/u16-chr.c: New file.
17471         * lib/unistr/u32-chr.c: New file.
17472
17473         * modules/unistr/u8-cmp: New file.
17474         * modules/unistr/u16-cmp: New file.
17475         * modules/unistr/u32-cmp: New file.
17476         * lib/unistr/u8-cmp.c: New file.
17477         * lib/unistr/u16-cmp.c: New file.
17478         * lib/unistr/u32-cmp.c: New file.
17479
17480         * modules/unistr/u8-cpy: New file.
17481         * modules/unistr/u16-cpy: New file.
17482         * modules/unistr/u32-cpy: New file.
17483         * lib/unistr/u8-cpy.c: New file.
17484         * lib/unistr/u16-cpy.c: New file.
17485         * lib/unistr/u32-cpy.c: New file.
17486         * lib/unistr/u-cpy.h: New file.
17487
17488         * modules/unistr/u8-cpy-alloc: New file.
17489         * modules/unistr/u16-cpy-alloc: New file.
17490         * modules/unistr/u32-cpy-alloc: New file.
17491         * lib/unistr/u8-cpy-alloc.c: New file.
17492         * lib/unistr/u16-cpy-alloc.c: New file.
17493         * lib/unistr/u32-cpy-alloc.c: New file.
17494         * lib/unistr/u-cpy-alloc.h: New file.
17495
17496         * modules/unistr/u8-endswith: New file.
17497         * modules/unistr/u16-endswith: New file.
17498         * modules/unistr/u32-endswith: New file.
17499         * lib/unistr/u8-endswith.c: New file.
17500         * lib/unistr/u16-endswith.c: New file.
17501         * lib/unistr/u32-endswith.c: New file.
17502         * lib/unistr/u-endswith.h: New file.
17503
17504         * modules/unistr/u8-mblen: New file.
17505         * modules/unistr/u16-mblen: New file.
17506         * modules/unistr/u32-mblen: New file.
17507         * lib/unistr/u8-mblen.c: New file.
17508         * lib/unistr/u16-mblen.c: New file.
17509         * lib/unistr/u32-mblen.c: New file.
17510
17511         * modules/unistr/u8-mbtouc: New file.
17512         * modules/unistr/u16-mbtouc: New file.
17513         * modules/unistr/u32-mbtouc: New file.
17514         * lib/unistr/u8-mbtouc.c: New file.
17515         * lib/unistr/u16-mbtouc.c: New file.
17516         * lib/unistr/u32-mbtouc.c: New file.
17517
17518         * modules/unistr/u8-mbtouc-safe: New file.
17519         * modules/unistr/u16-mbtouc-safe: New file.
17520         * modules/unistr/u32-mbtouc-safe: New file.
17521         * lib/unistr/u8-mbtouc-safe.c: New file.
17522         * lib/unistr/u16-mbtouc-safe.c: New file.
17523         * lib/unistr/u32-mbtouc-safe.c: New file.
17524
17525         * modules/unistr/u8-move: New file.
17526         * modules/unistr/u16-move: New file.
17527         * modules/unistr/u32-move: New file.
17528         * lib/unistr/u8-move.c: New file.
17529         * lib/unistr/u16-move.c: New file.
17530         * lib/unistr/u32-move.c: New file.
17531         * lib/unistr/u-move.h: New file.
17532
17533         * modules/unistr/u8-next: New file.
17534         * modules/unistr/u16-next: New file.
17535         * modules/unistr/u32-next: New file.
17536         * lib/unistr/u8-next.c: New file.
17537         * lib/unistr/u16-next.c: New file.
17538         * lib/unistr/u32-next.c: New file.
17539
17540         * modules/unistr/u8-prev: New file.
17541         * modules/unistr/u16-prev: New file.
17542         * modules/unistr/u32-prev: New file.
17543         * lib/unistr/u8-prev.c: New file.
17544         * lib/unistr/u16-prev.c: New file.
17545         * lib/unistr/u32-prev.c: New file.
17546
17547         * modules/unistr/u8-set: New file.
17548         * modules/unistr/u16-set: New file.
17549         * modules/unistr/u32-set: New file.
17550         * lib/unistr/u8-set.c: New file.
17551         * lib/unistr/u16-set.c: New file.
17552         * lib/unistr/u32-set.c: New file.
17553         * lib/unistr/u-set.h: New file.
17554
17555         * modules/unistr/u8-startswith: New file.
17556         * modules/unistr/u16-startswith: New file.
17557         * modules/unistr/u32-startswith: New file.
17558         * lib/unistr/u8-startswith.c: New file.
17559         * lib/unistr/u16-startswith.c: New file.
17560         * lib/unistr/u32-startswith.c: New file.
17561         * lib/unistr/u-startswith.h: New file.
17562
17563         * modules/unistr/u8-stpcpy: New file.
17564         * modules/unistr/u16-stpcpy: New file.
17565         * modules/unistr/u32-stpcpy: New file.
17566         * lib/unistr/u8-stpcpy.c: New file.
17567         * lib/unistr/u16-stpcpy.c: New file.
17568         * lib/unistr/u32-stpcpy.c: New file.
17569         * lib/unistr/u-stpcpy.h: New file.
17570
17571         * modules/unistr/u8-stpncpy: New file.
17572         * modules/unistr/u16-stpncpy: New file.
17573         * modules/unistr/u32-stpncpy: New file.
17574         * lib/unistr/u8-stpncpy.c: New file.
17575         * lib/unistr/u16-stpncpy.c: New file.
17576         * lib/unistr/u32-stpncpy.c: New file.
17577         * lib/unistr/u-stpncpy.h: New file.
17578
17579         * modules/unistr/u8-strcat: New file.
17580         * modules/unistr/u16-strcat: New file.
17581         * modules/unistr/u32-strcat: New file.
17582         * lib/unistr/u8-strcat.c: New file.
17583         * lib/unistr/u16-strcat.c: New file.
17584         * lib/unistr/u32-strcat.c: New file.
17585         * lib/unistr/u-strcat.h: New file.
17586
17587         * modules/unistr/u8-strchr: New file.
17588         * modules/unistr/u16-strchr: New file.
17589         * modules/unistr/u32-strchr: New file.
17590         * lib/unistr/u8-strchr.c: New file.
17591         * lib/unistr/u16-strchr.c: New file.
17592         * lib/unistr/u32-strchr.c: New file.
17593
17594         * modules/unistr/u8-strcmp: New file.
17595         * modules/unistr/u16-strcmp: New file.
17596         * modules/unistr/u32-strcmp: New file.
17597         * lib/unistr/u8-strcmp.c: New file.
17598         * lib/unistr/u16-strcmp.c: New file.
17599         * lib/unistr/u32-strcmp.c: New file.
17600
17601         * modules/unistr/u8-strcpy: New file.
17602         * modules/unistr/u16-strcpy: New file.
17603         * modules/unistr/u32-strcpy: New file.
17604         * lib/unistr/u8-strcpy.c: New file.
17605         * lib/unistr/u16-strcpy.c: New file.
17606         * lib/unistr/u32-strcpy.c: New file.
17607         * lib/unistr/u-strcpy.h: New file.
17608
17609         * modules/unistr/u8-strcspn: New file.
17610         * modules/unistr/u16-strcspn: New file.
17611         * modules/unistr/u32-strcspn: New file.
17612         * lib/unistr/u8-strcspn.c: New file.
17613         * lib/unistr/u16-strcspn.c: New file.
17614         * lib/unistr/u32-strcspn.c: New file.
17615         * lib/unistr/u-strcspn.h: New file.
17616
17617         * modules/unistr/u8-strdup: New file.
17618         * modules/unistr/u16-strdup: New file.
17619         * modules/unistr/u32-strdup: New file.
17620         * lib/unistr/u8-strdup.c: New file.
17621         * lib/unistr/u16-strdup.c: New file.
17622         * lib/unistr/u32-strdup.c: New file.
17623         * lib/unistr/u-strdup.h: New file.
17624
17625         * modules/unistr/u8-strlen: New file.
17626         * modules/unistr/u16-strlen: New file.
17627         * modules/unistr/u32-strlen: New file.
17628         * lib/unistr/u8-strlen.c: New file.
17629         * lib/unistr/u16-strlen.c: New file.
17630         * lib/unistr/u32-strlen.c: New file.
17631         * lib/unistr/u-strlen.h: New file.
17632
17633         * modules/unistr/u8-strmblen: New file.
17634         * modules/unistr/u16-strmblen: New file.
17635         * modules/unistr/u32-strmblen: New file.
17636         * lib/unistr/u8-strmblen.c: New file.
17637         * lib/unistr/u16-strmblen.c: New file.
17638         * lib/unistr/u32-strmblen.c: New file.
17639
17640         * modules/unistr/u8-strmbtouc: New file.
17641         * modules/unistr/u16-strmbtouc: New file.
17642         * modules/unistr/u32-strmbtouc: New file.
17643         * lib/unistr/u8-strmbtouc.c: New file.
17644         * lib/unistr/u16-strmbtouc.c: New file.
17645         * lib/unistr/u32-strmbtouc.c: New file.
17646
17647         * modules/unistr/u8-strncat: New file.
17648         * modules/unistr/u16-strncat: New file.
17649         * modules/unistr/u32-strncat: New file.
17650         * lib/unistr/u8-strncat.c: New file.
17651         * lib/unistr/u16-strncat.c: New file.
17652         * lib/unistr/u32-strncat.c: New file.
17653         * lib/unistr/u-strncat.h: New file.
17654
17655         * modules/unistr/u8-strncmp: New file.
17656         * modules/unistr/u16-strncmp: New file.
17657         * modules/unistr/u32-strncmp: New file.
17658         * lib/unistr/u8-strncmp.c: New file.
17659         * lib/unistr/u16-strncmp.c: New file.
17660         * lib/unistr/u32-strncmp.c: New file.
17661
17662         * modules/unistr/u8-strncpy: New file.
17663         * modules/unistr/u16-strncpy: New file.
17664         * modules/unistr/u32-strncpy: New file.
17665         * lib/unistr/u8-strncpy.c: New file.
17666         * lib/unistr/u16-strncpy.c: New file.
17667         * lib/unistr/u32-strncpy.c: New file.
17668         * lib/unistr/u-strncpy.h: New file.
17669
17670         * modules/unistr/u8-strnlen: New file.
17671         * modules/unistr/u16-strnlen: New file.
17672         * modules/unistr/u32-strnlen: New file.
17673         * lib/unistr/u8-strnlen.c: New file.
17674         * lib/unistr/u16-strnlen.c: New file.
17675         * lib/unistr/u32-strnlen.c: New file.
17676         * lib/unistr/u-strnlen.h: New file.
17677
17678         * modules/unistr/u8-strpbrk: New file.
17679         * modules/unistr/u16-strpbrk: New file.
17680         * modules/unistr/u32-strpbrk: New file.
17681         * lib/unistr/u8-strpbrk.c: New file.
17682         * lib/unistr/u16-strpbrk.c: New file.
17683         * lib/unistr/u32-strpbrk.c: New file.
17684         * lib/unistr/u-strpbrk.h: New file.
17685
17686         * modules/unistr/u8-strrchr: New file.
17687         * modules/unistr/u16-strrchr: New file.
17688         * modules/unistr/u32-strrchr: New file.
17689         * lib/unistr/u8-strrchr.c: New file.
17690         * lib/unistr/u16-strrchr.c: New file.
17691         * lib/unistr/u32-strrchr.c: New file.
17692
17693         * modules/unistr/u8-strspn: New file.
17694         * modules/unistr/u16-strspn: New file.
17695         * modules/unistr/u32-strspn: New file.
17696         * lib/unistr/u8-strspn.c: New file.
17697         * lib/unistr/u16-strspn.c: New file.
17698         * lib/unistr/u32-strspn.c: New file.
17699         * lib/unistr/u-strspn.h: New file.
17700
17701         * modules/unistr/u8-strstr: New file.
17702         * modules/unistr/u16-strstr: New file.
17703         * modules/unistr/u32-strstr: New file.
17704         * lib/unistr/u8-strstr.c: New file.
17705         * lib/unistr/u16-strstr.c: New file.
17706         * lib/unistr/u32-strstr.c: New file.
17707         * lib/unistr/u-strstr.h: New file.
17708
17709         * modules/unistr/u8-strtok: New file.
17710         * modules/unistr/u16-strtok: New file.
17711         * modules/unistr/u32-strtok: New file.
17712         * lib/unistr/u8-strtok.c: New file.
17713         * lib/unistr/u16-strtok.c: New file.
17714         * lib/unistr/u32-strtok.c: New file.
17715         * lib/unistr/u-strtok.h: New file.
17716
17717         * modules/unistr/u8-uctomb: New file.
17718         * modules/unistr/u16-uctomb: New file.
17719         * modules/unistr/u32-uctomb: New file.
17720         * lib/unistr/u8-uctomb.c: New file.
17721         * lib/unistr/u16-uctomb.c: New file.
17722         * lib/unistr/u32-uctomb.c: New file.
17723
17724         * MODULES.html.sh (Unicode string functions): Add the new modules.
17725
17726 2007-01-08  Bruno Haible  <bruno@clisp.org>
17727
17728         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
17729         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
17730         subdirectories.
17731
17732 2007-01-08  Karl Berry  <karl@gnu.org>
17733
17734         * doc/error.texi: mention that main() fns must set program_name
17735         when progname is used.
17736
17737 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
17738
17739         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
17740         WCTYPE_H is empty, for the benefit of builds from non-distclean
17741         directories.  Problem reported by Eric Blake in
17742         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
17743
17744 2007-01-08  Bruno Haible  <bruno@clisp.org>
17745
17746         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
17747         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
17748         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
17749         PROVIDE_CANONICALIZE_FILENAME_MODE.
17750         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
17751
17752 2007-01-08  Bruno Haible  <bruno@clisp.org>
17753
17754         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
17755         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
17756         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
17757         * lib/fts.c: Likewise.
17758         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
17759
17760 2006-12-25  Bruno Haible  <bruno@clisp.org>
17761
17762         * modules/utf8-ucs4-safe: New file.
17763         * lib/utf8-ucs4-safe.h: New file.
17764         * lib/unistr/utf8-ucs4-safe.c: New file.
17765
17766         * modules/utf16-ucs4-safe: New file.
17767         * lib/utf16-ucs4-safe.h: New file.
17768         * lib/unistr/utf16-ucs4-safe.c: New file.
17769
17770         * MODULES.html.sh (Unicode string functions): Add the new modules.
17771
17772 2007-01-08  Bruno Haible  <bruno@clisp.org>
17773
17774         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
17775         (Depends-on): Add unitypes.
17776         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
17777         (u8_mbtouc_aux): Move out to separate file.
17778         (u8_mbtouc): Use ucs4_t, uint8_t types.
17779         * lib/unistr/utf8-ucs4.c: New file.
17780
17781         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
17782         (Depends-on): Add unitypes.
17783         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
17784         (u16_mbtouc_aux): Move out to separate file.
17785         (u16_mbtouc): Use ucs4_t, uint16_t types.
17786         * lib/unistr/utf16-ucs4.c: New file.
17787
17788         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
17789         (Depends-on): Add unitypes.
17790         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
17791         (u8_uctomb_aux): Move out to separate file.
17792         (u8_uctomb): Use ucs4_t, uint8_t types.
17793         * lib/unistr/ucs4-utf8.c: New file.
17794
17795         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
17796         (Depends-on): Add unitypes.
17797         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
17798         (u16_uctomb_aux): Move out to separate file.
17799         (u16_uctomb): Use ucs4_t, uint16_t types.
17800         * lib/unistr/ucs4-utf16.c: New file.
17801
17802 2006-12-25  Bruno Haible  <bruno@clisp.org>
17803
17804         * modules/unitypes: New file.
17805         * lib/unitypes.h: New file.
17806         * MODULES.html.sh (func_all_modules): New section "Unicode string
17807         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
17808         this section. Add unitypes.
17809
17810 2007-01-08  Bruno Haible  <bruno@clisp.org>
17811
17812         Avoid variable names that conflict with those from libtool.
17813         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
17814         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
17815         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
17816         library_names_spec to acl_library_names_spec, hardcode_* to
17817         acl_hardcode_*.
17818         Reported by Ralf Wildenhues.
17819
17820 2007-01-08  Bruno Haible  <bruno@clisp.org>
17821
17822         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
17823         definition.
17824         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
17825         definition.
17826         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
17827         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
17828         definition.
17829         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
17830         definition.
17831         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
17832         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
17833         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
17834         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
17835         definition.
17836         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
17837         definition.
17838         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
17839         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
17840         GC_USE_<algorithm>.
17841         * lib/gc-libgcrypt.c: Likewise.
17842         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
17843         * modules/gc-arctwo (configure.ac): Likewise.
17844         * modules/gc-des (configure.ac): Likewise.
17845         * modules/gc-hmac-md5 (configure.ac): Likewise.
17846         * modules/gc-hmac-sha1 (configure.ac): Likewise.
17847         * modules/gc-md2 (configure.ac): Likewise.
17848         * modules/gc-md4 (configure.ac): Likewise.
17849         * modules/gc-md5 (configure.ac): Likewise.
17850         * modules/gc-random (configure.ac): Likewise.
17851         * modules/gc-rijndael (configure.ac): Likewise.
17852         * modules/gc-sha1 (configure.ac): Likewise.
17853
17854 2007-01-08  Bruno Haible  <bruno@clisp.org>
17855
17856         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
17857         macro definition.
17858         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
17859         definition.
17860         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
17861         definition.
17862         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
17863         * modules/fcntl-safer (configure.ac): Likewise.
17864         * modules/fopen-safer (configure.ac): Likewise.
17865         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
17866         GNULIB_FWRITEERROR macro definition.
17867
17868 2007-01-08  Bruno Haible  <bruno@clisp.org>
17869
17870         * m4/gnulib-common.m4: New file.
17871         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
17872         (func_get_filelist): Add m4/gnulib-common.m4.
17873
17874 2007-01-08  Bruno Haible  <bruno@clisp.org>
17875
17876         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
17877         command.
17878
17879 2007-01-08  Jim Meyering  <jim@meyering.net>
17880
17881         Use a more robust test for a "can't happen" condition.
17882         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
17883         narrowed the st_size value.  Presuming the "can't happen" condition
17884         is true, that narrowing could conceivably convert an invalid st_size
17885         value into a valid one.  Instead, use a change based on Matthew
17886         Woehlke's original patch.
17887
17888         Slight readability improvement: use an assert-like macro
17889         in place of literal "abort ()" uses.
17890         * lib/fts.c (fts_assert): Define.
17891         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
17892         Use this macro instead of a bare 'abort'.
17893
17894 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
17895
17896         Don't worry about using IRIX 5.3's wctype.h broken definitions;
17897         simply work around them.
17898         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
17899         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
17900         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
17901         declaring.
17902         Don't bother to define as macros, since the standard doesn't require it.
17903         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
17904         longer worry about IRIX 5.3.
17905         (HAVE_WCTYPE_CTMP_BUG): Remove.
17906
17907 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
17908
17909         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
17910         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
17911         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
17912         Problems reported by Georg Schwarz for IRIX 5.3.
17913
17914         * gnulib-tool (autoconf_minversion): Take the maximum version number
17915         found, not the minimum.  Problem reported by James Youngman.
17916
17917 2007-01-03  Karl Berry  <karl@gnu.org>
17918
17919         * doc/error.texi: new file, explaining interaction with progname.
17920         * doc/gnulib.texi: include it.  Update copyright.
17921
17922 2007-01-03  Simon Josefsson  <simon@josefsson.org>
17923
17924         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
17925         AC_CANONICAL_HOST, to improve autobuild outputs.
17926
17927 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
17928             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17929
17930         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
17931         sockets, server sockets, and other file descriptors.  Count errors
17932         to compute the return value.  Reorder the code a bit to be easier
17933         to follow.  Don't set event bits that were not requested (except
17934         POLLERR and POLLHUP).
17935
17936 2007-01-01  Bruno Haible  <bruno@clisp.org>
17937
17938         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
17939
17940 2007-01-03  Jim Meyering  <jim@meyering.net>
17941
17942         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
17943
17944 2007-01-02  Bruno Haible  <bruno@clisp.org>
17945
17946         * modules/settime (Include): Require timespec.h.
17947         * modules/nanosleep (Include): Likewise.
17948
17949 2007-01-01  Bruno Haible  <bruno@clisp.org>
17950
17951         * gnulib-tool (func_emit_copyright_notice): Bump year.
17952         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
17953
17954 2007-01-01  Bruno Haible  <bruno@clisp.org>
17955
17956         Improve support for OpenBSD.
17957         * build-aux/config.rpath (libname_spec): Export.
17958         (library_names_spec): New variable. Export.
17959         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
17960         library_names_spec from the config.rpath output. Locate shared library
17961         through the name pattern in library_names_spec.
17962
17963 2007-01-01  Eric Blake  <ebb9@byu.net>
17964
17965         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
17966
17967 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
17968
17969         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
17970         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
17971         assume the C locale, and avoid an "eval" that could cause trouble.
17972         Problem with SORT reported by Bob Proulx.
17973
17974         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
17975         Define.  Trivial patch from Henning Nielsen Lund, originally
17976         sent to bug-grep@gnu.org today.
17977
17978 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17979
17980         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
17981         struct stat.  Problem reported by Henning Nielsen Lund.
17982         * lib/acl.c: Include acl.h first, to check interface.  Don't
17983         bother to include sys/types.h and sys/stat.h again.
17984
17985 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17986
17987         Import the following change from libc; problem reported by
17988         Sven Verdoolaege.
17989
17990         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
17991
17992         [BZ #1373]
17993         * lib/argp.h: Remove __NTH for __argp_usage inline function.
17994
17995 2006-12-28  Jim Meyering  <jim@meyering.net>
17996
17997         * build-aux/announce-gen: Do not assume that the package
17998         builds any of tar.gz, tar.bz2, and .xdelta files.
17999         Suggestion from Simon Josefsson.
18000
18001 2006-12-28  Simon Josefsson  <simon@josefsson.org>
18002
18003         * modules/announce-gen: New file.
18004
18005 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18006
18007         * lib/mbchar.h: Just include <wctype.h>; the wctype module
18008         handles its gotchas now.
18009         * lib/mbswidth.c: Likewise.
18010         * lib/wcwidth.h: Likewise.
18011         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
18012         and iswcntrl; the wctype module does this stuff now.
18013         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18014         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18015         * modules/mbchar (Depends-on): Add wctype.
18016         * modules/mbswidth (Depends-on): Likewise.
18017         * modules/wcwidth (Depends-on): Likewise.
18018
18019 2006-12-27  Eric Blake  <ebb9@byu.net>
18020
18021         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
18022         module uses more than what <wctype.h> is required to provide.
18023
18024 2006-12-26  Eric Blake  <ebb9@byu.net>
18025
18026         * gnulib-tool (sed_extract_prog): Avoid space-tab.
18027
18028 2006-12-26  Eric Blake  <ebb9@byu.net>
18029
18030         * modules/absolute-header: New module.
18031         * modules/fcntl (Depends-on): Depend on it.
18032         * modules/inttypes (Depends-on): Likewise.
18033         * modules/stdint (Depends-on): Likewise.
18034         * modules/sys_stat (Depends-on): Likewise.
18035         * modules/wctype (Depends-on): Likewise.
18036         * MODULES.html.sh (Support for building libraries and
18037         executables): Document it.
18038
18039 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18040
18041         * gnulib-tool (SED): Remove, undoing previous change.
18042         The problem was that it broke coreutils on Solaris, because
18043         "sed --posix" leaked into a makefile.
18044         (sed): New alias, if 'alias' and GNU sed.
18045
18046 2006-12-24  Jim Meyering  <jim@meyering.net>
18047
18048         Work around an fchownat bug in glibc-2.4:
18049         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
18050         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
18051         in spite of the -P option.
18052         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
18053         New macros.
18054         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
18055         * modules/openat (Files): Add lib/fchownat.c.
18056         * lib/openat.c (fchownat): Don't define here.  Move to...
18057         * lib/fchownat.c: ...this new file.
18058
18059 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18060
18061         Fix bug reported by Bruno Haible in
18062         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
18063         where quotearg.c didn't compile on Mac OS X 10.2 because it
18064         lacks <wchar.h> and wint_t.
18065         * lib/wctype_.h (__wctype_wint_t): New type.
18066         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
18067         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
18068         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
18069         Arg is now of type __wctype_wint_t, not wint_t.
18070         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
18071         substitute HAVE_WINT_T.
18072         * modules/wctype (Files): Add m4/wint_t.m4.
18073         (wctype.h): Substitute HAVE_WINT_T.
18074
18075 2006-12-23  Bruno Haible  <bruno@clisp.org>
18076
18077         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
18078
18079 2006-12-23  Bruno Haible  <bruno@clisp.org>
18080
18081         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
18082         S_ISLNK.
18083         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
18084         mingw.
18085
18086 2006-12-22  Bruno Haible  <bruno@clisp.org>
18087
18088         * lib/copy-file.c: Include acl.h.
18089         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
18090         Close the file descriptors only after being done with copy_acl.
18091         * modules/copy-file (Depends-on): Add acl.
18092
18093 2006-12-22  Bruno Haible  <bruno@clisp.org>
18094
18095         * gnulib-tool (SED): New variable.
18096         Use $SED instead of sed everywhere.
18097
18098 2006-12-22  Bruno Haible  <bruno@clisp.org>
18099
18100         * modules/no-c++: New file.
18101         * m4/no-c++.m4: New file.
18102         * MODULES.html.sh (Support for building libraries and executables):
18103         Add no-c++.
18104
18105 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18106
18107         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
18108         Include <limits.h>, and use its INT_MAX to rewrite the
18109         j loop so that it does not overflow 'int'.  Problem reported by
18110         Ralf Wildenhues in
18111         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
18112         Play it safe by shifting left by 1 rather than multiplying by 2,
18113         as GCC is less likely to optimize this away when the value
18114         is signed (when it assumes overflow leads to undefined behavior).
18115         Also, don't assume time_t uses two's complement.
18116
18117 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18118
18119         * MODULES.html.sh: New module wctype.
18120         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
18121         * lib/fnmatch.c: Don't bother to include <wchar.h> before
18122         <wctype.h>, since the new wctype module should fix this.
18123         * lib/quotearg.c: Include <wctype.h> unconditionally, since
18124         the wctype module should arrange for it.
18125         * lib/regex_internal.h: Likewise.
18126         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
18127         since the wctype module should handle this now.
18128         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
18129         * modules/fnmatch (Depends-on): Add wctype.
18130         * modules/quotearg (Depends-on): Likewise.
18131         * modules/regex (Depends-on): Likewise.
18132
18133 2006-12-19  Bruno Haible  <bruno@clisp.org>
18134
18135         * lib/strdup.h [C++]: Wrap definitions in extern "C".
18136         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
18137
18138 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18139
18140         * modules/savewd (Depends-on): Fix dependency on fcntl.
18141
18142 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18143
18144         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
18145         conforms to C99, rather than relying on the user's environment
18146         setting of STDINT_H.
18147
18148 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18149         and Eric Blake  <ebb9@byu.net>
18150
18151         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
18152         This is more consistent with the other defines here.
18153         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
18154         Port to z/OS.  Problem reported by Paul Gilmartin.
18155         Change local vars to use gl_ prefix rather than ac_.
18156         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
18157         with other defines.
18158         * modules/double-slash-root: New module.
18159         * modules/dirname (Files): Remove m4/double-slash-root.m4.
18160         (Depends-on): Add double-slash-root.
18161         * MODULES.html.sh (File system functions): Mention new module.
18162
18163 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
18164
18165         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
18166         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
18167         This is for the benefit of gzip, which doesn't do i18n.
18168
18169 2006-12-12  Jim Meyering  <jim@meyering.net>
18170
18171         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
18172         Reported by Andreas Schwab <schwab@suse.de>.
18173
18174 2006-12-12  Bruno Haible  <bruno@clisp.org>
18175
18176         Merge these changes.
18177         2006-09-05  Bruno Haible  <bruno@clisp.org>
18178         * lib/iconvme.c (iconv_string): No need to save and restore errno when
18179         iconv_alloc succeeded.
18180         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
18181         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
18182         test for " && dest " at the end - dest is always != NULL there. Call
18183         iconv with 4xNULL arguments initially, to reset the state. Call iconv
18184         with 2xNULL arguments, also to flush the state storage. Handle the
18185         IRIX iconv behaviour. Realloc the final result, to throw away unused
18186         memory.
18187
18188 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
18189
18190         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
18191         and fchmodat unconditionally, since glibc 2.4 has them.
18192         Problem reported by Arkadiusz Miskiewicz.
18193
18194 2006-12-10  Bruno Haible  <bruno@clisp.org>
18195
18196         * gnulib-tool (func_import): Show the include files only for those
18197         modules that are copied and specified.
18198         Reported by Karl Berry.
18199
18200 2006-12-08  Jim Meyering  <jim@meyering.net>
18201
18202         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
18203         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
18204
18205         * build-aux/announce-gen: Add two new options, both optional:
18206         --bootstrap-tools=TOOL_LIST
18207               a comma-separated list of tools, e.g.,
18208               autoconf,automake,bison,gnulib
18209         --gnulib-snapshot-date=DATE
18210               if gnulib is in the bootstrap tool list,
18211               then report this as the snapshot date.
18212               If not specified, use the current date/time.
18213               If you specify a date here, be sure it's UTC.
18214
18215 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18216
18217         * tests/test-argp-2.sh: Fix test to match actual output.
18218         (func_compare): Fix sed script to be portable.
18219
18220 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
18221
18222         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
18223         workaround for this case.  It is not autoconfigured now; offhand
18224         it's hard to see how to autoconfigure it.
18225
18226 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
18227
18228         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
18229         a directory that is about to be chowned.  Such a directory's
18230         initial file permissions should permit the owner only and this
18231         should not be changed until after the chown, since the group and
18232         other bits would be incorrect if they granted permission before
18233         the chown.
18234
18235         Fix porting problem for iswctype reported by Georg Schwarz in:
18236         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
18237         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
18238         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
18239         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
18240         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18241
18242 2006-12-03  Jim Meyering  <jim@meyering.net>
18243
18244         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
18245         p->fts_statp may not yet be defined.
18246         (fts_read): Instead, set it in the caller, once p->fts_statp is
18247         sure to be defined, and corresponds to a top-level directory.
18248         This bug made du -x fail.  Here's the coreutils test case:
18249         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
18250         Reported by Mike Frysinger.
18251
18252 2006-12-01  Jim Meyering  <jim@meyering.net>
18253
18254         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
18255         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
18256         Reported by Simon Josefsson.
18257
18258 2006-11-30  Jim Meyering  <jim@meyering.net>
18259
18260         * m4/warning.m4: Use the all-permissive copyright notice
18261         recommended by RMS (rather than LGPL).
18262         * m4/vararrays.m4: Likewise.
18263         * m4/flexmember.m4: Likewise.
18264
18265 2006-11-29  Bruno Haible  <bruno@clisp.org>
18266
18267         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18268         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
18269         using +=.
18270         Reported by Simon Josefsson <simon@josefsson.org>.
18271
18272 2006-11-28  James Youngman <jay@gnu.org>
18273
18274         * README: Advise users that they might find the bug-gnulib@gnu.org
18275         and autotools-announce@gnu.org mailing lists useful.
18276
18277 2006-11-28  Bruno Haible  <bruno@clisp.org>
18278
18279         * m4/ptrdiff_max.m4: Remove file.
18280
18281 2006-11-21  Bruno Haible  <bruno@clisp.org>
18282
18283         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
18284         _AC_COMPUTE_INT.
18285         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18286         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
18287         _AC_COMPUTE_INT.
18288         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18289         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
18290         _AC_COMPUTE_INT.
18291         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18292
18293 2006-11-28  Jim Meyering  <jim@meyering.net>
18294
18295         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
18296         warning from "gcc -Wshadow" about shadowing the builtin.
18297
18298 2006-11-27  Bruno Haible  <bruno@clisp.org>
18299
18300         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
18301         _AC_COMPUTE_INT.
18302         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18303
18304 2006-11-27  Bruno Haible  <bruno@clisp.org>
18305             Paul Eggert  <eggert@cs.ucla.edu>
18306
18307         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
18308
18309 2006-11-26  Bruno Haible  <bruno@clisp.org>
18310
18311         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18312         noinst_LTLIBRARIES.
18313
18314 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
18315             Bruno Haible  <bruno@clisp.org>
18316
18317         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
18318         if compiling with "gcc -ansi".
18319
18320 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
18321
18322         Fix some incompatibilities with gcc -ansi -pedantic.
18323         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
18324         if compiling pedantically with GCC, unless it's C99 or later.
18325         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
18326         it mishandles gcc -ansi -pedantic as well.
18327         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
18328         if gcc -pedantic.
18329         * lib/regexec.c (check_node_accept_bytes): Don't use auto
18330         initializers for struct if -pedantic, unless it's C99 or later.
18331
18332 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
18333
18334         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
18335         Don't close an fd more than once. Identical atimes indicate
18336         success, not failure.
18337
18338 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
18339
18340         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
18341
18342 2006-11-23  Jim Meyering  <jim@meyering.net>
18343
18344         * build-aux/announce-gen: New file.  From coreutils.
18345
18346 2006-11-22  Jim Meyering  <jim@meyering.net>
18347
18348         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
18349         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
18350         (fts_read): Use a temporary to narrow the overused st_size member
18351         before using it in a switch statement.  Reported by Matthew Woehlke.
18352
18353         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
18354         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18355
18356 2006-11-20  Bruno Haible  <bruno@clisp.org>
18357
18358         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
18359         changequote instead of pairs of brackets.
18360         Reported by Andreas Schwab <schwab@suse.de>.
18361
18362 2006-11-21  Jim Meyering  <jim@meyering.net>
18363
18364         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
18365         so as to remain compatible with older compilers.
18366         Patch from Michael Deutschmann.
18367
18368 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
18369
18370         * MODULES.html.sh (File system functions): Add openat.
18371
18372         * lib/openat.h (rpl_fstatat): New macro, if
18373         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
18374         (fstatat): Define to rpl_fstatat under the same conditions,
18375         unless COMPILING_FSTATAT.
18376         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
18377         seems to have the bug.
18378         * lib/fstatat.c: New file.
18379         * modules/openat (Files): Add it.
18380
18381 2006-11-20  Bruno Haible  <bruno@clisp.org>
18382
18383         * Makefile: New file.
18384
18385 2006-11-20  Jim Meyering  <jim@meyering.net>
18386
18387         The beginnings of syntax-related checks for gnulib.
18388         * lib/Makefile: New file.
18389         * lib/t-idcache: New script.  Ensure that the two halves of
18390         idcache.c stay in sync.
18391
18392         * lib/idcache.c: Adjust comments in user- and group- portions to
18393         be more accurate, and to be consistent with one another.
18394
18395 2006-11-20  Jim Meyering  <jim@meyering.net>
18396
18397         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
18398         continue using the flexible array member (thus, this module performs
18399         half as many malloc calls), with the addition that...
18400         (getgroup, getuser): Consistently record a non-match via an empty
18401         "name" string, and map an empty string match to a NULL return value.
18402         * modules/idcache (Depends-on): Re-add flexmember.
18403
18404         * lib/idcache.c (getuser): Remove all uses of the register keyword.
18405         (getuidbyname, getgroup, getgidbyname): Likewise.
18406
18407         Use cleaner syntax: NULL rather than 0.
18408         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
18409
18410 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
18411
18412         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
18413         It mishandled the case where the group was missing.
18414         Problem reported by Greg Schafer.
18415         * modules/idcache: Likewise.
18416
18417 2006-11-18  Jim Meyering  <jim@meyering.net>
18418
18419         * check-module (%exempt_header): Add exception for some
18420         conditionally-included headers.
18421
18422         * modules/i-ring (Depends-on): Add verify.
18423         (License): Change to LGPL.
18424
18425 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
18426
18427         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
18428         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
18429         and inttostr.h.  Use snprintf rather than uinttostr, so that
18430         LGPLed code doesn't depend on GPLed.
18431
18432 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18433
18434         * modules/inline (License): Change from GPL to LGPL.
18435
18436 2006-11-17  Jim Meyering  <jim@meyering.net>
18437
18438         * modules/d-type (License): Switch to LGPL.
18439
18440 2006-11-15  Bruno Haible  <bruno@clisp.org>
18441
18442         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
18443
18444 2006-11-15  Eric Blake  <ebb9@byu.net>
18445
18446         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
18447         the module dependency.
18448
18449 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18450             Bruno Haible  <bruno@clisp.org>
18451
18452         * gnulib-tool (func_create_testdir): Add license consistency check.
18453
18454 2006-11-15  Eric Blake  <ebb9@byu.net>
18455
18456         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
18457         random "(cached)" in configure output.
18458
18459 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18460
18461         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
18462         test for conforming inttypes.h is both announced and cached.
18463
18464         * MODULES.html.sh (seen_modules, seen_files): New variables.
18465         (func_module): Rewrite to use a few less gnulib-tool and sed
18466         invocations.  Avoid a couple of quadratic algorithms for ...
18467         (missed_modules, missed_files): ... these, with ...
18468         (func_append, func_tmpdir): ... these new functions, from
18469         gnulib-tool.  Analogously, install traps for cleanup.
18470
18471         * tests/test-gc.c (main): Remove unused variables.
18472         * tests/test-read-file.c: Include stdlib.h, for 'free'.
18473
18474 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
18475
18476         * modules/inttostr (License): Change to LGPL.
18477
18478 2006-11-14  Eric Blake  <ebb9@byu.net>
18479
18480         * modules/tempname (License): Change to LGPL.
18481
18482 2006-11-14  Eric Blake  <ebb9@byu.net>
18483
18484         * doc/functions.texi (Function Portability): *printf functions on
18485         Cygwin now understand all POSIX size specifiers.
18486
18487 2006-11-14  Bruno Haible  <bruno@clisp.org>
18488
18489         * modules/c-ctype (License): Change to LGPL.
18490
18491 2006-11-12  Bruno Haible  <bruno@clisp.org>
18492
18493         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18494         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
18495         for GNOME libraries, for which the include files are installed in
18496         subdirectories of $prefix/include.
18497
18498 2006-11-12  Bruno Haible  <bruno@clisp.org>
18499
18500         * m4/lib-link.m4: Require at least autoconf-2.54.
18501         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
18502         name to underscores for the --with option.
18503
18504 2006-11-13  Bruno Haible  <bruno@clisp.org>
18505
18506         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
18507         the tests directory.
18508         Reported by Ralf Wildenhues.
18509
18510 2006-11-13  Bruno Haible  <bruno@clisp.org>
18511
18512         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
18513         (func_emit_initmacro_end): Undo the override here.
18514         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
18515         Works around the famous automake error in coreutils.
18516
18517 2006-11-13  Eric Blake  <ebb9@byu.net>
18518
18519         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
18520         element, not its node.
18521
18522 2006-11-12  Bruno Haible  <bruno@clisp.org>
18523
18524         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
18525         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
18526
18527 2006-11-12  Bruno Haible  <bruno@clisp.org>
18528
18529         * gnulib-tool: New option --local-symlink.
18530         (func_usage): Document it.
18531         (lsymbolic): New variable.
18532         (func_import, func_create_testdir): If --symlink was not specified,
18533         test whether --local-symlink was specified and the file comes from
18534         the local_gnulib_dir.
18535
18536 2006-11-12  Bruno Haible  <bruno@clisp.org>
18537
18538         * gnulib-tool (func_ln): New function.
18539         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
18540
18541 2006-11-12  Bruno Haible  <bruno@clisp.org>
18542
18543         Finish support for source files in subdirectories.
18544         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
18545         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
18546         AUTOMAKE_OPTIONS.
18547         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
18548
18549 2006-11-12  Bruno Haible  <bruno@clisp.org>
18550
18551         * gnulib-tool (func_get_automake_snippet): Synthesize also an
18552         EXTRA_lib_SOURCES augmentation.
18553         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
18554
18555 2006-11-12  Jim Meyering  <jim@meyering.net>
18556
18557         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
18558         file descriptors.  This also averts a failure on systems with
18559         native openat support when a traversed directory lacks "x" access.
18560         * lib/fts_.h: Include "i-ring.h"
18561         (struct FTS) [fts_fd_ring]: New member.
18562         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
18563         (FCHDIR): Add parentheses.
18564         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
18565         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
18566         When descending, rather than simply closing the previous
18567         fts_cwd_fd value, push that file descriptor onto the ring.
18568         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
18569         (fts_open): Initialize the new fd_ring member.
18570         (fts_close): Clear the ring.
18571         (fts_safe_changedir): When possible, use our new fd_ring to skip
18572         the diropen and fstat and dev/ino comparison that would normally
18573         accompany a virtual `chdir ("..")'.
18574
18575         * modules/fts (Depends-on): Add i-ring.
18576         * modules/i-ring: New module.
18577         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
18578         * m4/i-ring.m4: New file.
18579
18580 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18581
18582         * gnulib-tool (func_create_testdir): Fix replacement of
18583         `build-aux' in configure.ac.  Run autotools in gltests
18584         subdirectory.
18585         (func_create_testdir, func_create_megatestdir, test): There is
18586         no need for '--force' in most autotool invocations in a new
18587         tree.  Actually fail the whole test if any of the tools, or the
18588         configure or make stages fail.
18589
18590         Sync from Automake.
18591         * build-aux/gnupload: Revert last change.  Add pointer to upload
18592         instructions of the GNU Maintenance Instructions.
18593         Suggestion by Karl Berry.
18594
18595 2006-11-10  Jim Meyering  <jim@meyering.net>
18596
18597         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
18598
18599 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
18600
18601         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
18602         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
18603         (bind_textdomain_codeset) [! ENABLE_NLS]:
18604         Evaluate all the arguments.  That way, callers get compatible behavior
18605         if the arguments have side effects.  Also, it avoids some GCC
18606         diagnostics in some cases; Joel E. Denny reported problems when Bison
18607         was configured with --enable-gcc-warnigs.
18608
18609 2006-11-10  Jim Meyering  <jim@meyering.net>
18610
18611         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
18612         relevant options in CFLAGS (like -O, -fno-inline) are taken into
18613         account.
18614
18615 2006-11-10  Jim Meyering  <jim@meyering.net>
18616
18617         * modules/inline: New file/module.
18618         * modules/xalloc (Files): Remove m4/inline.m4.
18619         (Depends-on): Add inline, instead.
18620         * modules/oset: Likewise.
18621         * modules/list: Likewise.
18622
18623 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
18624
18625         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
18626         Problem reported by Matthew Woehlke.
18627
18628 2006-11-09  Bruno Haible  <bruno@clisp.org>
18629
18630         * lib/tempname.c (gen_tempname): Remove variant that invokes
18631         __gen_tempname.
18632         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
18633         __gen_tempname.
18634
18635 2006-11-08  Bruno Haible  <bruno@clisp.org>
18636
18637         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
18638         to 'yes' instead of 'cross-compiling'.
18639
18640 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
18641
18642         * lib/quotearg.h (quotearg_free): New decl.
18643         * lib/quotearg.c (quotearg_free): New function.
18644         (slot0, nslots, slotvec0, slotvec):
18645         Now file-scope so that quotearg_free can get at them.
18646
18647 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18648
18649         Sync from Automake.
18650         * build-aux/gnupload: Add missing 'gnu' to example URL.
18651         Report by Karl Berry.
18652
18653 2006-11-08  Bruno Haible  <bruno@clisp.org>
18654
18655         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
18656         Suggested by Paul Eggert.
18657
18658 2006-11-08  Jim Meyering  <jim@meyering.net>
18659
18660         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
18661         It's already included if !_LIBC.
18662         (fts_safe_changedir): Add a comment.
18663
18664 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18665
18666         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
18667         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
18668         Matthew Woehlke.
18669
18670         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
18671         definitions up, to avoid colliding with change below.
18672         (static_inline) [HAVE_INLINE]: New macro.
18673         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
18674         Provide extern decls when !HAVE_INLINE.  Do not define unless
18675         static_inline is defined, either by us or by xmalloc.c.  Use
18676         static_inline rather than static inline.
18677         (XCALLOC): Optimize sizeof(T) = 1 case.
18678         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
18679
18680 2006-11-07  Bruno Haible  <bruno@clisp.org>
18681
18682         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
18683         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
18684         AC_C_INLINE.
18685         * modules/xalloc (Files): Add m4/inline.m4.
18686
18687 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18688
18689         * README: Fix typo.
18690         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
18691         (Miscellanous Notes): ...from this.
18692
18693 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18694
18695         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
18696         Mention that offsetof should be used instead of sizeof.
18697         From Bruno Haible.
18698
18699 2006-11-07  Bruno Haible  <bruno@clisp.org>
18700
18701         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
18702
18703 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
18704
18705         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
18706         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
18707         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
18708         (gl_tree_add_before, gl_tree_add_after):
18709         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
18710         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
18711         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
18712         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
18713         (gl_linked_add_after, gl_linked_add_at): Likewise.
18714         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
18715         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
18716         (gl_tree_add_before, gl_tree_add_after): Likewise.
18717         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
18718         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
18719         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
18720
18721 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18722
18723         * lib/gl_oset.h: Use C comment style, not C++ comment style.
18724
18725 2006-11-06  Bruno Haible  <bruno@clisp.org>
18726
18727         * m4/inline.m4: New file.
18728         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
18729         * modules/list (Files): Add m4/inline.m4.
18730         * modules/oset (Files): Likewise.
18731
18732 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
18733
18734         * lib/idcache.c: Include <stddef.h>, for offsetof.
18735         (struct userid.name): Change from char * to a flexible array member.
18736         All uses changed.
18737         * modules/idcache (Depends-on): Add flexmember.
18738
18739         * MODULES.html.sh (Core language properties): New module flexmember.
18740         * modules/flexmember, m4/flexmember.m4: New files.
18741
18742         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
18743         inline functions that are identical with the old xnmalloc_inline,
18744         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
18745         that we can avoid some unnecessary integer multiplications and
18746         divisions in the common case where the element size is known at
18747         compile time.
18748         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
18749         needed.
18750         (xnboundedmalloc): Remove.
18751         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
18752         arguments, for consistency with rest of this header.
18753         (xcharalloc): Rewrite using XNMALLOC.
18754         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
18755         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
18756         versions have been moved to lib/xalloc.h and renamed to be the
18757         non-*_inline versions.
18758         (xmalloc, xrealloc): Implement without reference to the xnmalloc
18759         and xnrealloc functions, since those functions are now inline and
18760         now call us.
18761         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
18762         renaming described above.
18763         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
18764         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
18765         captures the dependency in AC_C_INLINE.
18766
18767         New module canonicalize-lgpl, proposed by Charles Wilson in
18768         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
18769         with a few small changes afterwards.
18770         * MODULES.html.sh (File system functions): New module
18771         canonicalize-lgpl.
18772         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
18773         and canonicalize_file_name.
18774         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
18775         * modules/canonicalize-lgpl: New files.
18776
18777 2006-11-05  Bruno Haible  <bruno@clisp.org>
18778
18779         * gnulib-tool (func_import, func_create_testdir): Create directories
18780         also for files in subdirectories of lib/.
18781
18782 2006-11-05  Bruno Haible  <bruno@clisp.org>
18783
18784         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
18785         ANSI C compliant.
18786
18787 2006-11-03  Bruno Haible  <bruno@clisp.org>
18788
18789         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
18790         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
18791         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
18792         (xnboundedmalloc): New inline function.
18793         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
18794         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
18795         xmalloc.
18796         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
18797         xmalloc.
18798         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
18799         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
18800         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
18801         xmalloc.
18802         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
18803         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
18804         xmalloc.
18805         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
18806         gl_tree_add_after): Use XMALLOC instead of xmalloc.
18807         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
18808         xmalloc.
18809         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
18810         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
18811         gl_tree_add_after): Use XMALLOC instead of xmalloc.
18812         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
18813         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
18814         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
18815         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
18816
18817 2006-11-03  Bruno Haible  <bruno@clisp.org>
18818
18819         * lib/c-ctype.h [C++]: Define functions without name mangling.
18820         * lib/fwriteerror.h [C++]: Likewise.
18821         * lib/gcd.h [C++]: Likewise.
18822         * lib/linebreak.h [C++]: Likewise.
18823
18824 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
18825
18826         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
18827         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
18828         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
18829         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
18830         Check for functions and headers just once.
18831         Check for declaration of canonicalize_file_name.
18832         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
18833
18834 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
18835
18836         * gnulib-tool (func_import): Fix typo in actioncmd.
18837
18838 2006-11-02  Bruno Haible  <bruno@clisp.org>
18839
18840         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
18841         newline sequence in the Makefile.am snippet as a space, like "make"
18842         does.
18843         Reported by Roger Persson <perrog@gmail.com>.
18844
18845 2006-11-01  Bruno Haible  <bruno@clisp.org>
18846
18847         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
18848         already declared in <string.h>.
18849         * lib/strcase.h (strncasecmp): Don't declare it if yes.
18850
18851 2006-11-01  Bruno Haible  <bruno@clisp.org>
18852
18853         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
18854         * lib/strcase.h: Include <string.h>.
18855         (strcasecmp): Define to rpl_strcasecmp here.
18856
18857 2006-11-01  Bruno Haible  <bruno@clisp.org>
18858
18859         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
18860
18861 2006-11-01  Eric Blake  <ebb9@byu.net>
18862
18863         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
18864
18865         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
18866
18867 2006-10-29  Bruno Haible  <bruno@clisp.org>
18868
18869         Make it compile in C++ mode.
18870         * lib/full-write.c (full_rw): Add a cast.
18871
18872 2006-11-01  Bruno Haible  <bruno@clisp.org>
18873
18874         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
18875         be POSIX compliant.
18876         Reported by Roger Persson <perrog@gmail.com>.
18877
18878 2006-11-01  Eric Blake  <ebb9@byu.net>
18879
18880         * lib/getopt_.h: Fix comments.
18881
18882 2006-10-31  Eric Blake  <ebb9@byu.net>
18883
18884         * modules/tmpdir (Depends-on): Add sys_stat.
18885         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
18886         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
18887         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
18888         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
18889         tempname.
18890
18891 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
18892
18893         Avoid some C++ diagnostics reported by Bruno Haible.
18894         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
18895         xmalloc.
18896         (quotearg_alloc): Use xcharalloc rather than xmalloc.
18897         (struct slotvec): Move to top level.
18898         (quotearg_n_options): Rewrite to avoid xmalloc.
18899         * lib/xalloc.h (xcharalloc): New function.
18900         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
18901         [defined __cplusplus]: Add function template that provides result
18902         type propagation.  This part of the change is from Bruno Haible.
18903
18904 2006-10-29  Bruno Haible  <bruno@clisp.org>
18905
18906         Make it compile in C++ mode.
18907         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
18908         * lib/strnlen1.c (strnlen1): Cast memchr result.
18909         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
18910         * lib/clean-temp.c (string_equals, string_hash): Add casts.
18911         (create_temp_dir): Rename local variable 'template'.
18912         (compile_csharp_using_sscli): Add cast.
18913         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
18914         * lib/findprog.c (find_in_path): Likewise.
18915         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
18916         * lib/wait-process.c (register_slave_subprocess): Likewise.
18917
18918 2006-10-22  Bruno Haible  <bruno@clisp.org>
18919
18920         * modules/tsearch: New file.
18921         * lib/tsearch.h: New file.
18922         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
18923         * m4/tsearch.m4: New file.
18924         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
18925
18926 2006-10-29  Eric Blake  <ebb9@byu.net>
18927
18928         * lib/arcfour.c: Assume config.h.
18929         * lib/arctwo.c: Likewise.
18930         * lib/base64.c: Likewise.
18931         * lib/check-version.c: Likewise.
18932         * lib/crc.c: Likewise.
18933         * lib/des.c: Likewise.
18934         * lib/gc-gnulib.c: Likewise.
18935         * lib/gc-libgcrypt.c: Likewise.
18936         * lib/gc-pbkdf2-sha1.c: Likewise.
18937         * lib/getaddrinfo.c: Likewise.
18938         * lib/getdelim.c: Likewise.
18939         * lib/getline.c: Likewise.
18940         * lib/hmac-md5.c: Likewise.
18941         * lib/hmac-sha1.c: Likewise.
18942         * lib/iconvme.c: Likewise.
18943         * lib/md2.c: Likewise.
18944         * lib/md4.c: Likewise.
18945         * lib/memxor.c: Likewise.
18946         * lib/read-file.c: Likewise.
18947         * lib/readline.c: Likewise.
18948         * lib/rijndael-alg-fst.c: Likewise.
18949         * lib/rijndael-api-fst.c: Likewise.
18950         * lib/xgetdomainname.c: Likewise.
18951
18952 2006-10-28  Eric Blake  <ebb9@byu.net>
18953
18954         * lib/xstrndup.c: Assume config.h.
18955
18956 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
18957
18958         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
18959         stat-macros.h is now for our own macros, whereas stat_h is for
18960         macros in the <sys/stat.h> name space.
18961         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
18962         (STAT_MACROS_H): Remove.
18963         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
18964         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
18965         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
18966         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
18967         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
18968         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
18969         Move these macros to ...
18970         * lib/stat_.h: here.  Don't include stat-macros.h.
18971         * lib/canonicalize.c: Don't include stat-macros.h.
18972         * lib/chown.c: Likewise.
18973         * lib/euidaccess.c: Likewise.
18974         * lib/file-type.c: Likewise.
18975         * lib/filemode.c: Likewise.
18976         * lib/glob.c: Likewise.
18977         * lib/isapipe.c: Likewise.
18978         * lib/lchown.c: Likewise.
18979         * lib/lstat.c: Likewise.
18980         * lib/mkdir-p.c: Likewise.
18981         * lib/rmdir.c: Likewise.
18982         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
18983         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
18984         unless mkdir isn't declared, to speed up 'configure'.
18985         Always create sys/stat.h, since it's unlikely any real sys/stat.h
18986         would define all the S_* symbols.
18987         * modules/canonicalize (Depends-on):
18988         Depend on sys_stat, not stat-macros.
18989         * modules/chown: Likewise.
18990         * modules/euidaccess: Likewise.
18991         * modules/filemode: Likewise.
18992         * modules/file-type: Likewise.
18993         * modules/glob: Likewise.
18994         * modules/isapipe: Likewise.
18995         * modules/lchown: Likewise.
18996         * modules/lstat: Likewise.
18997         * modules/mkancesdirs: Likewise.
18998         * modules/rmdir: Likewise.
18999         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
19000         * modules/modechange: Likewise.
19001         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
19002         (configure.ac): Remove gl_STAT_MACROS.
19003         * modules/sys_stat (Depends-on): Remove stat-macros.
19004
19005 2006-10-27  Bruno Haible  <bruno@clisp.org>
19006
19007         * m4/signed.m4: Remove file.
19008         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
19009         invocation.
19010         * modules/vasnprintf (Files): Remove m4/signed.m4.
19011
19012 2006-10-27  Bruno Haible  <bruno@clisp.org>
19013
19014         Update to GNU gettext 0.16.
19015         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
19016         m4/inttypes-h.m4, m4/signed.m4.
19017         * m4/gettext.m4: Update to GNU gettext 0.16.
19018         * m4/intl.m4: New file, from GNU gettext.
19019         * m4/intldir.m4: New file, from GNU gettext.
19020         * config/srclist.txt: Update
19021
19022 2006-10-27  Eric Blake  <ebb9@byu.net>
19023
19024         * MODULES.html.sh: Document tempname.
19025         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
19026         dependencies.
19027         (Files): Move lib/tempname.c...
19028         * modules/tempname: ...to this new module.
19029         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
19030         (gl_PREREQ_TEMPNAME): Move...
19031         * m4/tempname.m4: ...to this new file.
19032         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
19033         * modules/sys_stat (Depends-on): Add stat-macros.
19034         * lib/stat_.h (includes): Pick up stat macros.
19035         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
19036         if stat macros are broken.
19037         * lib/tempname.c (includes): No need to include "stat-macros.h".
19038         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
19039         (direxists, __path_search) [!_LIBC]: Don't compile these in
19040         gnulib; the tmpdir module covers that.
19041         * lib/tempname.h: New file.
19042
19043 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19044
19045         * COPYING: Explain how gnulib-tool converts licence headers.
19046         Almost all wording by Eric Blake.
19047
19048 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
19049
19050         * lib/mbchar.h (is_basic_table): Make read-only.
19051         * lib/mbchar.c (is_basic_table): Likewise.
19052         Reported by John Darrington.
19053
19054 2006-10-25  Bruno Haible  <bruno@clisp.org>
19055
19056         * lib/progname.h (set_program_name): Undefine before defining.
19057
19058 2006-10-25  Bruno Haible  <bruno@clisp.org>
19059
19060         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
19061         false for non-gcc C++ compilers.
19062         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19063
19064 2006-10-24  Bruno Haible  <bruno@clisp.org>
19065
19066         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
19067         iconv implementations like Irix iconv.
19068
19069 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19070
19071         * modules/vararrays: New file.
19072         * m4/vararrays.m4: New file, taken from diffutils.
19073         * MODULES.html.sh: New module vararrays.
19074
19075 2006-10-24  Karl Berry  <karl@gnu.org>
19076
19077         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
19078         Don't call GNU Unix.
19079
19080 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19081
19082         * users.txt: Add Libtool.
19083
19084         Sync from Libtool:
19085
19086         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19087
19088         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
19089         to gnulib's policy of including config.h unconditionally.
19090
19091 2006-10-24  Bruno Haible  <bruno@clisp.org>
19092
19093         * modules/wcwidth (Files): Add m4/wint_t.m4.
19094         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
19095         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
19096
19097 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19098
19099         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
19100         to pacify GCC with some -W flags enabled.  Problem reported by
19101         Bruno Haible.
19102
19103 2006-10-24  Jim Meyering  <jim@meyering.net>
19104
19105         * MODULES.html.sh: Remove uinttostr.  It's not a module.
19106         Reported by Karl Berry.
19107
19108 2006-10-23  Bruno Haible  <bruno@clisp.org>
19109
19110         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
19111
19112 2006-10-24  Bruno Haible  <bruno@clisp.org>
19113
19114         * lib/gl_list.h: Use C comment style, not C++ comment style.
19115
19116 2006-10-23  Eric Blake  <ebb9@byu.net>
19117
19118         * lib/getaddrinfo.c (includes): Add missing include.
19119
19120 2006-10-23  Bruno Haible  <bruno@clisp.org>
19121             Paul Eggert  <eggert@cs.ucla.edu>
19122
19123         Ability to rename obstack_free.
19124         * lib/obstack.h (__obstack_free): New macro. Declare instead of
19125         obstack_free.
19126         (obstack_free): Invoke the __obstack_free macro.
19127         * lib/obstack.c (obstack_free): Use __obstack_free macro.
19128
19129 2006-10-23  Bruno Haible  <bruno@clisp.org>
19130             Paul Eggert  <eggert@cs.ucla.edu>
19131
19132         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
19133         __argc, __argv from the declaration. (They are defined as macros on
19134         mingw.)
19135
19136 2006-10-22  Bruno Haible  <bruno@clisp.org>
19137
19138         * doc/gnulib-intro.texi: New file.
19139         * doc/gnulib.texi: Include it.
19140
19141 2006-10-21  Bruno Haible  <bruno@clisp.org>
19142
19143         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
19144         "Introduction", "Miscellanous Notes", "Particular Modules".
19145
19146 2006-10-21  Bruno Haible  <bruno@clisp.org>
19147
19148         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19149         Change mostlyclean-local rule to avoid sh syntax error from bash
19150         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
19151
19152 2006-10-23  Jim Meyering  <jim@meyering.net>
19153
19154         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
19155         in place of snprintf.
19156
19157         * modules/inttostr (Files): Add lib/uinttostr.c.
19158         * lib/uinttostr.c (inttostr): New file/function.
19159         * lib/inttostr.h (uinttostr): Declare.
19160         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
19161         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
19162         Add uinttostr.
19163         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
19164
19165 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
19166
19167         * lib/canonicalize.c (ELOOP): Define if not already defined.
19168         Problem reported by Bruno Haible in
19169         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
19170
19171 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
19172
19173         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
19174         Problem reported by Perry Smith and Ville Laurikari.
19175
19176         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
19177         uses.
19178
19179 2006-10-19  Bruno Haible  <bruno@clisp.org>
19180
19181         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
19182         for mingw.
19183
19184 2006-10-19  Bruno Haible  <bruno@clisp.org>
19185
19186         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
19187         Needed for mingw.
19188
19189 2006-10-19  Bruno Haible  <bruno@clisp.org>
19190
19191         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
19192
19193 2006-10-19  Bruno Haible  <bruno@clisp.org>
19194
19195         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
19196         it.
19197
19198 2006-10-19  Bruno Haible  <bruno@clisp.org>
19199
19200         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
19201         invocation.
19202
19203 2006-10-19  Bruno Haible  <bruno@clisp.org>
19204
19205         * gnulib-tool (func_create_testdir): Don't include ftruncate and
19206         mountlist by default.
19207
19208 2006-10-16  Bruno Haible  <bruno@clisp.org>
19209
19210         * lib/c-strstr.c: Include c-strstr.h.
19211
19212 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19213
19214         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
19215         in a slash.
19216
19217 2006-10-18  Bruno Haible  <bruno@clisp.org>
19218
19219         * lib/lock.h [C++]: Wrap definitions in extern "C".
19220
19221 2006-10-18  Bruno Haible  <bruno@clisp.org>
19222
19223         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
19224         gl_LIBOBJS list.
19225
19226 2006-10-18  Bruno Haible  <bruno@clisp.org>
19227
19228         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
19229
19230 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
19231
19232         * lib/xstrtol.h: Include gettext.h.
19233         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
19234         Problem reported by Eric Blake.
19235         * modules/xstrtol (Depends-on): Add gettext-h.
19236
19237 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
19238
19239         * lib/strftime.c (advance): New macro.
19240         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
19241         incomplete type, so you can't add 0 to it.  Problem and patch
19242         reported by Eelco Dolstra for dietlibc.
19243
19244 2006-10-18  Jim Meyering  <jim@meyering.net>
19245
19246         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
19247         type for a local, and rename it: s/up/user_proc/.
19248
19249 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
19250
19251         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
19252         READ_UTMP_USER_PROCESS.
19253         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
19254
19255 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
19256
19257         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
19258         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
19259
19260 2006-10-17  Eric Blake  <ebb9@byu.net>
19261
19262         * lib/sigprocmask.c (sigprocmask): Fix typo.
19263
19264         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
19265
19266         * modules/clean-temp (Makefile.am): Don't add to make output...
19267         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
19268         config.h.
19269
19270 2006-10-17  Bruno Haible  <bruno@clisp.org>
19271
19272         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
19273         differently if DEFAULT_TEXT_DOMAIN is set.
19274
19275 2006-10-16  Bruno Haible  <bruno@clisp.org>
19276
19277         * lib/clean-temp.c: Include fwriteerror.h.
19278
19279 2006-10-16  Bruno Haible  <bruno@clisp.org>
19280
19281         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
19282
19283 2006-10-16  Bruno Haible  <bruno@clisp.org>
19284
19285         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
19286         * lib/sigprocmask.h: Include <sys/types.h>.
19287         (sigset_t): Use the system's definition if present.
19288
19289 2006-10-17  Eric Blake  <ebb9@byu.net>
19290
19291         * lib/xvasprintf.c (includes): Assume config.h.
19292         * lib/xasprintf.c (includes): Likewise.
19293
19294 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19295
19296         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
19297         at least as wide as intmax_t.
19298
19299 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
19300
19301         (Imported from Automake.)
19302         * build-aux/gnupload: Update to version 1.1 of directive file.
19303
19304 2006-10-16  Eric Blake  <ebb9@byu.net>
19305
19306         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
19307         match Automake 1.10a.
19308
19309 2006-10-14  Bruno Haible  <bruno@clisp.org>
19310
19311         * modules/sigprocmask: New file.
19312         * lib/sigprocmask.h: New file.
19313         * lib/sigprocmask.c: New file.
19314         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
19315         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
19316         request sigprocmask.o.
19317         (gl_PREREQ_SIGPROCMASK): New macro.
19318         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
19319         (Depends-on): Add sigprocmask.
19320         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
19321         gt_SIGNALBLOCKING. Test for 'raise' only once.
19322         * lib/fatal-signal.c: Include sigprocmask.h.
19323         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
19324         unblock_fatal_signals): Define always.
19325         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19326         sigprocmask.
19327
19328 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
19329
19330         Sync from Automake.
19331         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
19332         which incorrectly sets the mode of an existing destination
19333         directory.  In some cases the unpatched install-sh could do the
19334         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
19335         system.  We hope this is rare in practice, but it's clearly worth
19336         fixing.  Problem reported by Alex Unleashed in
19337         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
19338         Also, don't bother to check for -m bugs unless we're using -m;
19339         suggested by Stepan Kasal.
19340
19341 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19342
19343         Sync from Automake.
19344         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
19345         `-c' flag, so they appear at the same position as in %FASTDEP%
19346         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
19347         which ignores unknown options only after the first non-option.
19348         Bug report against M4 by Nelson H. F. Beebe.
19349
19350 2006-10-13  Jim Meyering  <jim@meyering.net>
19351
19352         Fix a bug in yesterday's change.
19353         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
19354         p->fts_statp->st_dev would be used uninitialized.
19355         Ensures that we always call fts_stat on the very first entry.
19356         Miklos Szeredi reported that find -xdev stopped working.
19357
19358 2006-10-12  Bruno Haible  <bruno@clisp.org>
19359
19360         * gnulib-tool (func_get_automake_snippet): Append an automatically
19361         computed EXTRA_DIST augmentation.
19362         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
19363         * modules/alloca-opt (Makefile.am): Likewise.
19364         * modules/allocsa (Makefile.am): Likewise.
19365         * modules/arcfour (Makefile.am): Likewise.
19366         * modules/arctwo (Makefile.am): Likewise.
19367         * modules/argmatch (Makefile.am): Likewise.
19368         * modules/argz (Makefile.am): Likewise.
19369         * modules/atexit (Makefile.am): Likewise.
19370         * modules/backupfile (Makefile.am): Likewise.
19371         * modules/byteswap (Makefile.am): Likewise.
19372         * modules/c-strtod (Makefile.am): Likewise.
19373         * modules/c-strtold (Makefile.am): Likewise.
19374         * modules/calloc (Makefile.am): Likewise.
19375         * modules/canon-host (Makefile.am): Likewise.
19376         * modules/canonicalize (Makefile.am): Likewise.
19377         * modules/chdir-long (Makefile.am): Likewise.
19378         * modules/chdir-safer (Makefile.am): Likewise.
19379         * modules/check-version (Makefile.am): Likewise.
19380         * modules/chown (Makefile.am): Likewise.
19381         * modules/cloexec (Makefile.am): Likewise.
19382         * modules/close-stream (Makefile.am): Likewise.
19383         * modules/closeout (Makefile.am): Likewise.
19384         * modules/crc (Makefile.am): Likewise.
19385         * modules/csharpexec (Makefile.am): Likewise.
19386         * modules/cycle-check (Makefile.am): Likewise.
19387         * modules/des (Makefile.am): Likewise.
19388         * modules/dev-ino (Makefile.am): Likewise.
19389         * modules/dirfd (Makefile.am): Likewise.
19390         * modules/dirname (Makefile.am): Likewise.
19391         * modules/dup2 (Makefile.am): Likewise.
19392         * modules/eealloc (Makefile.am): Likewise.
19393         * modules/error (Makefile.am): Likewise.
19394         * modules/euidaccess (Makefile.am): Likewise.
19395         * modules/exclude (Makefile.am): Likewise.
19396         * modules/exitfail (Makefile.am): Likewise.
19397         * modules/fcntl-safer (Makefile.am): Likewise.
19398         * modules/fcntl (Makefile.am): Likewise.
19399         * modules/file-type (Makefile.am): Likewise.
19400         * modules/fileblocks (Makefile.am): Likewise.
19401         * modules/filemode (Makefile.am): Likewise.
19402         * modules/filenamecat (Makefile.am): Likewise.
19403         * modules/fnmatch (Makefile.am): Likewise.
19404         * modules/fopen-safer (Makefile.am): Likewise.
19405         * modules/fpending (Makefile.am): Likewise.
19406         * modules/fprintftime (Makefile.am): Likewise.
19407         * modules/free (Makefile.am): Likewise.
19408         * modules/fsusage (Makefile.am): Likewise.
19409         * modules/ftruncate (Makefile.am): Likewise.
19410         * modules/fts (Makefile.am): Likewise.
19411         * modules/gc-arcfour (Makefile.am): Likewise.
19412         * modules/gc-des (Makefile.am): Likewise.
19413         * modules/gc-hmac-md5 (Makefile.am): Likewise.
19414         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
19415         * modules/gc-md4 (Makefile.am): Likewise.
19416         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
19417         * modules/gc-sha1 (Makefile.am): Likewise.
19418         * modules/gc (Makefile.am): Likewise.
19419         * modules/getaddrinfo (Makefile.am): Likewise.
19420         * modules/getcwd (Makefile.am): Likewise.
19421         * modules/getdelim (Makefile.am): Likewise.
19422         * modules/getdomainname (Makefile.am): Likewise.
19423         * modules/getgroups (Makefile.am): Likewise.
19424         * modules/gethostname (Makefile.am): Likewise.
19425         * modules/gethrxtime (Makefile.am): Likewise.
19426         * modules/getline (Makefile.am): Likewise.
19427         * modules/getloadavg (Makefile.am): Likewise.
19428         * modules/getlogin_r (Makefile.am): Likewise.
19429         * modules/getndelim2 (Makefile.am): Likewise.
19430         * modules/getopt (Makefile.am): Likewise.
19431         * modules/getpagesize (Makefile.am): Likewise.
19432         * modules/getpass-gnu (Makefile.am): Likewise.
19433         * modules/getpass (Makefile.am): Likewise.
19434         * modules/getsubopt (Makefile.am): Likewise.
19435         * modules/gettime (Makefile.am): Likewise.
19436         * modules/gettimeofday (Makefile.am): Likewise.
19437         * modules/getugroups (Makefile.am): Likewise.
19438         * modules/getusershell (Makefile.am): Likewise.
19439         * modules/glob (Makefile.am): Likewise.
19440         * modules/group-member (Makefile.am): Likewise.
19441         * modules/hard-locale (Makefile.am): Likewise.
19442         * modules/hash (Makefile.am): Likewise.
19443         * modules/hmac-md5 (Makefile.am): Likewise.
19444         * modules/hmac-sha1 (Makefile.am): Likewise.
19445         * modules/human (Makefile.am): Likewise.
19446         * modules/idcache (Makefile.am): Likewise.
19447         * modules/imaxabs (Makefile.am): Likewise.
19448         * modules/imaxdiv (Makefile.am): Likewise.
19449         * modules/inet_ntop (Makefile.am): Likewise.
19450         * modules/inet_pton (Makefile.am): Likewise.
19451         * modules/intprops (Makefile.am): Likewise.
19452         * modules/inttostr (Makefile.am): Likewise.
19453         * modules/inttypes (Makefile.am): Likewise.
19454         * modules/isapipe (Makefile.am): Likewise.
19455         * modules/javaversion (Makefile.am): Likewise.
19456         * modules/lchmod (Makefile.am): Likewise.
19457         * modules/lchown (Makefile.am): Likewise.
19458         * modules/localcharset (Makefile.am): Likewise.
19459         * modules/long-options (Makefile.am): Likewise.
19460         * modules/lstat (Makefile.am): Likewise.
19461         * modules/malloc (Makefile.am): Likewise.
19462         * modules/mathl (Makefile.am): Likewise.
19463         * modules/mbchar (Makefile.am): Likewise.
19464         * modules/md2 (Makefile.am): Likewise.
19465         * modules/md4 (Makefile.am): Likewise.
19466         * modules/md5 (Makefile.am): Likewise.
19467         * modules/memcasecmp (Makefile.am): Likewise.
19468         * modules/memchr (Makefile.am): Likewise.
19469         * modules/memcmp (Makefile.am): Likewise.
19470         * modules/memcoll (Makefile.am): Likewise.
19471         * modules/memcpy (Makefile.am): Likewise.
19472         * modules/memmem (Makefile.am): Likewise.
19473         * modules/memmove (Makefile.am): Likewise.
19474         * modules/mempcpy (Makefile.am): Likewise.
19475         * modules/memrchr (Makefile.am): Likewise.
19476         * modules/memset (Makefile.am): Likewise.
19477         * modules/memxor (Makefile.am): Likewise.
19478         * modules/mkancesdirs (Makefile.am): Likewise.
19479         * modules/mkdir-p (Makefile.am): Likewise.
19480         * modules/mkdir (Makefile.am): Likewise.
19481         * modules/mkdtemp (Makefile.am): Likewise.
19482         * modules/mkstemp (Makefile.am): Likewise.
19483         * modules/mktime (Makefile.am): Likewise.
19484         * modules/modechange (Makefile.am): Likewise.
19485         * modules/mountlist (Makefile.am): Likewise.
19486         * modules/nanosleep (Makefile.am): Likewise.
19487         * modules/obstack (Makefile.am): Likewise.
19488         * modules/openat (Makefile.am): Likewise.
19489         * modules/pagealign_alloc (Makefile.am): Likewise.
19490         * modules/pathmax (Makefile.am): Likewise.
19491         * modules/physmem (Makefile.am): Likewise.
19492         * modules/poll (Makefile.am): Likewise.
19493         * modules/posixtm (Makefile.am): Likewise.
19494         * modules/posixver (Makefile.am): Likewise.
19495         * modules/putenv (Makefile.am): Likewise.
19496         * modules/quote (Makefile.am): Likewise.
19497         * modules/quotearg (Makefile.am): Likewise.
19498         * modules/raise (Makefile.am): Likewise.
19499         * modules/read-file (Makefile.am): Likewise.
19500         * modules/readline (Makefile.am): Likewise.
19501         * modules/readlink (Makefile.am): Likewise.
19502         * modules/readtokens (Makefile.am): Likewise.
19503         * modules/readutmp (Makefile.am): Likewise.
19504         * modules/realloc (Makefile.am): Likewise.
19505         * modules/regex (Makefile.am): Likewise.
19506         * modules/rename-dest-slash (Makefile.am): Likewise.
19507         * modules/rename (Makefile.am): Likewise.
19508         * modules/rijndael (Makefile.am): Likewise.
19509         * modules/rmdir (Makefile.am): Likewise.
19510         * modules/rpmatch (Makefile.am): Likewise.
19511         * modules/safe-read (Makefile.am): Likewise.
19512         * modules/safe-write (Makefile.am): Likewise.
19513         * modules/same-inode (Makefile.am): Likewise.
19514         * modules/same (Makefile.am): Likewise.
19515         * modules/save-cwd (Makefile.am): Likewise.
19516         * modules/savedir (Makefile.am): Likewise.
19517         * modules/setenv (Makefile.am): Likewise.
19518         * modules/settime (Makefile.am): Likewise.
19519         * modules/sha1 (Makefile.am): Likewise.
19520         * modules/sig2str (Makefile.am): Likewise.
19521         * modules/snprintf (Makefile.am): Likewise.
19522         * modules/stat-macros (Makefile.am): Likewise.
19523         * modules/stat-time (Makefile.am): Likewise.
19524         * modules/stdbool (Makefile.am): Likewise.
19525         * modules/stdint (Makefile.am): Likewise.
19526         * modules/stdlib-safer (Makefile.am): Likewise.
19527         * modules/stpcpy (Makefile.am): Likewise.
19528         * modules/stpncpy (Makefile.am): Likewise.
19529         * modules/strcase (Makefile.am): Likewise.
19530         * modules/strcasestr (Makefile.am): Likewise.
19531         * modules/strchrnul (Makefile.am): Likewise.
19532         * modules/strcspn (Makefile.am): Likewise.
19533         * modules/strdup (Makefile.am): Likewise.
19534         * modules/strerror (Makefile.am): Likewise.
19535         * modules/strftime (Makefile.am): Likewise.
19536         * modules/strndup (Makefile.am): Likewise.
19537         * modules/strnlen (Makefile.am): Likewise.
19538         * modules/strpbrk (Makefile.am): Likewise.
19539         * modules/strsep (Makefile.am): Likewise.
19540         * modules/strstr (Makefile.am): Likewise.
19541         * modules/strtod (Makefile.am): Likewise.
19542         * modules/strtoimax (Makefile.am): Likewise.
19543         * modules/strtok_r (Makefile.am): Likewise.
19544         * modules/strtol (Makefile.am): Likewise.
19545         * modules/strtoll (Makefile.am): Likewise.
19546         * modules/strtoul (Makefile.am): Likewise.
19547         * modules/strtoull (Makefile.am): Likewise.
19548         * modules/strtoumax (Makefile.am): Likewise.
19549         * modules/strverscmp (Makefile.am): Likewise.
19550         * modules/sys_socket (Makefile.am): Likewise.
19551         * modules/sys_stat (Makefile.am): Likewise.
19552         * modules/sysexits (Makefile.am): Likewise.
19553         * modules/time_r (Makefile.am): Likewise.
19554         * modules/timegm (Makefile.am): Likewise.
19555         * modules/timespec (Makefile.am): Likewise.
19556         * modules/tmpfile-safer (Makefile.am): Likewise.
19557         * modules/trim (Makefile.am): Likewise.
19558         * modules/unistd-safer (Makefile.am): Likewise.
19559         * modules/unlinkdir (Makefile.am): Likewise.
19560         * modules/unlocked-io (Makefile.am): Likewise.
19561         * modules/userspec (Makefile.am): Likewise.
19562         * modules/utime (Makefile.am): Likewise.
19563         * modules/utimecmp (Makefile.am): Likewise.
19564         * modules/utimens (Makefile.am): Likewise.
19565         * modules/vasnprintf (Makefile.am): Likewise.
19566         * modules/vasprintf (Makefile.am): Likewise.
19567         * modules/vsnprintf (Makefile.am): Likewise.
19568         * modules/xalloc (Makefile.am): Likewise.
19569         * modules/xgetcwd (Makefile.am): Likewise.
19570         * modules/xnanosleep (Makefile.am): Likewise.
19571         * modules/xreadlink (Makefile.am): Likewise.
19572         * modules/xstrtod (Makefile.am): Likewise.
19573         * modules/xstrtol (Makefile.am): Likewise.
19574         * modules/xstrtold (Makefile.am): Likewise.
19575         * modules/yesno (Makefile.am): Likewise.
19576         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
19577
19578 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
19579
19580         * modules/error (Makefile.am): Distribute files through
19581         EXTRA_DIST, not lib_SOURCES.
19582
19583 2006-10-12  Eric Blake  <ebb9@byu.net>
19584
19585         * modules/error (Makefile.am): Distribute files in /lib.
19586         * modules/obstack (Makefile.am): Likewise.
19587
19588 2006-10-12  Bruno Haible  <bruno@clisp.org>
19589
19590         * modules/acl (Makefile.am): Distribute all files in lib/ through
19591         EXTRA_DIST.
19592         * modules/arcfour (Makefile.am): Likewise.
19593         * modules/arctwo (Makefile.am): Likewise.
19594         * modules/argmatch (Makefile.am): Likewise.
19595         * modules/argz (Makefile.am): Likewise.
19596         * modules/atexit (Makefile.am): Likewise.
19597         * modules/backupfile (Makefile.am): Likewise.
19598         * modules/c-strtod (Makefile.am): Likewise.
19599         * modules/c-strtold (Makefile.am): Likewise.
19600         * modules/calloc (Makefile.am): Likewise.
19601         * modules/canon-host (Makefile.am): Likewise.
19602         * modules/canonicalize (Makefile.am): Likewise.
19603         * modules/chdir-long (Makefile.am): Likewise.
19604         * modules/chdir-safer (Makefile.am): Likewise.
19605         * modules/check-version (Makefile.am): Likewise.
19606         * modules/chown (Makefile.am): Likewise.
19607         * modules/cloexec (Makefile.am): Likewise.
19608         * modules/close-stream (Makefile.am): Likewise.
19609         * modules/closeout (Makefile.am): Likewise.
19610         * modules/crc (Makefile.am): Likewise.
19611         * modules/cycle-check (Makefile.am): Likewise.
19612         * modules/des (Makefile.am): Likewise.
19613         * modules/dirfd (Makefile.am): Likewise.
19614         * modules/dirname (Makefile.am): Likewise.
19615         * modules/dup2 (Makefile.am): Likewise.
19616         * modules/euidaccess (Makefile.am): Likewise.
19617         * modules/exclude (Makefile.am): Likewise.
19618         * modules/exitfail (Makefile.am): Likewise.
19619         * modules/fcntl-safer (Makefile.am): Likewise.
19620         * modules/file-type (Makefile.am): Likewise.
19621         * modules/fileblocks (Makefile.am): Likewise.
19622         * modules/filemode (Makefile.am): Likewise.
19623         * modules/filenamecat (Makefile.am): Likewise.
19624         * modules/fnmatch (Makefile.am): Likewise.
19625         * modules/fopen-safer (Makefile.am): Likewise.
19626         * modules/fpending (Makefile.am): Likewise.
19627         * modules/fprintftime (Makefile.am): Likewise.
19628         * modules/free (Makefile.am): Likewise.
19629         * modules/fsusage (Makefile.am): Likewise.
19630         * modules/ftruncate (Makefile.am): Likewise.
19631         * modules/fts (Makefile.am): Likewise.
19632         * modules/gc (Makefile.am): Likewise.
19633         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
19634         * modules/getaddrinfo (Makefile.am): Likewise.
19635         * modules/getcwd (Makefile.am): Likewise.
19636         * modules/getdelim (Makefile.am): Likewise.
19637         * modules/getdomainname (Makefile.am): Likewise.
19638         * modules/getgroups (Makefile.am): Likewise.
19639         * modules/gethostname (Makefile.am): Likewise.
19640         * modules/gethrxtime (Makefile.am): Likewise.
19641         * modules/getline (Makefile.am): Likewise.
19642         * modules/getloadavg (Makefile.am): Likewise.
19643         * modules/getlogin_r (Makefile.am): Likewise.
19644         * modules/getopt (Makefile.am): Likewise.
19645         * modules/getpass (Makefile.am): Likewise.
19646         * modules/getpass-gnu (Makefile.am): Likewise.
19647         * modules/getsubopt (Makefile.am): Likewise.
19648         * modules/gettime (Makefile.am): Likewise.
19649         * modules/gettimeofday (Makefile.am): Likewise.
19650         * modules/getugroups (Makefile.am): Likewise.
19651         * modules/getusershell (Makefile.am): Likewise.
19652         * modules/glob (Makefile.am): Likewise.
19653         * modules/group-member (Makefile.am): Likewise.
19654         * modules/hard-locale (Makefile.am): Likewise.
19655         * modules/hash (Makefile.am): Likewise.
19656         * modules/hmac-md5 (Makefile.am): Likewise.
19657         * modules/hmac-sha1 (Makefile.am): Likewise.
19658         * modules/human (Makefile.am): Likewise.
19659         * modules/idcache (Makefile.am): Likewise.
19660         * modules/imaxabs (Makefile.am): Likewise.
19661         * modules/imaxdiv (Makefile.am): Likewise.
19662         * modules/inet_ntop (Makefile.am): Likewise.
19663         * modules/inet_pton (Makefile.am): Likewise.
19664         * modules/inttostr (Makefile.am): Likewise.
19665         * modules/isapipe (Makefile.am): Likewise.
19666         * modules/lchown (Makefile.am): Likewise.
19667         * modules/long-options (Makefile.am): Likewise.
19668         * modules/lstat (Makefile.am): Likewise.
19669         * modules/malloc (Makefile.am): Likewise.
19670         * modules/mathl (Makefile.am): Likewise.
19671         * modules/mbchar (Makefile.am): Likewise.
19672         * modules/md2 (Makefile.am): Likewise.
19673         * modules/md4 (Makefile.am): Likewise.
19674         * modules/md5 (Makefile.am): Likewise.
19675         * modules/memcasecmp (Makefile.am): Likewise.
19676         * modules/memchr (Makefile.am): Likewise.
19677         * modules/memcmp (Makefile.am): Likewise.
19678         * modules/memcoll (Makefile.am): Likewise.
19679         * modules/memcpy (Makefile.am): Likewise.
19680         * modules/memmem (Makefile.am): Likewise.
19681         * modules/memmove (Makefile.am): Likewise.
19682         * modules/mempcpy (Makefile.am): Likewise.
19683         * modules/memrchr (Makefile.am): Likewise.
19684         * modules/memset (Makefile.am): Likewise.
19685         * modules/memxor (Makefile.am): Likewise.
19686         * modules/mkancesdirs (Makefile.am): Likewise.
19687         * modules/mkdir (Makefile.am): Likewise.
19688         * modules/mkdir-p (Makefile.am): Likewise.
19689         * modules/mkdtemp (Makefile.am): Likewise.
19690         * modules/mkstemp (Makefile.am): Likewise.
19691         * modules/mktime (Makefile.am): Likewise.
19692         * modules/modechange (Makefile.am): Likewise.
19693         * modules/mountlist (Makefile.am): Likewise.
19694         * modules/nanosleep (Makefile.am): Likewise.
19695         * modules/openat (Makefile.am): Likewise.
19696         * modules/pagealign_alloc (Makefile.am): Likewise.
19697         * modules/physmem (Makefile.am): Likewise.
19698         * modules/poll (Makefile.am): Likewise.
19699         * modules/posixtm (Makefile.am): Likewise.
19700         * modules/posixver (Makefile.am): Likewise.
19701         * modules/putenv (Makefile.am): Likewise.
19702         * modules/quote (Makefile.am): Likewise.
19703         * modules/quotearg (Makefile.am): Likewise.
19704         * modules/raise (Makefile.am): Likewise.
19705         * modules/read-file (Makefile.am): Likewise.
19706         * modules/readline (Makefile.am): Likewise.
19707         * modules/readlink (Makefile.am): Likewise.
19708         * modules/readtokens (Makefile.am): Likewise.
19709         * modules/readutmp (Makefile.am): Likewise.
19710         * modules/realloc (Makefile.am): Likewise.
19711         * modules/regex (Makefile.am): Likewise.
19712         * modules/rename (Makefile.am): Likewise.
19713         * modules/rename-dest-slash (Makefile.am): Likewise.
19714         * modules/rijndael (Makefile.am): Likewise.
19715         * modules/rmdir (Makefile.am): Likewise.
19716         * modules/rpmatch (Makefile.am): Likewise.
19717         * modules/safe-read (Makefile.am): Likewise.
19718         * modules/safe-write (Makefile.am): Likewise.
19719         * modules/same (Makefile.am): Likewise.
19720         * modules/save-cwd (Makefile.am): Likewise.
19721         * modules/savedir (Makefile.am): Likewise.
19722         * modules/setenv (Makefile.am): Likewise.
19723         * modules/settime (Makefile.am): Likewise.
19724         * modules/sha1 (Makefile.am): Likewise.
19725         * modules/sig2str (Makefile.am): Likewise.
19726         * modules/snprintf (Makefile.am): Likewise.
19727         * modules/stdlib-safer (Makefile.am): Likewise.
19728         * modules/stpcpy (Makefile.am): Likewise.
19729         * modules/stpncpy (Makefile.am): Likewise.
19730         * modules/strcase (Makefile.am): Likewise.
19731         * modules/strcasestr (Makefile.am): Likewise.
19732         * modules/strchrnul (Makefile.am): Likewise.
19733         * modules/strcspn (Makefile.am): Likewise.
19734         * modules/strdup (Makefile.am): Likewise.
19735         * modules/strerror (Makefile.am): Likewise.
19736         * modules/strftime (Makefile.am): Likewise.
19737         * modules/strndup (Makefile.am): Likewise.
19738         * modules/strnlen (Makefile.am): Likewise.
19739         * modules/strpbrk (Makefile.am): Likewise.
19740         * modules/strsep (Makefile.am): Likewise.
19741         * modules/strstr (Makefile.am): Likewise.
19742         * modules/strtod (Makefile.am): Likewise.
19743         * modules/strtoimax (Makefile.am): Likewise.
19744         * modules/strtok_r (Makefile.am): Likewise.
19745         * modules/strtol (Makefile.am): Likewise.
19746         * modules/strtoll (Makefile.am): Likewise.
19747         * modules/strtoul (Makefile.am): Likewise.
19748         * modules/strtoull (Makefile.am): Likewise.
19749         * modules/strtoumax (Makefile.am): Likewise.
19750         * modules/strverscmp (Makefile.am): Likewise.
19751         * modules/time_r (Makefile.am): Likewise.
19752         * modules/timegm (Makefile.am): Likewise.
19753         * modules/tmpfile-safer (Makefile.am): Likewise.
19754         * modules/unistd-safer (Makefile.am): Likewise.
19755         * modules/unlinkdir (Makefile.am): Likewise.
19756         * modules/userspec (Makefile.am): Likewise.
19757         * modules/utime (Makefile.am): Likewise.
19758         * modules/utimecmp (Makefile.am): Likewise.
19759         * modules/utimens (Makefile.am): Likewise.
19760         * modules/vasnprintf (Makefile.am): Likewise.
19761         * modules/vasprintf (Makefile.am): Likewise.
19762         * modules/vsnprintf (Makefile.am): Likewise.
19763         * modules/xalloc (Makefile.am): Likewise.
19764         * modules/xgetcwd (Makefile.am): Likewise.
19765         * modules/xnanosleep (Makefile.am): Likewise.
19766         * modules/xreadlink (Makefile.am): Likewise.
19767         * modules/xstrtod (Makefile.am): Likewise.
19768         * modules/xstrtol (Makefile.am): Likewise.
19769         * modules/xstrtold (Makefile.am): Likewise.
19770         * modules/yesno (Makefile.am): Likewise.
19771
19772 2006-10-12  Jim Meyering  <jim@meyering.net>
19773
19774         * m4/getloadavg.m4: Revert the change below.
19775
19776         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
19777         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
19778         fail with a symlink, which is what coreutils' ./bootstrap now
19779         creates by default.
19780
19781 2006-10-12  Bruno Haible  <bruno@clisp.org>
19782
19783         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
19784         mingw.
19785         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
19786         MSVC and mingw explicitly.
19787
19788 2006-10-11  Simon Josefsson  <jas@extundo.com>
19789             Bruno Haible  <bruno@clisp.org>
19790
19791         Add support for multiple gnulib-tool invocations in the scope of a
19792         single configure.ac file.
19793         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
19794         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
19795         with the same contents as the _LIBADD variable.
19796         (func_emit_initmacro_start, func_emit_initmacro_end,
19797         func_emit_initmacro_done): New functions.
19798         (func_import, func_create_testdir): Invoke them. Allow the identifiers
19799         gl_LIBOBJS and gl_LTLIBOBJS.
19800
19801 2006-10-11  Bruno Haible  <bruno@clisp.org>
19802
19803         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
19804         (func_create_testdir): Don't create po/Makefile.am, don't invoke
19805         autoreconf. Instead, invoke autopoint explicitly but move back the
19806         *.m4 files from gnulib.
19807
19808 2006-10-11  Bruno Haible  <bruno@clisp.org>
19809
19810         * gnulib-tool (func_usage): Make module names after --create-testdir
19811         optional.
19812         (func_create_testdir): If no module was specified, use nearly all
19813         modules.
19814
19815 2006-10-12  Jim Meyering  <jim@meyering.net>
19816
19817         Big performance improvement for fts-based tools that use FTS_NOSTAT.
19818         Avoid spurious inode-mismatch problems on non-POSIX file systems.
19819         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
19820         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
19821         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
19822         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
19823         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
19824         (fts_set_stat_required): New function.
19825         (fts_open): Defer the calls to fts_stat, if possible or requested.
19826         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
19827         into fts_stat itself.
19828         (fts_read): Perform any required (deferred) fts_stat call.
19829         (fts_build): Likewise, for the directory we're about to open and read.
19830         In the readdir loop, carefully decide whether each entry will require
19831         an eventual call to fts_stat, using dirent.d_type info if available.
19832         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
19833         a command line argument into this function.  Update all callers.
19834         Map a return value of FTS_DOT to FTS_D for a command line argument.
19835         * modules/fts (Depends-on): Add d-type.  Alphabetize.
19836         Thanks to Miklos Szeredi for his tenacity and for the initial
19837         bug report about "find" failing on a FUSE-based file system.
19838
19839         * lib/fts.c (fts_open): Use consistent indentation.
19840
19841 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
19842
19843         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
19844         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
19845         reported by Jim Meyering.  All uses of cache variables renamed
19846         to match Autoconf's.
19847         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
19848         the other one.
19849
19850         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
19851         Fix misspelling in diagnostic.
19852
19853 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19854
19855         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
19856         defined.  Problem reported by Matthew Woehlke.
19857
19858         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
19859         Add support for Tandem NonStop R series.
19860         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
19861         Use new macro.
19862
19863         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
19864         (has_trailing_slash): Omit size arg; all callers changed.
19865         Omit 'inline', since it doesn't help performance and we'd
19866         need to configure it.
19867         Don't count //, ///, etc. as having a trailing slash.
19868         As a side effect, this removes a C99ism reported by Matthew Woehlke.
19869         (rpl_rename_dest_slash): On failure, use rename's errno rather
19870         than (in some cases) an incorrect or junk errno.
19871         Simplify code by removing need to compute length; this does
19872         cause it to make two passes instead of one over the file name,
19873         but it's worth it.
19874
19875         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
19876         change, since Autoconf's version may no longer be appropriate now
19877         that we are using CVS Autoconf's version.  Add support for Tandem.
19878
19879 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19880             Bruno Haible  <bruno@clisp.org>
19881
19882         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
19883         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
19884         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
19885         gl_AC_TYPE_LONG_LONG.
19886
19887         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
19888         instead of HAVE_LONG_LONG.
19889         * lib/printf-args.c (printf_fetchargs): Likewise.
19890         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19891         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19892         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
19893         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
19894         gl_AC_TYPE_LONG_LONG.
19895
19896 2006-10-11  Bruno Haible  <bruno@clisp.org>
19897
19898         * m4/longlong.m4: Add comments.
19899         * m4/ulonglong.m4: Likewise.
19900
19901 2006-10-10  Bruno Haible  <bruno@clisp.org>
19902
19903         Make it possible to #define stpcpy, strdup to aliases.
19904         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
19905         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
19906
19907 2006-10-10  Bruno Haible  <bruno@clisp.org>
19908
19909         Make it possible to #define gcd to an alias.
19910         * lib/gcd.c: Include config.h.
19911
19912 2006-10-10  Bruno Haible  <bruno@clisp.org>
19913
19914         Make it possible to #define c_isascii to an alias.
19915         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
19916         defined. Undefine the macros before defining them, to avoid gcc
19917         warnings.
19918         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
19919         define NO_C_CTYPE_MACROS early.
19920
19921 2006-10-10  Bruno Haible  <bruno@clisp.org>
19922
19923         Make it possible to #define set_program_name to an alias.
19924         * lib/progname.c: Don't undefine set_program_name; instead, undefine
19925         ENABLE_RELOCATABLE early.
19926
19927 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19928
19929         Port to Tandem NSK OSS, which has 64-bit signed int but at most
19930         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
19931         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
19932         More generally, don't assume that 64-bit signed int is available
19933         if unsigned int is, and vice versa.
19934         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
19935         unsigned symbols, not on their signed counterparts.
19936         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
19937         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
19938         (UINT64_C, UINTMAX_C):
19939         Likewise.
19940         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
19941         unsigned counterparts.
19942         (Have_long_long, Unsigned): New macros.
19943         (Int): Renamed from INT.
19944         (strtoimax): Use the new macros.
19945         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
19946         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
19947         * modules/inttypes (inttypes.h): Substitute
19948         HAVE_UNSIGNED_LONG_LONG_INT.
19949         * modules/stdint (stdint.h): Likewise.
19950         (Files): Add m4/ulonglong.m4.
19951
19952 2006-10-10  Bruno Haible  <bruno@clisp.org>
19953
19954         Fix a gcc -Wshadow warning.
19955         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
19956         to 'bucket'.
19957         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
19958         gl_linked_indexof_from_to): Likewise.
19959         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
19960         Likewise.
19961         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
19962         Likewise.
19963         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
19964         Reported by Eric Blake.
19965
19966 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
19967
19968         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
19969         for NetBSD.  Problem reported by Bruno Haible.
19970
19971 2006-10-09  Jim Meyering  <jim@meyering.net>
19972
19973         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
19974         Patch from Bruno Haible.
19975
19976 2006-10-09  Jim Meyering  <jim@meyering.net>
19977
19978         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
19979         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
19980         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
19981
19982 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19983
19984         Don't include <config.h> twice; this doesn't work in some cases,
19985         e.g., when config.h has "#define intmax_t long long int" and
19986         we include <config.h>, <inttypes.h>, <config.h> in that order.
19987         Problem reported by Matthew Woehlke in:
19988         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
19989         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
19990         * lib/fts-cycle.c: Don't include config.h.
19991         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
19992         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
19993         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
19994         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
19995         inttypes.h.
19996         * lib/xstrtoumax.c: Likewise.
19997         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
19998         __strtol and the like, so that this module is more like its siblings.
19999         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
20000         Remove; no longer needed now that we assume gnulib inttypes.h.
20001
20002 2006-10-08  Bruno Haible  <bruno@clisp.org>
20003
20004         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
20005         option.
20006
20007 2006-10-07  Jim Meyering  <jim@meyering.net>
20008
20009         * modules/inttypes (inttypes.h): Revert what seems to have been
20010         an inadvertent part of today's change: use "|", not "/" in the
20011         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
20012
20013 2006-10-07  Bruno Haible  <bruno@clisp.org>
20014
20015         * modules/sublist: New file.
20016
20017 2006-10-07  Bruno Haible  <bruno@clisp.org>
20018
20019         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
20020         * modules/argz (argz.h): Likewise.
20021         * modules/arpa_inet (arpa/inet.h): Likewise.
20022         * modules/byteswap (byteswap.h): Likewise.
20023         * modules/configmake (configmake.h): Likewise.
20024         * modules/fcntl (fcntl.h): Likewise.
20025         * modules/fnmatch (fnmatch.h): Likewise.
20026         * modules/getopt (getopt.h): Likewise.
20027         * modules/glob (glob.h): Likewise.
20028         * modules/inttypes (inttypes.h): Likewise.
20029         * modules/netinet_in (netinet/in.h): Likewise.
20030         * modules/poll (poll.h): Likewise.
20031         * modules/stdbool (stdbool.h): Likewise.
20032         * modules/stdint (stdint.h): Likewise.
20033         * modules/sys_select (sys/select.h): Likewise.
20034         * modules/sys_socket (sys/socket.h): Likewise.
20035         * modules/sys_stat (sys/stat.h): Likewise.
20036         * modules/sysexits (sysexits.h): Likewise.
20037         * modules/unistd (unistd.h): Likewise.
20038         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20039         Add a "DO NOT EDIT" comment to the generated file.
20040         (func_import): Likewise for gnulib-comp.m4.
20041
20042 2006-10-07  Bruno Haible  <bruno@clisp.org>
20043
20044         * lib/gl_sublist.h: New file.
20045         * lib/gl_sublist.c: New file.
20046
20047 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
20048
20049         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
20050         name (relative to the original working directory) and the file
20051         name component (relative to the temporary working directory).  All
20052         callers changed.
20053         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
20054         * lib/mkdir-p.c (make_dir_parents): Likewise.
20055         * lib/mkdir-p.h (make_dir_parents): Likewise.
20056
20057 2006-10-06  Eric Blake  <ebb9@byu.net>
20058
20059         Define several macros for use by the clean-temp module.
20060         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
20061         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
20062         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
20063
20064         * lib/clean-temp.h (close_stream_temp): New declaration.
20065         * lib/clean-temp.c (includes): Pull in headers according to what
20066         other modules are in use.
20067         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
20068
20069 2006-10-06  Bruno Haible  <bruno@clisp.org>
20070
20071         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
20072         instead of fopen, fwriteerror.
20073
20074 2006-10-06  Bruno Haible  <bruno@clisp.org>
20075
20076         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
20077         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
20078         int.
20079         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
20080         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
20081         Return an error indicator.
20082         Suggested by Eric Blake.
20083
20084 2006-10-06  Bruno Haible  <bruno@clisp.org>
20085
20086         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
20087         Reported by Eric Blake.
20088
20089 2006-10-06  Bruno Haible  <bruno@clisp.org>
20090
20091         * modules/closeout (Description): Mention stderr too.
20092
20093 2006-10-06  Bruno Haible  <bruno@clisp.org>
20094         and Paul Eggert  <eggert@cs.ucla.edu>
20095
20096         * lib/closeout.c (close_stdout): Also close stderr.
20097         * lib/closeout.h: Update comment.
20098
20099 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20100
20101         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
20102         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
20103         * lib/dirchownmod.c: Include lchown.h.
20104         * lib/lchown.c: Don't include files that lchown.h now includes.
20105         Don't declare chown, since lchown.h now does that.
20106         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
20107         (lchown): Define to rpl_chown if lchown is declared but
20108         does not exist.  Declare using a prototype if lchown is not
20109         declared.  Add a copyright notice.
20110         * lib/mkstemp.h: Include <unistd.h>.
20111         * lib/openat.c: Include lchown.h.
20112
20113         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
20114         we now test for that separately.
20115         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
20116         rather than O_NOFOLLOW, when testing whether it's possible to
20117         avoid a race condition reliably.
20118         * lib/savewd.c (savewd_chdir): Likewise.
20119
20120         Remove macros that are no longer needed now that stdint.h is
20121         reliable.
20122         * lib/fsusage.c (UINTMAX_MAX): Remove.
20123         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
20124         * lib/utimecmp.c (SIZE_MAX): Remove.
20125
20126         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
20127
20128         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
20129         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
20130         O_NOATIME works.
20131
20132 2006-10-05  Bruno Haible  <bruno@clisp.org>
20133
20134         * lib/gl_list.h (gl_sortedlist_search_from_to,
20135         gl_sortedlist_indexof_from_to): New declarations.
20136         (gl_list_implementation): New fields sortedlist_search_from_to,
20137         sortedlist_indexof_from_to.
20138         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
20139         inline functions.
20140         * lib/gl_list.c (gl_sortedlist_search_from_to,
20141         gl_sortedlist_indexof_from_to): New functions.
20142         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
20143         function.
20144         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
20145         (gl_array_sortedlist_search_from_to): New function.
20146         (gl_array_list_implementation): Update.
20147         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
20148         function.
20149         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
20150         (gl_carray_sortedlist_search_from_to): New function.
20151         (gl_carray_list_implementation): Update.
20152         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
20153         gl_linked_sortedlist_indexof_from_to): New functions.
20154         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20155         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20156         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
20157         gl_tree_sortedlist_indexof_from_to): New functions.
20158         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20159         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20160         Update.
20161         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20162         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
20163         Update.
20164
20165 2006-10-05  Bruno Haible  <bruno@clisp.org>
20166
20167         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
20168         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
20169         (struct gl_list_implementation): Add fields search_from_to,
20170         indexof_from_to. Remove fields search, indexof.
20171         (gl_list_search): Use the search_from_to method.
20172         (gl_list_search_from, gl_list_search_from_to): New functions.
20173         (gl_list_indexof): Use the indexof_from_to method.
20174         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
20175         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
20176         (gl_list_search_from, gl_list_search_from_to): New functions.
20177         (gl_list_indexof): Use the indexof_from_to method.
20178         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
20179         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
20180         gl_array_indexof. Add start_index, end_index arguments.
20181         (gl_array_search_from_to): Renamed from gl_array_search. Add
20182         start_index, end_index arguments.
20183         (gl_array_remove, gl_array_list_implementation): Update.
20184         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
20185         gl_carray_indexof. Add start_index, end_index arguments.
20186         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
20187         start_index, end_index arguments.
20188         (gl_carray_remove, gl_carray_list_implementation): Update.
20189         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
20190         gl_linked_search. Add start_index, end_index arguments.
20191         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
20192         start_index, end_index arguments.
20193         (gl_linked_remove): Update.
20194         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20195         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20196         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
20197         field to 'size_t'.
20198         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
20199         gl_tree_search. Add start_index, end_index arguments.
20200         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
20201         start_index, end_index arguments.
20202         (gl_tree_remove): Update.
20203         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20204         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20205         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
20206         function.
20207         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
20208         gl_tree_search. Add start_index, end_index arguments.
20209         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
20210         start_index, end_index arguments.
20211         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20212         Update.
20213         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
20214
20215 2006-10-05  Bruno Haible  <bruno@clisp.org>
20216
20217         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
20218
20219         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
20220         fwriteerror_temp): New declarations.
20221         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
20222         (descriptors): New variable.
20223         (cleanup): First, close the descriptors.
20224         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
20225         fclose_temp, fwriteerror_temp): New functions.
20226
20227 2006-10-04  Jim Meyering  <jim@meyering.net>
20228
20229         * lib/fts.c (fts_open): Tiny comment change.
20230
20231 2006-10-04  Bruno Haible  <bruno@clisp.org>
20232
20233         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
20234         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
20235         gl_LOCK_BODY.
20236         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
20237         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
20238         gl_LOCK_EARLY_BODY.
20239         (gl_LOCK): Require gl_LOCK_BODY.
20240
20241 2006-10-04  Bruno Haible  <bruno@clisp.org>
20242
20243         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
20244         (gl_oset_search_atleast): New declaration.
20245         (struct gl_oset_implementation): Add field 'search_atleast'.
20246         (gl_oset_search_atleast): New inline function.
20247         * lib/gl_oset.c (gl_oset_search_atleast): New function.
20248         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
20249         (gl_array_oset_implementation): Update.
20250         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
20251         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
20252         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
20253
20254 2006-10-04  Bruno Haible  <bruno@clisp.org>
20255
20256         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
20257
20258 2006-10-03  Bruno Haible  <bruno@clisp.org>
20259
20260         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
20261         from gl_avltreehash_list_implementation.
20262
20263 2006-10-03  Bruno Haible  <bruno@clisp.org>
20264
20265         * lib/gl_oset.c (gl_oset_add): Fix return type.
20266
20267 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
20268
20269         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
20270
20271 2006-10-02  Eric Blake  <ebb9@byu.net>
20272
20273         * modules/strnlen (Depends-on): Add extensions.
20274
20275 2006-10-02  Eric Blake  <ebb9@byu.net>
20276
20277         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
20278         definition in 2.60+.
20279
20280 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
20281
20282         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
20283         checks.
20284
20285 2006-10-02  Bruno Haible  <bruno@clisp.org>
20286
20287         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
20288         to the AUTOMAKE_OPTIONS.
20289         Reported by Jim Meyering.
20290
20291 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
20292
20293         Work around bug in Solaris 10 /proc file system:
20294         /proc/self/fd/NNN/.. isn't the parent directory of
20295         the directory whose file descriptor is NNN.  This needs to
20296         be worked around at run time, not compile time, since a
20297         program might be built on Solaris 8, where things work, and
20298         run on Solaris 10.
20299         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
20300         to use the following interface instead:
20301         (OPENAT_BUFFER_SIZE): New macro.
20302         (openat_proc_name): New function.
20303         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
20304         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
20305         Likewise.
20306         * lib/openat-proc.c: New file.
20307         * modules/openat (Files): Add lib/openat-proc.c.
20308         (Depends-on): Add same-inode, stdbool.
20309         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
20310
20311 2006-09-29  Bruno Haible  <bruno@clisp.org>
20312
20313         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
20314         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
20315         argument. Set stdout_closed before testing for ferror, not after.
20316         (fwriteerror, fwriteerror_no_ebadf): New functions.
20317
20318 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20319
20320         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
20321
20322 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
20323
20324         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
20325         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
20326
20327 2006-09-28  Jim Meyering  <jim@meyering.net>
20328
20329         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
20330         Include <unistd.h>.
20331
20332 2006-09-28  Bruno Haible  <bruno@clisp.org>
20333
20334         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
20335         * modules/linkedhash-list (Depends-on): Likewise.
20336         * modules/rbtreehash-list (Depends-on): Likewise.
20337
20338 2006-09-28  Bruno Haible  <bruno@clisp.org>
20339
20340         * lib/strndup.h: Simplify the redefinition of strndup.
20341         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
20342         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
20343
20344 2006-09-28  Bruno Haible  <bruno@clisp.org>
20345
20346         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
20347         * lib/gl_linkedhash_list.c: Likewise.
20348         * lib/gl_rbtreehash_list.c: Likewise.
20349
20350 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
20351
20352         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
20353         getaddrinfo.
20354
20355         * lib/__fpending.h: Don't include <stdio_ext.h> unless
20356         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
20357         it causes <stdio_ext.h> to cause a compile-time error.
20358         Problem reported by Nelson H. F. Beebe.
20359         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
20360         of HAVE_DECL___PENDING.
20361
20362         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
20363         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
20364         declaration.
20365
20366 2006-09-27  Jim Meyering  <jim@meyering.net>
20367
20368         This file could end up with a definition for a function
20369         named __strndup, rather than rpl_strndup on a system with
20370         incomplete weak_alias support.
20371         * lib/strndup.c (strndup): Rename from __strndup.
20372         Remove #defines that used to map __strndup to strndup.
20373         Don't use K&R prototypes.
20374         Remove LIBC-related code, since this file is not sync'd with glibc.
20375         * lib/strndup.h: Revamp, accordingly.
20376         * m4/strndup.m4: Modernize.
20377
20378 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
20379
20380         * modules/savewd (Depends-on): Add 'raise'.
20381         * lib/savewd.c: Include <signal.h>, for 'raise'.
20382
20383 2006-09-26  Jim Meyering  <jim@meyering.net>
20384
20385         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
20386         when we detect Darwin 8.7.0's acl_get_file bug.
20387         Rearrange to perform the new (below) run-test while $LIBS
20388         contains any acl-related library.  Set USE_ACL at the end.
20389         (gl_ACL_GET_FILE): New function.
20390
20391 2006-09-26  Eric Blake  <ebb9@byu.net>
20392
20393         * lib/verror.c: Include <config.h> unconditionally.
20394
20395 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
20396
20397         * modules/clock-time (Maintainer): Add self.
20398         * modules/getlogin_r (Depends-on): Add extensions.
20399
20400 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20401
20402         * modules/clock-time: New module.
20403         * modules/nanosleep (Depends-on): Add clock-time.
20404         * modules/gethrxtime (Depends-on): Likewise.
20405         * modules/gettime (Depends-on): Likewise.
20406         * modules/settime (Depends-on): Likewise.
20407
20408         * modules/fts-lgpl: Depend on openat.
20409         * modules/mkancesdirs: Depend on savewd.
20410         * modules/mkdir-p: Likewise.
20411
20412 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20413
20414         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
20415
20416         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
20417         `gl_have_arbitrary_file_name_length_limit' to
20418         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
20419         actually works between configure runs.
20420
20421 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20422             Bruno Haible  <bruno@clisp.org>
20423
20424         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
20425
20426 2006-09-25  Jim Meyering  <jim@meyering.net>
20427
20428         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
20429         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
20430
20431 2006-09-25  Eric Blake  <ebb9@byu.net>
20432
20433         * gnulib-tool (func_import, func_create_testdir): Fix typos in
20434         exec's in 2006-09-18 patch when shuffling fds.
20435
20436 2006-09-25  Bruno Haible  <bruno@clisp.org>
20437
20438         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
20439         Reported by Jim Meyering.
20440
20441 2006-09-24  Jim Meyering  <jim@meyering.net>
20442
20443         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
20444         compare a pointer against a literal "0".  That caused failures with
20445         at least HP-UX's hpcc.
20446
20447 2006-09-22  Simon Josefsson  <jas@extundo.com>
20448
20449         * modules/gc-sha1:
20450         * modules/gc-md4:
20451         * modules/gc-hmac-sha1:
20452         * modules/gc-hmac-md5:
20453         * modules/gc-des:
20454         * modules/gc-arcfour: Distribute more files.
20455
20456 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20457
20458         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
20459         (gl_linked_iterator_from_to): Initialize struct completely.
20460         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
20461         (gl_tree_iterator_from_to): Likewise
20462         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
20463         * lib/gl_array_list.c [lint] (gl_array_iterator)
20464         (gl_array_iterator_from_to): Likewise.
20465         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
20466         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
20467         (gl_carray_iterator_from_to): Likewise.
20468
20469         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
20470         * lib/md4.c (md4_process_block): Remove unused variable.
20471         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
20472         parentheses for clarity.
20473
20474 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20475
20476         * modules/bison-i18n (Depends-on): Add gettext.
20477
20478 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20479
20480         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
20481         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
20482         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
20483         also add missing comma that caused broken test.
20484         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
20485         stdlib.h, for `abort'.
20486         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
20487         variables.
20488         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
20489         include unistd.h if present, for `rmdir'.
20490         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
20491         variables.
20492         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
20493         in the process include standard headers for prototypes.
20494         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
20495         gets declared on GNU/Linux.
20496         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
20497         unistd.h, for `rmdir'.
20498         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
20499
20500         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
20501         always true.
20502         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
20503
20504         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
20505
20506 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20507
20508         * gnulib-tool (func_version): Create output all at once.  This
20509         may help avoid triggering unnecessary SIGPIPEs, and at any
20510         rate it doesn't hurt.
20511
20512 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20513             Bruno Haible  <bruno@clisp.org>
20514
20515         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
20516         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20517         * m4/signed.m4 (bh_C_SIGNED): Likewise.
20518
20519         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
20520         (gl_FUNC_VASPRINTF): Invoke it.
20521
20522 2006-09-22  Bruno Haible  <bruno@clisp.org>
20523
20524         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
20525         getloadavg.c as first argument.
20526
20527 2006-09-22  Bruno Haible  <bruno@clisp.org>
20528
20529         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
20530         at the beginning of the gl_INIT macro.
20531         * modules/getloadavg (configure.ac): Pass $gl_source_base to
20532         gl_GETLOADAVG.
20533
20534 2006-09-22  Bruno Haible  <bruno@clisp.org>
20535
20536         * gnulib-tool (func_create_megatestdir): Don't include the config-h
20537         module.
20538         Suggested by Ralf Wildenhues.
20539
20540 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20541
20542         Import this patch from libc:
20543
20544         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
20545
20546         * lib/regex_internal.c (re_string_reconstruct): Handle
20547         offset < pstr->valid_raw_len && pstr->offsets_needed case.
20548         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
20549         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
20550         re_string_context_at.
20551
20552         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
20553         now requires it.
20554         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
20555         gl_REGEX now does it for us.
20556         (gl_REGEX): Add test taken from
20557         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
20558
20559         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
20560         Check that large offsets work.  Modernize Autoconf usages.
20561         Prefer "yes" to mean a good thing rather than a bad.
20562         Don't put "#define mkstemp" in config.h, as this might interfere
20563         with standard system headers that "#define mkstemp mkstemp64".
20564
20565         * modules/mkstemp (Depends-on): Add extensions, so that
20566         mkstemp is visible on some platforms.
20567         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
20568         (Include): Change to "mkstemp.h" from <stdlib.h>.
20569         (Files): Add mkstemp.h.
20570
20571         * lib/mkstemp.h: New file, since some standard headers
20572         #define mkstemp.
20573         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
20574         Include "mkstemp.h".
20575         Make the _LIBC code resemble glibc original more,
20576         e.g., use K&R style.
20577         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
20578         (mkstemp): Remove, since mkstemp.h does this for us.
20579         * lib/stdlib--.h: Include mkstemp.h.
20580
20581         Import this patch from libc:
20582
20583         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
20584
20585         * lib/tempname.c (__gen_tempname): Change attempts_min
20586         into a macro.  Use preprocessor to decide how to initialize
20587         attempts [Coverity CID 67].
20588
20589 2006-09-20  Bruno Haible  <bruno@clisp.org>
20590
20591         * lib/mkdtemp.c: Import from libc.
20592         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
20593                 * sysdeps/posix/tempname.c (__gen_tempname): Change
20594                 attempts_min into a macro.  Use preprocessor to decide how to
20595                 initialize attempts [Coverity CID 67].
20596         2001-11-27  Paul Eggert  <eggert@twinsun.com>
20597                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
20598                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
20599
20600 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20601
20602         * gnulib-tool (func_exit): New function, to allow to pass the
20603         exit status portably through the trap.  Use everywhere.
20604         (--help, --version): Signal a write error.
20605         (trap): catch SIGPIPE, for write errors.
20606         Exit at the end of the trap, with the correct exit status.
20607
20608 2006-09-19  Karl Berry  <karl@gnu.org>
20609
20610         * doc/gnulib.texi: note about the license texinfo files.
20611
20612 2006-09-19  Eric Blake  <ebb9@byu.net>
20613
20614         * gnulib-tool: Avoid space-tab.
20615
20616 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
20617
20618         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
20619         that prevented coreutils 6.1 from building.  Problem reported
20620         by Petter Reinholdtsen.
20621
20622 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
20623
20624         * gnulib-tool (avoidlist): Fix typo that broke options like
20625         --avoid=lock that are used by coreutils bootstrap.
20626
20627 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
20628
20629         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
20630         more systematically.
20631
20632 2006-09-18  Jim Meyering  <jim@meyering.net>
20633
20634         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
20635
20636 2006-09-18  Bruno Haible  <bruno@clisp.org>
20637
20638         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
20639
20640 2006-09-18  Bruno Haible  <bruno@clisp.org>
20641
20642         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
20643         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
20644         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
20645         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
20646         * m4/gettext.m4: Require autoconf >= 2.52.
20647         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
20648         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
20649         of gl_cv_header_inttypes_h.
20650
20651 2006-09-18  Bruno Haible  <bruno@clisp.org>
20652
20653         * lib/javaversion.c: Include configmake.h.
20654
20655 2006-09-18  Bruno Haible  <bruno@clisp.org>
20656
20657         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
20658         avoid that the while loops be executed in a subshell.
20659
20660 2006-09-18  Bruno Haible  <bruno@clisp.org>
20661
20662         * MODULES.html.sh (func_module): Break long lines.
20663         Suggested by Bruce Korb <bkorb@gnu.org>.
20664
20665 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20666
20667         Speed up by a factor of 1.12.
20668         * gnulib-tool (nl): New variable.
20669         (func_import): Rewrite include directive extraction to only read each
20670         directive once.
20671
20672 2006-09-17  Bruno Haible  <bruno@clisp.org>
20673
20674         * modules/javaversion (Makefile.am): Remove DEFS setting.
20675         (Depends-on): Add configmake, for PKGDATADIR definition.
20676
20677 2006-09-17  Bruno Haible  <bruno@clisp.org>
20678
20679         * gnulib-tool (func_create_testdir): Rewrite all files at once.
20680
20681 2006-09-17  Bruno Haible  <bruno@clisp.org>
20682
20683         * gnulib-tool (func_append): New function, stolen from libtool.m4.
20684         (func_modules_transitive_closure, func_modules_add_dummy,
20685         func_modules_to_filelist, func_import, func_create_testdir,
20686         func_create_megatestdir, ...): Use it wherever possible.
20687         Suggested by Ralf Wildenhues.
20688
20689 2006-09-16  Karl Berry  <karl@gnu.org>
20690
20691         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
20692         to avoid sectioning errors.
20693         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
20694         [ifinfo]: blank line after @center-ed titles.
20695         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
20696         Spell FSF address consistently with others.
20697         (These changes approved by rms.)
20698
20699 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20700
20701         Speed up by a factor of 1.61.
20702         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
20703         already checked module names again.
20704
20705 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20706
20707         Speed up by a factor of 1.13.
20708         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
20709         for new_files, and the input to func_add_or_update.
20710
20711 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20712
20713         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
20714         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
20715
20716 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
20717
20718         * modules/mkancesdirs (Depends-on): Add fcntl.
20719         * modules/savewd: New file.
20720         * MODULES.html.sh (File system functions): Add savewd.
20721
20722         * modules/configmake (Makefile.am): Add support for the
20723         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
20724
20725 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
20726
20727         * m4/savewd.m4: New file.
20728
20729 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
20730
20731         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
20732         (dirchownmod): New arg FD.  All callers changed.
20733         Use FD rather than opening the directory ourself, as opening is
20734         now the caller's responsibility.
20735         * lib/dirchownmod.h: Likewise.
20736         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
20737         hosts that require <sys/types.h> before <sys/stat.h>.  Include
20738         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
20739         (test_dir): Remove.
20740         (mkancesdirs): Return length of prefix of FILE that has already
20741         been made, or -2 if there is a child doing the work.  Redo
20742         algorithm so that it is O(N) rather than O(N**2).  Optimize away
20743         ".", and treat ".." specially since it might stray back into
20744         already-created areas.  Use a subprocess if necessary.  New arg
20745         WD; all users changed.  MAKE_DIR function should now return 1
20746         if it creates a directory that is not readable.  Return -2 if
20747         a child process is spun off.
20748         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
20749         Adjust signature to match code.
20750         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
20751         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
20752         all users changed.
20753         * lib/savewd.c, lib/savewd.h: New files.
20754
20755 2006-09-15  Jim Meyering  <jim@meyering.net>
20756
20757         * modules/rename-dest-slash: New module.
20758         * MODULES.html.sh (posix_compat): Add it here.
20759
20760         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
20761
20762 2006-09-15  Jim Meyering  <jim@meyering.net>
20763
20764         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
20765         file.
20766
20767         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
20768
20769 2006-09-15  Jim Meyering  <jim@meyering.net>
20770
20771         * lib/rename-dest-slash.c (has_trailing_slash): Use
20772         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
20773         (rpl_rename_dest_slash): Perform the cheaper trailing slash
20774         test before testing whether SRC is a directory.
20775         Suggestions from Bruno Haible.
20776
20777         Avoid a warning about an unused variable.
20778         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
20779         into the #ifdef block where it's used.
20780
20781         * lib/rename-dest-slash.c: New file.
20782
20783 2006-09-14  Bruno Haible  <bruno@clisp.org>
20784
20785         * lib/allocsa.c: Include <config.h> unconditionally.
20786         * lib/asnprintf.c: Likewise.
20787         * lib/asprintf.c: Likewise.
20788         * lib/c-strcasecmp.c: Likewise.
20789         * lib/c-strcasestr.c: Likewise.
20790         * lib/c-strncasecmp.c: Likewise.
20791         * lib/c-strstr.c: Likewise.
20792         * lib/classpath.c: Likewise.
20793         * lib/clean-temp.c: Likewise.
20794         * lib/concatpath.c: Likewise.
20795         * lib/copy-file.c: Likewise.
20796         * lib/csharpcomp.c: Likewise.
20797         * lib/csharpexec.c: Likewise.
20798         * lib/execute.c: Likewise.
20799         * lib/fatal-signal.c: Likewise.
20800         * lib/findprog.c: Likewise.
20801         * lib/fwriteerror.c: Likewise.
20802         * lib/gl_array_list.c: Likewise.
20803         * lib/gl_array_oset.c: Likewise.
20804         * lib/gl_avltree_list.c: Likewise.
20805         * lib/gl_avltree_oset.c: Likewise.
20806         * lib/gl_avltreehash_list.c: Likewise.
20807         * lib/gl_carray_list.c: Likewise.
20808         * lib/gl_linked_list.c: Likewise.
20809         * lib/gl_linkedhash_list.c: Likewise.
20810         * lib/gl_list.c: Likewise.
20811         * lib/gl_oset.c: Likewise.
20812         * lib/gl_rbtree_list.c: Likewise.
20813         * lib/gl_rbtree_oset.c: Likewise.
20814         * lib/gl_rbtreehash_list.c: Likewise.
20815         * lib/imaxabs.c: Likewise.
20816         * lib/imaxdiv.c: Likewise.
20817         * lib/javacomp.c: Likewise.
20818         * lib/javaexec.c: Likewise.
20819         * lib/javaversion.c: Likewise.
20820         * lib/linebreak.c: Likewise.
20821         * lib/localcharset.c: Likewise.
20822         * lib/lock.c: Likewise.
20823         * lib/mbchar.c: Likewise.
20824         * lib/mbswidth.c: Likewise.
20825         * lib/mkdtemp.c: Likewise.
20826         * lib/pipe.c: Likewise.
20827         * lib/printf-args.c: Likewise.
20828         * lib/printf-parse.c: Likewise.
20829         * lib/progname.c: Likewise.
20830         * lib/progreloc.c: Likewise.
20831         * lib/readlink.c: Likewise.
20832         * lib/sh-quote.c: Likewise.
20833         * lib/stpcpy.c: Likewise.
20834         * lib/stpncpy.c: Likewise.
20835         * lib/strcasecmp.c: Likewise.
20836         * lib/strcasestr.c: Likewise.
20837         * lib/strcspn.c: Likewise.
20838         * lib/striconv.c: Likewise.
20839         * lib/strncasecmp.c: Likewise.
20840         * lib/strnlen1.c: Likewise.
20841         * lib/strstr.c: Likewise.
20842         * lib/strtok_r.c: Likewise.
20843         * lib/tls.c: Likewise.
20844         * lib/tmpdir.c: Likewise.
20845         * lib/unicodeio.c: Likewise.
20846         * lib/unsetenv.c: Likewise.
20847         * lib/vasnprintf.c: Likewise.
20848         * lib/vasprintf.c: Likewise.
20849         * lib/wait-process.c: Likewise.
20850         * lib/xallocsa.c: Likewise.
20851         * lib/xsetenv.c: Likewise.
20852         * lib/xstriconv.c: Likewise.
20853
20854 2006-09-13  Simon Josefsson  <jas@extundo.com>
20855
20856         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
20857         that internally, suggested by Ralf Wildenhues
20858         <Ralf.Wildenhues@gmx.de>.
20859
20860 2006-09-13  Simon Josefsson  <jas@extundo.com>
20861
20862         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
20863         @LIBOBJS@.
20864         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20865
20866 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20867
20868         * lib/_fpending.c: Include <config.h> unconditionally, since we no
20869         longer worry about uses that don't define HAVE_CONFIG_H.
20870         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
20871         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
20872         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
20873         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
20874         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
20875         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
20876         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
20877         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
20878         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
20879         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
20880         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
20881         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
20882         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
20883         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
20884         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
20885         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
20886         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
20887         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
20888         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
20889         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
20890         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
20891         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
20892         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
20893         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
20894         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
20895         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
20896         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
20897         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
20898         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
20899         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
20900         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
20901         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
20902         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
20903         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
20904         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
20905         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
20906         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
20907         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
20908         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
20909         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
20910         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
20911         Likewise.
20912
20913 2006-09-13  Eric Blake  <ebb9@byu.net>
20914
20915         * lib/getopt.c: Fix typo in last commit.
20916
20917 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
20918
20919         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
20920         dgettext.
20921
20922 2006-09-12  Jim Meyering  <jim@meyering.net>
20923
20924         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
20925         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
20926         Reported by Nelson H. F. Beebe.
20927
20928 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
20929
20930         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
20931         program_invocation_name and program_invocation_short_name are
20932         initialized.
20933         * lib/argp-namefrob.h: Move declarations of program_invocation_name
20934         and program_invocation_short_name to argp.h, so they are visible
20935         to user programs.
20936         * lib/argp.h: Likewise
20937
20938 2006-09-10  Bruno Haible  <bruno@clisp.org>
20939
20940         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
20941         m4/inttypes_h.m4, m4/uintmax_t.m4.
20942
20943 2006-09-10  Bruno Haible  <bruno@clisp.org>
20944
20945         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
20946         gl_AC_TYPE_UINTMAX_T.
20947
20948 2006-09-10  Bruno Haible  <bruno@clisp.org>
20949
20950         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
20951
20952 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
20953
20954         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
20955         convention.  Text proposed by Bruno Haible.
20956         (struct argp_option): Document the use of N_() wrappers.
20957
20958         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
20959         '\v', and translate the two parts separately, instead of feeding
20960         the whole string to gettext.  This allows to exclude
20961         '\v' from the strings visible to the translator by writing doc
20962         strings as N_("..") "\v" N_("..").
20963
20964 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
20965
20966         * config/srclist.txt: Undo latest change; the bug was fixed.
20967
20968 2006-09-09  Bruno Haible  <bruno@clisp.org>
20969
20970         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
20971         assignments if building a library without libtool.
20972         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
20973         in func_emit_lib_Makefile_am.
20974         (func_import): When building a static library libfoo.a, arrange to
20975         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
20976         (func_create_testdir): Likewise.
20977         * modules/gc (configure.ac, Makefile.am): If building statically,
20978         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
20979         * modules/iconvme (configure.ac, Makefile.am): Likewise.
20980         * modules/striconv (configure.ac, Makefile.am): Likewise.
20981         Based on a suggestion by Ralf Wildenhues.
20982
20983 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
20984
20985         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
20986         Check for unistd.h too, since Autoconf doesn't assume POSIX.
20987         Also:
20988
20989         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
20990         Add year_2050_test to catch glibc bug 2821
20991         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
20992
20993         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20994         Prefer #ifdef to #if.
20995
20996         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
20997         Return from 'main' instead of calling 'exit'.
20998
20999 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21000
21001         * lib/mktime.c (guess_time_tm): Fix bug where mktime
21002         returned the maximum time_t value rather than (time_t) -1.
21003         Problem originally reported by William Bardwell
21004         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21005
21006         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21007         Moved to here ...
21008         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21009         ... from here.
21010
21011 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21012
21013         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
21014         2821 is fixed.
21015
21016 2006-09-08  Jim Meyering  <jim@meyering.net>
21017
21018         Don't make generated files read-only.  That would bother too many
21019         people.  However, do retain the ability to work when targets are
21020         read-only: remove the destination and temporary files before writing
21021         them (when generated via sed or echo), or by using the -f option for
21022         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
21023         * modules/alloca-opt, modules/argz, modules/arpa_inet:
21024         * modules/byteswap, modules/configmake, modules/fcntl:
21025         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
21026         * modules/localcharset, modules/netinet_in, modules/poll:
21027         * modules/stdbool, modules/stdint, modules/sys_select:
21028         * modules/sys_socket, modules/sys_stat, modules/sysexits:
21029
21030 2006-09-08  Jim Meyering  <jim@meyering.net>
21031
21032         Avoid new build failure on FreeBSD 6.0.
21033         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
21034         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
21035         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
21036
21037 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21038
21039         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
21040
21041 2006-09-07  Jim Meyering  <jim@meyering.net>
21042
21043         Fix global typo in last change: use chmod u-w, not chmod u-x.
21044         Spotted by Paul Eggert and Bruce Korb.
21045         * modules/alloca-opt, modules/argz, modules/arpa_inet:
21046         * modules/byteswap, modules/configmake, modules/fcntl:
21047         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
21048         * modules/localcharset, modules/netinet_in, modules/poll:
21049         * modules/stdbool, modules/stdint, modules/sys_select:
21050         * modules/sys_socket, modules/sys_stat, modules/sysexits:
21051
21052 2006-09-06  Jim Meyering  <jim@meyering.net>
21053
21054         Make generated files be read-only.
21055         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
21056         Ensure that each generated file is now read-only.
21057         * modules/argz: Likewise.
21058         * modules/arpa_inet: Likewise.
21059         * modules/byteswap: Likewise.
21060         * modules/configmake: Likewise.
21061         * modules/fcntl: Likewise.
21062         * modules/fnmatch: Likewise.
21063         * modules/getopt: Likewise.
21064         * modules/glob: Likewise.
21065         * modules/inttypes: Likewise.
21066         * modules/netinet_in: Likewise.
21067         * modules/poll: Likewise.
21068         * modules/stdbool: Likewise.
21069         * modules/stdint: Likewise.
21070         * modules/sys_select: Likewise.
21071         * modules/sys_socket: Likewise.
21072         * modules/sys_stat: Likewise.
21073         * modules/sysexits: Likewise.
21074         * modules/localcharset: Same as above, but continue using temporary
21075         file named "t-$@" (why different?) rather than the "$@-t" used
21076         everywhere else.
21077
21078         * modules/sysexits (Makefile.am): Replace literal occurrences
21079         of "sysexit.h" more readable, and more consistent, "$@".
21080
21081 2006-09-06  Bruno Haible  <bruno@clisp.org>
21082
21083         * modules/striconv: New file.
21084         * modules/xstriconv: New file.
21085         * MODULES.html.sh (Internationalization functions): Add striconv,
21086         xstriconv.
21087
21088 2006-09-06  Bruno Haible  <bruno@clisp.org>
21089
21090         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
21091         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
21092         not using libtool correctly.
21093
21094 2006-09-06  Bruno Haible  <bruno@clisp.org>
21095
21096         * lib/striconv.h: New file.
21097         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
21098         iconvstring.c.
21099         * lib/xstriconv.h: New file.
21100         * lib/xstriconv.c: New file.
21101
21102 2006-09-06  Bruno Haible  <bruno@clisp.org>
21103
21104         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21105         lib_..._LDFLAGS.
21106
21107 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21108
21109         * lib/argz_.h: Sync from Libtool.
21110
21111         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
21112                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21113
21114         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
21115
21116 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
21117
21118         * modules/trim: New file.
21119
21120 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
21121
21122         * lib/trim.h: New file.
21123         * lib/trim.c: New file.
21124
21125 2006-09-05  Bruno Haible  <bruno@clisp.org>
21126
21127         * MODULES.html.sh (String handling): Add trim.
21128
21129 2006-09-04  Karl Berry  <karl@gnu.org>
21130
21131         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
21132         until next release.
21133
21134 2006-09-03  Bruno Haible  <bruno@clisp.org>
21135
21136         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
21137         correctly.
21138
21139 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21140
21141         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
21142         not gl_GETLOADAVG.  Omit unneeded semicolons.
21143         Problems reported by Ralf Wildenhues in
21144         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
21145         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
21146         at the end, which is the usual gnulib style.
21147
21148         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
21149         of doing all the work ourselves.
21150         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
21151         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
21152
21153 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21154
21155         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
21156         Problem reported by Ralf Wildenhues in
21157         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
21158
21159         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
21160         HAVE_STRUCT_STATFS_F_FSTYPENAME.
21161
21162 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21163
21164         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
21165         yesterday's patch by changing test -n to test -z.
21166
21167 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21168
21169         * modules/getloadavg (Files): Add m4/getloadavg.m4.
21170         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
21171         the former is now obsolescent.
21172
21173         * modules/chdir-long (Depends-on): Add fcntl.
21174
21175 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21176
21177         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
21178         obsolescent, and programs should use gnulib instead.
21179         * m4/getloadavg.m4: New file, with contents taken from Autoconf
21180         but with prefixes changed.
21181
21182 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21183
21184         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
21185         or stdbool.h, because they might not exist while configuring.
21186
21187         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
21188         Don't include unistd.h or limits.h; not needed, since chdir-long.h
21189         does that for us.
21190         (O_DIRECTORY): Remove.
21191
21192 2006-08-31  Eric Blake  <ebb9@byu.net>
21193
21194         * gnulib-tool: Don't let emacs change spaces to TAB.
21195
21196 2006-08-31  Bruno Haible  <bruno@clisp.org>
21197
21198         * gnulib-tool: When calling func_import more than once, do it in a
21199         subshell.
21200         Reported by Eric Blake <ebb9@byu.net>.
21201
21202 2006-08-31  Bruno Haible  <bruno@clisp.org>
21203
21204         * gnulib-tool (nl): Remove variable.
21205         (sed_transform_lib_file): Use more robust test for config-h module.
21206         (func_import): Fix typo in 2006-08-25 patch.
21207
21208 2006-08-31  Bruno Haible  <bruno@clisp.org>
21209
21210         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
21211         specified, augment Makefile.am variables instead of assigning them.
21212
21213 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21214
21215         Work around a bug in both the Linux and SunOS 64-bit kernels:
21216         nanosleep mishandles sleeps for longer than 2**31 seconds.
21217         Problem reported by Frank v Waveren in
21218         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
21219         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
21220         Check for nanosleep bug.
21221         (LIB_NANOSLEEP): Append clock_gettime library if needed.
21222
21223 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21224
21225         Work around a bug in both the Linux and SunOS 64-bit kernels:
21226         nanosleep mishandles sleeps for longer than 2**31 seconds.
21227         Problem reported by Frank v Waveren in
21228         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
21229         * lib/nanosleep.c (BILLION): New constant.
21230         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
21231         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
21232         implementation.
21233
21234 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21235
21236         * modules/nanosleep (Depends-on): Add gettime.
21237
21238 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21239         and Simon Josefsson  <jas@extundo.com>
21240         and Oskar Liljeblad  <oskar@osk.mine.nu>
21241
21242         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
21243         * gnulib-tool (func_import): New license type 'unmodifiable license
21244         text'.
21245         * modules/fdl: Use it.  Longer description.
21246         * module/gpl, module/lgpl: New files.
21247
21248 2006-08-30  Jim Meyering  <jim@meyering.net>
21249
21250         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
21251         shadowing the parameter.
21252
21253 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21254
21255         Sync from Libtool:
21256
21257         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21258
21259         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
21260         sharing with gnulib.  Report by Eric Blake.
21261
21262 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21263
21264         * modules/isapipe: New file.
21265         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
21266
21267 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21268
21269         * modules/configmake (Makefile.am): Add a comment, and omit
21270         the CONFIGMAKE_ prefix from generated macro names.  Suggested
21271         by Bruno Haible.
21272
21273 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21274
21275         * m4/isapipe.m4: New file.
21276
21277 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21278
21279         * lib/isapipe.c, lib/isapipe.h: New files.
21280
21281 2006-08-29  Jim Meyering  <jim@meyering.net>
21282
21283         * modules/configmake (Makefile.am): Make configmake.h depend on
21284         Makefile.  Otherwise, a stale configmake.h could hang around.
21285
21286 2006-08-29  Eric Blake  <ebb9@byu.net>
21287
21288         * lib/error.c (error_at_line, print_errno_message): Match libc, after
21289         resolution of upstream bug 3044.
21290
21291 2006-08-29  Bruno Haible  <bruno@clisp.org>
21292
21293         * modules/localcharset (Depends-on): Add configmake.
21294         (Makefile.am): Remove setting of LIBDIR through DEFS.
21295
21296 2006-08-29  Bruno Haible  <bruno@clisp.org>
21297
21298         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
21299         defined.
21300
21301 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21302
21303         * modules/fcntl: New file.
21304         * modules/chdir-safer (Depends-on): Add fcntl.
21305         * modules/fts: Likewise.
21306         * modules/mkdir-p: Likewise.
21307
21308         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
21309         This undoes the most recent change, since we're now addressing the
21310         problem in a different way.
21311
21312         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
21313         into output, since the output might be called Makefile.am even
21314         if $makefile_name is something different.
21315         (func_import): Use $makefile_am rather than
21316         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
21317         empty.
21318
21319         * modules/inttypes (Files): Add m4/inttypes-h.m4.
21320
21321 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21322
21323         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
21324         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
21325         recent change to stdint.m4, since we're now addressing the problem in a
21326         different way.
21327
21328 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21329
21330         * m4/fcntl_h.m4: New file.
21331
21332 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21333
21334         * lib/fcntl_.h: New file.
21335         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
21336         the fcntl module.
21337         * lib/dirchownmod.c: Likewise.
21338         * lib/fts.c: Likewise.
21339
21340         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
21341         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
21342         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
21343         just before including <inttypes.h>, to avoid circular inclusion.
21344
21345 2006-08-28  Jim Meyering  <jim@meyering.net>
21346
21347         * doc/visibility.texi: Actually read and correct the grammar of the
21348         sentence affected by yesterday's change.
21349
21350 2006-08-28  Eric Blake  <ebb9@byu.net>
21351
21352         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
21353         needs wrapper.
21354
21355 2006-08-28  Eric Blake  <ebb9@byu.net>
21356
21357         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
21358
21359 2006-08-28  Eric Blake  <ebb9@byu.net>
21360
21361         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
21362
21363 2006-08-28  Bruno Haible  <bruno@clisp.org>
21364
21365         * modules/c-strstr: New file, from GNU gettext.
21366         * MODULES.html.sh (String handling): Add c-strstr.
21367
21368 2006-08-28  Bruno Haible  <bruno@clisp.org>
21369
21370         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
21371         macros.
21372         Reported by Eric Blake.
21373
21374 2006-08-28  Bruno Haible  <bruno@clisp.org>
21375
21376         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
21377         (VASNPRINTF): Return a string of length > INT_MAX without failing.
21378         * lib/vasprintf.c: Include errno.h, limits.h.
21379         (EOVERFLOW): New fallback definition.
21380         (vasprintf): Test here whether the string length is > INT_MAX.
21381         * lib/vsnprintf.c: Include errno.h, limits.h.
21382         (EOVERFLOW): New fallback definition.
21383         (vsnprintf): Fix bug when generated string was too long for the buffer.
21384         Test here whether the string length is > INT_MAX.
21385
21386 2006-08-28  Bruno Haible  <bruno@clisp.org>
21387
21388         * lib/inttypes_.h (SCNX*): Remove definitions.
21389         Reported by Eric Blake.
21390
21391 2006-08-28  Bruno Haible  <bruno@clisp.org>
21392
21393         * lib/c-strstr.h: New file, from GNU gettext.
21394         * lib/c-strstr.c: New file, from GNU gettext.
21395
21396 2006-08-28  Bruno Haible  <bruno@clisp.org>
21397
21398         * gnulib-tool: Reorder some statements.
21399
21400 2006-08-28  Bruno Haible  <bruno@clisp.org>
21401
21402         * gnulib-tool: New option --makefile-name.
21403         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
21404         $makefile_name.
21405         (func_import): Write $makefile_name to the cache file, and read it from
21406         there unless explicitly specified. Use $makefile_name as file name
21407         instead of Makefile.am. Adjust the recommendations accordingly.
21408
21409 2006-08-28  Bruno Haible  <bruno@clisp.org>
21410
21411         * gnulib-tool (func_verify_module): Check against misapplying patch.
21412
21413 2006-08-28  Bruno Haible  <bruno@clisp.org>
21414
21415         * gnulib-tool (func_relativize, func_relconcat): New functions.
21416         Give an error if --local-dir is given with --update.
21417         Remove trailing slashes from $local_gnulib_dir.
21418         (func_import): Store the relativized $local_gnulib_dir in
21419         gnulib-cache.m4, and read it from there if not specified explicitly.
21420
21421 2006-08-28  Bruno Haible  <bruno@clisp.org>
21422
21423         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
21424         is the current directory. Respect also $local_gnulib_dir.
21425
21426 2006-08-28  Bruno Haible  <bruno@clisp.org>
21427             Simon Josefsson  <jas@extundo.com>
21428
21429         BeOS portability.
21430         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
21431
21432 2006-08-27  Jim Meyering  <jim@meyering.net>
21433
21434         * doc/visibility.texi: Remove duplicate word: "pointer".
21435
21436 2006-08-26  Bruno Haible  <bruno@clisp.org>
21437
21438         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
21439         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
21440         (Makefile.am): Create inttypes.h from inttypes_.h.
21441         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
21442
21443         * modules/imaxabs: New file.
21444
21445         * modules/imaxdiv: New file.
21446
21447 2006-08-26  Bruno Haible  <bruno@clisp.org>
21448
21449         * m4/inttypes.m4: New file.
21450         * m4/_inttypes_h.m4: Remove file.
21451         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
21452         PRI_MACROS_BROKEN.
21453         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
21454
21455         * m4/imaxabs.m4: New file.
21456
21457         * m4/imaxdiv.m4: New file.
21458
21459 2006-08-26  Bruno Haible  <bruno@clisp.org>
21460
21461         * lib/inttypes_.h: New file.
21462         * lib/inttypes.h: Remove file.
21463         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
21464
21465         * lib/imaxabs.c: New file.
21466
21467         * lib/imaxdiv.c: New file.
21468
21469 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
21470
21471         New config-h module, so that "make" output needn't be cluttered
21472         by -DHAVE_CONFIG_H.
21473         * MODULES.html.sh (Support for building libraries and executables):
21474         Add config-h.
21475         * modules/config-h: New file.
21476         * gnulib-tool (nl, sed_transform_lib_file): New vars.
21477         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
21478         the config-h module is used.
21479
21480         New configmake module, so that "make" output needn't be cluttered
21481         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
21482         * MODULES.html.sh (Support for building libraries and executables):
21483         Add configmake.
21484         * modules/configmake: New file.
21485
21486 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
21487
21488         * m4/config-h.m4: New file.
21489
21490 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21491
21492         * config/srclist.txt: Add elisp-comp.
21493
21494 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21495
21496         * MODULES.html.sh (Support for building libraries and executables):
21497         Add elisp-comp.
21498         * build-aux/elisp-comp: New file.
21499         * modules/elisp-comp: New file.
21500
21501 2006-08-24  Bruno Haible  <bruno@clisp.org>
21502
21503         * gnulib-tool (func_create_testdir): Use non-default values of
21504         sourcebase and m4base.
21505
21506 2006-08-24  Bruno Haible  <bruno@clisp.org>
21507
21508         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
21509         HTML structure.
21510
21511 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21512
21513         * modules/openat (Depends-on): Add lchown.
21514
21515 2006-08-23  Bruno Haible  <bruno@clisp.org>
21516
21517         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
21518         of gl_LOCK_EARLY instead of gl_LOCK.
21519
21520 2006-08-23  Bruno Haible  <bruno@clisp.org>
21521
21522         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
21523         on OSF/1 to no.
21524         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
21525
21526 2006-08-23  Bruno Haible  <bruno@clisp.org>
21527
21528         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
21529         as unusable.
21530
21531         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
21532         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
21533         (gl_LOCK): New macro.
21534
21535 2006-08-22  Simon Josefsson  <jas@extundo.com>
21536
21537         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
21538         to md5 module.
21539
21540 2006-08-22  Simon Josefsson  <jas@extundo.com>
21541
21542         * MODULES.html.sh: Add "Support for maintaining and release
21543         projects".
21544
21545         * build-aux/gnupload: New file, from coreutils.
21546
21547 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21548
21549         Avoid the need for AC_LIBSOURCES in m4 macros.
21550         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
21551         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
21552         * modules/check-version (EXTRA_DIST): Add check-version.h.
21553         * modules/crc (EXTRA_DIST): Add crc.h.
21554         * modules/des (EXTRA_DIST): Add des.h.
21555         * modules/gc (EXTRA_DIST): Add gc.h.
21556         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
21557         * modules/getline (EXTRA_DIST): Add getline.h.
21558         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
21559         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
21560         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
21561         * modules/md2 (EXTRA_DIST): Add md2.h.
21562         * modules/md4 (EXTRA_DIST): Add md4.h.
21563         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
21564         * modules/read-file (EXTRA_DIST): Add read-file.h.
21565         * modules/readline (EXTRA_DIST): Add readline.h.
21566         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
21567         rijndael-api-fst.h.
21568
21569 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21570
21571         * m4/rijndael.m4 (gl_ARCFOUR):
21572         * m4/arctwo.m4 (gl_ARCTWO):
21573         * m4/check-version.m4 (gl_CHECK_VERSION):
21574         * m4/crc.m4 (gl_CRC):
21575         * m4/des.m4 (gl_DES):
21576         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
21577         * m4/gc.m4 (gl_GC):
21578         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
21579         * m4/getline.m4 (gl_FUNC_GETLINE):
21580         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
21581         * m4/hmac-md5.m4 (gl_HMAC_MD5):
21582         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
21583         * m4/md2.m4 (gl_MD2):
21584         * m4/md4.m4 (gl_MD4):
21585         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
21586         * m4/read-file.m4 (gl_FUNC_READ_FILE):
21587         * m4/readline.m4 (gl_FUNC_READLINE):
21588         * m4/rijndael.m4 (gl_RIJNDAEL):
21589         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
21590         to get the necessary .h files and whatnot.
21591
21592 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21593
21594         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
21595         gnulib rather than the other way around.
21596         * config/srclistvars.sh (COREUTILS): Remove.
21597
21598 2006-08-22  Jim Meyering  <jim@meyering.net>
21599
21600         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
21601
21602         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
21603
21604 2006-08-22  Eric Blake  <ebb9@byu.net>
21605
21606         * modules/regexprops-generic: New file.
21607         * MODULES.html.sh (Support for building documentation): List it.
21608
21609 2006-08-22  Eric Blake  <ebb9@byu.net>
21610
21611         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
21612         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21613         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
21614         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21615
21616 2006-08-22  Bruno Haible  <bruno@clisp.org>
21617
21618         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
21619         and lib_LTLIBRARIES like the other lib_* variables.
21620
21621 2006-08-22  Bruno Haible  <bruno@clisp.org>
21622
21623         * build-aux/x-to-1.in: New file, from GNU gettext.
21624
21625 2006-08-22  Bruno Haible  <bruno@clisp.org>
21626
21627         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
21628         <utmpx.h> exists.
21629
21630 2006-08-22  Bruno Haible  <bruno@clisp.org>
21631
21632         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
21633         <utmpx.h> exists.
21634
21635 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
21636
21637         BeOS portability.
21638         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
21639         exist.
21640         Problem reported by Bruno Haible.
21641
21642 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
21643
21644         Avoid the need for AC_LIBSOURCES in m4 macros.
21645         * modules/acl (EXTRA_DIST): Add acl.h.
21646         * modules/argmatch (Files): Add m4/argmatch.m4.
21647         (configure.ac): Add gl_ARGMATCH.
21648         (EXTRA_DIST): Renamed from lib_SOURCES, for
21649         consistency with the other modules.  Remove argmatch.c.
21650         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
21651         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
21652         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
21653         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
21654         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
21655         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
21656         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
21657         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
21658         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
21659         * modules/closeout (EXTRA_DIST): Add closeout.h.
21660         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
21661         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
21662         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
21663         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
21664         dirname.h; remove basename.c and stripslash.c.
21665         * modules/exclude (EXTRA_DIST): Add exclude.h.
21666         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
21667         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
21668         * modules/file-type (EXTRA_DIST): Add file-type.h.
21669         * modules/filemode (EXTRA_DIST): Add filemode.h.
21670         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
21671         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
21672         * modules/fpending (EXTRA_DIST): Add __fpending.h.
21673         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
21674         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
21675         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
21676         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
21677         * modules/getdate (EXTRA_DIST): Add getdate.c.
21678         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
21679         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
21680         * modules/getpass (EXTRA_DIST): Add getpass.h.
21681         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
21682         * modules/group-member (EXTRA_DIST): Add group-member.h.
21683         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
21684         * modules/hash (EXTRA_DIST): Add hash.h.
21685         * modules/human (EXTRA_DIST): Add human.h.
21686         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
21687         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
21688         * modules/lchown (EXTRA_DIST): Add lchown.h.
21689         * modules/long-options (EXTRA_DIST): Add long-options.h.
21690         * modules/lstat (EXTRA_DIST): Add lstat.h.
21691         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
21692         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
21693         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
21694         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
21695         * modules/memxor (EXTRA_DIST): Add memxor.h.
21696         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
21697         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
21698         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
21699         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
21700         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
21701         * modules/physmem (EXTRA_DIST): Add physmem.h.
21702         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
21703         * modules/posixver (EXTRA_DIST): Add posixver.h.
21704         * modules/quote (EXTRA_DIST): Add quote.h.
21705         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
21706         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
21707         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
21708         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
21709         regex_internal.h regexec.c.
21710         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
21711         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
21712         * modules/same (EXTRA_DIST): Add same.h.
21713         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
21714         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
21715         * modules/savedir (EXTRA_DIST): Add savedir.h.
21716         * modules/sha1 (EXTRA_DIST): Add sha1.h.
21717         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
21718         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
21719         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
21720         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
21721         * modules/strdup (EXTRA_DIST): Add strdup.h.
21722         * modules/strftime (EXTRA_DIST): Add strftime.h.
21723         * modules/strndup (EXTRA_DIST): Add strndup.h.
21724         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
21725         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
21726         * modules/time_r (EXTRA_DIST): Add time_r.h.
21727         * modules/timespec (EXTRA_DIST): Add timespec.h.
21728         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
21729         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
21730         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
21731         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
21732         * modules/userspec (EXTRA_DIST): Add userspec.h.
21733         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
21734         * modules/utimens (EXTRA_DIST): Add utimens.h.
21735         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
21736         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
21737         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
21738         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
21739         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
21740         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
21741         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
21742         * modules/yesno (EXTRA_DIST): Add yesno.h.
21743
21744 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
21745
21746         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
21747
21748         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
21749         * m4/dev-ino.m4, same-inode.m4: Remove.
21750
21751         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
21752         * m4/acl.m4 (AC_FUNC_ACL):
21753         * m4/backupfile.m4 (gl_BACKUPFILE):
21754         * m4/c-strtod.m4 (gl_C99_STRTOLD):
21755         * m4/canon-host.m4 (gl_CANON_HOST):
21756         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
21757         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
21758         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
21759         * m4/cloexec.m4 (gl_CLOEXEC):
21760         * m4/close-stream.m4 (gl_CLOSE_STREAM):
21761         * m4/closeout.m4 (gl_CLOSEOUT):
21762         * m4/dirfd.m4 (gl_FUNC_DIRFD):
21763         * m4/dirname.m4 (gl_DIRNAME):
21764         * m4/exclude.m4 (gl_EXCLUDE):
21765         * m4/exitfail.m4 (gl_EXITFAIL):
21766         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
21767         * m4/file-type.m4 (gl_FILE_TYPE):
21768         * m4/filemode.m4 (gl_FILEMODE):
21769         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
21770         * m4/fpending.m4 (gl_FUNC_FPENDING):
21771         * m4/fprintftime.m4 (gl_FPRINTFTIME):
21772         * m4/fts.m4 (gl_FUNC_FTS):
21773         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
21774         * m4/getdate.m4 (gl_GETDATE):
21775         * m4/gethrxtime.m4 (gl_GETHRXTIME):
21776         * m4/getpagesize.m4 (gl_GETPAGESIZE):
21777         * m4/getpass.m4 (gl_FUNC_GETPASS):
21778         * m4/gettime.m4 (gl_GETTIME):
21779         * m4/getugroups.m4 (gl_GETUGROUPS):
21780         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
21781         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
21782         * m4/hard-locale.m4 (gl_HARD_LOCALE):
21783         * m4/hash.m4 (gl_HASH):
21784         * m4/idcache.m4 (gl_IDCACHE):
21785         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
21786         * m4/lchown.m4 (gl_FUNC_LCHOWN):
21787         * m4/long-options.m4 (gl_LONG_OPTIONS):
21788         * m4/lstat.m4 (gl_FUNC_LSTAT):
21789         * m4/md5.m4 (gl_MD5):
21790         * m4/memcasecmp.m4 (gl_MEMCASECMP):
21791         * m4/memcoll.m4 (gl_MEMCOLL):
21792         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
21793         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
21794         * m4/memxor.m4 (gl_MEMXOR):
21795         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
21796         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
21797         * m4/modechange.m4 (gl_MODECHANGE):
21798         * m4/mountlist.m4 (gl_MOUNTLIST):
21799         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
21800         * m4/openat.m4 (gl_FUNC_OPENAT):
21801         * m4/pathmax.m4 (gl_PATHMAX):
21802         * m4/physmem.m4 (gl_PHYSMEM):
21803         * m4/posixtm.m4 (gl_POSIXTM):
21804         * m4/posixver.m4 (gl_POSIXVER):
21805         * m4/quote.m4 (gl_QUOTE):
21806         * m4/quotearg.m4 (gl_QUOTEARG):
21807         * m4/readtokens.m4 (gl_READTOKENS):
21808         * m4/readutmp.m4 (gl_READUTMP):
21809         * m4/regex.m4 (gl_REGEX):
21810         * m4/safe-read.m4 (gl_SAFE_READ):
21811         * m4/safe-write.m4 (gl_SAFE_WRITE):
21812         * m4/same.m4 (gl_SAME):
21813         * m4/save-cwd.m4 (gl_SAVE_CWD):
21814         * m4/savedir.m4 (gl_SAVEDIR):
21815         * m4/settime.m4 (gl_SETTIME):
21816         * m4/sha1.m4 (gl_SHA1):
21817         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
21818         * m4/stat-macros.m4 (gl_STAT_MACROS):
21819         * m4/stat-time.m4 (gl_STAT_TIME):
21820         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
21821         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
21822         * m4/strdup.m4 (gl_FUNC_STRDUP):
21823         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
21824         * m4/strndup.m4 (gl_FUNC_STRNDUP):
21825         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
21826         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
21827         * m4/time_r.m4 (gl_TIME_R):
21828         * m4/timespec.m4 (gl_TIMESPEC):
21829         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
21830         * m4/unlinkdir.m4 (gl_UNLINKDIR):
21831         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
21832         * m4/userspec.m4 (gl_USERSPEC):
21833         * m4/utimecmp.m4 (gl_UTIMECMP):
21834         * m4/utimens.m4 (gl_UTIMENS):
21835         * m4/xalloc.m4 (gl_XALLOC):
21836         * m4/xgetcwd.m4 (gl_XGETCWD):
21837         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
21838         * m4/xreadlink.m4 (gl_XREADLINK):
21839         * m4/xstrtod.m4 (gl_XSTRTOD):
21840         * m4/yesno.m4 (gl_YESNO):
21841         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
21842         to get the necessary .h files and whatnot.
21843
21844 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
21845             Bruno Haible  <bruno@clisp.org>
21846
21847         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
21848         /bin/sh understanding of '!' conditional negation.
21849
21850 2006-08-21  Jim Meyering  <jim@meyering.net>
21851
21852         * modules/openat (Depends-on): Really alphabetize.
21853
21854         * modules/acl (Depends-on): Add error and quote.
21855
21856         * check-module (find_included_lib_files): Add at-func.c to the
21857         ok-to-include-more-than-once white list.
21858
21859         * modules/openat (Depends-on): Add lstat.  Alphabetize.
21860
21861 2006-08-21  Bruno Haible  <bruno@clisp.org>
21862
21863         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21864         Emit a pkgdata_DATA variable only if some snippets add contents to it.
21865         Reported by Martin Lambers <marlam@marlam.de>.
21866
21867 2006-08-21  Bruno Haible  <bruno@clisp.org>
21868
21869         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
21870         specify an installation location, don't emit a noinst_LIBRARIES or
21871         noinst_LTLIBRARIES assignment.
21872
21873 2006-08-21  Bruno Haible  <bruno@clisp.org>
21874
21875         BeOS portability.
21876         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
21877         BeOS has mbrtowc() but no <wctype.h>.
21878
21879 2006-08-21  Bruno Haible  <bruno@clisp.org>
21880
21881         BeOS portability.
21882         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
21883         exist.
21884
21885 2006-08-21  Bruno Haible  <bruno@clisp.org>
21886
21887         BeOS portability.
21888         * lib/mbchar.h: Include <wctype.h> only if it exists.
21889
21890 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21891
21892         Remove files that are no longer needed by their respective modules.
21893         * m4/obstack.m4: Remove.
21894         * m4/strerror_r.m4: Remove.
21895         * m4/uint32_t.m4: Remove.
21896         * m4/uintptr_t.m4: Remove.
21897         * m4/ullong_max.m4: Remove.
21898         * m4/xstrtoimax.m4: Remove.
21899         * m4/xstrtoumax.m4: Remove.
21900
21901         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
21902         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
21903         dependencies now capture this.
21904
21905         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
21906         Do not use AC_LIBSOURCES, since gnulib modules now do this.
21907         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
21908         * m4/human.m4 (gl_HUMAN): Likewise.
21909         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
21910         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
21911
21912         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
21913
21914         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
21915         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
21916         stdint.
21917         * m4/human.m4 (gl_HUMAN): Likewise.
21918         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
21919         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
21920         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
21921         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
21922         * m4/xstrtol (gl_XSTRTOL): Likewise.
21923
21924         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
21925         AC_TYPE_LONG_LONG_INT.
21926         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
21927         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
21928         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
21929         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
21930
21931         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
21932         on stdbool.
21933
21934         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
21935         (gl_PREREQ_XSTRTOUL): Remove.
21936
21937         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
21938
21939         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
21940         mode.
21941
21942 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21943
21944         Add and change modules to make it easier for coreutils to use
21945         gnulib-tool.
21946         * modules/backupfile (Files): Remove m4/d-ino.m4.
21947         (Depends-on): Add d-ino.
21948         * modules/cycle-check (Depends-on): Add stdint.
21949         (lib_SOURCES): Add cycle-check.h.
21950         * modules/d-ino: New module.
21951         * modules/d-type: New module.
21952         * modules/error (Files): Remove m4/strerror_r.m4.
21953         * modules/filemode (Files): Add m4/st_dm_mode.m4.
21954         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
21955         m4/inttypes_h.m4, m4/uintmax_t.m4.
21956         (Depends-on): Add stdint.
21957         (lib_SOURCES): Add fsusage.h.
21958         * modules/getcwd (Files): Remove d-ino.m4.
21959         (Depends-on): Add d-ino.
21960         * modules/getndelim2 (Depends-on): Add stdint.
21961         * modules/glob (Files): Remove m4/d-type.m4.
21962         (Depends-on): Add d-type.
21963         * modules/host-os: New module.
21964         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
21965         m4/inttypes_h.m4, m4/uintmax_t.m4.
21966         * Depends-on: Add stdint.
21967         (lib_SOURCES): Add human.h.
21968         * modules/inttostr (Files): Remove m4/intmax_t.m4,
21969         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
21970         m4/uintmax_t.m4, m4/ulonglong.m4.
21971         (Depends-on): Add stdint.
21972         (EXTRA_DIST): Add inttostr.h.
21973         * modules/lchmod: New module.
21974         * modules/link-follow: New module.
21975         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
21976         (Depends-on): Add lchmod.
21977         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
21978         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
21979         (Depends-on): Add stdint.
21980         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
21981         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
21982         (Depends-on): Add stdint.
21983         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
21984         * modules/perl: New module.
21985         * modules/regex (Depends-on): Add stdint.
21986         * modules/rmdir-errno: New module.
21987         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
21988         m4/intmax_t.m4.
21989         (Depends-on): Add stdint.
21990         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
21991         m4/uintmax_t.m4.
21992         (Depends-on): Add stdint.
21993         * modules/unlink-busy: New module.
21994         * modules/utimecmp (Depends-on): Add stdint.
21995         * modules/uptime: New module.
21996         * modules/winsz-ioctl: New module.
21997         * modules/winsz-termios: New module.
21998         * modules/xnanosleep (Depends-on): Add nanosleep.
21999         * modules/ullong_max: Remove.
22000         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
22001         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
22002         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
22003         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
22004         (Depends-on): Add inttypes.
22005         (lib_SOURCES): Add xstrtol.h.
22006         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
22007         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
22008         * MODULES.html.sh: Move 'assert' into the assert section.
22009         Move 'dummy' into the linking section.
22010         Remove ullong_max.
22011         Add section for compatibility checks for POSIX:2001 functions,
22012         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
22013         winsz-ioctl, and winsz-termios into it.
22014         Add lchmod.
22015         Add top-level Misc section and put host-os, perl, and uptime
22016         into it.
22017
22018 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22019
22020         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
22021         now assume the stdint module.  Do not include inttypes.h.
22022         * lib/fsusage.h: Likewise.
22023         * lib/getndelim2.c: Likewise.
22024         * lib/human.h: Likewise.
22025         * lib/inttostr.h: Likewise.
22026         * lib/obstack.c: Likewise.
22027         * lib/regex_internal.h: Likewise.
22028         * lib/tempname.c: Likewise.
22029         * lib/utimecmp.c: Likewise.
22030         * lib/xstrtol.h: Likewise.
22031
22032         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
22033
22034         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
22035         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
22036         * lib/xtime.h: Likewise.
22037
22038 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22039
22040         * modules/openat (Files): Add lib/fchmodat.c.
22041         Fixes problem reported by Jay Youngman.
22042
22043 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22044
22045         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
22046         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
22047
22048 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
22049             Bruno Haible  <bruno@clisp.org>
22050
22051         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
22052         and is a script that invokes bison. Tighten the code. Add comments.
22053
22054 2006-08-18  Jim Meyering  <jim@meyering.net>
22055
22056         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
22057         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
22058         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
22059         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
22060
22061 2006-08-18  Bruno Haible  <bruno@clisp.org>
22062
22063         * modules/bison-i18n: New file.
22064         * MODULES.html.sh (Internationalization functions): Add it.
22065
22066 2006-08-18  Bruno Haible  <bruno@clisp.org>
22067
22068         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
22069         sys/statvfs.h. When getmntinfo was found, check its declaration and
22070         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
22071
22072 2006-08-18  Bruno Haible  <bruno@clisp.org>
22073
22074         * m4/bison-i18n.m4: New file, from bison.
22075
22076 2006-08-18  Bruno Haible  <bruno@clisp.org>
22077
22078         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
22079         (ME_DUMMY): Treat "kernfs" as a dummy.
22080         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
22081
22082 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22083
22084         Update from coreutils.
22085
22086         2006-08-15  Jim Meyering  <jim@meyering.net>
22087
22088         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
22089
22090         2006-01-17  Jim Meyering  <jim@meyering.net>
22091
22092         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
22093
22094         2006-01-11  Jim Meyering  <jim@meyering.net>
22095
22096         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
22097         Check for the lchmod function.
22098
22099 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22100
22101         Update from coreutils.
22102
22103         * lib/__fpending.h: Add copyright notice.
22104         * lib/fprintftime.h: Likewise.
22105         * lib/savedir.c: Use (C) in copyright notice.
22106         * lib/savedir.h: Likewise.
22107
22108         2006-08-15  Jim Meyering  <jim@meyering.net>
22109
22110         * lib/at-func.c: New file, with the logic of all emulated at-functions.
22111         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
22112         in support of the EXPECTED_ERRNO macro.
22113         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
22114         definitions.  Instead, define the appropriate symbols and include
22115         "at-func.c".
22116         * lib/mkdirat.c (mkdirat): Likewise.
22117         * lib/fchmodat.c (fchmodat): Likewise.
22118         (ENOSYS): Remove definition.
22119         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
22120         it.  Don't include "unistd--.h" -- it wasn't ever used.
22121
22122         2006-01-17  Jim Meyering  <jim@meyering.net>
22123
22124         Rewrite fts.c not to change the current working directory,
22125         by using openat, fstatat, fdopendir, etc..
22126
22127         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
22128         (HAVE_OPENAT_SUPPORT): Define.
22129         [_LIBC] (fchdir): Don't undef or define; no longer used.
22130         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
22131         Now, this `function' always succeeds, and consumes its file descriptor
22132         parameter -- so callers must not close such FDs.  Update callers.
22133         (diropen_fd, opendirat, cwd_advance_fd): New functions.
22134         (diropen): Add parameter, SP.  Adjust all callers.
22135         Implement using diropen_fd, rather than open.
22136         (fts_open): Initialize new member, fts_cwd_fd.
22137         Remove fts_rft-setting code.
22138         (fts_close): Close fts_cwd_fd, if necessary.
22139         (__opendir2): Define in terms of opendir or opendirat,
22140         depending on whether the FST_NOCHDIR flag is set.
22141         (fts_build): Since fts_safe_changedir consumes its FD, and since
22142         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
22143         and close the dup'd file descriptor upon failure.
22144         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
22145         (fts_safe_changedir): Tweak semantics to reflect that this function
22146         now calls cwd_advance_fd and hence consumes its FD argument.
22147         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
22148         [struct FTS] (fts_rft): Remove now-unused member.
22149         [struct FTS] (fts_cycle.state): Improve comment.
22150
22151         * lib/openat.c (openat_needs_fchdir): New function.
22152         * lib/openat.h (openat_needs_fchdir): Declare it.
22153
22154 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
22155
22156         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
22157         Problem and fix reported by Pádraig Brady in
22158         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
22159
22160 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22161
22162         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
22163
22164 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22165
22166         * lib/memcoll.c (memcoll): Optimize for the common case where the
22167         arguments are bytewise equal.
22168
22169 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22170
22171         * doc/regexprops-generic.texi: Add a copyright notice.
22172
22173 2006-08-15  Bruno Haible  <bruno@clisp.org>
22174
22175         * modules/tmpdir (License): Change to LGPL.
22176
22177 2006-08-15  Bruno Haible  <bruno@clisp.org>
22178
22179         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
22180         module.
22181
22182 2006-08-14  Simon Josefsson  <jas@extundo.com>
22183
22184         * config/srclist.txt: Add gnupload.
22185
22186 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22187
22188         Change copyright notice from LGPL 2 to GPL 2, since that's the
22189         standard form used in the gnulib repository.
22190         * tests/test-lock.c: Likewise.
22191         * tests/test-stdint.c: Likewise.
22192         * tests/test-tls.c: Likewise.
22193
22194         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
22195         prelude-manager.  User shorter URLs for GNU projects, without '?'.
22196         Add copyright notice.
22197
22198         * check-module: Add copyright notice.  Output a copyright
22199         notice if "--version" is specified.
22200         * modules/COPYING: New file.
22201         * tests/test-getaddrinfo.c: Add copyright notice.
22202         * tests/test-verify.c: Likewise.
22203
22204 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22205
22206         Change copyright notice from LGPL 2 to GPL 2, since that's the
22207         standard form used in the gnulib repository.
22208         * lib/lock.c: LGPL -> GPL.
22209         * lib/lock.h: Likewise.
22210         * lib/strnlen1.c: Likewise.
22211         * lib/strnlen1.h: Likewise.
22212         * lib/tls.c: Likewise.
22213         * lib/tls.h: Likewise.
22214         * lib/tmpdir.c: Likewise.
22215
22216         * lib/TODO: Remove; this belongs only in coreutils.
22217
22218 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22219
22220         Add copyright notices to long-enough files that lack them, since
22221         otherwise the files aren't clearly free.  Use the same notice that
22222         getdate.texi already uses.
22223         * doc/alloca-opt.texi: Add copyright notice.
22224         * doc/alloca.texi: Likewise.
22225         * doc/ctime.texi: Likewise.
22226         * doc/functions.texi: Likewise.
22227         * doc/gcd.texi: Likewise.
22228         * doc/gnulib-tool.texi: Likewise.
22229         * doc/inet_ntoa.texi: Likewise.
22230         * doc/visibility.texi: Likewise.
22231
22232         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
22233         * doc/quote.texi: Add copyright notice.
22234
22235         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
22236         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
22237         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
22238         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
22239         is now obsolete, and give a pointer to the Sun list.
22240         Add copyright notice.
22241
22242 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22243
22244         * config/srclistvars.sh: Add copyright notice.
22245
22246 2006-08-14  Eric Blake  <ebb9@byu.net>
22247
22248         Import the following change from libc:
22249
22250         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
22251
22252         Upstream bug 2997.
22253         * lib/misc/error.c: Add space between program name and message if file
22254         name is missing.
22255
22256 2006-08-12  Karl Berry  <karl@gnu.org>
22257
22258         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
22259         remove, these originate in gnulib now.
22260
22261 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22262
22263         * doc/Makefile (standards.info standards.html standards.dvi):
22264         Also depend on make-stds.texi.
22265
22266 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
22267
22268         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
22269         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
22270
22271         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
22272         in wchar_t.  Problem reported by Eric Blake.
22273
22274         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
22275         LEN is smaller than SIZE.  Suggested by Bruno Haible.
22276         Also, help the compiler to keep LEN in a register.
22277
22278 2006-08-11  Eric Blake  <ebb9@byu.net>
22279
22280         * users.txt: Sort.  Add tar.
22281
22282 2006-08-11  Bruno Haible  <bruno@clisp.org>
22283
22284         * users.txt: New file.
22285
22286 2006-08-11  Bruno Haible  <bruno@clisp.org>
22287
22288         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
22289         before <wchar.h>. Needed for OSF/1 and BSD/OS.
22290
22291 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22292
22293         * modules/snprintf (Depends-on): Remove minmax.
22294         (Maintainer): Add self and Bruno.
22295
22296 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22297
22298         * lib/.cppi-disable: Add snprintf.h, socket_.h.
22299         * lib/snprintf.c: Include <errno.h> and <limits.h>.
22300         (EOVERFLOW): Define if the system does not.
22301         Do not include "minmax.h"; it wasn't used.
22302         (snprintf): Don't assume size_t promotes to an unsigned type.
22303         Fix bug when generated string was too long for the buffer: the
22304         buffer's contents are supposed to be the initial prefix of the
22305         output.  Don't assume vasnprintf returns EOVERFLOW if the size
22306         exceeds INT_MAX; do the check ourselves.
22307
22308         Import the following changes from libc:
22309
22310         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
22311
22312         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
22313         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
22314         set wc to the byte which couldn't be converted.
22315         (re_string_reconstruct): Don't clear valid_raw_len before calling
22316         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
22317         tip_context using re_string_context_at.
22318
22319         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
22320
22321         * lib/posix/regex.h: g++ still cannot handled [restrict].
22322
22323         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
22324
22325         * lib/posix/regex.h: Remove special handling for VMS.
22326
22327 2006-08-10  Jim Meyering  <jim@meyering.net>
22328
22329         * modules/same-inode: New module.
22330         * modules/dev-ino: New module.
22331         * modules/cycle-check: Depend on these modules, rather than simply
22332         including their .h files.
22333         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
22334         required via m4/cycle-check.m4.
22335         * modules/same: Depend on new same-inode module, rather than
22336         including same-inode.h.
22337         * modules/chdir-safer: New file.
22338
22339         * modules/chown (Depends-on): Add stat-macros.
22340
22341 2006-08-10  Jim Meyering  <jim@meyering.net>
22342
22343         * m4/cycle-check.m4: New file.
22344         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
22345         * m4/dev-ino.m4, m4/same-inode.m4: New files.
22346
22347 2006-08-10  Eric Blake  <ebb9@byu.net>
22348
22349         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
22350         in from original proposal.
22351
22352 2006-08-10  Eric Blake  <ebb9@byu.net>
22353         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22354
22355         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
22356         namespace.
22357
22358 2006-08-10  Bruno Haible  <bruno@clisp.org>
22359
22360         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
22361         as well.
22362
22363 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22364
22365         Sync from coreutils.
22366
22367         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
22368
22369         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
22370         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
22371
22372 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22373
22374         * modules/restrict: Remove; no longer needed now that we assume
22375         Autoconf 2.59 or later.
22376         * MODULES.html.sh: Remove 'restrict'.
22377         * modules/argp (Depends-on): Remove 'restrict'.
22378         * modules/base64 (Depends-on): Likewise.
22379         * modules/gc (Depends-on): Likewise.
22380         * modules/getaddrinfo (Depends-on): Likewise.
22381         * modules/glob (Depends-on): Likewise.
22382         * modules/inet_ntop (Depends-on): Likewise.
22383         * modules/inet_pton (Depends-on): Likewise.
22384         * modules/memxor (Depends-on): Likewise.
22385         * modules/regex (Depends-on): Likewise.
22386         * modules/strtok_r (Depends-on): Likewise.
22387         * modules/time_r (Depends-on): Likewise.
22388
22389 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22390
22391         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
22392         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
22393         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
22394         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
22395         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22396         * m4/memxor.m4 (gl_MEMXOR): Likewise.
22397         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
22398         gl_C_RESTRICT replaced by AC_C_RESTRICT.
22399
22400         Merge from coreutils.
22401         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
22402         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
22403         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
22404         * m4/time_r.m4 (gl_TIME_R): Likewise.
22405
22406 2006-08-09  Karl Berry  <karl@gnu.org>
22407
22408         * config/srclist.txt: no more gettext-tools, per Bruno.
22409
22410 2006-08-08  Eric Blake  <ebb9@byu.net>
22411
22412         * modules/verror: New module.
22413         * MODULES.html.sh: Document it.
22414
22415 2006-08-08  Eric Blake  <ebb9@byu.net>
22416
22417         * lib/verror.h, lib/verror.c: New files.
22418
22419 2006-08-08  Eric Blake  <ebb9@byu.net>
22420
22421         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
22422         verror_at_line output complies with GNU Coding Standards even when
22423         file is NULL.
22424
22425 2006-08-07  Bruno Haible  <bruno@clisp.org>
22426
22427         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
22428         versions of AIX.
22429         Reported by Ralf Wildenhues.
22430
22431 2006-08-07  Bruno Haible  <bruno@clisp.org>
22432
22433         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
22434         in an AC_DEFUN. Needed so that the autoconf snippets can use
22435         AC_REQUIRE.
22436
22437 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22438
22439         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22440         Initialize pkgdata_DATA.
22441         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
22442         overriding it.
22443
22444 2006-08-06  Eric Blake  <ebb9@byu.net>
22445
22446         * lib/error.h: Fold in some upstream changes from glibc.
22447         * lib/error.c: Likewise.
22448
22449 2006-08-04  Bruno Haible  <bruno@clisp.org>
22450
22451         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22452         Make the mostlyclean-local rule depend on mostlyclean-generic.
22453         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
22454
22455 2006-07-31  Bruno Haible  <bruno@clisp.org>
22456
22457         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
22458         <stdlib.h>, <string.h>.
22459
22460 2006-07-30  Bruno Haible  <bruno@clisp.org>
22461
22462         * modules/readlink (License): Change to LGPL.
22463
22464 2006-07-30  Bruno Haible  <bruno@clisp.org>
22465
22466         * modules/javaversion (Makefile.am): Distribute javaversion.java and
22467         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
22468         set PKGDATADIR to point to it.
22469
22470 2006-07-30  Bruno Haible  <bruno@clisp.org>
22471
22472         * modules/csharpexec (configure.ac): Comment out macro invocation.
22473         * modules/javaexec (configure.ac): Likewise.
22474         * modules/javacomp-script (configure.ac): Likewise.
22475
22476         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
22477
22478 2006-07-30  Bruno Haible  <bruno@clisp.org>
22479
22480         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
22481         linked-list.
22482
22483 2006-07-30  Bruno Haible  <bruno@clisp.org>
22484
22485         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
22486
22487 2006-07-30  Bruno Haible  <bruno@clisp.org>
22488
22489         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22490         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
22491         get removed.
22492
22493 2006-07-29  Bruno Haible  <bruno@clisp.org>
22494
22495         Make it possible for gnulib-tool to work with locally modified or
22496         augmented gnulib repositories.
22497         * gnulib-tool (func_usage): Document --local-dir option.
22498         (local_gnulib_dir): New variable.
22499         Handle --local-dir option.
22500         (func_lookup_file): New function.
22501         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
22502         (func_get_description, func_get_filelist, func_get_description,
22503         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
22504         func_get_automake_snippet, func_get_include_directive,
22505         func_get_license, func_get_maintainer): Use func_lookup_file.
22506         (func_import, func_create_testdir): Use func_lookup_file.
22507
22508 2006-07-29  Bruno Haible  <bruno@clisp.org>
22509
22510         * modules/setenv (Depends-on): Add unistd.
22511
22512 2006-07-29  Bruno Haible  <bruno@clisp.org>
22513
22514         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
22515
22516 2006-07-29  Bruno Haible  <bruno@clisp.org>
22517
22518         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
22519
22520 2006-07-29  Bruno Haible  <bruno@clisp.org>
22521
22522         * gnulib-tool (import, update): If there is no Makefile.am, look at
22523         aclocal.m4, instead of bailing out.
22524
22525 2006-07-29  Bruno Haible  <bruno@clisp.org>
22526
22527         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
22528         Categorize the options by when they are useful.
22529
22530 2006-07-29  Bruno Haible  <bruno@clisp.org>
22531
22532         * gnulib-tool (func_usage): Document option --no-libtool.
22533         Handle option --no-libtool.
22534         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
22535         for changed semantics of $libtool variable.
22536         (func_import): Likewise. If libtool is not used, show this through
22537         an option --no-libtool.
22538         (func_create_testdir): Update.
22539
22540 2006-07-29  Bruno Haible  <bruno@clisp.org>
22541
22542         * gnulib-tool (func_import): Extend error message about missing
22543         --doc-base.
22544
22545 2006-07-29  Bruno Haible  <bruno@clisp.org>
22546
22547         * gnulib-tool (func_import): Don't create the $docbase directory if
22548         there is no file to store there.
22549
22550 2006-07-29  Bruno Haible  <bruno@clisp.org>
22551
22552         * gnulib-tool (autoconf_minversion): If a --dir option is given and
22553         relevant, look for configure.ac there, not in the current directory.
22554         Also use a simple search for AC_PREREQ, not "autoconf --trace".
22555
22556 2006-07-29  Bruno Haible  <bruno@clisp.org>
22557
22558         * gnulib-tool (SORT): New variable.
22559         (func_usage): Undocument --assume-autoconf option.
22560         Remove --assume-autoconf option handling.
22561         (autoconf_minversion): Determine from the contents of configure.ac.
22562         (func_import): Remove autoconf_minversion handling.
22563         Suggested by Eric Blake.
22564
22565 2006-07-29  Bruno Haible  <bruno@clisp.org>
22566
22567         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
22568
22569 2006-07-29  Bruno Haible  <bruno@clisp.org>
22570
22571         * config/srclist.txt (*setenv.[ch]): Remove rules.
22572
22573 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22574
22575         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
22576
22577 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22578
22579         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
22580         arpa/inet.h.
22581
22582 2006-07-28  Simon Josefsson  <jas@extundo.com>
22583
22584         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
22585         * modules/inet_pton (Depends-on): Likewise.
22586
22587 2006-07-28  Simon Josefsson  <jas@extundo.com>
22588
22589         * m4/netinet_in_h.m4: New file.
22590
22591 2006-07-28  Simon Josefsson  <jas@extundo.com>
22592
22593         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
22594         #include's.
22595
22596 2006-07-28  Simon Josefsson  <jas@extundo.com>
22597
22598         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
22599         #include's.
22600
22601 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
22602
22603         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
22604         setgid on directories only if they set these bits.
22605         * lib/modechange.h: Remove obsolete comment about masks.
22606
22607 2006-07-28  Eric Blake  <ebb9@byu.net>
22608
22609         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
22610         macro expansion.
22611
22612 2006-07-28  Bruno Haible  <bruno@clisp.org>
22613
22614         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
22615
22616 2006-07-28  Bruno Haible  <bruno@clisp.org>
22617
22618         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
22619
22620 2006-07-28  Bruno Haible  <bruno@clisp.org>
22621
22622         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
22623         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
22624         Define fallbacks.
22625         Avoids link error on FreeBSD 4.x.
22626         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22627
22628         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
22629         encoding.
22630         * lib/mbswidth.c (iswcntrl): Likewise.
22631
22632 2006-07-27  Bruno Haible  <bruno@clisp.org>
22633
22634         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
22635         test.
22636
22637 2006-07-27  Bruno Haible  <bruno@clisp.org>
22638
22639         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
22640         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
22641         defined.
22642
22643 2006-07-26  Eric Blake  <ebb9@byu.net>
22644
22645         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
22646
22647 2006-07-26  Eric Blake  <ebb9@byu.net>
22648
22649         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
22650         like mingw that lack mkstemp.
22651         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
22652         avoid compilation warning on mingw.
22653
22654 2006-07-26  Bruno Haible  <bruno@clisp.org>
22655
22656         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
22657         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
22658         INT_FAST*_MIN, INTPTR_MIN.
22659
22660 2006-07-25  Bruno Haible  <bruno@clisp.org>
22661
22662         * modules/version-etc (Depends-on): Add stdarg.
22663
22664 2006-07-25  Bruno Haible  <bruno@clisp.org>
22665
22666         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
22667         complex commands.
22668
22669 2006-07-25  Bruno Haible  <bruno@clisp.org>
22670
22671         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
22672         defined in <stdarg.h> or config.h.
22673
22674 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
22675
22676         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
22677         (gl_STDIO_SAFER): Remove.
22678
22679 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
22680
22681         * MODULES.html.sh (File stream based Input/Output):
22682         Add fopen-safer, tmpfile-safer; remove stdio-safer.
22683         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
22684         * modules/fopen-safer, modules/tmpfile-safer: New files.
22685         * modules/stdio-safer: Remove.
22686
22687 2006-07-24  Bruno Haible  <bruno@clisp.org>
22688
22689         * modules/tmpdir: New file.
22690         * MODULES.html.sh (File system functions): Add it.
22691
22692 2006-07-24  Bruno Haible  <bruno@clisp.org>
22693
22694         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
22695         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
22696
22697 2006-07-24  Bruno Haible  <bruno@clisp.org>
22698
22699         * modules/clean-temp: New file.
22700
22701 2006-07-24  Bruno Haible  <bruno@clisp.org>
22702
22703         * m4/tmpdir.m4: New file, from GNU gettext.
22704
22705 2006-07-24  Bruno Haible  <bruno@clisp.org>
22706
22707         * lib/tmpdir.h: New file, from GNU gettext.
22708         * lib/tmpdir.c: New file, from GNU gettext.
22709
22710 2006-07-24  Bruno Haible  <bruno@clisp.org>
22711
22712         * lib/clean-temp.h: New file, from GNU gettext.
22713         * lib/clean-temp.c: New file, from GNU gettext.
22714
22715 2006-07-23  Eric Blake  <ebb9@byu.net>
22716
22717         * modules/stdio-safer (Files): Add tmpfile-safer.c.
22718         (Depends-on): Add binary-io.
22719
22720 2006-07-23  Eric Blake  <ebb9@byu.net>
22721
22722         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
22723
22724 2006-07-23  Eric Blake  <ebb9@byu.net>
22725
22726         * lib/tmpfile-safer.c: New file.
22727         * lib/stdio-safer.h (fopen_safer): Add prototype.
22728         * lib/stdio--.h (tmpfile): Make safer.
22729
22730 2006-07-23  Bruno Haible  <bruno@clisp.org>
22731
22732         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
22733         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
22734         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
22735         gl_linked_remove_at): Use it.
22736
22737 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22738         and Simon Josefsson <jas@extundo.com>
22739
22740         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
22741
22742         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
22743
22744 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
22745
22746         * modules/close-stream: New file.
22747         * modules/closeout (Description): Make it clear that it exits
22748         with a diagnostic on error.
22749         (Depends-on): Add close-stream.  Remove fpending, stdbool.
22750         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
22751
22752 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
22753
22754         * m4/close-stream.m4: New file.
22755
22756 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
22757
22758         * lib/close-stream.c, lib/close-stream.h: New files.
22759
22760 2006-07-22  Bruno Haible  <bruno@clisp.org>
22761
22762         Merge from GNU gettext 0.15.
22763
22764         2006-05-01  Bruno Haible  <bruno@clisp.org>
22765
22766                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
22767
22768         2006-07-22  Bruno Haible  <bruno@clisp.org>
22769
22770                 * modules/javaversion: New file.
22771                 * MODULES.html.sh (Java): Add javaversion.
22772
22773         2006-03-12  Bruno Haible  <bruno@clisp.org>
22774
22775                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
22776
22777         2005-12-04  Bruno Haible  <bruno@clisp.org>
22778
22779                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
22780                 (untested).
22781
22782         2006-06-21  Bruno Haible  <bruno@clisp.org>
22783
22784                 Avoid warnings from recent versions of mcs.
22785                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
22786                 -o, -L, -r any more. Use options documented since mcs-1.0
22787                 instead. Similarly for -g.
22788
22789         2005-12-04  Bruno Haible  <bruno@clisp.org>
22790
22791                 * build-aux/csharpcomp.sh.in: Suffix for resources is
22792                 .resources, not .resource.
22793
22794         2005-07-09  Bruno Haible  <bruno@clisp.org>
22795
22796                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
22797                 add a .dll suffix.
22798                 Reported by Mark Junker <mjscod@gmx.de>.
22799
22800         2006-07-22  Bruno Haible  <bruno@clisp.org>
22801
22802                 * modules/gettext: Upgrade to gettext-0.15.
22803                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
22804                 m4/visibility.m4.
22805                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
22806
22807 2006-07-22  Bruno Haible  <bruno@clisp.org>
22808
22809         Merge from GNU gettext 0.15.
22810
22811         2006-03-25  Bruno Haible  <bruno@clisp.org>
22812
22813                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
22814
22815         2006-07-21  Bruno Haible  <bruno@clisp.org>
22816
22817                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
22818                 "1.1".
22819
22820         2006-05-09  Bruno Haible  <bruno@clisp.org>
22821
22822                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
22823                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
22824                 for the conftestver execution.
22825
22826         2006-05-01  Bruno Haible  <bruno@clisp.org>
22827
22828                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
22829                 optional target-version argument. Verify that the compiler
22830                 groks source of the specified source-version, or add -source
22831                 option as necessary. Verify that the compiler produces
22832                 bytecode in the specified target-version, or add -target and
22833                 -source options as necessary. Make the result of the test
22834                 available as variable CONF_JAVAC. Also log error output in
22835                 config.log.
22836
22837         2006-03-11  Bruno Haible  <bruno@clisp.org>
22838
22839                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
22840
22841         2006-05-09  Bruno Haible  <bruno@clisp.org>
22842
22843                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
22844                 CLASSPATH_SEPARATOR to a semicolon.
22845
22846         2006-03-12  Bruno Haible  <bruno@clisp.org>
22847
22848                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
22849                 available as variable CONF_JAVA, for subsequent autoconf
22850                 tests. Also log error output in config.log.
22851
22852         2006-07-19  Bruno Haible  <bruno@clisp.org>
22853
22854                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
22855                 that getline works on glibc2 systems. Needed to avoid trouble
22856                 in relocatable.c.
22857                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
22858
22859         2005-12-04  Bruno Haible  <bruno@clisp.org>
22860
22861                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
22862                 launcher (untested).
22863
22864         2005-12-04  Bruno Haible  <bruno@clisp.org>
22865
22866                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
22867
22868         2006-07-22  Bruno Haible  <bruno@clisp.org>
22869
22870                 * gettext.m4: Update from GNU gettext-0.15.
22871                 * nls.m4: Likewise.
22872                 * po.m4: Likewise.
22873                 * inttypes-pri.m4: Likewise.
22874                 * inttypes-h.m4: Renamed from inttypes.m4.
22875                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
22876
22877 2006-07-22  Bruno Haible  <bruno@clisp.org>
22878
22879         Merge from GNU gettext 0.15.
22880
22881         2005-07-05  Bruno Haible  <bruno@clisp.org>
22882
22883                 * printf-args.c (printf_fetchargs): Work around broken
22884                 definition of wint_t on mingw.
22885
22886         2005-02-12  Bruno Haible  <bruno@clisp.org>
22887
22888                 * xallocsa.h: Add extern "C" for C++.
22889
22890         2006-05-17  Bruno Haible  <bruno@clisp.org>
22891
22892                 Cygwin portability.
22893                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
22894
22895         2006-04-30  Bruno Haible  <bruno@clisp.org>
22896
22897                 * progreloc.c: Include <mach-o/dyld.h> if available.
22898                 (find_executable): Use _NSGetExecutablePath when possible.
22899
22900         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
22901
22902                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
22903                 function.
22904
22905         2005-12-29  Bruno Haible  <bruno@clisp.org>
22906
22907                 * progreloc.c (set_program_name_and_installdir): Fix
22908                 compilation error.
22909
22910         2005-12-04  Bruno Haible  <bruno@clisp.org>
22911
22912                 Cygwin portability.
22913                 * progreloc.c: Include <windows.h> also on Cygwin.
22914                 (find_executable): Add support for Cygwin.
22915                 (set_program_name_and_installdir): Handle also platforms with
22916                 nonempty EXEEXT.
22917
22918         2006-07-11  Bruno Haible  <bruno@clisp.org>
22919
22920                 * javacomp.c: Fix a comment.
22921                 Reported by Jim Meyering.
22922
22923         2006-04-30  Bruno Haible  <bruno@clisp.org>
22924
22925                 * javacomp.h (compile_java_class): Add source_version,
22926                 target_version arguments.
22927                 * javacomp.c: Rewritten to choose only a compiler that
22928                 respects the specified source_version and target_version.
22929
22930         2006-06-27  Bruno Haible  <bruno@clisp.org>
22931
22932                 Assume correct S_ISDIR macro.
22933                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
22934
22935         2006-07-22  Bruno Haible  <bruno@clisp.org>
22936
22937                 * javaversion.h: New file, from GNU gettext.
22938                 * javaversion.c: New file, from GNU gettext.
22939                 * javaversion.java: New file, from GNU gettext.
22940                 * javaversion.class: New file, from GNU gettext.
22941
22942         2006-05-17  Bruno Haible  <bruno@clisp.org>
22943
22944                 Cygwin portability.
22945                 * javaexec.c (execute_java_class): Test for jview program
22946                 also on Cygwin.
22947
22948         2006-04-09  Bruno Haible  <bruno@clisp.org>
22949
22950                 * fatal-signal.c: Don't include string.h.
22951                 (at_fatal_signal): Use a copying loop instead of memcpy.
22952
22953         2005-12-04  Bruno Haible  <bruno@clisp.org>
22954
22955                 * csharpexec.c: Add support for 'clix' launcher (untested).
22956                 (execute_csharp_using_sscli): New function.
22957                 (execute_csharp_program): Call it.
22958
22959         2006-06-21  Bruno Haible  <bruno@clisp.org>
22960
22961                 Avoid warnings from recent versions of mcs.
22962                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
22963                 -o, -L, -r any more. Use options documented since mcs-1.0
22964                 instead. Similarly for -g.
22965
22966         2005-07-09  Bruno Haible  <bruno@clisp.org>
22967
22968                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
22969                 add a .dll suffix.
22970                 Reported by Mark Junker <mjscod@gmx.de>.
22971
22972         2006-06-17  Bruno Haible  <bruno@clisp.org>
22973
22974                 * config.charset: Update for NetBSD 3.0.
22975
22976         2006-05-17  Bruno Haible  <bruno@clisp.org>
22977
22978                 Cygwin portability.
22979                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
22980
22981         2006-05-16  Bruno Haible  <bruno@clisp.org>
22982
22983                 * localcharset.c [CYGWIN]: Include <windows.h>.
22984                 (get_charset_aliases): For Cygwin, return the same CPxxx
22985                 aliases list as under WIN32.
22986                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
22987                 the environment variables. Fall back to GetACP().
22988
22989         2006-04-05  Bruno Haible  <bruno@clisp.org>
22990
22991                 * config.charset: Update Juan Manuel Guerrero's address.
22992
22993         2005-02-12  Bruno Haible  <bruno@clisp.org>
22994
22995                 * allocsa.h: Add extern "C" for C++.
22996
22997         2005-02-10  Bruno Haible  <bruno@clisp.org>
22998
22999                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
23000                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
23001
23002         2006-07-22  Bruno Haible  <bruno@clisp.org>
23003
23004                 * gettext.h: Update to GNU gettext-0.15.
23005
23006 2006-07-22  Bruno Haible  <bruno@clisp.org>
23007
23008         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
23009         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
23010         lib-prefix.m4, longdouble.m4, ssize_t.m4.
23011
23012 2006-07-21  Eric Blake  <ebb9@byu.net>
23013
23014         * modules/stdlib-safer: New file.
23015         * MODULES.html.sh (File stream based Input/Output): Add
23016         stdlib-safer.
23017
23018 2006-07-21  Eric Blake  <ebb9@byu.net>
23019
23020         * lib/stdlib-safer.h: New file from coreutils, required by
23021         stdlib--.h.
23022
23023 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
23024
23025         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
23026
23027 2006-07-20  Bruno Haible  <bruno@clisp.org>
23028
23029         * gnulib-tool: Recognize new option --assume-autoconf.
23030         (autoconf_minversion): New variable.
23031         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
23032
23033 2006-07-20  Bruno Haible  <bruno@clisp.org>
23034
23035         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
23036
23037 2006-07-19  Derek R. Price  <derek@ximbiot.com>
23038
23039         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
23040         Reindent and repaginate.
23041
23042 2006-07-19  Derek Price  <derek@ximbiot.com>
23043
23044         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
23045         Correct grammar.
23046
23047 2006-07-17  Bruno Haible  <bruno@clisp.org>
23048
23049         * modules/list: New file.
23050         * modules/array-list: New file.
23051         * modules/carray-list, modules/carray-list-tests: New files.
23052         * modules/linked-list, modules/linked-list-tests: New files.
23053         * modules/avltree-list, modules/avltree-list-tests: New files.
23054         * modules/rbtree-list, modules/rbtree-list-tests: New files.
23055         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
23056         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
23057         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
23058         * modules/oset: New file.
23059         * modules/array-oset: New file.
23060         * modules/avltree-oset, modules/avltree-oset-tests: New files.
23061         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
23062         * tests/test-carray_list.c: New file.
23063         * tests/test-linked_list.c: New file.
23064         * tests/test-avltree_list.c: New file.
23065         * tests/test-rbtree_list.c: New file.
23066         * tests/test-linkedhash_list.c: New file.
23067         * tests/test-avltreehash_list.c: New file.
23068         * tests/test-rbtreehash_list.c: New file.
23069         * tests/test-avltree_oset.c: New file.
23070         * tests/test-rbtree_oset.c: New file.
23071         * MODULES.html.sh (Container data structures): New section.
23072
23073 2006-07-17  Bruno Haible  <bruno@clisp.org>
23074
23075         * m4/gl_list.m4: New file.
23076
23077 2006-07-17  Bruno Haible  <bruno@clisp.org>
23078
23079         * lib/gl_list.h: New file.
23080         * lib/gl_list.c: New file.
23081         * lib/gl_array_list.h: New file.
23082         * lib/gl_array_list.c: New file.
23083         * lib/gl_carray_list.h: New file.
23084         * lib/gl_carray_list.c: New file.
23085         * lib/gl_linked_list.h: New file.
23086         * lib/gl_linked_list.c: New file.
23087         * lib/gl_anylinked_list1.h: New file.
23088         * lib/gl_anylinked_list2.h: New file.
23089         * lib/gl_avltree_list.h: New file.
23090         * lib/gl_avltree_list.c: New file.
23091         * lib/gl_anyavltree_list1.h: New file.
23092         * lib/gl_anyavltree_list2.h: New file.
23093         * lib/gl_rbtree_list.h: New file.
23094         * lib/gl_rbtree_list.c: New file.
23095         * lib/gl_anyrbtree_list1.h: New file.
23096         * lib/gl_anyrbtree_list2.h: New file.
23097         * lib/gl_anytree_list1.h: New file.
23098         * lib/gl_anytree_list2.h: New file.
23099         * lib/gl_linkedhash_list.h: New file.
23100         * lib/gl_linkedhash_list.c: New file.
23101         * lib/gl_anyhash_list1.h: New file.
23102         * lib/gl_anyhash_list2.h: New file.
23103         * lib/gl_avltreehash_list.h: New file.
23104         * lib/gl_avltreehash_list.c: New file.
23105         * lib/gl_rbtreehash_list.h: New file.
23106         * lib/gl_rbtreehash_list.c: New file.
23107         * lib/gl_anytreehash_list1.h: New file.
23108         * lib/gl_anytreehash_list2.h: New file.
23109
23110         * lib/gl_oset.h: New file.
23111         * lib/gl_oset.c: New file.
23112         * lib/gl_array_oset.h: New file.
23113         * lib/gl_array_oset.c: New file.
23114         * lib/gl_avltree_oset.h: New file.
23115         * lib/gl_avltree_oset.c: New file.
23116         * lib/gl_rbtree_oset.h: New file.
23117         * lib/gl_rbtree_oset.c: New file.
23118         * lib/gl_anytree_oset.h: New file.
23119
23120 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23121
23122         * m4/mkancesdirs.m4: New file.
23123         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
23124         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
23125         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
23126         it.
23127
23128 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23129
23130         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
23131         * lib/mkancesdirs.h: New files.
23132         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
23133         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
23134         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
23135         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
23136         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
23137         callers changed.  Revamp internals significantly, by not
23138         attempting to create directories that are temporarily more
23139         permissive than the final results.  Do not attempt to use
23140         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
23141         This removes some race conditions, fixes some bugs, and simplifies
23142         things.  Use new dirchownmod function to do owner and mode changes.
23143         * lib/mkdir-p.h: Likewise.
23144         * lib/modechange.c (octal_to_mode): New function.
23145         (struct mode_change): New member mentioned.
23146         (make_node_op_equals): New arg mentioned.  All callers changed.
23147         (mode_compile): Keep track of which mode bits the user has explicitly
23148         mentioned.
23149         (mode_adjust): New arg DIR, so that we implement the X op correctly.
23150         New arg PMODE_BITS, to keep track of which mode bits the user
23151         mentioned; it treats S_ISUID and S_ISGID speciall.
23152         All callers changed.
23153         * lib/modechange.h: Likewise.
23154
23155 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23156
23157         * MODULES.html.sh: Add mkancestors.
23158         * modules/mkancesdirs: New module.
23159         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
23160         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
23161         The chdir-safer and afs files are now orphans; I'll remove them
23162         unless someone speaks up.
23163         Add lib/dirchownmod.c, lib/dirchownmod.h.
23164         (Depends-on): Remove alloca, chown, save-cwd, dirname.
23165         Add lchown, mkancesdirs.
23166         (Maintainer): Add self.
23167
23168 2006-07-15  Karl Berry  <karl@gnu.org>
23169
23170         * gnulib-tool: help message wording/arrangement.
23171
23172 2006-07-14  Simon Josefsson  <jas@extundo.com>
23173
23174         * doc/gnulib.texi (Libtool and Windows): New section.
23175
23176 2006-07-12  Simon Josefsson  <jas@extundo.com>
23177
23178         * modules/gendocs (License): Fix license, approved by Karl.
23179
23180 2006-07-12  Eric Blake  <ebb9@byu.net>
23181
23182         * MODULES.html.sh: Add gendocs.
23183
23184 2006-07-11  Eric Blake  <ebb9@byu.net>
23185
23186         * modules/fdl: New module, to install doc/fdl.texi.
23187         * MODULES.html.sh: Add new section for documentation modules.
23188         * gnulib-tool: Avoid space-tab.
23189         (--doc-base): New option, to manage files from doc.
23190
23191 2006-07-11  Eric Blake  <ebb9@byu.net>
23192
23193         * m4/absolute-header.m4: Fix comments to match recent change.
23194
23195 2006-07-11  Eric Blake  <ebb9@byu.net>
23196
23197         * gnulib-tool: List --doc-base before --tests-base.
23198
23199 2006-07-11  Derek R. Price  <derek@ximbiot.com>
23200
23201         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
23202
23203 2006-07-11  Bruno Haible  <bruno@clisp.org>
23204
23205         * README: Mention where to put documentation.
23206
23207 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23208
23209         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
23210
23211 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23212
23213         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
23214         to stdint.m4.
23215
23216 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23217
23218         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
23219         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
23220         "no/such/file/stdint.h" when there is no such file, so that
23221         the resulting C code can be parsed by dodgy compilers.
23222         Problems reported by Bob Proulx.
23223
23224 2006-07-10  Derek R. Price  <derek@ximbiot.com>
23225
23226         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
23227         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
23228         macros into the GNU _D_EXACT_NAMLEN.
23229         * lib/savedir.c:  Likewise.
23230         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
23231
23232 2006-07-10  Derek R. Price  <derek@ximbiot.com>
23233         and Paul Eggert  <eggert@cs.ucla.edu>
23234
23235         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
23236         * m4/savedir.m4:
23237         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
23238         macros into the GNU _D_EXACT_NAMLEN.
23239
23240 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23241
23242         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
23243         around the absolute name, to work around a problem with the HP-UX
23244         11.23 native C compiler, reported by Bob Proulx.
23245
23246 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23247
23248         * doc/maintain.texi, make-stds.texi: Sync from
23249         <http://savannah.gnu.org/projects/gnustandards>.
23250
23251 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23252
23253         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
23254
23255 2006-07-09  Jim Meyering  <jim@meyering.net>
23256
23257         * m4/glob.m4: Remove a doubled word in a comment.
23258
23259 2006-07-09  Jim Meyering  <jim@meyering.net>
23260
23261         * lib/argp-pv.c: Remove a doubled word in a comment.
23262         * lib/check-version.c (check_version): Likewise.
23263         * lib/javacomp.c (compile_java_class): Likewise.
23264
23265 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23266
23267         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
23268         for the benefit of people using Autoconf 2.60.  If you want to
23269         support older Autoconf versions you can copy m4/onceonly_2_57.m4
23270         (or m4/onceonly.m4, if pre-2.57) manually.
23271
23272 2006-07-08  Jim Meyering  <jim@meyering.net>
23273
23274         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
23275         comment.
23276         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
23277         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
23278         comment.
23279
23280 2006-07-08  Jim Meyering  <jim@meyering.net>
23281
23282         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
23283
23284 2006-07-07  Simon Josefsson  <jas@extundo.com>
23285
23286         * tests/test-crc.c: Change expected crc value, the test vector
23287         were probably computed using the old broken crc.c?
23288
23289 2006-07-06  Simon Josefsson  <jas@extundo.com>
23290
23291         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
23292         now the canonical place for the M4 file).
23293
23294         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
23295         from the sys_socket dependency now.
23296
23297         * modules/inet_pton (Files): Ditto.
23298
23299         * modules/inet_ntop (Files): Ditto.
23300
23301 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
23302
23303         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
23304         not gl_PREREQ_GETUSERSHELL.
23305
23306 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23307
23308         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
23309         with only one argument, for Autoconf 2.60.
23310         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
23311         expand to nothing, so add a shell command to avoid syntax error.
23312         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
23313
23314 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23315
23316         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
23317
23318 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23319
23320         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
23321         no longer needed.  Check for isblank decl.
23322         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
23323         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
23324         of existence.
23325
23326 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23327
23328         * lib/getloadavg.c: Use __VMS, not VMS.
23329         * lib/getopt.c: Likewise.
23330         * lib/getpagesize.h: Likewise.
23331         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
23332         and probably does not work.
23333
23334 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23335
23336         * lib/.cppi-disable: Add wcwidth.
23337         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
23338         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
23339         (ISGRAPH): Remove.  All uses changed to isgraph.
23340         (FOLD) [!defined _LIBC]: Remove special case.
23341         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
23342         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
23343         HAVE_ISBLANK.
23344         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
23345         case.
23346
23347 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
23348
23349         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
23350         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
23351         brackets.  Other minor changes to suppress some compiler
23352         warnings.
23353
23354 2006-07-06  Derek R. Price  <derek@ximbiot.com>
23355         and Paul Eggert  <eggert@cs.ucla.edu>
23356
23357         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
23358         of invoking obsolescent AC_HEADER_DIRENT macro.
23359         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23360         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
23361         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23362         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23363         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
23364         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
23365         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
23366         * m4/readdir.m4: Remove; no longer needed.
23367
23368 2006-07-06  Derek R. Price  <derek@ximbiot.com>
23369         and Paul Eggert  <eggert@cs.ucla.edu>
23370
23371         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
23372         Don't worry about this obsolete case any more.
23373         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
23374         directories.
23375         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
23376         worry about this obsolete case any more.
23377         * lib/fts.c: Likewise.
23378         * lib/getcwd.c: Likewise.
23379         * lib/glob.h: Likewise.
23380         * lib/savedir.c: Likewise.
23381
23382 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
23383
23384         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
23385         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
23386         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
23387         needed.
23388         All uses removed.
23389         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
23390         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
23391         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
23392         needed.
23393         * m4/getdate.m4 (gl_GETDATE): Likewise.
23394         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
23395         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
23396         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23397         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
23398         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
23399         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
23400         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
23401         needed.
23402
23403 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
23404
23405         * lib/memcasecmp.c: Include <limits.h>.
23406         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
23407         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
23408         Don't assume isdigit succeeds only on '0' through '9'.
23409
23410 2006-07-05  Eric Blake  <ebb9@byu.net>
23411
23412         * modules/getaddrinfo (Depends-on): Add snprintf.
23413
23414 2006-07-05  Eric Blake  <ebb9@byu.net>
23415
23416         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
23417         to avoid 'header present but could not be compiled' on cygwin.
23418
23419 2006-07-05  Eric Blake  <ebb9@byu.net>
23420
23421         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
23422         missing from netdb.h.
23423         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
23424
23425 2006-07-05  Derek R. Price  <derek@ximbiot.com>
23426
23427         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
23428         no longer needed.
23429         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
23430         * m4/getdate.m4 (gl_GETDATE): Likewise.
23431         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
23432         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
23433         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23434         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
23435         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
23436
23437 2006-07-05  Derek R. Price  <derek@ximbiot.com>
23438
23439         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
23440         All uses of is_space replaced by isspace.
23441         * lib/exit.h: Don't talk about STDC_HEADERS.
23442         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
23443         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
23444         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
23445         replaced by isprint etc.
23446         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
23447         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
23448         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
23449         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
23450         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
23451         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
23452
23453 2006-07-05  Bruno Haible  <bruno@clisp.org>
23454
23455         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
23456         the function exists, before testing against AIX.
23457         Reported by Martin Lambers <marlam@marlam.de>.
23458
23459 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
23460
23461         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
23462         From Mark D. Baushke.
23463
23464 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
23465
23466         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
23467         to the absolute name, not just one, to bypass Sun C 5.8's
23468         "warning: #include of /usr/include/... may be non-portable".
23469
23470 2006-07-04  Eric Blake  <ebb9@byu.net>
23471
23472         * modules/dirname-tests: New test module.
23473         * tests/test-dirname.c: New file, replacing dirname.c
23474         TEST_DIRNAME section that was recently deleted.
23475
23476 2006-07-04  Bruno Haible  <bruno@clisp.org>
23477
23478         Assume ANSI C header files and <ctype.h> functions.
23479         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
23480         (mbsnwidth): Use isprint, iscntrl instead.
23481
23482 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23483
23484         Merge from coreutils.
23485         * MODULES.html.sh: Add xstrtold.
23486         * modules/xstrtold: New file.
23487         * modules/cycle-check (Files): Add lib/same-inode.h.
23488         * modules/dirname (Files): Add m4/double-slash-root.m4.
23489         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
23490         * modules/mkdir-p (Files): Add lib/same-inode.h.
23491         * modules/same (Files): Add lib/same-inode.h.
23492
23493 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23494
23495         * m4/absolute-header.m4: Renamed from full-header-path.m4.
23496         This is to keep the terminology clean; POSIX talks about
23497         "absolute pathnames", not "full pathnames", but the GNU
23498         Coding Standards say to use "path" for something else;
23499         so use "absolute" to keep both sides happy.
23500         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
23501         Set gl_absolute_header, not gl_full_header_path.
23502         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
23503         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
23504         All uses changed.
23505
23506         Merge from coreutils.
23507
23508         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
23509
23510         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
23511         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
23512         want to require the building of c-strtod.o.
23513         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
23514         needs -lm directly.
23515         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
23516
23517         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
23518
23519         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
23520         --as-needed option if available.  Problem reported by Albert Chin in
23521         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
23522         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
23523         cc merely issues a bunch of annoying warnings for --as-needed
23524         (this problem was reported by Bob Proulx).  Also, try linking with
23525         -lm to detect a bug in binutils 2.16 (this problem was reported
23526         by Ralf Wildenhues).
23527
23528         2006-06-18  Jim Meyering  <jim@meyering.net>
23529
23530         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
23531         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
23532         macro.
23533         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
23534         also check for glibc-2.4's abort-inducing bug.
23535
23536         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
23537         Low-probability clean-up should be to use rmdir to get rid of
23538         the just-created directory, not unlink.
23539
23540         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
23541         configure fail, and request a bug report to inform us about it.
23542         Add a comment that, barring reports to the contrary, in 2007 we'll
23543         assume ftruncate is universally available.
23544
23545         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
23546
23547         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
23548
23549         2006-03-12  Jim Meyering  <jim@meyering.net>
23550
23551         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
23552         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
23553         * m4/same.m4 (gl_SAME): Likewise.
23554         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
23555
23556         2006-03-11  Eric Blake  <ebb9@byu.net>
23557
23558         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
23559         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
23560         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
23561         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
23562
23563 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23564
23565         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
23566         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
23567         reported by Mark D. Baushke, one in
23568         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
23569
23570         Merge from coreutils.
23571
23572         * lib/.cppi-disable: Add stdint_.h.
23573         * lib/.cvsignore: Add stdint.h.
23574
23575         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
23576
23577         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
23578         both double and long double versions.
23579         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
23580         * lib/xstrtold.c: New file.
23581         * lib/xstrtod.h (xstrtold): New decl.
23582
23583         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
23584
23585         * lib/filemode.c (setst): Remove.
23586         (strmode): Rewrite to avoid setst.  This makes the code shorter,
23587         (arguably) clearer, and the generated code is a bit smaller on my
23588         Debian GNU/Linux stable x86 host.
23589
23590         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
23591
23592         * lib/filemode.c: Include "filemode.h" first, to test the interface.
23593         Assume that filemode.h includes sys/types.h and sys/stat.h.
23594         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
23595         (ftypelet): Reorder to put common cases first, for efficiency.
23596         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
23597         to do 'M'.
23598         (strmode): Renamed from mode_string, and now stores 12 bytes instead
23599         of 10, for compatibility with FreeBSD.  All callers changed.
23600         (filemodestring): Now stores 12 bytes instead of 10, and sets file
23601         types that can't be deduced solely from st_mode.  First arg is now a
23602         const pointer.
23603         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
23604         (strmode): Renamed from mode_string.
23605         (filemodestring): New decl.
23606         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
23607         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
23608         needed.
23609         (S_ISPORT, S_ISWHT): New macros, if not already defined.
23610
23611         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
23612
23613         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
23614         fsusage.h now does that.  Include fsusage.h first, to test interface.
23615         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
23616         at most one method (the old code could have generated decls that
23617         didn't conform to C89, not that this was ever exercised).
23618         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
23619
23620         2006-03-19  Jim Meyering  <jim@meyering.net>
23621
23622         Work even in a chroot where d_ino values for entries in "/"
23623         don't match the stat.st_ino values for the same names.
23624         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
23625         number, iterate through all entries again, using lstat instead.
23626         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
23627         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
23628
23629         * lib/getcwd.c (__getcwd): Clarify a comment.
23630         Use memcpy in place of a call to strcpy.
23631
23632         2006-03-12  Jim Meyering  <jim@meyering.net>
23633
23634         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
23635         matches that of the current directory (which we're about to chdir ".."
23636         out of), then save the dev-ino of the parent, instead.
23637
23638         * lib/same-inode.h (SAME_INODE): New file/macro.
23639         * lib/chdir-safer.c (SAME_INODE): Remove definition.
23640         Include "same-inode.h", instead.
23641         * lib/same.c: Likewise.
23642         * lib/cycle-check.h: Include "same-inode.h".
23643         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
23644         * lib/cycle-check.c (SAME_INODE): Remove definition.
23645         * lib/root-dev-ino.h: Include "same-inode.h".
23646
23647         2006-03-11  Eric Blake  <ebb9@byu.net>
23648
23649         * lib/same.c (same_name): s/base_name/last_component/
23650         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
23651         * lib/filenamecat.c (file_name_concat): Likewise.
23652
23653         2006-03-11  Eric Blake  <ebb9@byu.net>,
23654                     Paul Eggert  <eggert@cs.ucla.edu>
23655
23656         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
23657         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
23658         drive prefix.
23659         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
23660         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
23661         (last_component): New method.
23662         * lib/dirname.c (dir_len): Determine when drive letters need a
23663         subsequent slash.  Preserve // when it is special.
23664         (dir_name): Don't append dot when drive letter is absolute.
23665         [TEST_DIRNAME]: Move into a full-blown gnulib test.
23666         * lib/basename.c (base_name): New semantics - malloc the result.
23667         Preserve // when it is special.  Preserve relative files that look
23668         like drive letters.
23669         (base_len): Preserve // when it is special.
23670         (last_component): New method, similar to old base_name semantics.
23671         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
23672         base_name.  Strip redundant slashes from ///.
23673
23674 2006-07-03  Jim Meyering  <jim@meyering.net>
23675
23676         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
23677         macro is used before the first cycle_check call.
23678
23679 2006-07-03  Eric Blake  <ebb9@byu.net>
23680
23681         * modules/dirname (Depends-on): Add xstrndup.
23682
23683 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
23684
23685         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
23686         test cases, so that config.log is a bit easier to follow.
23687
23688 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
23689
23690         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
23691         both are 64 bits, since this seems to be the tradition, and this
23692         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
23693         we ever run into a host that prefers long long to long in this
23694         case, we'll need another configure-time test.  Problem reported by
23695         Jim Meyering.
23696
23697 2006-07-02  Eric Blake  <ebb9@byu.net>
23698
23699         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
23700
23701 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
23702
23703         * modules/inttypes (Depends-on): No longer depends on stdint.
23704         * modules/stdint (Description): Say more about assumptions.
23705         Say that the fast types might differ.  Say macros are used.
23706         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
23707         (Makefile.am): Revise list of substituted symbols to match
23708         new stdint.m4.
23709         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
23710         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
23711         * tests/test-stdint.c (verify_same_types)
23712         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
23713         the code conforms to C99/C89.
23714         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
23715         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
23716
23717 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
23718
23719         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
23720         but fix a bug, by requiring at least 64 bits.
23721         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
23722         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
23723         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
23724         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
23725
23726         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
23727         changes.  Make 2.59 a prerequisite.  Check and substitute for
23728         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
23729         inttypes.h.  Do not use special include files; just use the
23730         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
23731         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
23732         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
23733         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
23734         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
23735         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
23736         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
23737         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
23738         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
23739         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
23740         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
23741         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
23742         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
23743         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
23744         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
23745         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
23746         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
23747         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
23748         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
23749         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
23750         WINT_MAX.  Check for C99 conformance more strictly, by detecting
23751         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
23752         not check for things that C99 does not require, e.g., int8_t.  If
23753         a test isn't needed unless <stdint.h> isn't working, and is
23754         unlikely to be needed for any other reason, then don't do it
23755         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
23756         size_t, since we assume C89 freestanding at least.  Do not check
23757         for sig_atomic_t, wchar_t, or wint_t, since the code now does
23758         the right thing even if the types are not defined.  Instead use:
23759         (gl_STDINT_TYPE_PROPERTIES): New macro.
23760         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
23761         testing whether <sys/types.h> clashes, as Autoconf does this for
23762         us now.  All uses removed.
23763         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
23764         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
23765         (gl_CHECK_TYPE_SAME):
23766         Remove; no longer needed.
23767         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
23768         exists, since we'll return 0 anyway in that case.
23769         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
23770
23771 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
23772
23773         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
23774         possible collision with system files.
23775         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
23776         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
23777         WCHAR_MIN and WCHAR_MAX in this case.
23778         (<stddef.h>): Do not include; no longer needed.
23779         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
23780         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
23781         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
23782         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
23783         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
23784         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
23785         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
23786         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
23787         !defined(__c99))]: Include in this case too, since it's harmless
23788         now.
23789         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
23790         dangerous to do so.
23791         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
23792         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
23793         (_STDINT_MIN, _STDINT_MAX): New macros.
23794         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
23795         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
23796         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
23797         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
23798         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
23799         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
23800         macros, not typedefs; this simplifies things quite a bit.
23801         Use long int for all types narrower than int64_t.
23802         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
23803         Define in terms of long long int or int64_t or long int,
23804         not int64_t or int32_t.  This saves some compile-time testing.
23805         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
23806         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
23807         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
23808         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
23809         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
23810         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
23811         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
23812         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
23813         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
23814         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
23815         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
23816         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
23817         undef any previous version and define our own version, for
23818         simplicity and consistency with the new macros for types.
23819         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
23820         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
23821         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
23822         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
23823         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
23824         @WINT_T_SUFFIX@ to keep things simple here.
23825         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
23826         Simplify by assuming typical 8/16/32/64 host, since we're
23827         already doing that elsewhere anyway.
23828         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
23829         and assume long long int is 64 bits if available.  This
23830         speeds up 'configure'.
23831
23832 2006-07-01  Eric Blake  <ebb9@byu.net>
23833
23834         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
23835         Reported by Andreas Buening.
23836
23837 2006-07-01  Eric Blake  <ebb9@byu.net>
23838
23839         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
23840
23841 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
23842
23843         * lib/getaddrinfo.c: fixed typo
23844
23845 2006-06-29  Jim Meyering  <jim@meyering.net>
23846
23847         * modules/strftime (Maintainer): Add my name, since with the
23848         FPRINTFTIME changes strftime.c has forked from glibc.
23849
23850 2006-06-29  Eric Blake  <ebb9@byu.net>
23851
23852         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
23853
23854 2006-06-29  Eric Blake  <ebb9@byu.net>
23855
23856         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
23857
23858 2006-06-29  Eric Blake  <ebb9@byu.net>
23859
23860         * lib/stat_.h: New file.
23861
23862 2006-06-29  Eric Blake  <ebb9@byu.net>
23863
23864         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
23865         unused static function.
23866
23867 2006-06-29  Eric Blake  <ebb9@byu.net>
23868
23869         * doc/functions.texi (Function Portability): Document missing lstat
23870         on mingw.
23871
23872 2006-06-29  Eric Blake  <ebb9@byu.net>
23873
23874         * MODULES.html.sh: Add sys_stat.
23875         * modules/sys_stat: New module.
23876         * modules/mkstemp (Depends-on): Add sys_stat.
23877
23878 2006-06-29  Derek R. Price  <derek@ximbiot.com>
23879
23880         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
23881
23882 2006-06-29  Derek R. Price  <derek@ximbiot.com>
23883
23884         * m4/c-bs-a.m4: Removed.
23885
23886 2006-06-29  Derek R. Price  <derek@ximbiot.com>
23887
23888         * lib/strftime.c: Assume strftime() exists.
23889
23890 2006-06-29  Derek Price  <derek@ximbiot.com>
23891
23892         * modules/c-bs-a: Removed - \a is C89.
23893         * MODULES.html.sh: Remove c-bs-a.
23894
23895 2006-06-29  Bruno Haible  <bruno@clisp.org>
23896
23897         * modules/wcwidth (License): Change to LGPL.
23898
23899 2006-06-28  Simon Josefsson  <jas@extundo.com>
23900
23901         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
23902         on _WIN32.
23903
23904         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
23905         getnameinfo.
23906
23907 2006-06-28  Simon Josefsson  <jas@extundo.com>
23908
23909         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
23910
23911 2006-06-28  Simon Josefsson  <jas@extundo.com>
23912
23913         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
23914         functions there.  It will succeed on Windows XP, but on Windows
23915         2000 and (presumably) earlier, it will fail, and use the internal
23916         re-implementation.
23917         (use_win32_p): New function.
23918         (getaddrinfo): Use strtoul on servname, to support numeric ports.
23919         Support AI_NUMERICSERV to disable getservbyname.
23920         (getnameinfo): New function, only supports
23921         NI_NUMERICHOST|NI_NUMERICSERV for now.
23922
23923         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
23924         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
23925         getnameinfo.
23926
23927 2006-06-28  Eric Blake  <ebb9@byu.net>
23928
23929         * modules/wcwidth: New file.
23930         * modules/mbchar (Depends-on): Add wcwidth.
23931         * modules/mbswidth (Depends-on): Add wcwidth.
23932         * MODULES.html.sh: Add wcwidth.
23933
23934 2006-06-28  Eric Blake  <ebb9@byu.net>
23935
23936         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
23937         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
23938
23939 2006-06-28  Eric Blake  <ebb9@byu.net>
23940
23941         * lib/xvasprintf.h: Fix comments.
23942
23943 2006-06-28  Eric Blake  <ebb9@byu.net>
23944
23945         * lib/mbchar.h (wcwidth): Include wcwidth.h.
23946         * lib/mbswidth.c (wcwidth): Move from here...
23947         * lib/wcwidth.h: ...to this new file.
23948
23949 2006-06-28  Derek R. Price  <derek@ximbiot.com>
23950
23951         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
23952
23953         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
23954         it's obsolete.
23955         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
23956
23957 2006-06-28  Derek R. Price  <derek@ximbiot.com>
23958
23959         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
23960         Autoconf 2.60 says this stuff was obsolete.
23961
23962 2006-06-28  Bruno Haible  <bruno@clisp.org>
23963
23964         * modules/wcwidth (Files): Add m4/wchar_t.m4.
23965
23966 2006-06-28  Bruno Haible  <bruno@clisp.org>
23967
23968         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
23969         gt_TYPE_WCHAR_T.
23970
23971 2006-06-28  Bruno Haible  <bruno@clisp.org>
23972
23973         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
23974         declaration for wcwidth.
23975         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
23976
23977 2006-06-28  Bruno Haible  <bruno@clisp.org>
23978
23979         * lib/mkdtemp.c [MINGW]: Include <io.h>.
23980         (mkdir): Define using _mkdir.
23981
23982 2006-06-28  Bruno Haible  <bruno@clisp.org>
23983
23984         * lib/getaddrinfo.h: Fix POSIX URL.
23985         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
23986         _WIN32.
23987         (use_win32_p): Make static.
23988         (getaddrinfo): Reject service name if it is empty or does not consist
23989         solely of decimal digits, or if its value is > 65535.
23990         (getnameinfo): Remove useless casts.
23991
23992 2006-06-27  Simon Josefsson  <jas@extundo.com>
23993
23994         * modules/sys_select: New file, suggested by Bruno Haible, Paul
23995         Eggert and Martin Lambers.
23996
23997 2006-06-27  Simon Josefsson  <jas@extundo.com>
23998
23999         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
24000         Eggert and Martin Lambers.
24001
24002 2006-06-27  Bruno Haible  <bruno@clisp.org>
24003
24004         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
24005         result to 0, not to empty.
24006         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
24007
24008 2006-06-27  Bruno Haible  <bruno@clisp.org>
24009
24010         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
24011
24012 2006-06-26  Simon Josefsson  <jas@extundo.com>
24013
24014         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
24015         present.
24016
24017 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
24018
24019         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
24020         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
24021         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
24022
24023 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
24024
24025         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
24026
24027 2006-06-26  Bruno Haible  <bruno@clisp.org>
24028
24029         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
24030
24031 2006-06-26  Bruno Haible  <bruno@clisp.org>
24032
24033         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
24034
24035 2006-06-26  Bruno Haible  <bruno@clisp.org>
24036
24037         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
24038         SGI C compiler in pre-C99 mode.
24039         Suggested by Mark D. Baushke and Larry Jones.
24040
24041 2006-06-26  Bruno Haible  <bruno@clisp.org>
24042
24043         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
24044         WCHAR_MAX.
24045         Reported by Mark D. Baushke and Larry Jones.
24046
24047 2006-06-26  Bruno Haible  <bruno@clisp.org>
24048
24049         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
24050         in pre-C99 mode.
24051         Suggested by Mark D. Baushke and Larry Jones.
24052
24053 2006-06-23  Simon Josefsson  <jas@extundo.com>
24054             Bruno Haible  <bruno@clisp.org>
24055
24056         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
24057         Emit mostlyclean-local rule.
24058         (func_emit_tests_Makefile_am): Likewise.
24059         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
24060
24061 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
24062
24063         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
24064
24065 2006-06-23  Bruno Haible  <bruno@clisp.org>
24066
24067         * tests/test-stdint.c: Update to match ISO C 99 Technical
24068         Corrigendum 1.
24069
24070 2006-06-23  Bruno Haible  <bruno@clisp.org>
24071
24072         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
24073
24074 2006-06-23  Bruno Haible  <bruno@clisp.org>
24075
24076         * lib/stdint_.h: Treat IRIX like OpenBSD.
24077
24078 2006-06-23  Bruno Haible  <bruno@clisp.org>
24079
24080         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
24081         ISO C 99 Technical Corrigendum 1.
24082
24083 2006-06-22  Simon Josefsson  <jas@extundo.com>
24084
24085         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
24086         MinGW.
24087
24088 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24089
24090         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
24091         needed.  Some compiler complained about some of them.  Problem reported
24092         by Larry Jones in
24093         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
24094
24095 2006-06-21  Simon Josefsson  <jas@extundo.com>
24096
24097         * tests/test-getaddrinfo.c: New file.
24098
24099         * modules/getaddrinfo-tests: New file.
24100
24101         * MODULES.html.sh: Add inet_pton.
24102
24103         * modules/inet_pton: New file.
24104
24105 2006-06-21  Simon Josefsson  <jas@extundo.com>
24106
24107         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
24108         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
24109         of using the (limited) gnulib implementation on Windows XP.
24110
24111         * m4/inet_pton.m4: New file.
24112
24113 2006-06-21  Simon Josefsson  <jas@extundo.com>
24114
24115         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
24116         variable.
24117
24118         * lib/socket_.h: Don't define WINVER.
24119
24120         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
24121         slightly modified to work in gnulib.
24122
24123 2006-06-21  Simon Josefsson  <jas@extundo.com>
24124
24125         * doc/gnulib.texi (Windows sockets): Add.
24126
24127 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
24128
24129         * lib/read-file.c (fread_file): Start with buffer allocation of
24130         0 bytes rather than 1 byte; this simplifies the code.
24131         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
24132         code to free buffer and save/restore errno.
24133         (internal_read_file): Remove unused local.
24134
24135 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
24136
24137         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
24138         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
24139         Problem reported by Denis Excoffier in
24140         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
24141
24142 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24143
24144         * modules/sys_socket, modules/socklen: Include sys/types since
24145         FreeBSD 4.x's sys/socket.h needs it.
24146
24147 2006-06-19  Simon Josefsson  <jas@extundo.com>
24148
24149         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
24150
24151 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
24152
24153         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
24154
24155 2006-06-19  Bruno Haible  <bruno@clisp.org>
24156
24157         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
24158         and FULL_PATH_INTTYPES_H in angle brackets.
24159         Reported by Mark D. Baushke <mdb@gnu.org>.
24160
24161 2006-06-17  Eric Blake  <ebb9@byu.net>
24162
24163         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
24164         errno.
24165
24166 2006-06-17  Bruno Haible  <bruno@clisp.org>
24167
24168         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
24169         <sys/inttypes.h>.
24170
24171 2006-06-17  Bruno Haible  <bruno@clisp.org>
24172
24173         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
24174         whether errno is declared. Assume <errno.h> declares errno.
24175
24176 2006-06-17  Bruno Haible  <bruno@clisp.org>
24177
24178         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
24179
24180 2006-06-17  Bruno Haible  <bruno@clisp.org>
24181
24182         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
24183         problem on Solaris 2.5.1.
24184
24185 2006-06-16  Eric Blake  <ebb9@byu.net>
24186
24187         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
24188         * lib/unicodeio.c [!defined errno]: Likewise.
24189         * lib/strtol.c [!defined errno]: Likewise.
24190         * lib/strtod.c [!defined errno]: Likewise.
24191
24192 2006-06-15  Eric Blake  <ebb9@byu.net>
24193
24194         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
24195
24196 2006-06-15  Eric Blake  <ebb9@byu.net>
24197
24198         * config/srclist.txt (ssize_t.m4): Lose sync.
24199
24200 2006-06-15  Bruno Haible  <bruno@clisp.org>
24201
24202         * modules/stdint (Files): Include m4/full-header-path.m4,
24203         m4/size_max.m4, m4/wchar_t.m4.
24204         (Makefile.am): Many more substitutions.
24205         * modules/stdint-tests: New file.
24206         * tests/test-stdint.c: New file.
24207
24208 2006-06-15  Bruno Haible  <bruno@clisp.org>
24209
24210         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
24211         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
24212         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
24213         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
24214         gl_CHECK_TYPE_SAME): New macros.
24215
24216 2006-06-15  Bruno Haible  <bruno@clisp.org>
24217
24218         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
24219
24220 2006-06-15  Bruno Haible  <bruno@clisp.org>
24221
24222         * lib/stdint_.h: Rewritten to be fully auto-configured.
24223         Fixes bug on HP-UX/IA64.
24224
24225 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
24226
24227         * lib/getdate.y (__attribute__): Don't define if already defined.
24228         Problem reported by Larry Jones.
24229         * lib/utimens.c (__attribute__): Likewise.
24230
24231 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
24232
24233         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
24234         reported by Andreas Schwab.
24235
24236 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24237             Bruno Haible  <bruno@clisp.org>
24238
24239         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
24240         check for the declaration of strnlen and a run test that exposes the
24241         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
24242         rpl_strndup.
24243
24244 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24245             Bruno Haible  <bruno@clisp.org>
24246
24247         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
24248
24249 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24250
24251         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
24252         compile test, for Tru64 4.0D.
24253
24254 2006-05-28  Karl Berry  <karl@gnu.org>
24255
24256         * config/srclist.txt (printf-args.c): lose sync.
24257
24258 2006-05-26  Martin Lambers  <marlam@marlam.de>
24259
24260         * lib/getpass.c: Updates the test for the native W32 API, and adds
24261         missing includes, thus fixing compilation warnings.
24262
24263 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24264
24265         * lib/exclude.c (exclude_fnmatch): New function.
24266         (excluded_file_name): Call exclude_fnmatch.
24267         * lib/exclude.h (excluded_file_name): New prototype
24268
24269 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
24270
24271         * lib/tempname.c (small_open, large_open): New macros.
24272         (__open, __open64) [!_LIBC]: Remove.
24273         (__gen_tempname): Use small_open and large_open instead of __open
24274         and __open64.  This fixes a portability bug on HP-UX 11.11i
24275         reported by Simon Wing-Tang in
24276         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
24277
24278 2006-05-24  Bruno Haible  <bruno@clisp.org>
24279
24280         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
24281         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
24282         Reported by Thorsten Maerz <torte@netztorte.de> via
24283         Aaron Stone <aaron@serendipity.cx>.
24284
24285 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24286
24287         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
24288         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
24289         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
24290         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
24291         not really conditional on the cache.
24292         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
24293
24294 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24295
24296         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
24297         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
24298         (my_usleep): Don't mishandle maximum value.
24299
24300 2006-05-19  Jim Meyering  <jim@meyering.net>
24301
24302         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
24303
24304 2006-05-17  Bruno Haible  <bruno@clisp.org>
24305
24306         Cygwin portability.
24307         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
24308
24309 2006-05-17  Bruno Haible  <bruno@clisp.org>
24310
24311         * lib/stdint_.h: Fix recognition of Cygwin.
24312
24313 2006-05-15  Bruno Haible  <bruno@clisp.org>
24314
24315         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
24316         on libtool patch by Ralf Wildenhues.
24317
24318 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
24319
24320         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
24321         test for C99 conformance; (bool) 0.5 is an integer constant
24322         expression, but (bool) -0.5 is not.  Problem reported by Fedor
24323         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
24324
24325 2006-05-11  Simon Josefsson  <jas@extundo.com>
24326
24327         * m4/xvasprintf.m4: Fix obvious typo.
24328
24329 2006-05-11  Jim Meyering  <jim@meyering.net>
24330
24331         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
24332         James Lemley.
24333
24334 2006-05-10  Simon Josefsson  <jas@extundo.com>
24335
24336         * lib/md4.c: Typo fix, update copyright years.
24337         (K1, K2): Don't use L because it turn computations into 64-bit on
24338         64-bit platforms.
24339
24340 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
24341
24342         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
24343         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
24344         unwanted sign propagation, e.g., on hosts with 64-bit int.
24345         There still are some problems with reeelly weird theoretical hosts
24346         (e.g., 33-bit int) but it's not worth worrying about now.
24347         * lib/sha1.c (rol): Likewise.
24348         (K1, K2, K3, K4): Remove unnecessary L suffix.
24349
24350 2006-05-10  Bruno Haible  <bruno@clisp.org>
24351
24352         * lib/des.c: Cast to avoid warnings.
24353
24354 2006-05-09  Bruno Haible  <bruno@clisp.org>
24355
24356         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
24357         (Depends-on): Depend also on xsize, stdarg.
24358         (configure.ac): Add gl_XVASPRINTF.
24359
24360 2006-05-09  Bruno Haible  <bruno@clisp.org>
24361
24362         * m4/xvasprintf.m4: New file.
24363
24364 2006-05-09  Bruno Haible  <bruno@clisp.org>
24365
24366         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
24367         (EOVERFLOW): Define fallback value.
24368         (xstrcat): New function.
24369         (xvasprintf): Recognize the special case of a string concatenation.
24370
24371 2006-05-08  Eric Blake  <ebb9@byu.net>
24372
24373         * gnulib-tool (func_version): Base copyright year on CVS date.
24374         (func_emit_copyright_notice): New function.
24375         (func_emit_lib_Makefile_am): Use it.
24376         (func_emit_tests_Makefile_am): Likewise.
24377         (func_import): Likewise.
24378
24379 2006-05-08  Bruno Haible  <bruno@clisp.org>
24380
24381         * modules/stdarg: New file.
24382         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
24383
24384 2006-05-08  Bruno Haible  <bruno@clisp.org>
24385
24386         * m4/stdarg.m4: New file, from GNU gettext.
24387
24388 2006-05-08  Bruno Haible  <bruno@clisp.org>
24389
24390         * config/srclist.txt (build-aux/config.rpath): different from latest
24391         release.
24392
24393 2006-05-08  Bruno Haible  <bruno@clisp.org>
24394
24395         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
24396
24397 2006-05-05  Jim Meyering  <jim@meyering.net>
24398
24399         * m4/warning.m4: New file, derived from bison's file by the same name.
24400
24401 2006-05-03  Bruno Haible  <bruno@clisp.org>
24402
24403         * lib/stdint_.h: Shorter URL.
24404         * lib/inttypes.h: Likewise.
24405
24406 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24407
24408         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
24409
24410 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24411
24412         * lib/verify.h: Document the internals better.  Most of this change
24413         was written by Bruno Haible.
24414
24415 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24416
24417         * doc/verify.texi: New file, partly based on a proposal by
24418         Bruno Haible.
24419
24420 2006-05-02  Bruno Haible  <bruno@clisp.org>
24421
24422         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
24423         test from here...
24424         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
24425
24426 2006-04-29  Bruno Haible  <bruno@clisp.org>
24427
24428         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
24429         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
24430
24431 2006-04-29  Bruno Haible  <bruno@clisp.org>
24432
24433         * gnulib-tool: Make --update option actually work.
24434
24435 2006-04-29  Bruno Haible  <bruno@clisp.org>
24436
24437         * doc/gcd.texi: New file.
24438         * doc/gnulib.texi: Include it.
24439
24440 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
24441
24442         * lib/getdate.y (get_date): When adding relative date, start with the
24443         initial time, not with the result of the first mktime call.
24444
24445 2006-04-25  Bruno Haible  <bruno@clisp.org>
24446
24447         * gnulib-tool (func_import): Output the include directives in three
24448         blocks, sorted separately.
24449         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24450
24451 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
24452
24453         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
24454         to define main with arguments, for C++.  Reported by Eric Blake.
24455         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
24456         Prefer 'int main ()' to 'int main (void)', for C++.
24457         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24458         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
24459         for 'main', for C99 and C++.
24460
24461 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
24462
24463         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
24464         Don't assume that exit status -1 is valid.
24465         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24466         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24467         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
24468         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
24469         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
24470         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
24471         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
24472         functions can be used without declaring them, or that you can
24473         exit with status -1.
24474         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
24475
24476 2006-04-24  Karl Berry  <karl@gnu.org>
24477
24478         * config/srclist.txt (longdouble.m4): sync lost.
24479
24480 2006-04-24  Eric Blake  <ebb9@byu.net>
24481
24482         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
24483
24484 2006-04-24  Bruno Haible  <bruno@clisp.org>
24485
24486         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
24487         poll() implementation in AIX.
24488         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24489
24490 2006-04-24  Bruno Haible  <bruno@clisp.org>
24491
24492         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
24493         assigned exactly once.
24494
24495 2006-04-23  Claudio Fontana  <claudio@gnu.org>
24496             Bruno Haible  <bruno@clisp.org>
24497
24498         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
24499         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
24500         for AM_CPPFLAGS.
24501
24502 2006-04-23  Bruno Haible  <bruno@clisp.org>
24503
24504         * modules/copy-file: Depend on unistd.
24505         * modules/execute: Likewise.
24506         * modules/fatal-signal: Likewise.
24507         * modules/findprog: Likewise.
24508         * modules/mkdtemp : Likewise.
24509         * modules/pipe: Likewise.
24510         * modules/wait-process: Likewise.
24511
24512 2006-04-23  Bruno Haible  <bruno@clisp.org>
24513
24514         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
24515         condition was already detected.
24516         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24517
24518 2006-04-23  Bruno Haible  <bruno@clisp.org>
24519
24520         * lib/copy-file.c: Include <unistd.h> unconditionally.
24521         * lib/execute.c: Likewise.
24522         * lib/fatal-signal.c: Likewise.
24523         * lib/findprog.c: Likewise.
24524         * lib/mkdtemp.c: Likewise.
24525         * lib/pipe.h: Likewise.
24526         * lib/pipe.c: Likewise.
24527         * lib/wait-process.h: Likewise.
24528
24529 2006-04-23  Bruno Haible  <bruno@clisp.org>
24530
24531         * gnulib-tool (func_usage): Fix --import description. Document
24532         --update.
24533         (func_import): Create temporary file in a temporary directory, if
24534         --dry-run is specified. Silence errors from 'grep' when there are no
24535         m4 files in $m4dir.
24536         (func_create_testdir): Silence errors from 'grep' when there are no
24537         m4 files in $m4dir.
24538         Reported by Karl Berry <karl@freefriends.org>.
24539
24540 2006-04-20  Bruno Haible  <bruno@clisp.org>
24541
24542         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
24543         one argument, so that the code will be portable to Autoconf 2.60.
24544         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
24545         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
24546         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
24547
24548 2006-04-19  Derek Price  <derek@ximbiot.com>
24549             Eric Blake  <ebb9@byu.net>
24550
24551         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
24552         rather than "/full/path.h".  Update comment to match.  Shorten &
24553         generalize m4_translit call via AS_TR_CPP.
24554
24555 2006-04-19  Derek Price  <derek@ximbiot.com>
24556             Eric Blake  <ebb9@byu.net>
24557
24558         * lib/inttypes.h: Correct grammar in comment.
24559
24560 2006-04-18  Derek Price  <derek@ximbiot.com>
24561             Paul Eggert  <eggert@cs.ucla.edu>
24562
24563         * modules/inttypes: New file.
24564         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
24565
24566 2006-04-18  Derek Price  <derek@ximbiot.com>
24567             Paul Eggert  <eggert@cs.ucla.edu>
24568
24569         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
24570         New files.
24571
24572 2006-04-18  Derek Price  <derek@ximbiot.com>
24573             Paul Eggert  <eggert@cs.ucla.edu>
24574
24575         * lib/inttypes.h: New file.
24576         * lib/strtoimax.c: Assume <inttypes.h>.
24577
24578 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
24579
24580         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
24581         isn't mounted.  Problem reported by Kir Kolyshkin.
24582
24583 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
24584
24585         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
24586         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
24587         Derek R. Price.
24588         * lib/regex.h (RE_DUP_MAX): Update comment to match current
24589         implementation.
24590
24591 2006-04-12  Eric Blake  <ebb9@byu.net>
24592
24593         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
24594         is now done automatically by the corresponding Autoconf macro.
24595
24596 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
24597
24598         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
24599         time_r.h.
24600
24601 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
24602
24603         Merge regex changes from libc, removing some of our
24604         POSIX-conformance changes that were rejected and redoing them in a
24605         less-intrusive way.
24606
24607         * lib/regcomp.c (re_compile_internal, init_dfa):
24608         Length arg is now size_t, not Idx.  All uses changed.
24609         (peek_token): Forward decl now says internal_function.
24610         (__re_error_msgid, __re_error_msgid_idx):
24611         Now static rather than extern with attribute_hidden.
24612         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
24613         For some reason libc prefers K&R style defns for external functions.
24614         (regerror) [!defined _LIBC]: Likewise.
24615         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
24616         (seek_collating_symbol_entry, lookup_collation_sequence_value):
24617         (build_range_exp, build_collating_symbol):
24618         Use K&R-style defn.
24619         (re_compile_fastmap): Use '\0' to memset, not 0.
24620         (utf8_sb_map): Make the calculations more obvious.
24621         (init_dfa, parse_bracket_exp, build_charclass_op):
24622         Call calloc and cast result, as glibc does.
24623         (init_word_char, fetch_token, peek_token, peek_token_bracket):
24624         (build_range_exp, build_collating_symbol):
24625         Now internal functions.
24626
24627         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
24628
24629         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
24630         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
24631         Don't depend on VMS; depend on __VMS instead, for POSIX
24632         namespace cleanness.
24633         (regoff_t): Define to ssize_t, not long int.
24634
24635         Remove the REG_ macros named below.  Instead, make the old names
24636         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
24637         __USE_GNU_REGEX.
24638         (REG_BACKSLASH_ESCAPE_IN_LISTS):
24639         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
24640         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
24641         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
24642         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
24643         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
24644         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
24645         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
24646         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
24647         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
24648         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
24649         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
24650         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
24651         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
24652         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
24653         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
24654         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
24655         (REG_NREGS):
24656         Remove.  All uses replaced by the old RE_* names.
24657         (RE_BACKSLASH_ESCAPE_IN_LISTS):
24658         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
24659         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
24660         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
24661         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
24662         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
24663         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
24664         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
24665         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
24666         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
24667         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
24668         Don't bother having these macros be independent of each others'
24669         values, since they no longer exist in the POSIX name space.
24670
24671         Rename the following member names back to their old names,
24672         unless !__USE_GNU_REGEX.  All uses changed back.
24673         (buffer): Renamed from re_buffer.
24674         (allocated): Renamed from re_allocated.
24675         (used): Renamed from re_used.
24676         (syntax): Renamed from re_syntax.
24677         (fastmap): Renamed from re_fastmap.
24678         (translate): Renamed from re_translate.
24679         (can_be_null): Renamed from re_can_be_null.
24680         (regs_allocated): Renamed from re_regs_allocated.
24681         (fastmap_accurate): Renamed from re_fastmap_accurate.
24682         (no_sub): Renamed from re_no_sub.
24683         (not_bol): Renamed from re_not_bol.
24684         (not_eol): Renamed from re_not_eol.
24685         (newline_anchor): Renamed from re_newline_anchor.
24686         (num_regs): Renamed from rm_num_regs.
24687         (start): Renamed from rm_start.
24688         (end): Renamed from rm_end.
24689
24690         (free_state): Move up a bit.
24691
24692         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
24693         #define to be empty.
24694         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
24695         when that is what is intended.
24696         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
24697         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
24698         (MAX): New macro.
24699         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
24700         All uses changed back to re_malloc, etc.  It's now the caller's
24701         responsibility to check for overflow; all callers changed.
24702         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
24703         (re_x2nrealloc): Remove.
24704         (free_state): Remove decl.
24705
24706         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
24707         (re_set_registers, re_exec):
24708         Use K&R-style defn.
24709
24710         2006-01-31  Roland McGrath  <roland@redhat.com>
24711
24712         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
24713         Reported by Mike Frysinger <vapier@gentoo.org>.
24714
24715         2006-01-15  Andreas Jaeger  <aj@suse.de>
24716
24717         [BZ #1950]
24718         * lib/regex_internal.c (re_string_reconstruct): Adjust for
24719         build_wcs_upper_buffer change.
24720         (build_wcs_upper_buffer): Change return type.
24721
24722         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
24723
24724         * lib/regex_internal.h: Include <stdint.h> if available.
24725
24726         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
24727
24728         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
24729
24730         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
24731
24732         * lib/regcomp.c: Adjust for changed secondary hash function.
24733
24734         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
24735
24736         * lib/regex.h: Pretty printing.
24737         Clean up namespace a bit.
24738
24739         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
24740
24741         * lib/regexec.c (update_cur_sifted_state, check_arrival,
24742         check_arrival_add_next_nodes): Avoid using uninitialized variable.
24743
24744         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24745                     Ulrich Drepper  <drepper@redhat.com>
24746
24747         [BZ #1302]
24748         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
24749         changed.
24750         (bitset_word_t): Renamed from bitset_word.  All uses changed.
24751
24752         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
24753
24754         [BZ #281]
24755         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
24756         * lib/regcomp.c: Remove unnecessary uses of
24757         unsigned RE_TRANSLATE_TYPE.
24758         * lib/regex_internal.h: Likewise.
24759         * lib/regex_internal.c: Likewise.
24760         * lib/regexec.c: Likewise.
24761         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
24762
24763         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
24764
24765         * lib/regexec.c (find_recover_state): Remove unnecessary
24766         initialization.
24767         (transit_state_bkref): Make DFA a const pointer.
24768         (get_subexp): Likewise.
24769         (check_arrival): Likewise.
24770         (update_cur_sifted_state): Likewise.
24771         (re_search_internal): Likewise.
24772         (prune_impossible_nodes): Likewise.
24773         (acquire_init_state_context): Likewise.
24774         (proceed_next_node): Likewise.
24775         (set_regs): Likewise.
24776         (free_fail_stack_return): Likewise.
24777         (check_arrival_expand_ecl): Mark DFA parameter as const.
24778         (check_arrival_expand_ecl_sub): Likewise.
24779         (check_subexp_limits): Likewise.
24780         (sub_epsilon_src_nodes):  Likewise.
24781         (add_epsilon_src_nodes):  Likewise.
24782         (merge_state_array): Likewise.
24783         (update_regs): Likewise.
24784         (build_trtable): Likewise.
24785         (sift_states_backward): Mark MCTX parameter as const.
24786         (build_sifted_states): Likewise.
24787         (update_cur_sifted_state): Likewise.
24788         (sift_states_mkref): Likewise.
24789         (check_arrival_expand_ecl): Mark eclosure as const.
24790         (check_dst_limits_calc_pos_1): Likewise.
24791         * lib/regex_internal.h (re_match_context_t): Make dfa a const
24792         pointer.
24793
24794         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
24795
24796         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
24797         (transit_state_sb): Likewise.
24798         (transit_state_mb): Likewise.
24799         (sift_states_iter_mb): Likewise.
24800         (check_arrival_add_next_nodes): Likewise.
24801         (check_node_accept_bytes): Change first parameter to pointer-to-const.
24802         [_LIBC] (re_search_2_stub): Use mempcpy.
24803
24804         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
24805         mbrtowc for very simple UTF-8 case.
24806
24807         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
24808         a pointer-to-const.
24809         (re_acquire_state_context): Likewise.
24810         * lib/regex_internal.h: Adjust prototypes.
24811
24812         * lib/regex.c: Prevent using C++ compilers.
24813
24814         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
24815         (re_acquire_state_context): Likewise.
24816
24817 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
24818
24819         * modules/regex (Depends-on): Add ssize_t.
24820
24821 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
24822
24823         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
24824         translation table.
24825
24826 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
24827
24828         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
24829
24830 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
24831             Bruno Haible  <bruno@clisp.org>
24832
24833         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
24834         <sys/types.h> and <inttypes.h>.
24835
24836 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24837
24838         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
24839         `__error_t_defined', so argp.h will not typedef the former.
24840
24841 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24842
24843         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
24844         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
24845         glibc names.  Even if glibc is changed to conform to POSIX, the
24846         traditional names will be available anyway, since regex depends on
24847         the extensions module.  Also, fix a longstanding typo in the
24848         implementation of Spencer ERE test #75 from grep 2.3.  Problems
24849         reported by Emanuele Giaquinta.  Also, change sense of cached
24850         variable, so that the message makes sense.
24851
24852 2006-03-24  Simon Josefsson  <jas@extundo.com>
24853
24854         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
24855         including some doc fixes.
24856         (base64_encode_alloc): Fix +1 bug on allocation failures.
24857
24858 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24859
24860         * lib/base64.c (base64_encode): Do not read past end of array with
24861         unsanitized input on systems with CHAR_BIT > 8.
24862
24863 2006-03-24  Eric Blake  <ebb9@byu.net>
24864
24865         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
24866
24867 2006-03-22  Karl Berry  <karl@gnu.org>
24868
24869         * config/srclist.txt (*setenv.[ch]): get from coreutils.
24870         * config/srclistvars.sh (COREUTILS): new var.
24871
24872 2006-03-17  Jim Meyering  <jim@meyering.net>
24873
24874         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
24875         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
24876
24877 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24878
24879         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
24880         no longer needs it.  Instead, check that regoff_t is as least
24881         as wide as ptrdiff_t.
24882
24883         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
24884         so that our regex.h stays compatible with the installed regex.
24885         This is helpful for installers who configure --without-included-regex.
24886         Problem reported by Emanuele Giaquinta.
24887
24888 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24889
24890         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
24891         Typedef to long int, not to off_, as POSIX will likely change
24892         in that direction.
24893
24894 2006-03-15  Eric Blake  <ebb9@byu.net>
24895
24896         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
24897
24898 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
24899
24900         * lib/argp-help.c (validate_uparams): Fix typo
24901         * lib/argp-parse.c (argp_default_options): Consistently begin help
24902         messages with a lowercase letter.
24903
24904 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
24905
24906         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
24907         overrun buffers and shouldn't be used (much as gets shouldn't be
24908         used).
24909         * lib/time_r.c (asctime_r, ctime_r): Likewise.
24910
24911 2006-03-08  Simon Josefsson  <jas@extundo.com>
24912
24913         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
24914         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24915
24916 2006-03-08  Simon Josefsson  <jas@extundo.com>
24917
24918         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
24919         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24920
24921 2006-03-08  Simon Josefsson  <jas@extundo.com>
24922
24923         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
24924         signal that configure disabled the device.
24925
24926 2006-03-08  Simon Josefsson  <jas@extundo.com>
24927
24928         * build-aux/maint.mk: Fix refresh-po, to handle no translated
24929         languages.
24930
24931 2006-03-07  Simon Josefsson  <jas@extundo.com>
24932
24933         * modules/getopt (Depends-on): Add unistd.
24934
24935         * modules/unistd: New file.
24936
24937 2006-03-07  Simon Josefsson  <jas@extundo.com>
24938
24939         * modules/gc-random: New file.
24940
24941 2006-03-07  Simon Josefsson  <jas@extundo.com>
24942
24943         * m4/unistd_h.m4: New file.
24944
24945 2006-03-07  Simon Josefsson  <jas@extundo.com>
24946
24947         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
24948         test to be side-effect free by storing the result in the cache
24949         variable gl_cv_lib_readline, and moving the assignment of
24950         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
24951         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24952
24953 2006-03-07  Simon Josefsson  <jas@extundo.com>
24954
24955         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
24956         error on missing devices (the functions will return an error).
24957
24958         * m4/gc.m4: Move random stuff to gc-random.m4
24959
24960 2006-03-07  Simon Josefsson  <jas@extundo.com>
24961
24962         * lib/unistd_.h: New file.
24963
24964 2006-03-07  Simon Josefsson  <jas@extundo.com>
24965
24966         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
24967
24968 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
24969
24970         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
24971         Problem reported by Juan Manuel Guerrero.
24972
24973 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
24974
24975         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
24976         the unistd module.
24977         * lib/getlogin_r.c: Likewise.
24978         * lib/getlogin_r.h: Likewise.
24979         * lib/glob.c: Likewise.
24980         * lib/pagealign_alloc.c: Likewise.
24981         * lib/unistd_.h: Remove; no longer needed.
24982
24983 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
24984
24985         * MODULES.html.sh (Support for systems lacking POSIX:2001):
24986         Add unistd.
24987         * modules/c-stack (Depends-on): Add unistd.
24988         * modules/getlogin_r: Likewise.
24989         * modules/glob: Likewise.
24990         * modules/pagealign_alloc: Likewise.
24991         * modules/unistd (Files): Remove lib/unistd_.h.
24992         (EXTRA_DIST): Remove.
24993         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
24994         need unistd_.h.
24995         (MOSTLYCLEANFILES): Remove unistd.h-t.
24996
24997 2006-03-03  Simon Josefsson  <jas@extundo.com>
24998
24999         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
25000
25001 2006-03-03  Simon Josefsson  <jas@extundo.com>
25002
25003         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
25004         libidn and bison.
25005
25006 2006-03-03  Simon Josefsson  <jas@extundo.com>
25007
25008         * build-aux/maint.mk: Add indent target.
25009
25010 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
25011
25012         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
25013         our replacement poll.h in any case, to avoid a differing
25014         declaration from a system header.  Seen on AIX.
25015
25016 2006-03-01  Simon Josefsson  <jas@extundo.com>
25017
25018         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
25019         <kasal@ucw.cz>.
25020
25021 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25022
25023         * modules/gettime (Depends-on): Add extensions module.
25024         * modules/nanosleep (Depends-on): Likewise.
25025         * modules/settime (Depends-on): Likewise.
25026
25027 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25028
25029         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
25030         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
25031         pedantically.
25032         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25033         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
25034
25035         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
25036         not "==".  Reported by Ralf Wildenhues.
25037
25038 2006-03-01  Karl Berry  <karl@gnu.org>
25039
25040         * doc/Copyright/request-*: new files, synced from gnuorg.
25041
25042 2006-03-01  Karl Berry  <karl@gnu.org>
25043
25044         * config/srclist.txt (Copyright/*): new entries.
25045
25046 2006-02-28  Simon Josefsson  <jas@extundo.com>
25047
25048         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
25049
25050 2006-02-27  Simon Josefsson  <jas@extundo.com>
25051
25052         * lib/base64.h: Indent #define's.  From Jim Meyering
25053         <jim@meyering.net>.
25054
25055 2006-02-27  Jim Meyering  <jim@meyering.net>
25056
25057         Revert the change of 2006-02-24, so these files can continue
25058         to be sync'd from gettext.
25059         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
25060         of `config.h'.
25061
25062 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
25063
25064         * modules/intprops: New file.
25065         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
25066         Add intprops.
25067         * modules/getloadavg (Files): Remove lib/intprops.h.
25068         (Depends-on): Add intprops.
25069         * modules/human: Likewise.
25070         * modules/inttostr: Likewise.
25071         * modules/openat: Likewise.
25072         * modules/sig2str: Likewise.
25073         * modules/userspec: Likewise.
25074         * modules/utimecmp: Likewise.
25075         * modules/xnanosleep: Likewise.
25076         * modules/xstrtol: Likewise.
25077
25078 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
25079
25080         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
25081         * modules/lock-tests (TESTS): Use $(EXEEXT).
25082         * modules/tls-tests: Likewise.
25083         * modules/argp-tests: Likewise.
25084         (check_PROGRAMS): New var, replacing...
25085         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
25086
25087 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25088
25089         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
25090         `config.h'.
25091
25092 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25093
25094         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
25095
25096 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25097
25098         Sync from coreutils.
25099         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
25100         gl_CHDIR_SAFER.
25101
25102 2006-02-22  Jim Meyering  <jim@meyering.net>
25103
25104         Sync from coreutils.
25105         * m4/chdir-safer.m4: New file.
25106
25107 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25108
25109         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
25110         AT_FDCWD exceeds INT_MAX.
25111         * lib/openat.h (AT_FDCWD): Likewise.
25112
25113 2006-02-17  Eric Blake  <address@hidden>
25114
25115         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
25116
25117 2006-02-16  Simon Josefsson  <jas@extundo.com>
25118
25119         * modules/getaddrinfo (Depends-on): Add sys_socket.
25120
25121 2006-02-15  Simon Josefsson  <jas@extundo.com>
25122
25123         * build-aux/maint.mk: Add dsyntax-check rule.
25124
25125 2006-02-15  Eric Blake  <ebb9@byu.net>
25126
25127         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
25128         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
25129         'present but cannot compile' warnings on cygwin.
25130         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
25131         use ws2tcpip.h if sys/socket.h works.
25132         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
25133         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
25134
25135 2006-02-14  Simon Josefsson  <jas@extundo.com>
25136
25137         * modules/maintainer-makefile (Files): Rename.
25138
25139         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
25140         and (the local) Makefile.cfg to maint-cfg.mk.
25141
25142         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
25143         to the latter.
25144
25145         * modules/maintainer-makefile: New module.
25146
25147         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
25148         severaly stripped to make it possible to build it up from scratch
25149         with reliable tests.
25150
25151         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
25152         fixes to permit overriding the default actions when configure and
25153         makefile are not available.
25154
25155 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25156
25157         Sync from coreutils.
25158         * modules/lstat (Depends-on): Don't depend on xalloc.
25159         (License): Change from GPL to LGPL, since this is now simply a
25160         replacement for a libc function.
25161
25162 2006-02-14  Jim Meyering  <jim@meyering.net>
25163
25164         Sync from coreutils.
25165
25166         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
25167         failure on deficient systems, and simplify gnulib lgpl dependencies.
25168         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
25169         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
25170
25171         * lib/xalloc-die.c: Remove unused definition of N_.
25172
25173 2006-02-14  Jim Meyering  <jim@meyering.net>
25174
25175         Sync from coreutils.
25176         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
25177         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
25178         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
25179         double-quote uses of that variable, to accommodate the rare case in
25180         which getmntent is available in none of the libraries checked.  This
25181         happens at least on FreeBSD 5.0.
25182
25183 2006-02-13  Simon Josefsson  <jas@extundo.com>
25184
25185         * gnulib-tool (Usage): Fix --import, from
25186         karl@freefriends.org (Karl Berry).
25187
25188 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
25189
25190         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
25191
25192 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
25193
25194         * lib/argp-namefrob.h: Restore changes accidentally lost during the
25195         "autoupdate" on 2005-12-12.
25196
25197 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25198
25199         * modules/closeout (Depends-on): Remove atexit.
25200
25201 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25202
25203         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
25204         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
25205
25206 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
25207
25208         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
25209         __EXTENSIONS__ if this causes compilation to fail.  Problem
25210         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
25211         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
25212
25213 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
25214
25215         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
25216         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
25217         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
25218         All uses changed.
25219
25220 2006-01-26  Simon Josefsson  <jas@extundo.com>
25221
25222         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
25223         prototype is visible on mingw32.
25224
25225         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
25226         for mingw32.
25227
25228         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
25229         mingw32).
25230
25231 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
25232
25233         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
25234         attempt to open for write; this always fails, at least on POSIX
25235         hosts.  This reinstates the 2006-01-09 change, which was
25236         inadvertently removed.
25237
25238 2006-01-26  Bruno Haible  <bruno@clisp.org>
25239
25240         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
25241         Reported by Paul Eggert.
25242
25243 2006-01-26  Bruno Haible  <bruno@clisp.org>
25244             Paul Eggert  <eggert@cs.ucla.edu>
25245
25246         * lib/stdbool_.h (_Bool)
25247         [(! (defined __cplusplus || defined __BEOS__)
25248           && !defined __GNUC__
25249           && !(defined __HP_cc || defined __xlc__
25250                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
25251                || defined __sgi))]:
25252         #define to signed char in these cases too; this simplifies
25253         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
25254         etc., separately) and makes it more conservative.
25255
25256 2006-01-25  Simon Josefsson  <jas@extundo.com>
25257
25258         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
25259         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
25260         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
25261
25262 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25263
25264         * lib/argp-namefrob.h: Bugfix. Remove stray #
25265
25266 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25267
25268         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
25269         so that we test the test.
25270         Check for yet another HP-UX cc bug involving *bool |= bool.
25271
25272 2006-01-25  Karl Berry  <karl@gnu.org>
25273
25274         * config/srclist.txt (vasnprintf.c): sync lost.
25275
25276 2006-01-25  Jim Meyering  <jim@meyering.net>
25277
25278         Sync from the stable (b5) branch of coreutils:
25279
25280         * lib/fts.c (fts_children): Don't let close() clobber errno from
25281         failed fchdir().
25282
25283         * lib/fts.c (fts_stat): When following a symlink-to-directory,
25284         don't necessarily interpret stat-fails+lstat-succeeds as indicating
25285         a dangling symlink.  That can also happen at least for ELOOP.
25286         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
25287         FYI, this bug predates the inclusion of fts.c in coreutils.
25288
25289         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
25290         in their own block, so pre-c99 compilers don't object.
25291
25292         Avoid the double-free (first in fts_read, second in fts_close) that
25293         would occur when an `active' directory is made inaccessible (e.g.,
25294         via chmod a-x) during a traversal.
25295         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
25296         before returning.  Reproduce this failure by
25297         mkdir -p a/b; cd a; chmod a-x . b
25298         Reported by Stavros Passas.
25299
25300 2006-01-25  Jim Meyering  <jim@meyering.net>
25301
25302         * lib/fileblocks.c: Remove more useless parentheses.
25303         * lib/readutmp.h: Likewise.
25304
25305 2006-01-25  Bruno Haible  <bruno@clisp.org>
25306
25307         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
25308         warnings.
25309         Reported by Paul Eggert.
25310
25311 2006-01-25  Bruno Haible  <bruno@clisp.org>
25312
25313         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
25314         rid of a trap command. For Solaris sh.
25315         Reported by Mark D. Baushke <mdb@gnu.org>.
25316
25317 2006-01-24  Simon Josefsson  <jas@extundo.com>
25318
25319         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
25320         Bruno.
25321
25322 2006-01-24  Karl Berry  <karl@gnu.org>
25323
25324         * config/srclist.txt (argp-namefrob.h): sync lost.
25325
25326 2006-01-24  Jim Meyering  <jim@meyering.net>
25327
25328         * modules/openat (Files): Add lib/intprops.h.
25329         From Mark D. Baushke.
25330
25331 2006-01-24  Jim Meyering  <jim@meyering.net>
25332
25333         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
25334         Reported by Mark D. Baushke.
25335
25336 2006-01-24  Jim Meyering  <jim@meyering.net>
25337
25338         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
25339
25340 2006-01-24  Bruno Haible  <bruno@clisp.org>
25341
25342         * modules/strnlen (Maintainer): Change from glibc to all.
25343
25344 2006-01-24  Bruno Haible  <bruno@clisp.org>
25345
25346         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
25347         Patch by Paul Eggert.
25348
25349 2006-01-24  Bruno Haible  <bruno@clisp.org>
25350
25351         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
25352         already has it.
25353         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
25354         2005-11-26.
25355
25356         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
25357         'signed char' to avoid problems with the built-in _Bool type.
25358         Reported by Paul Eggert on 2005-11-26.
25359
25360 2006-01-24  Bruno Haible  <bruno@clisp.org>
25361
25362         * gnulib-tool (func_import): Avoid constructing complicated sed
25363         expressions inside backquote.
25364         Report and solution by Mark D. Baushke <mdb@gnu.org>.
25365
25366 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
25367
25368         These changes imported from libc.
25369         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
25370         test and two separate function calls.
25371         * lib/strndup.c (__strndup): Add libc_hidden_def.
25372
25373 2006-01-23  Simon Josefsson  <jas@extundo.com>
25374
25375         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
25376         Remove the test_*_SOURCES variable: automake infers it by default.
25377         * modules/tls-tests: Likewise.
25378
25379 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25380
25381         Work around porting bugs reported by Dieter in
25382         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
25383         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
25384         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
25385         Include "getopt.h" first, to check interface.
25386         (getenv): Declare only if defined HAVE_DECL_GETENV &&
25387         !HAVE_DECL_GETENV.
25388         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
25389         (__strndup): Revert to K&R-style function dfns, the glibc style.
25390         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
25391         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
25392         Include strnlen.h first, to get prototype properly.
25393         (strnlen): Renamed from __strnlen.
25394         Remove weak alias.
25395
25396 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25397
25398         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
25399
25400 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25401
25402         * config/srclist.txt: Adjust to reflect glibc reorganization.
25403         This affects only comments.
25404
25405 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
25406
25407          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
25408          Reported by Bruce Korb <bkorb@gnu.org>.
25409
25410 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
25411
25412         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
25413         to pacify gcc -Wswitch-default.
25414
25415 2006-01-22  Bruno Haible  <bruno@clisp.org>
25416
25417         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
25418         temporary buffer for sprintf, take into account the precision also
25419         for 'd', 'i', 'u', 'o', 'x', 'X'.
25420
25421 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
25422
25423         * modules/argp-tests: New module
25424         * tests/test-argp.c: New file
25425         * tests/test-argp-2.sh: New file
25426
25427 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
25428
25429         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
25430         (__argp_base_name): Removed
25431         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
25432         typo.
25433         (__argp_base_name): Provide macro definition or extern declaration
25434         depending on the configuration
25435
25436 2006-01-20  Simon Josefsson  <jas@extundo.com>
25437
25438         * modules/inet_ntop (Depends-on): Depend on sys_socket.
25439
25440 2006-01-20  Simon Josefsson  <jas@extundo.com>
25441
25442         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
25443
25444 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25445
25446         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
25447         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
25448         Suggested by Bruno Haible.
25449
25450 2006-01-20  Karl Berry  <karl@gnu.org>
25451
25452         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
25453         until changes propagate, I guess.
25454
25455 2006-01-19  Simon Josefsson  <jas@extundo.com>
25456
25457         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
25458
25459 2006-01-19  Simon Josefsson  <jas@extundo.com>
25460
25461         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
25462
25463 2006-01-19  Simon Josefsson  <jas@extundo.com>
25464
25465         * gnulib-tool: Set check_PROGRAMS.
25466
25467         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
25468         modules/des-tests, modules/gc-arcfour-tests,
25469         modules/gc-arctwo-tests, modules/gc-des-tests,
25470         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
25471         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
25472         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
25473         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
25474         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
25475         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
25476         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
25477         test_*_SOURCES.
25478
25479 2006-01-18  Simon Josefsson  <jas@extundo.com>
25480
25481         * modules/socklen (Depends-on): Depend on sys_socket.
25482
25483 2006-01-18  Simon Josefsson  <jas@extundo.com>
25484
25485         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
25486         modules/des-tests, modules/gc-arcfour-tests,
25487         modules/gc-arctwo-tests, modules/gc-des-tests,
25488         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
25489         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
25490         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
25491         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
25492         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
25493         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
25494         $(EXEEXT) to automake TESTS variable, for mingw32.
25495
25496 2006-01-17  Simon Josefsson  <jas@extundo.com>
25497
25498         * modules/socklen (Include): Need sys/socket.h.
25499
25500 2006-01-17  Bruno Haible  <bruno@clisp.org>
25501
25502         * modules/ssize_t (Include): Add <sys/types.h>.
25503
25504 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
25505
25506         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
25507         it's not portable and it doesn't work with cross-compiles.
25508         Problem reported by Bruno Haible.  Fix missing-$ typo in
25509         'test "gl_cv_ignore_unused_libraries" ...' that prevented
25510         -zignore from being used with Sun's C compiler.
25511
25512 2006-01-12  Simon Josefsson  <jas@extundo.com>
25513
25514         * lib/base64.c: Fix warning, reported by Bruno Haible
25515         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
25516
25517 2006-01-12  Bruno Haible  <bruno@clisp.org>
25518
25519         * modules/ldd: New file.
25520         * build-aux/ldd.sh.in: New file.
25521         * MODULES.html.sh (Support for building libraries and executables): Add
25522         ldd.
25523
25524 2006-01-12  Bruno Haible  <bruno@clisp.org>
25525
25526         * m4/ldd.m4: New file.
25527
25528 2006-01-12  Bruno Haible  <bruno@clisp.org>
25529
25530         * gnulib-tool (func_import, func_create_testdir): Don't go into an
25531         endless loop while replacing $auxdir with build-aux.
25532
25533 2006-01-11  Simon Josefsson  <jas@extundo.com>
25534
25535         * lib/stdint_.h (SIZE_MAX): Add missing (.
25536
25537 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25538
25539         Sync from coreutils.
25540         * lib/md5.c: Fix commentary typos.
25541         (alignof, UNALIGNED_P): No need for a GCC-specific version.
25542         * lib/md5.h (__attribute__): Remove; unused.
25543         * lib/sha1.c: Fix commentary to match md5 better.
25544         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
25545         so that we don't need to worry about alignment.  All uses changed.
25546         This merges the 2005-10-28 md5 change into sha1.
25547
25548 2006-01-11  Jim Meyering  <jim@meyering.net>
25549
25550         Sync from coreutils.
25551         * lib/md5.c (OP): Fix spacing.
25552
25553 2006-01-11  Bruno Haible  <bruno@clisp.org>
25554
25555         Ensure automatic ordering between gl_LOCK and gl_ARGP.
25556         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
25557         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
25558
25559 2006-01-11  Bruno Haible  <bruno@clisp.org>
25560
25561         Ensure automatic ordering between gl_LOCK and gl_ARGP.
25562         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
25563         the "early" section as well.
25564
25565 2006-01-11  Bruno Haible  <bruno@clisp.org>
25566
25567         Avoid "ar: no archive members specified" error on MacOS X.
25568         * gnulib-tool (func_modules_add_dummy): New function.
25569         (func_import, func_create_testdir): Invoke it.
25570
25571 2006-01-11  Bruno Haible  <bruno@clisp.org>
25572
25573         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
25574         with $auxdir in AC_CONFIG_FILES statements.
25575
25576 2006-01-11  Bruno Haible  <bruno@clisp.org>
25577
25578         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25579         Initialize also noinst_HEADERS to empty.
25580
25581 2006-01-11  Bruno Haible  <bruno@clisp.org>
25582
25583         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
25584         variables.
25585         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
25586         autoreconf.
25587
25588 2006-01-11  Bruno Haible  <bruno@clisp.org>
25589
25590         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
25591         overridable by the user.
25592         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25593
25594 2006-01-10  Simon Josefsson  <jas@extundo.com>
25595
25596         * modules/sys_socket: New file.
25597
25598 2006-01-10  Simon Josefsson  <jas@extundo.com>
25599
25600         * m4/sys_socket_h.m4: New file.
25601
25602 2006-01-10  Simon Josefsson  <jas@extundo.com>
25603
25604         * lib/socket_.h: New file.
25605
25606 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25607
25608         * modules/readutmp (Maintainer): Add myself.
25609
25610 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25611
25612         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
25613         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
25614         People who are still concerned with buggy memcmp implementations
25615         can invoke gl_FUNC_MEMCMP themselves.
25616
25617 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25618
25619         * lib/regex_internal.h (BITSET_WORD_BITS):
25620         Work around a bug in 64-bit PGC (before version 6.1-2), where the
25621         preprocessor mishandles large unsigned values as if they were signed.
25622         Problem reported by Claudio Fontana in
25623         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
25624
25625 2006-01-10  Jim Meyering  <jim@meyering.net>
25626
25627         Avoid the double-free (first in fts_read, second in fts_close) that
25628         would occur when an `active' directory is made inaccessible (e.g.,
25629         via chmod a-x) during a traversal.
25630         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
25631         before returning.  Reproduce this failure by
25632         mkdir -p a/b; cd a; chmod a-x . b
25633         Reported by Stavros Passas.
25634
25635         Sync from coreutils.
25636         * lib/sha1.c: Tweak grammar in a comment.
25637
25638 2006-01-10  Jim Meyering  <jim@meyering.net>
25639
25640         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
25641         Patch by Joerg Sonnenberger.
25642
25643 2006-01-10  Bruno Haible  <bruno@clisp.org>
25644
25645         * modules/readutmp: Depend on module free.
25646         * modules/strtok_r: Depend on module restrict.
25647
25648 2006-01-10  Bruno Haible  <bruno@clisp.org>
25649
25650         * modules/gettext (configure.ac): Add an invocation of
25651         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
25652
25653 2006-01-10  Bruno Haible  <bruno@clisp.org>
25654
25655         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
25656         Reported by Werner Lemberg <wl@gnu.org>.
25657
25658 2006-01-10  Bruno Haible  <bruno@clisp.org>
25659
25660         * lib/localcharset.c: Update from GNU gettext.
25661
25662 2006-01-10  Bruno Haible  <bruno@clisp.org>
25663
25664         * lib/argp.h (__const): Remove macro. Use const instead.
25665         * lib/argp-fmtstream.h (__const): Likewise.
25666         * lib/glob_.h (__const): Remove macro.
25667         * lib/glob-libc.h: Use const instead of __const.
25668
25669 2006-01-10  Bruno Haible  <bruno@clisp.org>
25670
25671         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
25672         variable.
25673         Needed to avoid an automake error regarding the 'gettext' module.
25674
25675 2006-01-09  Simon Josefsson  <jas@extundo.com>
25676
25677         * modules/inet_ntop (Depends-on): Add restrict.
25678
25679 2006-01-09  Simon Josefsson  <jas@extundo.com>
25680
25681         * modules/gc-rijndael-tests (License): Put under LGPL.
25682
25683         * modules/gc-des-tests (License): Likewise.
25684
25685         * modules/gc-arcfour-tests (License): Likewise.
25686
25687         * modules/gc-arctwo-tests (License): Likewise.
25688
25689         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
25690
25691         * modules/gc-hmac-sha1-tests (Files): Likewise.
25692
25693         * modules/gc-hmac-md5-tests (License): Likewise.
25694
25695         * modules/gc-sha1-tests (License): Likewise.
25696
25697         * modules/gc-md5-tests (License): Likewise.
25698
25699         * modules/gc-md4-tests (License): Likewise.
25700
25701         * modules/gc-md2-tests (License): Likewise.
25702
25703         * modules/gc-tests (License): Likewise.
25704
25705         * modules/des-tests (License): Likewise.
25706
25707         * modules/md4-tests (License): Likewise.
25708
25709         * modules/md2-tests (License): Likewise.
25710
25711 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25712
25713         Sync from coreutils:
25714
25715         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
25716         * modules/lib-ignore: New file.
25717         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
25718         chdir-safer.m4, lchmod.m4.
25719         * modules/openat: Add mkdirat.c, openat-priv.h.
25720
25721 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25722
25723         Sync from coreutils.
25724         * m4/lib-ignore.m4: New file.
25725         * m4/lchmod.m4: New file.
25726
25727 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25728
25729         Sync from coreutils.
25730         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
25731         for write access: POSIX says that must fail.
25732         * lib/fts.c (diropen): Likewise.
25733         * lib/save-cwd.c (save_cwd): Likewise.
25734         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
25735         well, for minor improvements on hosts that lack O_DIRECTORY.
25736         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
25737         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
25738         Fall back on chown if open failed with EACCES.
25739
25740         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
25741         Report an error at compile-time if only a 1-second nominal clock
25742         resolution is found.
25743
25744         * lib/lchmod.h: New file.
25745         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
25746         (make_dir_parents): Use lchown rather than chown, and
25747         lchmod rather than chmod.
25748
25749         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
25750         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
25751         "proc" reported by n0dalus.
25752
25753         * lib/mountlist.c: Include <limits.h>.
25754         (dev_from_mount_options)
25755         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
25756         New function.  It no longer assumes "dev=" has the System V meaning
25757         on Linux (since it doesn't).  It also parses "dev=" more carefully.
25758         (read_file_system_list)
25759         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
25760         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
25761         dev= in that case.
25762
25763         * lib/posixtm.h (PDS_PRE_2000): New macro.
25764         * lib/posixtm.c (year): Arg is now syntax_bits rather than
25765         allow_century.  All usages changed.  Reject dates outside the range
25766         1969-1999 if PDS_PRE_2000 is used.
25767
25768 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25769
25770         Sync from coreutils.
25771         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
25772         (Time of day items): Mention the possibility of leap seconds.
25773         Problem reported by Dr. David Alan Gilbert.
25774
25775 2006-01-09  Jim Meyering  <jim@meyering.net>
25776
25777         Sync from coreutils.
25778
25779         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
25780
25781         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
25782
25783         * lib/modechange.c (mode_compile): Reject an invalid mode string
25784         that starts with an octal digit.  From Andreas Gruenbacher.
25785
25786         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
25787         and dup to open_safer and dup_safer, respectively.
25788         (openat_permissive): Fix typo in comment.
25789
25790         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
25791         "gettext.h"; either no longer needed or are guaranteed by openat.h.
25792         (_): Remove; no longer needed.
25793         (openat): Renamed from rpl_openat; no need for rpl_openat
25794         since openat.h renames openat for us.
25795         Replace most of the body with a call to openat_permissive,
25796         to avoid duplicate code.
25797         Port to (probably hypothetical) environments were mode_t is
25798         wider than int.
25799         (openat_permissive): Require mode arg, so that we can check
25800         types better.  Put it just after flags.  Change cwd failure
25801         indicator from pointer-to-bool to pointer-to-errno-value.
25802         All callers changed.
25803         Invoke openat_save_fail and/or openat_restore_fail if
25804         cwd_errno is null, so that openat can call us.
25805         (openat_permissive, fdopendir, fstatat, unlinkat):
25806         Simplify errno handling to avoid some duplicate code,
25807         as it's OK to set errno on success.
25808         * lib/openat.h: Revamp code so that function macros depend on
25809         __OPENAT_PREFIX only, not also on AT_FDCWD.
25810         (openat_ro): Remove.  Caller changed to use openat_permissive.
25811         (openat_permissive): Now a macro, if not a function.
25812         (openat_restore_fail, openat_save_fail): Now always functions,
25813         since mkdirat needs them even if __OPENAT_PREFIX is defined.
25814
25815         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
25816         and openat.c.
25817         * lib/mkdirat.c: Include openat-priv.h.
25818         Remove definitions of macros defined therein.
25819         * lib/openat.c: Likewise.
25820
25821         * lib/mkdirat.c (mkdirat): New file and function.
25822         * lib/openat.h (mkdirat): Declare.
25823
25824         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
25825
25826         * lib/openat.h (openat_permissive): Declare.
25827         (openat_ro): Define.
25828
25829         * lib/openat.c (EXPECTED_ERRNO): New macro.
25830         (openat_permissive): New function -- used in remove.c rewrite.
25831         (all functions): Set errno just before returning, only if there
25832         was an actual failure.
25833         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
25834
25835         Emulate openat-family functions using Linux's procfs, if possible.
25836         Idea and some code based on Ulrich Drepper's glibc changes.
25837
25838         * lib/openat.c: (BUILD_PROC_NAME): New macro.
25839         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
25840         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
25841         before falling back on save_cwd and restore_cwd.
25842         (fdopendir, fstatat, unlinkat): Likewise.
25843
25844         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
25845         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
25846
25847         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
25848         as second argument to va_arg.  Otherwise, some versions of gcc
25849         warn that `if this code is reached, the program will abort'.
25850
25851 2006-01-09  Jim Meyering  <jim@meyering.net>
25852
25853         Sync from coreutils.
25854         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
25855         Require openat-priv.h.
25856
25857 2006-01-09  Bruno Haible  <bruno@clisp.org>
25858
25859         * modules/strnlen (Include): Use strnlen.h.
25860
25861 2006-01-09  Bruno Haible  <bruno@clisp.org>
25862
25863         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
25864
25865 2006-01-09  Bruno Haible  <bruno@clisp.org>
25866
25867         * lib/sysexit_.h (EX_OK): New macro.
25868         Suggested by Martin Lambers <marlam@marlam.de>.
25869
25870 2006-01-09  Bruno Haible  <bruno@clisp.org>
25871
25872         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
25873         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
25874
25875 2006-01-09  Bruno Haible  <bruno@clisp.org>
25876
25877         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
25878         numbers.
25879
25880 2006-01-09  Bruno Haible  <bruno@clisp.org>
25881
25882         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
25883         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
25884         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
25885         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
25886
25887 2006-01-09  Bruno Haible  <bruno@clisp.org>
25888
25889         * build-aux/javacomp.sh.in: New file, moved from lib/.
25890         * modules/javacomp-script (Files): Update.
25891         (configure.ac): Add AC_CONFIG_FILES invocation.
25892         (EXTRA_DIST): Remove variable.
25893
25894         * build-aux/javaexec.sh.in: New file, moved from lib/.
25895         * modules/javaexec (Files): Update.
25896         (configure.ac): Add AC_CONFIG_FILES invocation.
25897         (EXTRA_DIST): Remove javaexec.sh.in.
25898
25899         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
25900         * modules/csharpcomp-script (Files): Update.
25901         (configure.ac): Add AC_CONFIG_FILES invocation.
25902         (EXTRA_DIST): Remove variable.
25903
25904         * build-aux/csharpexec.sh.in: New file, moved from lib/.
25905         * modules/csharpexec (Files): Update.
25906         (configure.ac): Add AC_CONFIG_FILES invocation.
25907         (EXTRA_DIST): Remove csharpexec.sh.in.
25908
25909 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
25910
25911         Sync from coreutils.
25912
25913         Add POSIX ACL support
25914         * lib/acl.h (copy_acl, set_acl): Add declarations.
25915         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
25916         systems other than Linux.
25917         (chmod_or_fchmod): New function: use fchmod when possible,
25918         and chmod otherwise.
25919         (file_has_acl): Add a POSIX ACL implementation, with a
25920         Linux-specific subcase.
25921         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
25922         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
25923         acls are unsupported.
25924         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
25925         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
25926         are unsupported.
25927
25928 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
25929
25930         Sync from coreutils.
25931         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
25932
25933 2006-01-07  Bruno Haible  <bruno@clisp.org>
25934
25935         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
25936         gl_EARLY.
25937
25938 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25939
25940         * lib/strftime.c (tzname): Don't declare if it is already #defined.
25941         Problem reported for Mingw by Mark Junker.
25942
25943 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25944
25945         * README: Gnulib normally doesn't generate a tarball.
25946
25947 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
25948
25949         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
25950         long int, not int, for nanosecond counts, so that people who are
25951         used to POSIX struct timespec won't be surprised.  Reported by Jim
25952         Meyering.
25953
25954 2005-12-28  Bruno Haible  <bruno@clisp.org>
25955
25956         * build-aux/config.rpath: Update from GNU gettext.
25957
25958 2005-12-16  Jim Meyering  <jim@meyering.net>
25959
25960         * modules/fprintftime: New module.
25961         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
25962
25963 2005-12-16  Jim Meyering  <jim@meyering.net>
25964
25965         * m4/fprintftime.m4: New file.
25966
25967 2005-12-16  Jim Meyering  <jim@meyering.net>
25968
25969         * lib/fprintftime.c, lib/fprintftime.h: New files.
25970
25971 2005-12-15  Simon Josefsson  <jas@extundo.com>
25972
25973         * modules/socklen (configure.ac): Fix M4 macro name, to align with
25974         new m4/socklen.m4.
25975
25976 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
25977
25978         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
25979         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
25980
25981 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
25982
25983         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
25984         * lib/argp-help.c (fill_in_uparams): Check if the constructed
25985         struct uparams is valid. Fall back to the default values if it is
25986         not.
25987
25988 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
25989
25990         * modules/argp (Files): Add argp-pin.c
25991         (Depends-on): dirname
25992         (lib_SOURCES): Add argp-pin.c
25993
25994 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
25995
25996         * m4/argp.m4:  Check if program_invocation_name and
25997         program_invocation_short_name are declared and define appropriate
25998         macros if they are not.
25999
26000 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26001
26002         * lib/argp-help.c (__argp_base_name): New function
26003         (__argp_short_program_name): Rewrite using __argp_base_name
26004         * lib/argp-namefrob.h: Define program_invocation_name and
26005         program_invocation_short_name if requested
26006         (__argp_base_name): Add prototype
26007         * lib/argp-parse.c (argp_def): Use gettext wrappers
26008         (argp_default_parser): Use __argp_base_name
26009         * lib/argp-pin.c: New file. Defines program_invocation_name and
26010         program_invocation_short_name on systems that lack them.
26011
26012 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26013
26014         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
26015         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
26016         porting problem reported by Georg Schwarz in
26017         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
26018
26019 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26020
26021         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
26022         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
26023         porting problem reported by Georg Schwarz in
26024         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
26025
26026 2005-12-05  Bruno Haible  <bruno@clisp.org>
26027
26028         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
26029         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
26030         Reported by Mark Junker <mjscod@gmx.de>.
26031
26032 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
26033
26034         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
26035         Use implementation from Albert Chin, with some
26036         comments/corrections by Stepan Kasal and myself.
26037
26038 2005-12-02  Bruno Haible  <bruno@clisp.org>
26039
26040         * gnulib-tool (func_import): Accept GPLed build tool modules when
26041         --lgpl is given.
26042         * modules/csharpcomp-script: New file.
26043         * modules/csharpcomp: Depend on it.
26044         * modules/javacomp-script: New file.
26045         * modules/javacomp: Depend on it.
26046         Suggested by Simon Josefsson.
26047
26048 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26049
26050         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
26051         statement, to work around an HP-UX 10.20 compiler bug reported by
26052         Peter O'Gorman.
26053
26054 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26055
26056         * modules/savedir (Depends-on): Add openat.
26057
26058 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26059
26060         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
26061         (uintmax_t) [defined uintmax_t]: Do not declare.
26062         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
26063         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
26064         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
26065         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
26066         sake of portability to weird hosts that C allows (though we don't
26067         know of any practical examples).
26068
26069         * lib/savedir.h (fdsavedir): New decl.
26070         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
26071         contains most of the former guts of savedir.
26072         (savedir): Use savedirstream.
26073         Include "openat.h".
26074
26075 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26076
26077         * modules/obstack (Files): Add m4/ulonglong.m4.
26078         Problem reported by Davide Angelocola.
26079
26080 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26081
26082         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
26083         coreutils no longer futzes with rounding modes.
26084
26085 2005-11-14  Jim Meyering  <jim@meyering.net>
26086
26087         * lib/mkstemp-safer.c: Include <config.h>, required for possible
26088         replacement of mkstemp.
26089
26090 2005-11-10  Simon Josefsson  <jas@extundo.com>
26091
26092         * lib/readline.c: Remove EOL.
26093
26094 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26095
26096         * modules/gethrxtime (Depends-on): Add gettime.
26097
26098 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26099
26100         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
26101         or gettimeofday; no longer needed.
26102
26103 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26104
26105         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
26106         time business.
26107         (gethrxtime) [! (HAVE_NANOUPTIME
26108         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
26109         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
26110         our own approximation.
26111
26112 2005-11-08  Eric Blake  <ebb9@byu.net>
26113
26114         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
26115
26116 2005-11-08  Eric Blake  <ebb9@byu.net>
26117
26118         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
26119
26120 2005-11-04  Bruno Haible  <bruno@clisp.org>
26121
26122         * gnulib-tool: Implement --update mode.
26123
26124 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26125
26126         Fix porting problem reported by Theodoros V. Kalamatianos.
26127         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
26128         Don't assume that futimes failing means we must fail.
26129
26130 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26131
26132         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
26133         variables to suggest the intended function of the PATH_MAX check.
26134
26135 2005-10-30  Kean Johnston  <jkj@sco.com>
26136
26137         Trivial changes to support SCO systems.
26138         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
26139         as PATH_MAX.
26140         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
26141         where __ptr is null when no I/O is pending.
26142
26143 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
26144
26145         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
26146         leave errno alone.  Problem reported by Dmitry V. Levin.
26147
26148 2005-10-28  Simon Josefsson  <jas@extundo.com>
26149
26150         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
26151         Test more.
26152
26153         * tests/test-gc-md2.c, tests/test-md2.c: New files.
26154
26155         * modules/md2, modules/md2-tests: New files.
26156
26157 2005-10-28  Simon Josefsson  <jas@extundo.com>
26158
26159         * m4/inet_ntop.m4: More tests.
26160
26161         * m4/gc-md2.m4, md2.m4: New file.
26162
26163 2005-10-28  Simon Josefsson  <jas@extundo.com>
26164
26165         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
26166         "restrict" keywords, as per POSIX.  Protect the function
26167         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
26168         Don't use K&R prototypes.  Check the sprintf return values.
26169         Re-define EAFNOSUPPORT if not present.  Indent.
26170
26171         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
26172         suggested by Bruno Haible <bruno@clisp.org>.
26173
26174         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
26175
26176         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
26177
26178         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
26179         libgcrypt).
26180
26181         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
26182
26183         * lib/md2.h, lib/md2.c: New files.
26184
26185 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
26186
26187         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
26188         errno alone.  Problem reported by Frederic Jolliton.
26189
26190 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
26191
26192         * modules/verify (License): Change from GPL to LGPL.  This is a
26193         tiny module and there are apparently near-equivalents that are
26194         under the BSD license.
26195
26196 2005-10-24  Simon Josefsson  <jas@extundo.com>
26197
26198         * modules/sha1: Relicense to LGPL.
26199
26200 2005-10-24  Simon Josefsson  <jas@extundo.com>
26201
26202         * lib/md4.h: Shrink buffer size, now that we changed the type.
26203
26204 2005-10-23  Simon Josefsson  <jas@extundo.com>
26205
26206         * gnulib-tool (func_import): Fix --tests-base.
26207
26208 2005-10-22  Simon Josefsson  <jas@extundo.com>
26209
26210         * modules/arcfour (Depends-on): Need stdint.
26211
26212 2005-10-22  Simon Josefsson  <jas@extundo.com>
26213
26214         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
26215         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
26216
26217 2005-10-22  Simon Josefsson  <jas@extundo.com>
26218
26219         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
26220         suggested by Bruno Haible <bruno@clisp.org>.
26221
26222 2005-10-22  Simon Josefsson  <jas@extundo.com>
26223
26224         * lib/crc.h: Include stddef.h, for size_t.
26225
26226 2005-10-22  Simon Josefsson  <jas@extundo.com>
26227
26228         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
26229         arcfour_context struct (simplify test vector testing in GNU
26230         Shishi).
26231
26232 2005-10-21  Simon Josefsson  <jas@extundo.com>
26233
26234         * modules/des, modules/des-tests: New files.
26235
26236         * modules/gc-des, modules/gc-des-tests: New files.
26237
26238         * tests/test-des.c, tests/test-gc-des.c: New file.
26239
26240 2005-10-21  Simon Josefsson  <jas@extundo.com>
26241
26242         * modules/arctwo, modules/arctwo-tests: New files.
26243
26244         * tests/test-arctwo.c: New file.
26245
26246         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
26247
26248         * tests/test-gc-arctwo.c: New file.
26249
26250 2005-10-21  Simon Josefsson  <jas@extundo.com>
26251
26252         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
26253         Bruno Haible <bruno@clisp.org>.
26254
26255         * m4/gc-des.m4: New file.
26256
26257 2005-10-21  Simon Josefsson  <jas@extundo.com>
26258
26259         * m4/arctwo.m4: New file.
26260
26261         * m4/gc-arctwo.m4: New file.
26262
26263 2005-10-21  Simon Josefsson  <jas@extundo.com>
26264
26265         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
26266         block.
26267
26268 2005-10-21  Simon Josefsson  <jas@extundo.com>
26269
26270         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
26271         <bruno@clisp.org>.
26272
26273         * lib/hmac-sha1.c (hmac_sha1): Likewise.
26274
26275         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
26276         Bruno Haible <bruno@clisp.org>.
26277
26278         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
26279         <bruno@clisp.org>.
26280
26281 2005-10-21  Simon Josefsson  <jas@extundo.com>
26282
26283         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
26284
26285 2005-10-21  Simon Josefsson  <jas@extundo.com>
26286
26287         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
26288
26289 2005-10-21  Simon Josefsson  <jas@extundo.com>
26290
26291         * lib/des.h, lib/des.c: New files.
26292
26293         * lib/gc-gnulib.c: Support DES.c
26294
26295 2005-10-21  Simon Josefsson  <jas@extundo.com>
26296
26297         * lib/arctwo.h, lib/arctwo.c: New files.
26298
26299         * lib/gc-gnulib.c: Support ARCTWO.
26300
26301 2005-10-21  Simon Josefsson  <jas@extundo.com>
26302
26303         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
26304         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26305
26306 2005-10-21  Simon Josefsson  <jas@extundo.com>
26307
26308         * gnulib-tool (func_import, func_create_testdir): Define automake
26309         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
26310         Makefile.am snippet),
26311         suggested by Bruno Haible <bruno@clisp.org>.
26312
26313         * modules/gc (Makefile.am): Use it.
26314
26315 2005-10-21  Bruno Haible  <bruno@clisp.org>
26316
26317         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
26318         patch.
26319
26320 2005-10-19  Simon Josefsson  <jas@extundo.com>
26321
26322         * tests/test-gc-rijndael.c: New file.
26323
26324         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
26325
26326 2005-10-19  Simon Josefsson  <jas@extundo.com>
26327
26328         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
26329         interface too.
26330
26331 2005-10-19  Simon Josefsson  <jas@extundo.com>
26332
26333         * tests/test-gc-arcfour.c: New file.
26334
26335         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
26336
26337 2005-10-19  Simon Josefsson  <jas@extundo.com>
26338
26339         * modules/gc-md4, modules/gc-md4-tests: New file.
26340
26341         * tests/test-gc-md4.c: New file.
26342
26343 2005-10-19  Simon Josefsson  <jas@extundo.com>
26344
26345         * m4/gc-md4.m4: New file.
26346
26347 2005-10-19  Simon Josefsson  <jas@extundo.com>
26348
26349         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
26350         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
26351         <kasal@ucw.cz>.
26352
26353 2005-10-19  Simon Josefsson  <jas@extundo.com>
26354
26355         * m4/gc-arcfour.m4: New file.
26356
26357         * m4/gc-rijndael.m4: New file.
26358
26359 2005-10-19  Simon Josefsson  <jas@extundo.com>
26360
26361         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
26362
26363 2005-10-19  Simon Josefsson  <jas@extundo.com>
26364
26365         * lib/gc-gnulib.c: Support ARCFOUR.
26366
26367 2005-10-19  Simon Josefsson  <jas@extundo.com>
26368
26369         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
26370         support.
26371
26372         * lib/gc.h: Add ECB enum type.
26373
26374         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
26375
26376 2005-10-18  Simon Josefsson  <jas@extundo.com>
26377
26378         * tests/test-md5.c: New file.
26379
26380         * modules/md5-tests: New file.
26381
26382 2005-10-18  Simon Josefsson  <jas@extundo.com>
26383
26384         * tests/test-md4.c: New file.
26385
26386         * modules/md4, modules/md4-tests: New files.
26387
26388 2005-10-18  Simon Josefsson  <jas@extundo.com>
26389
26390         * m4/md4.m4: New file.
26391
26392 2005-10-18  Simon Josefsson  <jas@extundo.com>
26393
26394         * lib/md4.h, lib/md4.c: New files, based on md5.?.
26395
26396 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
26397
26398         * gnulib-tool (func_create_testdir): Omit the second check whether
26399         BUILT_SOURCES in nonempty.
26400
26401 2005-10-17  Simon Josefsson  <jas@extundo.com>
26402
26403         * tests/test-rijndael.c: New file.
26404
26405 2005-10-17  Simon Josefsson  <jas@extundo.com>
26406
26407         * modules/sha1: Depend on stdint instead of md5.
26408
26409         * modules/md5: Depend on stdint, remove uint32_t.
26410
26411 2005-10-17  Simon Josefsson  <jas@extundo.com>
26412
26413         * modules/gc-sha1-tests: New file.
26414
26415         * tests/test-gc-sha1.c: New file.
26416
26417 2005-10-17  Simon Josefsson  <jas@extundo.com>
26418
26419         * m4/md5.m4: Remove call to uint32_t.m4.
26420
26421 2005-10-17  Simon Josefsson  <jas@extundo.com>
26422
26423         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
26424
26425         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
26426         md5.h.
26427
26428         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
26429
26430         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
26431
26432 2005-10-17  Simon Josefsson  <jas@extundo.com>
26433
26434         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
26435
26436 2005-10-17  Simon Josefsson  <jas@extundo.com>
26437
26438         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
26439
26440 2005-10-17  Simon Josefsson  <jas@extundo.com>
26441
26442         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
26443
26444         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
26445
26446 2005-10-17  Bruno Haible  <bruno@clisp.org>
26447
26448         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
26449         that it can also be used in a test.
26450
26451 2005-10-16  Bruno Haible  <bruno@clisp.org>
26452
26453         * gnulib-tool (func_emit_tests_Makefile_am): Also define
26454         TESTS_ENVIRONMENT, so that individual tests can augment it.
26455
26456         * gnulib-tool (func_create_testdir): Use an intermediate target for
26457         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
26458         macros, like $(ALLOCA_H), which cannot be passed through the command
26459         line.
26460
26461 2005-10-15  Simon Josefsson  <jas@extundo.com>
26462
26463         * modules/rijndael-tests: New file.
26464
26465         * modules/rijndael: New file.
26466
26467 2005-10-15  Simon Josefsson  <jas@extundo.com>
26468
26469         * m4/rijndael.m4: New file.
26470
26471 2005-10-15  Simon Josefsson  <jas@extundo.com>
26472
26473         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
26474
26475         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
26476
26477 2005-10-14  Simon Josefsson  <jas@extundo.com>
26478
26479         * tests/test-arcfour.c: New file.
26480
26481         * modules/arcfour, modules/arcfour-tests: New files.
26482
26483 2005-10-14  Simon Josefsson  <jas@extundo.com>
26484
26485         * m4/arcfour.m4: New file.
26486
26487 2005-10-14  Simon Josefsson  <jas@extundo.com>
26488
26489         * lib/arcfour.h, lib/arcfour.c: New files.
26490
26491 2005-10-14  Roland McGrath  <roland@redhat.com>
26492
26493         Import from libc.  [BZ #1331]
26494         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
26495         macro argument.
26496         Reported by Matej Vela <vela@debian.org>.
26497
26498 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
26499
26500         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
26501         include <wchar.h>; no longer needed.
26502
26503 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
26504
26505         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
26506
26507 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
26508         and  Ulrich Drepper  <drepper@redhat.com>
26509
26510         Import from libc.
26511         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
26512         instead of inline stream orientation test and two separate
26513         function calls.  Pay no attention to USE_IN_LIBIO.
26514
26515 2005-10-13  Simon Josefsson  <jas@extundo.com>
26516
26517         * modules/gc-hmac-md5-tests: New file.
26518
26519         * tests/test-gc-hmac-sha1.c: New file.
26520
26521         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
26522
26523         * modules/gc-hmac-md5-tests: New file.
26524
26525         * tests/test-gc-md5.c: New file.
26526
26527         * modules/gc-md5-tests: New file.
26528
26529 2005-10-13  Simon Josefsson  <jas@extundo.com>
26530
26531         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
26532         Move memory allocation outside of loop.
26533
26534 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26535
26536         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
26537         intermediate directory is in a read-only file system.  Problem
26538         reported by Eric Blake.
26539
26540 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
26541
26542         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
26543
26544 2005-10-12  Simon Josefsson  <jas@extundo.com>
26545
26546         * tests/test-hmac-sha1.c: New file.
26547
26548         * modules/hmac-sha1-tests: New file.
26549
26550         * modules/hmac-sha1: New file.
26551
26552 2005-10-12  Simon Josefsson  <jas@extundo.com>
26553
26554         * modules/gc-sha1: New file.
26555
26556 2005-10-12  Simon Josefsson  <jas@extundo.com>
26557
26558         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
26559
26560         * tests/test-gc-pbkdf2-sha1.c: New file.
26561
26562 2005-10-12  Simon Josefsson  <jas@extundo.com>
26563
26564         * modules/gc-md5, modules/gc-hmac-md5: New files.
26565
26566         * modules/gc (Files): Remove md5, memxor and hmac files.
26567
26568 2005-10-12  Simon Josefsson  <jas@extundo.com>
26569
26570         * m4/gc-pbkdf2-sha1.m4: New file.
26571
26572         * m4/gc-hmac-sha1.m4: New file.
26573
26574         * m4/gc-sha1: New file.
26575
26576         * m4/hmac-sha1.m4: New file.
26577
26578 2005-10-12  Simon Josefsson  <jas@extundo.com>
26579
26580         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
26581
26582         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
26583
26584 2005-10-12  Simon Josefsson  <jas@extundo.com>
26585
26586         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
26587         suggested by Bruno Haible <bruno@clisp.org>.
26588
26589 2005-10-12  Simon Josefsson  <jas@extundo.com>
26590
26591         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
26592
26593 2005-10-12  Simon Josefsson  <jas@extundo.com>
26594
26595         * lib/gc-pbkdf2-sha1.c: New file.
26596
26597         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
26598
26599 2005-10-12  Simon Josefsson  <jas@extundo.com>
26600
26601         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
26602
26603         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
26604
26605 2005-10-12  Simon Josefsson  <jas@extundo.com>
26606
26607         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
26608         GC_USE_HMAC_MD5, respectively.
26609
26610         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
26611         (gc_md5): Fix typo.
26612
26613         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
26614
26615         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
26616
26617         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
26618
26619 2005-10-12  Bruno Haible  <bruno@clisp.org>
26620
26621         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
26622         Reported by Stepan Kasal <kasal@ucw.cz>.
26623
26624 2005-10-11  Simon Josefsson  <jas@extundo.com>
26625
26626         * tests/test-crc.c: New file.
26627
26628         * modules/crc, modules/crc-tests: New files.
26629
26630 2005-10-11  Simon Josefsson  <jas@extundo.com>
26631
26632         * m4/crc.m4: New file.
26633
26634 2005-10-11  Simon Josefsson  <jas@extundo.com>
26635
26636         * lib/gc.h: Add gc_hash and gc_hash_buffer.
26637
26638         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
26639
26640         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
26641
26642 2005-10-11  Simon Josefsson  <jas@extundo.com>
26643
26644         * lib/crc.h, lib/crc.c: New files.
26645
26646         * lib/gc.h (gc_hash_buffer): Add doc.
26647
26648 2005-10-11  Bruno Haible  <bruno@clisp.org>
26649
26650         * modules/c-strcasestr: New file.
26651         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
26652
26653 2005-10-11  Bruno Haible  <bruno@clisp.org>
26654
26655         * modules/c-strcase: New file.
26656         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
26657
26658 2005-10-11  Bruno Haible  <bruno@clisp.org>
26659
26660         * lib/strcasecmp.c: Include limits.h.
26661         (strcasecmp): Avoid integer overflow on exotic platforms.
26662         * lib/strncasecmp.c: Include limits.h.
26663         (strncasecmp): Avoid integer overflow on exotic platforms.
26664         Reported by Paul Eggert.
26665
26666 2005-10-11  Bruno Haible  <bruno@clisp.org>
26667
26668         * lib/c-strcasestr.h: New file, from GNU gettext.
26669         * lib/c-strcasestr.c: New file, from GNU gettext.
26670
26671 2005-10-11  Bruno Haible  <bruno@clisp.org>
26672
26673         * lib/c-strcase.h: New file, from GNU gettext.
26674         * lib/c-strcasecmp.c: New file, from GNU gettext.
26675         * lib/c-strncasecmp.c: New file, from GNU gettext.
26676
26677 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26678
26679         * modules/mempcpy (License): GPL -> LGPL.
26680         * modules/strchrnul (License): Likewise.
26681         * modules/sysexits (License): Likewise.
26682
26683 2005-10-08  Simon Josefsson  <jas@extundo.com>
26684
26685         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
26686
26687 2005-10-07  Simon Josefsson  <jas@extundo.com>
26688
26689         * m4/memxor.m4: Remove gl_C_RESTRICT call.
26690
26691 2005-10-06  Simon Josefsson  <jas@extundo.com>
26692
26693         * tests/test-hmac-md5.c: New file.
26694
26695         * modules/hmac-md5-tests: New file.
26696
26697         * modules/hmac-md5: New file.
26698
26699 2005-10-06  Simon Josefsson  <jas@extundo.com>
26700
26701         * m4/hmac-md5.m4: New file.
26702
26703         * m4/memxor.m4: Require gl_C_RESTRICT.
26704
26705 2005-10-06  Simon Josefsson  <jas@extundo.com>
26706
26707         * lib/memxor.c (memxor): Avoid casts and warnings.
26708
26709 2005-10-06  Simon Josefsson  <jas@extundo.com>
26710
26711         * lib/hmac-md5.c: New file.
26712
26713         * lib/hmac.h: New file.
26714
26715 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
26716
26717         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
26718         promotes to int, not unsigned int, to catch the AIX 5.3
26719         compiler bug.
26720
26721 2005-10-05  Simon Josefsson  <jas@extundo.com>
26722
26723         * modules/memxor: New file.
26724
26725         * modules/iconv (Files): Move config.rpath to havelib, it is used
26726         there.
26727
26728         * modules/havelib (Files): Add config.rpath.
26729
26730 2005-10-05  Simon Josefsson  <jas@extundo.com>
26731
26732         * m4/memxor.m4: New file.
26733
26734 2005-10-05  Simon Josefsson  <jas@extundo.com>
26735
26736         * lib/memxor.c (memxor): Fix compiler error.
26737
26738         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
26739         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
26740
26741         * lib/memxor.h, lib/memxor.c: New files.
26742
26743         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
26744         we assume all systems have it, suggested by Jim Meyering
26745         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
26746         any systems lack sys/socket.h; mingw32 is known to lack it, but we
26747         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
26748         same reasons.
26749
26750 2005-10-05  Simon Josefsson  <jas@extundo.com>
26751
26752         * config/srclist.txt: Add glibc bug 1423 for md5.h.
26753
26754 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26755
26756         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
26757         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
26758         needed, since the source code now assumes these .h files.
26759
26760 2005-10-05  Derek Price  <derek@ximbiot.com>
26761
26762         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
26763
26764 2005-10-05  Bruno Haible  <bruno@clisp.org>
26765
26766         * modules/stdint (License): Change to LGPL.
26767
26768 2005-10-04  Simon Josefsson  <jas@extundo.com>
26769
26770         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
26771         D. Baushke" <mdb@gnu.org>.
26772
26773 2005-10-04  Bruno Haible  <bruno@clisp.org>
26774
26775         * lib/verify.h (verify_true): Provide alternative definition for C++.
26776
26777 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
26778
26779         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
26780         (SSIZE_MAX): New macro, if not already defined.
26781         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
26782         than 2 GiB.
26783
26784 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
26785
26786         Sync from coreutils.
26787         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
26788         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
26789         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
26790         ULLONG_MAX doesn't work with 2.7.2.1.
26791
26792 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
26793
26794         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
26795         From Ben Pfaff.
26796
26797         * modules/exclude (Depends-on): Depend on verify.
26798         * modules/strtoimax (Depends-on): Likewise.
26799         * modules/utimecmp (Depends-on): Likewise.
26800
26801 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
26802
26803         * lib/exclude.c: Include verify.h.
26804         (verify): Remove.  All callers changed to use verify.h's version.
26805         * lib/strtoimax.c: Likewise.
26806         * lib/utimecmp.c: Likewis.e
26807
26808         Sync from coreutils.
26809         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
26810         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
26811         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
26812         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
26813         bother returning ENOSYS if settimeofday or stime fails; just let
26814         them return whatever errno they want to return.
26815         * lib/utimens.c: Include unistd.h, for dup2.
26816         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
26817         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
26818
26819 2005-10-02  Jim Meyering  <jim@meyering.net>
26820
26821         Sync from coreutils.
26822         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
26823         from glibc-2.2.5 that fails for read-only files.
26824
26825 2005-10-02  Jim Meyering  <jim@meyering.net>
26826
26827         Sync from coreutils.
26828         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
26829         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
26830         `#if HAVE_CONFIG_H'.
26831         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
26832         Remove AT_FDCWD test.
26833         Do not consume the fd unless successful.
26834         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
26835         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
26836         block, so that we don't even try to compile it if settimeofday is
26837         available.  This works around a compilation failure on OSF1 V5.1,
26838         due to stime requiring a `long int*' while tv_sec is `int'.
26839
26840 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
26841
26842         Sync from coreutils.
26843         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
26844         against `yes', rather than just testing for nonempty.
26845
26846 2005-10-01  Simon Josefsson  <jas@extundo.com>
26847
26848         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
26849         and Darwin.
26850
26851         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
26852         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
26853         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
26854         freeaddrinfo and gai_strerror are declared by the POSIX headers.
26855         Check if struct addrinfo is declared.
26856
26857 2005-10-01  Simon Josefsson  <jas@extundo.com>
26858
26859         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
26860         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
26861         AI_* and EAI_* definitions.  Protect function declarations.
26862
26863 2005-10-01  Jim Meyering  <jim@meyering.net>
26864
26865         Sync from coreutils.
26866
26867         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
26868         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
26869         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
26870         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
26871         in the inet and nsl libraries.  Required on Solaris 5.7.
26872
26873 2005-10-01  Jim Meyering  <jim@meyering.net>
26874
26875         Sync from coreutils.
26876         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
26877         in the inet and nsl libraries.  Required on Solaris 5.7.
26878
26879 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
26880
26881         * lib/getdelim.c (getdelim): Remove unused variables.
26882
26883 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
26884
26885         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
26886         so that the code works even with ancient cpp.  Portability problem
26887         with GCC 2.7.2.1 reported by Thomas M.Ott.
26888
26889 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
26890
26891         * modules/regex (Depends-on): Add strcase.
26892
26893         * modules/gethostname (Licence): Change from GPL to LGPL, since
26894         gethostname.c is a trivial implementation of a standard library
26895         function.
26896         * modules/poll (License): Change from GPL to LGPL, since it's
26897         derived from LGPL code.
26898
26899 2005-09-27  Jim Meyering  <jim@meyering.net>
26900
26901         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
26902         HAVE_CONFIG_H.
26903
26904         * lib/intprops.h (signed_type_or_expr__): Define.
26905         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
26906         for unsigned types.
26907
26908 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
26909
26910         * lib/verify.h (verify_expr): Remove, replacing with:
26911         (verify_true): New macro that returns true instead of void.
26912         (verify_type__): Remove.
26913         (verify): Use verify_true rather than verify_type__.
26914
26915 2005-09-26  Bruno Haible  <bruno@clisp.org>
26916
26917         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
26918         is necessary.
26919         (lib_SOURCES): Remove mbchar.c.
26920         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
26921         (Files): Add m4/mbrtowc.m4.
26922         * modules/mbiter: Likewise.
26923         * modules/mbuiter: Likewise.
26924
26925 2005-09-26  Bruno Haible  <bruno@clisp.org>
26926
26927         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
26928         compile mbchar.c if they are not both present.
26929         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
26930         * m4/mbiter.m4 (gl_MBITER): Likewise.
26931         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
26932         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
26933         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
26934
26935 2005-09-25  Jim Meyering  <jim@meyering.net>
26936
26937         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
26938         also uses socklen_t.
26939
26940 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
26941
26942         * lib/utimens.c (ENOSYS): Define if not already defined.
26943         (futimens): Support having a null PATH if the file descriptor
26944         is nonnegative.
26945
26946         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
26947         Remove.
26948         (__attribute): Define to empty unless GCC 3.1 or later.
26949         This works around a core dump on OpenBSD 3.4, which has GCC
26950         2.95.3, which dumps core when given __attribute__(()).  It also
26951         simplifies other tests, since we really don't want to bother with
26952         worrying about which ancient version of GCC supported what.
26953         Original problem reported by Yoann Vandoorselaere, with part of
26954         the fix suggested by Derek Price.
26955
26956 2005-09-24  Jim Meyering  <jim@meyering.net>
26957
26958         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
26959         so we can once again use a positive bitfield width of 1 -- now we
26960         don't have to explain why we were using a bitfield width of 2.
26961
26962 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
26963
26964         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
26965         and similarly for the other external symbols.  Problem reported
26966         by James Gallager.
26967
26968         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
26969         bug reported by Jim Meyering.
26970
26971         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
26972         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
26973         not needed, since socklen is a prerequisite module.
26974
26975 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
26976
26977         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
26978         Problem reported by Eric Blake.
26979         (getaddrinfo): Initialize se so that it's not garbage.
26980         Redo internal storage allocation so that it doesn't make unportable
26981         assumptions about alignment.
26982         Fix a memory leak.
26983
26984         * lib/utimens.c (futimens): Use futimesat if available.
26985         Prefer it to futimes since it doesn't have the futimes bug.
26986
26987         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
26988         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
26989         Instead, declare a function that returns a pointer to an array,
26990         and use verify_type__ to declare the size of the array.
26991         Problem and germ of a solution reported by Bruno Haible.
26992         (verify_type__): Use 2, not 1, for bitfield size, to avoid
26993         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
26994
26995 2005-09-23  Jim Meyering  <jim@meyering.net>
26996
26997         Sync from coreutils.
26998         Correct build failure (socklen_t not defined) on at least
26999         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
27000         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
27001
27002 2005-09-23  Jim Meyering  <jim@meyering.net>
27003
27004         * modules/getaddrinfo (Depends-on): Add socklen.
27005
27006 2005-09-23  Bruno Haible  <bruno@clisp.org>
27007
27008         * tests/test-verify.c: New file.
27009
27010 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27011
27012         Sync from coreutils.
27013
27014         * modules/argmatch (Depends-on): Add verify.
27015         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
27016         unistd-safer.
27017         * modules/save-cwd (Depends-on): Likewise.
27018
27019         * modules/openat (Files): Add lib/openat-die.c.
27020         (Depends-on): Remove error, exitfail.
27021         Add dirname.
27022
27023         * modules/verify: New file.
27024         * MODULES.html.sh (Diagnostics <assert.h>): New section,
27025         with "verify" module.
27026
27027 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27028
27029         Sync from coreutils.
27030
27031         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
27032         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
27033         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
27034         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
27035         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
27036         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
27037         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
27038         Don't bother checking for string.h, stdlib.h, unistd.h.
27039         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
27040         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
27041         module's job.
27042         * m4/jm-macros.m4 (gl_MACROS): Likewise.
27043         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
27044
27045         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
27046         (gl_GETDATE): Use it.
27047
27048         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
27049
27050 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27051
27052         Sync from coreutils.
27053
27054         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
27055         stat-time.h.
27056         * lib/argmatch.h: Include verify.h
27057         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
27058         (ARGMATCH_ASSERT): Remove; unused.
27059         * lib/canonicalize.c: Assume STDC_HEADERS.
27060         * lib/exclude.c: Include "strcase.h".
27061         * lib/regex_internal.h [!defined _LIBC]: Likewise.
27062         * lib/getusershell.c: Include stdio--.h rather than stdio.h
27063         and stdio-safer.h.
27064         (getusershell): Call fopen, not fopen_safer.
27065         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
27066         Do not include unistd-safer.h.
27067         (save_cwd): Don't call fd_safer; no longer needed
27068         now that we include fcntl--.h.
27069
27070         * lib/getdate.y (relative_time): New type.
27071         (RELATIVE_TIME_0): New constant.
27072         (parser_control): Use relative_time instead of doing it ourselves.
27073         (%union): Add new relative_time rel member.
27074         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
27075         Now typeless.
27076         (relunit, relunit_snumber): Now of type rel.
27077         (zone, rel, relunit, get_date): Adjust to above changes.
27078
27079         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
27080         Do not include unistd-safer.h.
27081         (getloadavg): Don't call fd_safer; no longer needed
27082         now that we include fcntl--.h.
27083
27084         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
27085         (make_dir_parents): Treat ENOSYS like EEXIST.
27086
27087         Improve quality of diagnostics on restore_cwd failure.
27088         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
27089         (make_dir_parents): Last arg is now int * (for errno), not bool *.
27090         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
27091         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
27092         each time through the loop.  Do not diagnose restore_cwd failure;
27093         that is the caller's job (and perhaps the caller does not care).
27094
27095         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
27096         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
27097         If the file already exists but is not a directory, don't bother
27098         to try to make its parents.
27099         Close potential file descriptor leak if we can't chdir("/") (!).
27100         Don't always return true if chdir($PWD) fails; return true only
27101         if the requested action was done successfully (except for the
27102         chdir($PWD)).
27103         Don't log final directory unless we actually made it.
27104         Refactor to avoid duplicate code to fix up permissions.
27105         Don't attempt to fix up parent permissions if chdir($PWD) fails.
27106
27107         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
27108         to make it a bit faster and (I hope) clearer.
27109         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
27110         Fix bug in formats like %2N.
27111
27112         * lib/verify.h: New file.
27113
27114 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27115
27116         Sync from coreutils.
27117         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
27118
27119 2005-09-22  Jim Meyering  <jim@meyering.net>
27120
27121         Sync from coreutils.
27122
27123         * m4/lstat.m4 (gl_FUNC_LSTAT):
27124         Use AC_LIBSOURCES to require lstat.c and lstat.h.
27125         Remove obsolete comment.
27126         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
27127         * m4/xstrtod.m4: Likewise.
27128
27129         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
27130
27131 2005-09-22  Jim Meyering  <jim@meyering.net>
27132
27133         Sync from coreutils.
27134
27135         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
27136
27137         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
27138         the .tm_year member, since otherwise gcc-4.0 would now warn about
27139         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
27140
27141         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
27142         order to avoid an unsuppressible warning from gcc on 64-bit systems.
27143
27144         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
27145         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
27146         when run in a time zone for which daylight savings time is in effect
27147         for the starting date.
27148
27149         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
27150         stop us from restricting permissions of just-created absolute-named
27151         directories.
27152         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
27153         to restore initial working directory.
27154         * lib/mkdir-p.c (make_dir_parents): New parameter:
27155         different_working_dir, to tell caller if/when we change the working
27156         directory and are unable to return to the initial one.
27157         * lib/mkdir-p.h (make_dir_parents): Update prototype.
27158         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
27159         `return false'.  This fixes a bug introduced on 2004-07-30.
27160
27161         * lib/openat.c (fdopendir): Be sure to close the supplied
27162         file descriptor before returning.  This makes our replacement
27163         implementation a little closer to Solaris's, where fdopendir
27164         ties the file descriptor to the returned DIR* pointer.
27165         * lib/openat.c (unlinkat): New function.
27166         * lib/openat.h (unlinkat): Add prototype.
27167         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
27168         (openat_restore_fail): Rename from openat_restore_die.
27169         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
27170
27171         Provide an alternative to exiting immediately upon save_cwd or
27172         restore_cwd failure.  Now, an application can arrange e.g.,
27173         to perform a longjump in that case.
27174         * lib/openat.c: Include dirname.h.
27175         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
27176         (rpl_openat, fdopendir, fstatat): Call openat_save_die
27177         and openat_restore_die rather than calling error directly.
27178         Don't include "error.h" or "exitfail.h"; they're no longer needed.
27179
27180         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
27181         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
27182         define.
27183
27184         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
27185         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
27186                             int utc, int nanoseconds);
27187         Background:
27188         date should not have to allocate a megabyte of virtual memory to
27189         handle a format argument like +%1048575T.  When implemented with
27190         strftime, it must allocate such a buffer, use strftime to fill it
27191         in, print it, then free it.
27192         With fprintftime, it simply prints everything and exits.
27193         With no need for memory allocation, that's one fewer way to fail.
27194         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
27195         optional field width, not before, so we accept %9:z, not %:9z.
27196         (my_strftime): Be sure to use L_('x') for literals.
27197
27198         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
27199         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
27200         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
27201         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
27202         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
27203         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
27204         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
27205         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
27206         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
27207         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
27208         * lib/xgethostname.c, lib/xreadlink.c:
27209         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
27210
27211         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
27212         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
27213         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
27214         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
27215         and don't include <sys/file.h>).
27216
27217 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
27218
27219         Sync from coreutils.
27220
27221         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
27222         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
27223         [!LDAV_DONE]: Avoid unused variable warning.
27224
27225 2005-09-21  Bruno Haible  <bruno@clisp.org>
27226
27227         * lib/unicodeio.h (unicode_to_mb): New declaration.
27228
27229 2005-09-20  Derek Price  <derek@ximbiot.com>
27230
27231         * lib/getaddrinfo.c: Don't include <netdb.h> included from
27232         getaddrinfo.h.
27233
27234 2005-09-20  Bruno Haible  <bruno@clisp.org>
27235
27236         * gnulib-tool: Remove trailing slashes from the values specified for
27237         --source-base, --m4-base, --tests-base, --aux-dir.
27238         Suggested by Simon Josefsson <jas@extundo.com>.
27239
27240 2005-09-20  Bruno Haible  <bruno@clisp.org>
27241
27242         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
27243         func_modules_to_filelist, func_import, func_create_testdir): Make all
27244         sorting results locale-independent, so that gnulib-cache.m4 doesn't
27245         change when gnulib-tool is invoked in a different locale.
27246
27247 2005-09-19  Simon Josefsson  <jas@extundo.com>
27248
27249         * m4/socklen.m4: Fix typo.
27250
27251 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27252
27253         Use a consistent style for including <config.h>.
27254         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
27255         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
27256         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
27257         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
27258         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
27259         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
27260         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
27261         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
27262         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
27263         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
27264         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
27265         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
27266         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
27267         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
27268         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
27269         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
27270         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
27271         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
27272         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
27273         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
27274         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
27275         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
27276         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
27277         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
27278         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
27279         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
27280         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
27281         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
27282         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
27283         lib/xstrtoumax.c, lib/yesno.c:
27284         Standardize inclusion of config.h.
27285         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
27286         lib/inttostr.h:  Removed inclusion of config.h from header files.
27287         * lib/inttostr.c:  Adjusted in-tree users.
27288         * lib/timespec.h: Remove superfluous warning to include config.h.
27289         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
27290         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
27291         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
27292         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
27293         config.h with HAVE_CONFIG_H.
27294
27295 2005-09-19  Jim Meyering  <jim@meyering.net>
27296
27297         * modules/pathmax (License): Change to LGPL.
27298
27299 2005-09-19  Derek Price  <derek@ximbiot.com>
27300
27301         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
27302
27303 2005-09-19  Bruno Haible  <bruno@clisp.org>
27304
27305         * gnulib-tool (import): Provide default for --tests-base.
27306
27307 2005-09-19  Bruno Haible  <bruno@clisp.org>
27308
27309         * doc/quote.texi: New file, extracted from gnulib.texi.
27310         * doc/ctime.texi: New file, extracted from gnulib.texi.
27311         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
27312         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
27313         * doc/gnulib.texi: Include them.
27314
27315 2005-09-18  Bruno Haible  <bruno@clisp.org>
27316
27317         Portability fix.
27318         * gnulib-tool (func_readlink): New function.
27319         (func_ln_if_changed): Use it.
27320
27321 2005-09-18  Bruno Haible  <bruno@clisp.org>
27322
27323         * gnulib-tool: Support --with-tests also with --import.
27324         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
27325         (func_import): Use variables $testsbase and $inctests. Emit a
27326         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
27327         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
27328         SUBDIRS += $testsdir.
27329         (func_create_testdir): Update.
27330
27331 2005-09-18  Bruno Haible  <bruno@clisp.org>
27332
27333         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
27334         instead of $dry_run.
27335         (func_cp_if_changed, func_mv_if_changed): Remove functions.
27336         (func_ln_if_changed): Don't handle dry-run here.
27337         (func_import): In dry-run mode, detect more precisely which actions
27338         would be performed, and don't use "...ing" verbs.
27339
27340 2005-09-18  Bruno Haible  <bruno@clisp.org>
27341
27342         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
27343         (func_import): Use join on two temporary files instead of three nested
27344         loops, in order to determine which files are new or old.
27345
27346 2005-09-18  Bruno Haible  <bruno@clisp.org>
27347
27348         * gnulib-tool (func_import): Comment out code that spits out the
27349         new files with --dry-run.
27350
27351 2005-09-18  Bruno Haible  <bruno@clisp.org>
27352
27353         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
27354
27355 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27356
27357         * lib/stat-time.h: New file.
27358         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
27359         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
27360         in a different way.
27361         (timespec_cmp): New function.
27362         * lib/utimecmp.c: Include stat-time.h.
27363         (SYSCALL_RESOLUTION): Depend on whether various struct stat
27364         members exist, not on the obsolescent ST_MTIM_NSEC.
27365         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
27366
27367 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27368
27369         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
27370
27371 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27372
27373         * MODULES.html.sh (File system functions): Add stat-time.
27374         * modules/stat-time: New file.
27375         * modules/timespec (Files): Remove m4/st_mtim.m4; this
27376         is now done in a different way, by the stat-time module.
27377         * modules/utimecmp (Depends-on): Add stat-time.
27378
27379 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
27380
27381         * m4/st_mtim.m4: Remove.  Superseded by...
27382         * m4/stat-time.m4: New file.
27383         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
27384         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
27385
27386 2005-09-15  Derek Price  <derek@ximbiot.com>
27387
27388         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
27389
27390 2005-09-15  Derek Price  <derek@ximbiot.com>
27391
27392         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
27393         * lib/regex_internal.c: Ditto, using this...
27394         (__GNUC_PREREQ): ...new macro.
27395         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
27396         using...
27397         (__GNUC_PREREQ): ...this new macro.
27398
27399         * lib/strstr.h: Include string.h. Define strstr as a macro here.
27400
27401 2005-09-15  Derek Price  <derek@ximbiot.com>
27402             Paul Eggert  <eggert@cs.ucla.edu>
27403
27404         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
27405         changes, consolidating in...
27406         * lib/regex_internal.h: ...this file.
27407
27408 2005-09-13  Jim Meyering  <jim@meyering.net>
27409
27410         * lib/canon-host.c: Filter through gnu indent and reword comments
27411         slightly.
27412         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
27413
27414 2005-09-13  Derek Price  <derek@ximbiot.com>
27415
27416         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
27417         failure.
27418         Reported by Jim Meyering  <jim@meyering.net>.
27419
27420 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
27421
27422         * lib/base64.c: Typo.
27423         (base64_encode): Put b64str in initialized data section.
27424
27425 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27426
27427         Merge glibc and coreutils changes into gnulib, plus a few
27428         extra fixes.
27429         * lib/md5.c: Use #error rather than a string.
27430         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
27431         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
27432         (__attribute__): Define to empty for non recent-GCC.
27433         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
27434         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
27435         Renamed from their non-__ counterparts, with new macros replacing
27436         them if not _LIBC.  Add __THROW attribute.
27437         (rol): Remove.
27438         (struct md5_ctx): Align buffer if using GCC.
27439         * lib/sha1.h (struct sha1_ctx): Likewise.
27440         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
27441         The old name was backwards.
27442         (NOTSWAP): Remove; not used.
27443         (rol): New macro, moved here from md5.h.
27444         (sha1_process_block): Remove a FIXME that doesn't make sense.
27445
27446 2005-09-12  Derek Price  <derek@ximbiot.com>
27447
27448         Return usable errors from canon-host.
27449         * lib/canon-host.h: New file.
27450         * lib/canon-host.c (canon_host): Wrap...
27451         (canon_host_r): ...this new function, which now relies exclusively on
27452         getaddrinfo.
27453         (ch_strerror): New function.
27454         (last_cherror): New global.
27455         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
27456         interface.
27457         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
27458         void *.
27459         (freeaddrinfo): Free ai->ai_canonname when set.
27460
27461 2005-09-12  Derek Price  <derek@ximbiot.com>
27462
27463         Make canon-host require getaddrinfo.
27464         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
27465         AC_LIBSOURCE canon-host.h.  Call...
27466         (gl_PREREQ_CANON_HOST): ...this new function, which requires
27467         gl_GETADDRINFO.
27468         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
27469
27470 2005-09-12  Derek Price  <derek@ximbiot.com>
27471
27472         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
27473         LGPL.
27474         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
27475
27476 2005-09-12  Derek Price  <derek@ximbiot.com>
27477
27478         * lib/gai_strerror.c: Include config.h when available.  Include
27479         getaddrinfo.h before other headers to test interface.
27480         Reported by Larry Jones <lawrence.jones@ugs.com>.
27481
27482 2005-09-12  Derek Price  <derek@ximbiot.com>
27483             Paul Eggert  <eggert@cs.ucla.edu>
27484
27485         * modules/glob (Files): Add glob-libc.h.
27486
27487 2005-09-12  Derek Price  <derek@ximbiot.com>
27488             Paul Eggert  <eggert@cs.ucla.edu>
27489
27490         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
27491         glob_.h, glob-libc.h.
27492         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
27493
27494 2005-09-12  Derek Price  <derek@ximbiot.com>
27495             Paul Eggert  <eggert@cs.ucla.edu>
27496
27497         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
27498         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
27499         protecting things that should be done only in gnulib contexts.
27500         * lib/glob_.h: New file, containing only the glob things needed for
27501         gnulib.
27502         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
27503         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
27504         (glob, globfree, glob_pattern_p): Now defined simply in terms of
27505         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
27506         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
27507         and to respect the namespace rules better.
27508
27509 2005-09-08  Simon Josefsson  <jas@extundo.com>
27510
27511         * modules/socklen: New file.
27512
27513 2005-09-08  Simon Josefsson  <jas@extundo.com>
27514
27515         * m4/socklen.m4: New file.
27516
27517 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
27518
27519         * modules/utimens (Files): Add m4/utimbuf.m4, since
27520         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
27521         Reported by Sergey Poznyakoff.
27522
27523 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
27524
27525         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
27526         definitions, since that's the preferred style in glibc.
27527         Fix a minor spacing issue, and update copyright notice to match
27528         glibc's.
27529
27530 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
27531
27532         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
27533
27534 2005-09-06  Simon Josefsson  <jas@extundo.com>
27535
27536         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
27537         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
27538
27539 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27540
27541         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
27542         warning.
27543
27544 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27545
27546         * config/srclist.txt: Add glibc bug 1302.
27547
27548 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
27549
27550         Change bitset word type from unsigned int to unsigned long int,
27551         as this has better performance on typical 64-bit hosts.
27552         Port bitset code to hosts with unusual word sizes.
27553         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
27554         (build_collating_symbol):
27555         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
27556         argument is a bitset.  This is merely a style issue, but it makes
27557         it clearer that an entire array is expected.
27558         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
27559         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
27560         Port to the case where bitset_word is not the same as unsigned int.
27561         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
27562         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
27563         Likewise.
27564         * lib/regexec.c (check_dst_limits_calc_pos_1,
27565         check_subexp_matching_top):
27566         (build_trtable, group_nodes_into_DFAstates):
27567         Likewise.
27568         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
27569         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
27570         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
27571         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
27572         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
27573         * lib/regcomp.c (optimize_subexps, lower_subexp):
27574         Work even if bitset_word has holes in its bitwise representation.
27575         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
27576         * lib/regexec.c (check_dst_limits_calc_pos_1,
27577         check_subexp_matching_top):
27578         Likewise.
27579         * lib/regex_internal.c (re_string_reconstruct):
27580         Don't assume UCHAR_MAX == 255.
27581         * lib/regex_internal.h (bitset_set_all): Likewise.
27582         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
27583         All uses changed.
27584         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
27585         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
27586         All uses changed.
27587         (BITSET_WORD_MAX): New macro.
27588         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
27589         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
27590         (bitset_empty, bitset_copy):
27591         Prefer sizeof (bitset) to multiplying it out ourselves.
27592         (bitset_not_merge): Remove; unused.
27593         (bitset_contain): Return bool, not unsigned int with one bit on.
27594         All callers changed.
27595         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
27596         alignment than re_node_set; do this by defining a new internal
27597         type struct dests_alloc and using it to allocate memory.
27598
27599 2005-09-05  Bruno Haible  <bruno@clisp.org>
27600
27601         * gnulib-tool (func_import): Fix comparison in handling of symbolic
27602         links.
27603
27604 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
27605
27606         * modules/size_max (Makefile.am): Add size_max.h
27607
27608 2005-09-04  Derek Price  <derek@ximbiot.com>
27609
27610         * gnulib-tool (func_import): Fix reversed $symbolic logic.
27611
27612 2005-09-03  Simon Josefsson  <jas@extundo.com>
27613
27614         * gnulib-tool: Fix typo.
27615
27616 2005-09-03  Simon Josefsson  <jas@extundo.com>
27617
27618         * config/srclist.txt: Add glibc bug 1293.
27619
27620 2005-09-03  Derek Price  <derek@ximbiot.com>
27621
27622         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
27623         From Larry Jones <lawrence.jones@ugs.com>.
27624
27625 2005-09-02  Simon Josefsson  <jas@extundo.com>
27626
27627         * modules/socklen: New file.
27628
27629 2005-09-02  Simon Josefsson  <jas@extundo.com>
27630
27631         * modules/havelib: New module.
27632
27633         * modules/gettext, modules/iconv, modules/lock, modules/readline:
27634         Use havelib.
27635
27636 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27637
27638         Check for arithmetic overflow when calculating sizes, to prevent
27639         some buffer-overflow issues.  These patches are conservative, in the
27640         sense that when I couldn't determine whether an overflow was possible,
27641         I inserted a run-time check.
27642         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
27643         macros.
27644         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
27645         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
27646         (re_xnrealloc, re_x2nrealloc): New inline functions.
27647         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
27648         parse_bracket_exp):
27649         (build_equiv_class, build_charclass): Check for arithmetic overflow
27650         in size expression calculations.
27651         * lib/regex_internal.c (re_string_realloc_buffers):
27652         (build_wcs_upper_buffer, re_node_set_add_intersect):
27653         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
27654         (re_dfa_add_node, register_state): Likewise.
27655         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
27656         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
27657         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
27658         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
27659
27660 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27661
27662         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
27663         m4/ulonglong.m4.  Problem reported by Martin Lambers.
27664
27665 2005-09-02  Bruno Haible  <bruno@clisp.org>
27666
27667         Support for lib vs. lib64 distinction on biarch platforms.
27668         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
27669         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
27670         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
27671
27672 2005-09-02  Bruno Haible  <bruno@clisp.org>
27673
27674         * gnulib-tool (import): In the other first-use case, provide defaults
27675         as well.
27676
27677 2005-09-02  Bruno Haible  <bruno@clisp.org>
27678
27679         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
27680         patches not yet found in the latest gettext release.
27681
27682 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27683
27684         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
27685         to avoid a collision with bits/local_lim.h in glibc.
27686         All uses changed.  Problem reported by Dmitry V. Levin in
27687         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
27688
27689         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
27690         bugs in int versus size_t comparisons.
27691         (re_string_context_at): Fix bug where the code assumed that
27692         Idx is signed.
27693
27694         Use bool where appropriate.
27695         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
27696         All callers changed.
27697         (calc_eclosure_iter): Likewise, for ROOT arg.
27698         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
27699         (build_charclass_op): Likewise, for NON_MATCH arg.
27700         * lib/regex_internal.c (re_string_allocate, re_string_construct):
27701         (re_string_construct_common): Likewise, for ICASE arg.
27702         * lib/regexec.c (re_search_2_stub, re_search_stub):
27703         Likewise, for RET_LEN arg.
27704         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
27705         (set_regs): Likewise, for FL_BACKTRACK arg.
27706         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
27707         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
27708         (calc_eclosure_iter, parse_bracket_exp):
27709         Use bool for internal variables that are booleans.
27710         * lib/regexec.c (re_search_internal, check_matching,
27711         proceed_next_node):
27712         (set_regs, build_sifted_states, sift_states_bkref):
27713         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
27714         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
27715         (find_collation_sequence_value):
27716         Likewise.
27717         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
27718         (re_node_set_compare):
27719         Return bool, not int. All callers changed.
27720         * lib/regexec.c (check_halt_node_context, check_dst_limits):
27721         (build_trtable, check_node_accept): Likewise.
27722         * lib/regex_internal.h: Include stdbool.h.
27723
27724         Fix bugs uncovered when converting to bool.
27725         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
27726         failure instead of charging ahead blindly.
27727         * lib/regex_internal.c (register_state): Likewise.
27728         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
27729         for freeing internal storage.
27730         (group_nodes_into_DFA_states): Use unsigned int, not int, for
27731         bitset pieces used as boolean, to avoid undefined behavior
27732         on hosts that do int overflow checking.
27733
27734 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27735
27736         * config/srclist.txt: Add glibc bugs 1285-1287.
27737
27738 2005-09-01  Jim Meyering  <jim@meyering.net>
27739
27740         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
27741         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
27742         Require gl_STAT_MACROS, too.
27743
27744 2005-09-01  Bruno Haible  <bruno@clisp.org>
27745
27746         * gnulib-tool (import): In the first-use case, provide defaults.
27747
27748 2005-09-01  Bruno Haible  <bruno@clisp.org>
27749
27750         * gnulib-tool (func_import): Remove the .tmp files.
27751
27752 2005-09-01  Bruno Haible  <bruno@clisp.org>
27753
27754         * gnulib-tool (func_import): Fix handling of symbolic links.
27755
27756 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
27757
27758         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
27759         old glibc regex code mishandles strings longer than 2**31 bytes.
27760         This patch fixes this when the regex code is used in gnulib
27761         (i.e., outside glibc).
27762
27763         This patch should not affect the use of the regex code inside
27764         glibc.  No doubt this problem also needs to be handled for glibc
27765         as well, but the result will be an incompatible change to the
27766         glibc ABI, and the old ABI will have to be supported too.  That
27767         can be the the subject for another patch.
27768
27769         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
27770         governing whether the rest of this patch is active.  By default,
27771         the macro is disabled and the patch has no effect.
27772         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
27773         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
27774         (struct re_pattern_buffer, re_search, re_search_2, re_match):
27775         (re_match_2, re_set_registers): Use the new types.
27776         * lib/regex_internal.h (Idx, re_hashval_t): New types.
27777         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
27778         New macros.
27779         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
27780         (re_string_context_at, bin_tree_t, re_dfastate_t):
27781         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
27782         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
27783         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
27784         (re_string_char_size_at, re_string_wchar_at):
27785         (re_string_elem_size_at):
27786         Use the new types and macros to port to 64-bit hosts.
27787         Use unsigned types for internal values, so that the code
27788         mostly works even for arrays larger than SSIZE_MAX.
27789         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
27790         (search_duplicated_node, calc_eclosure_iter, fetch_number):
27791         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
27792         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
27793         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
27794         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
27795         (calc_inveclosure, parse_dup_op, build_range_exp):
27796         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
27797         (fetch_number, create_token_tree, mark_opt_subexp):
27798         Likewise.
27799         * lib/regex_internal.c (re_string_construct_common,
27800         create_ci_newstate):
27801         (create_cd_newstate, re_string_allocate, re_string_construct):
27802         (re_string_realloc_buffers, build_wcs_upper_buffer):
27803         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
27804         (re_string_reconstruct, re_string_peek_byte_case):
27805         (re_string_fetch_byte_case, re_string_context_at):
27806         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
27807         (re_node_set_init_copy, re_node_set_add_intersect):
27808         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
27809         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
27810         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
27811         (re_acquire_state, re_acquire_state_context, register_state):
27812         Likewise.
27813         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
27814         search_cur_bkref_entry):
27815         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
27816         (re_search_internal, re_search_2_stub, re_search_stub)
27817         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
27818         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
27819         (update_cur_sifted_state, check_dst_limits):
27820         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
27821         (check_subexp_limits, sift_states_bkref, merge_state_array):
27822         (check_subexp_matching_top, get_subexp, get_subexp_sub):
27823         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
27824         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
27825         (expand_bkref_cache, check_node_accept_bytes):
27826         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
27827         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
27828         (acquire_init_state_context, check_halt_node_context):
27829         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
27830         (sift_states_backward, clean_state_log_if_needed):
27831         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
27832         (find_recover_state, transit_state_sb, transit_state_mb):
27833         (transit_state_bkref, build_trtable, match_ctx_clean):
27834         Likewise.
27835         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
27836         to work around an assumption that REG_MISSING is negative.
27837
27838         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
27839         (seek_collating_symbol_entry) [defined _LIBC]:
27840         (lookup_collation_sequence_value) [defined _LIBC]:
27841         (build_range_exp, build_collating_symbol) [defined _LIBC]:
27842         Use prototypes rather than old-style function definitions.
27843         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
27844         (transit_state_sb) [0]:
27845         (find_collation_sequence_value) [defined _LIBC]: Likewise.
27846
27847         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
27848         rm_eo.
27849
27850         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
27851         (optimize_subexps, lower_subexp):
27852         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
27853         since the signed shift might overflow.  Use 1u<<31 instead.
27854         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
27855         Likewise.
27856         * lib/regexec.c (check_dst_limits_calc_pos_1,
27857         check_subexp_matching_top): Likewise.
27858
27859         * lib/regcomp.c (optimize_subexps, lower_subexp):
27860         Use CHAR_BIT rather than 8, for clarity.
27861         * lib/regexec.c (check_dst_limits_calc_pos_1):
27862         (check_subexp_matching_top): Likewise.
27863         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
27864         have to worry about portability issues when shifting it left.
27865         Remove no-longer-needed test for table_size > 0.
27866         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
27867         in a word, as the resulting behavior is undefined.
27868         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
27869         in one case, a <= should have been an <, and in another case the
27870         whole test was missing.
27871         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
27872         the standard name CHAR_BIT.
27873         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
27874         this is not true on one's complement and signed-magnitude hosts.
27875
27876         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
27877         next_last_offset.
27878         (struct re_dfa_t): Remove unused member states_alloc.
27879         * lib/regcomp.c (init_dfa): Don't initialize unused members.
27880
27881 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
27882
27883         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
27884         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
27885         and large-file glibc and in 32-bit large-file Solaris.
27886
27887 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
27888
27889         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
27890         lengths fit in regoff_t; this isn't true if regoff_t is the same
27891         width as size_t.
27892         * lib/regex.c (re_search_internal): 5th arg is LAST_START
27893         (= START + RANGE) instead of RANGE.  This avoids overflow
27894         problems when regoff_t is the same width as size_t.
27895         All callers changed.
27896         (re_search_2_stub): Check for overflow when adding the
27897         sizes of the two strings.
27898         (re_search_stub): Check for overflow when adding START
27899         to RANGE; if it occurs, substitute the extreme value.
27900
27901 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
27902
27903         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
27904
27905 2005-08-31  Jim Meyering  <jim@meyering.net>
27906
27907         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
27908         a pointer-to-const.
27909         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
27910         (register_state): Likewise.
27911         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
27912         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
27913         (group_nodes_into_DFAstates): Likewise.
27914
27915 2005-08-31  Jim Meyering  <jim@meyering.net>
27916
27917         * check-module: Add a FIXME comment.
27918
27919 2005-08-31  Eric Blake  <ebb9@byu.net>
27920
27921         * modules/unistd-safer (Files): Add unistd--.h.
27922         * modules/stdio-safer (Files): Add stdio--.h.
27923
27924 2005-08-31  Derek Price  <derek@ximbiot.com>
27925
27926         * lib/getdelim.c (getdelim): Return EOF on EOF.
27927         Reported by Larry Jones <lawrence.jones@ugs.com>.
27928
27929 2005-08-31  Bruno Haible  <bruno@clisp.org>
27930
27931         Avoid unnecessary diffs in the generated lib/Makefile.am.
27932         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
27933         the generated files.
27934         (func_import): Don't set cmd.
27935
27936 2005-08-31  Bruno Haible  <bruno@clisp.org>
27937
27938         * lib/strstr.c: Include <stddef.h>, for NULL.
27939         * lib/strcasestr.c: Likewise.
27940         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27941
27942 2005-08-31  Bruno Haible  <bruno@clisp.org>
27943
27944         * gnulib-tool: New option --macro-prefix.
27945         (func_import): Use macro_prefix.
27946         (import): Handle option --macro-prefix.
27947
27948 2005-08-31  Bruno Haible  <bruno@clisp.org>
27949
27950         * gnulib-tool (import): Rename most ac_* variables to cached_*.
27951         Also use new variables cached_lgpl, cached_libtool.
27952
27953 2005-08-31  Bruno Haible  <bruno@clisp.org>
27954
27955         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
27956         always instantiating them.
27957
27958 2005-08-31  Bruno Haible  <bruno@clisp.org>
27959
27960         * gnulib-tool (func_import): Read the previous cached settings
27961         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
27962         earlier added by gnulib but are now dropped. Warn when a gnulib file
27963         overwrites a non-gnulib file.
27964
27965 2005-08-31  Bruno Haible  <bruno@clisp.org>
27966
27967         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
27968         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
27969         projects that don't keep autogenerated files in CVS. Put into
27970         actioncmd only the specified modules, not the transitive closure.
27971
27972 2005-08-31  Bruno Haible  <bruno@clisp.org>
27973
27974         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
27975         Create directories that shall be filled.
27976         (import): Don't look for gl_* macros in configure.ac. Recurse across
27977         all directories containing a gnulib-cache.m4 files, if meaningful.
27978
27979 2005-08-31  Bruno Haible  <bruno@clisp.org>
27980
27981         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
27982         (import): Set seen_libtool when we see gl_LIBTOOL.
27983
27984 2005-08-31  Bruno Haible  <bruno@clisp.org>
27985
27986         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
27987         declaration macro definitions from generated gnulib.m4.
27988
27989 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
27990
27991         * lib/iconvme.h: Add prototype for iconv_alloc.
27992
27993 2005-08-29  Simon Josefsson  <jas@extundo.com>
27994
27995         * lib/iconvme.c: Fix errno.
27996
27997 2005-08-29  Bruno Haible  <bruno@clisp.org>
27998
27999         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
28000         that it works when the directory contains spaces.
28001
28002 2005-08-29  Bruno Haible  <bruno@clisp.org>
28003
28004         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
28005
28006 2005-08-29  Bruno Haible  <bruno@clisp.org>
28007
28008         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
28009         Emit more advice.
28010
28011 2005-08-29  Bruno Haible  <bruno@clisp.org>
28012         and Stepan Kasal  <kasal@ucw.cz>
28013
28014         * check-module: If more parameters are given, check each of them
28015         separately; add more exceptions, as noted by Jim Meyering.
28016         (check_module): New procedure.
28017         (%exempt_header): Now contains all exceptions.
28018
28019 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
28020
28021         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
28022
28023 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
28024
28025         * lib/iconvme.c: Split iconv_string into iconv_alloc.
28026
28027 2005-08-28  Bruno Haible  <bruno@clisp.org>
28028
28029         * m4/gnulib-tool.m4: New file.
28030
28031 2005-08-27  Jim Meyering  <jim@meyering.net>
28032
28033         * modules/unistd-safer (Files): Add pipe-safer.c.
28034         * modules/fcntl-safer (Files): Add creat-safer.c.
28035
28036 2005-08-27  Jim Meyering  <jim@meyering.net>
28037
28038         * m4/stdlib-safer.m4: New file.  From coreutils.
28039         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
28040         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
28041         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
28042         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
28043         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
28044
28045 2005-08-27  Jim Meyering  <jim@meyering.net>
28046
28047         * lib/fopen-safer.c: Merge minor changes from coreutils.
28048         * lib/dup-safer.c: Likewise.
28049         * lib/fd-safer.c: Likewise.
28050
28051         Merge from coreutils.
28052         * lib/stdio--.h: New file.
28053         * lib/stdlib--.h: New file.
28054         * lib/mkstemp-safer.c: New file.
28055
28056         GNU tar needs these.
28057         * lib/pipe-safer.c: New file.
28058         * lib/creat-safer.c: New file.
28059         * lib/fcntl--.h (creat): Define to creat_safer.
28060         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
28061         * lib/unistd--.h (pipe): Define to pipe_safer.
28062         * lib/unistd-safer.h: Declare pipe_safer.
28063
28064 2005-08-26  Simon Josefsson  <jas@extundo.com>
28065
28066         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
28067         Haible <bruno@clisp.org>.
28068
28069 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
28070
28071         * lib/regex_internal.h: Remove all references to
28072         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
28073         or better.
28074         (bitset_not, bitset_merge, bitset_not_merge):
28075         (bitset_mask, re_string_allocate, re_string_construct):
28076         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
28077         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
28078         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
28079         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
28080         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28081         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28082         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
28083         (re_acquire_state_context):
28084         Remove unnecessary forward decls.
28085         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
28086         Put __attribute at function definition,
28087         now that the function decl has been removed.
28088         * lib/regex_internal.c (re_string_peek_byte_case):
28089         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
28090         Likewise.
28091
28092 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
28093
28094         * m4/regex.m4: Add AC_PREREQ(2.50).
28095         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
28096
28097 2005-08-25  Simon Josefsson  <jas@extundo.com>
28098
28099         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
28100         __fsetlocking.
28101
28102 2005-08-25  Simon Josefsson  <jas@extundo.com>
28103
28104         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
28105         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
28106         GLIBC specific code.
28107
28108 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28109
28110         Make regex safe for g++.  This fixes one real bug (an "err"
28111         that should have been "*err").  g++ problem reported by
28112         Sam Steingold.
28113         * lib/regex_internal.h (re_calloc): New macro, consistent with
28114         re_malloc etc.  All callers of calloc changed to use re_calloc.
28115         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
28116         not int.  All callers changed.
28117         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
28118         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
28119         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
28120         (find_recover_state): Change "err" to "*err"; this fixes what
28121         appears to be a real bug.
28122         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
28123         versus int.
28124
28125 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28126
28127         * modules/regex (Depends-on): Add malloc, since the code
28128         assumes that !malloc(0) means failure.
28129
28130 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28131
28132         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
28133
28134         alloca modernization/simplification for regex.
28135         * lib/regex.c: Remove portability cruft for alloca.  This no longer
28136         needs to be at the start of the file, and can be moved into
28137         regex_internal.h and simplified.
28138         * lib/regex_internal.h: Include <alloca.h>.
28139         (__libc_use_alloca) [!defined _LIBC]: New macro.
28140         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
28141         now works outside glibc.
28142
28143 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28144
28145         * config/srclist.txt: Add glibc bugs 1241, 1245.
28146
28147 2005-08-25  Jim Meyering  <jim@meyering.net>
28148
28149         * lib/open-safer.c: Include <config.h>.
28150         Otherwise, we'd lose LARGEFILE support in any file using
28151         e.g. "fcntl--.h"
28152
28153 2005-08-25  Bruno Haible  <bruno@clisp.org>
28154
28155         * m4/minmax.m4: Require autoconf 2.52.
28156         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
28157         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
28158         alternatives of translit over the alphabet.
28159         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
28160
28161 2005-08-24  Simon Josefsson  <jas@extundo.com>
28162
28163         * tests/test-getpass.c: New file.
28164
28165 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28166
28167         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
28168         for GNU regex features.
28169
28170 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28171
28172         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
28173         * lib/regex.h (regerror): Likewise.
28174
28175         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
28176         requires this.  (The code never needed it.)
28177
28178         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
28179         All uses of recently-renamed identifiers changed to use the new,
28180         POSIX-compliant names.  The code will build and run just fine
28181         without these changes, but it's better to eat our own dog food
28182         and use the standard-conforming names.
28183
28184         * lib/regex.h: Fix a multitude of POSIX name space violations.
28185         These changes have an effect only for programs that define
28186         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
28187         do not change anything for programs compiled in the normal way.
28188         Also, there is no effect on the ABI.
28189
28190         (_REGEX_SOURCE): New macro.
28191         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
28192         defined and _GNU_SOURCE is not; this fixes a name space violation.
28193
28194         Rename the following macros to obey POSIX requirements.
28195         The old names are still visible as macros if _REGEX_SOURCE is defined.
28196         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
28197         RE_BACKSLASH_ESCAPE_IN_LISTS.
28198         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
28199         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
28200         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
28201         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
28202         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
28203         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
28204         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
28205         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
28206         (REG_INTERVALS): renamed from RE_INTERVALS.
28207         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
28208         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
28209         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
28210         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
28211         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
28212         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
28213         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
28214         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
28215         RE_UNMATCHED_RIGHT_PAREN_ORD.
28216         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
28217         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
28218         (REG_DEBUG): renamed from RE_DEBUG.
28219         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
28220         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
28221         unusual, since we can't clash with the POSIX REG_ICASE.
28222         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
28223         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
28224         (REG_NO_SUB): renamed from RE_NO_SUB.
28225         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
28226         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
28227         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
28228         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
28229         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
28230         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
28231         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
28232         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
28233         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
28234         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
28235         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
28236         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
28237         RE_SYNTAX_POSIX_MINIMAL_BASIC.
28238         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
28239         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
28240         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
28241         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
28242         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
28243         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
28244         (REG_FIXED): Renamed from REGS_FIXED.
28245         (REG_NREGS): Renamed from RE_NREGS.
28246
28247         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
28248         of other REG_* macros, since POSIX says the user is allowed to
28249         #undef these macros selectively.
28250
28251         (reg_errcode_t): Update comment stating what other tables need
28252         to be consistent.
28253
28254         Rename the following enum values to obey POSIX requirements.
28255         The old names are still visible as macros.
28256         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
28257         is not defined, since GNU is supposed to be a superset of POSIX as
28258         much as possible, and since we want reg_errcode_t to be a signed
28259         type for implementation consistency.
28260         (_REG_NOERROR): Renamed from REG_NOERROR.
28261         (_REG_NOMATCH): Renamed from REG_NOMATCH.
28262         (_REG_BADPAT): Renamed from REG_BADPAT.
28263         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
28264         (_REG_ECTYPE): Renamed from REG_ECTYPE.
28265         (_REG_EESCAPE): Renamed from REG_EESCAPE.
28266         (_REG_ESUBREG): Renamed from REG_ESUBREG.
28267         (_REG_EBRACK): Renamed from REG_EBRACK.
28268         (_REG_EPAREN): Renamed from REG_EPAREN.
28269         (_REG_EBRACE): Renamed from REG_EBRACE.
28270         (_REG_BADBR): Renamed from REG_BADBR.
28271         (_REG_ERANGE): Renamed from REG_ERANGE.
28272         (_REG_ESPACE): Renamed from REG_ESPACE.
28273         (_REG_BADRPT): Renamed from REG_BADRPT.
28274         (_REG_EEND): Renamed from REG_EEND.
28275         (_REG_ESIZE): Renamed from REG_ESIZE.
28276         (_REG_ERPAREN): Renamed from REG_ERPAREN.
28277         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
28278         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
28279         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
28280         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
28281
28282         (_REG_RE_NAME, _REG_RM_NAME): New macros.
28283         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
28284         changed.  But support the old name if the new one is not defined
28285         and if _REGEX_SOURCE.
28286
28287         Change the following member names in struct re_pattern_buffer.
28288         The old names are still supported if !_REGEX_SOURCE.
28289         The new names are always supported, regardless of _REGEX_SOURCE.
28290         (re_buffer): Renamed from buffer.
28291         (re_allocated): Renamed from allocated.
28292         (re_used): Renamed from used.
28293         (re_syntax): Renamed from syntax.
28294         (re_fastmap): Renamed from fastmap.
28295         (re_translate): Renamed from translate.
28296         (re_can_be_null): Renamed from can_be_null.
28297         (re_regs_allocated): Renamed from regs_allocated.
28298         (re_fastmap_accurate): Renamed from fastmap_accurate.
28299         (re_no_sub): Renamed from no_sub.
28300         (re_not_bol): Renamed from not_bol.
28301         (re_not_eol): Renamed from not_eol.
28302         (re_newline_anchor): Renamed from newline_anchor.
28303
28304         Change the following member names in struct re_registers.
28305         The old names are still supported if !_REGEX_SOURCE.
28306         The new names are always supported, regardless of _REGEX_SOURCE.
28307         (rm_num_regs): Renamed from num_regs.
28308         (rm_start): Renamed from start.
28309         (rm_end): Renamed from end.
28310
28311         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
28312         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
28313         Prepend __ to parameter names.
28314
28315         Undo yesterday's changes.
28316
28317 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28318
28319         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
28320         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
28321         lib/regex.c.
28322
28323 2005-08-24  Jim Meyering  <jim@meyering.net>
28324
28325         Sync from coreutils.
28326         * m4/fcntl-safer.m4: New file.
28327
28328         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
28329         and object files for this module.
28330
28331 2005-08-24  Jim Meyering  <jim@meyering.net>
28332
28333         Sync from coreutils.
28334         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
28335
28336 2005-08-24  Jim Meyering  <jim@meyering.net>
28337
28338         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
28339         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
28340
28341 2005-08-24  Jim Meyering  <jim@meyering.net>
28342
28343         * modules/fcntl-safer: New module.
28344         * modules/fts (Depends-on): Add fcntl-safer.
28345         * MODULES.html.sh (File descriptor based Input/Output):
28346         Add fcntl-safer.
28347
28348 2005-08-24  Bruno Haible  <bruno@clisp.org>
28349
28350         Support for unit test modules.
28351         * modules/README: Mention tests modules.
28352         * modules/TEMPLATE-TESTS: New file.
28353         * gnulib-tool: New options --extract-tests-module, --with-tests and
28354         --tests-base (unused for the moment).
28355         (testsbase, inctests): New variables.
28356         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
28357         (func_verify_module): Exclude TEMPLATE-TESTS.
28358         (func_verify_nontests_module, func_verify_tests_module): New functions.
28359         (func_get_dependencies): Add implicit dependency for tests modules.
28360         (func_get_tests_module): New function.
28361         (func_modules_transitive_closure): When --with-tests was specified,
28362         include the unit tests as well, unless explicitly avoided.
28363         (func_emit_lib_Makefile_am): Ignore the tests modules here.
28364         (func_emit_tests_Makefile_am): New function.
28365         (func_create_testdir): When --with-tests was specified, emit a
28366         tests/ directory.
28367         * MODULES.html.sh (Future developments): Update.
28368
28369 2005-08-24  Bruno Haible  <bruno@clisp.org>
28370
28371         * modules/tls-tests: New file.
28372         * tests/test-tls.c: New file, from GNU gettext.
28373
28374 2005-08-24  Bruno Haible  <bruno@clisp.org>
28375
28376         * modules/lock-tests: New file.
28377         * tests/test-lock.c: New file, from GNU gettext.
28378
28379 2005-08-24  Bruno Haible  <bruno@clisp.org>
28380
28381         * lib/lock.h: Add multiple inclusion guard.
28382         * lib/tls.h: Add multiple inclusion guard.
28383
28384 2005-08-24  Bruno Haible  <bruno@clisp.org>
28385
28386         * gnulib-tool: Add support for the --aux-dir option to
28387         --create-testdir, --create-megatestdir, --test, --megatest.
28388         (func_create_testdir, func_create_megatestdir): Optionally emit a
28389         AC_CONFIG_AUX_DIR directive.
28390         (create-testdir, create-megatestdir, test, megatest): Provide a
28391         default value for $auxdir.
28392
28393 2005-08-24  Bruno Haible  <bruno@clisp.org>
28394
28395         * gnulib-tool (import): Use compound statement instead of subshell
28396         where possible.
28397
28398 2005-08-24  Bruno Haible  <bruno@clisp.org>
28399
28400         * gnulib-tool (import): Change --aux-dir default to "build-aux".
28401
28402 2005-08-24  Bruno Haible  <bruno@clisp.org>
28403
28404         * gnulib-tool (func_version): Update.
28405
28406 2005-08-24  Bruno Haible  <bruno@clisp.org>
28407
28408         * gnulib-tool (func_import, func_create_testdir,
28409         func_create_megatestdir): Quote all autoconf macro arguments.
28410
28411 2005-08-24  Bruno Haible  <bruno@clisp.org>
28412
28413         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
28414         option --force, because --force causes the aclocal.m4 of each
28415         subdirectory to be newer than the corresponding config.h.in.
28416
28417 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28418
28419         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
28420         All contents moved to gl_REGEX.
28421         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
28422         assume that it does.
28423
28424 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28425
28426         * lib/regex.h (REG_NOSYS)
28427         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
28428         Define, since POSIX requires it as of 2001.
28429         (_REG_ENOSYS)
28430         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
28431         New private symbol, used to keep the enum signed in all cases.
28432         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
28433         Youngman in
28434         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
28435
28436         * lib/regex_internal.c (re_string_skip_chars, register_state):
28437         (calc_state_hash):
28438         Remove forward decls; no longer needed now that we use prototypes.
28439         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
28440         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
28441         (clean_state_log_if_needed): Likewise.
28442
28443 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28444
28445         * config/srclist.txt: Add glibc bugs 1231-1233.
28446
28447 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
28448
28449         Fix problems reported by Sam Steingold in
28450         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
28451         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
28452         assumed that reg_errcode_t is a signed type, which is not
28453         necessarily true if _XOPEN_SOURCE is not defined.
28454         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
28455         since some compilers warn about it otherwise.
28456
28457 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
28458
28459         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
28460         (init_word_char, create_initial_state, duplicate_node_closure):
28461         (fetch_token, peek_token_bracket, build_range_exp):
28462         (build_collating_symbol): Remove forward decls; no longer needed
28463         now that we use prototypes.
28464
28465         * lib/regcomp.c:
28466         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
28467         (re_compile_fastmap_iter, regcomp, regerror, regfree):
28468         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
28469         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
28470         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
28471         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
28472         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
28473         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
28474         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
28475         (build_range_exp, build_collating_symbol, parse_bracket_exp):
28476         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
28477         (build_charclass, build_charclass_op, fetch_number, create_tree):
28478         (create_token_tree, mark_opt_subexp, duplicate_tree):
28479         Use prototypes rather than old-style definitions.
28480
28481         * lib/regex_internal.c:
28482         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
28483         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
28484         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
28485         (re_string_reconstruct, re_string_peek_byte_case):
28486         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
28487         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
28488         (re_node_set_init_copy, re_node_set_add_intersect):
28489         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28490         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28491         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
28492         (re_acquire_state, re_acquire_state_context, register_state):
28493         (create_ci_newstate, create_cd_newstate, free_state):
28494         Likewise.
28495         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
28496         re_search_2):
28497         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
28498         (re_search_internal, prune_impossible_nodes):
28499         (acquire_init_state_context, check_matching, static):
28500         (check_halt_node_context, check_halt_state_context, proceed_next_node):
28501         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
28502         (update_regs, sift_states_backward, build_sifted_states):
28503         (clean_state_log_if_needed, merge_state_array):
28504         (update_cur_sifted_state, add_epsilon_src_nodes):
28505         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
28506         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
28507         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
28508         (find_recover_state, check_subexp_matching_top, transit_state_mb):
28509         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
28510         (check_arrival, check_arrival_add_next_nodes):
28511         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
28512         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
28513         (check_node_accept_bytes, check_node_accept, extend_buffers):
28514         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
28515         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
28516         (sift_ctx_init):
28517         Likewise.
28518
28519         * lib/regex_internal.h:
28520         (re_string_allocate, re_string_construct, re_string_reconstruct):
28521         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
28522         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
28523         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
28524         (re_string_context_at, re_string_peek_byte_case):
28525         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
28526         is defined, since we now use prototypes always.
28527
28528         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
28529         C89 or better.  All uses removed.
28530
28531 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
28532
28533         * config/srclist.txt: Add glibc bugs 1220-1227.
28534
28535 2005-08-20  Jim Meyering  <jim@meyering.net>
28536
28537         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
28538         of unused local, dfa.
28539
28540 2005-08-20  Bruno Haible  <bruno@clisp.org>
28541
28542         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
28543
28544 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28545
28546         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
28547         (re_node_set_insert_last, re_dfa_add_node):
28548         Rename local variables to avoid GCC shadowing warnings.
28549
28550 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28551
28552         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
28553         [defined lint]: Suppress bogus uninitialized-variable warnings.
28554
28555         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
28556         and let the caller return REG_ESPACE if out of space.  This
28557         removes an uninitialied-variable warning with GCC 4.0.1, and also
28558         avoids taking the address of a local variable.  All callers
28559         changed.
28560
28561 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28562
28563         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
28564         $LIBCSRC/posix/regexec.c.
28565         Add glibc bug 1217 for regcomp.c.
28566
28567 2005-08-19  Jim Meyering  <jim@meyering.net>
28568
28569         * lib/regexec.c (proceed_next_node): Redo local variables to
28570         avoid GCC shadowing warnings.
28571
28572 2005-08-18  Bruno Haible  <bruno@clisp.org>
28573
28574         * lib/strstr.c (strstr): Fix return value in multibyte case.
28575         * lib/strcasestr.c (strcasestr): Likewise.
28576
28577 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28578
28579         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
28580
28581 2005-08-17  Jim Meyering  <jim@meyering.net>
28582
28583         Make the %s format (seconds since the epoch) work for a negative
28584         number and when used with a zero-padded field width, e.g. %015s.
28585
28586         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
28587         label so that it precedes the code to set `digits'.  Otherwise,
28588         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
28589         print `00-22'.  Now, it prints `-0022', as it should.
28590
28591 2005-08-17  Bruno Haible  <bruno@clisp.org>
28592
28593         * modules/strstr (Files): Add m4/mbrtowc.m4.
28594         (Depends-on): Add mbuiter.
28595
28596 2005-08-17  Bruno Haible  <bruno@clisp.org>
28597
28598         * modules/strcasestr: New file.
28599         * MODULES.html.sh (String handling, based on ANSI C 89): Add
28600         strcasestr.
28601
28602 2005-08-17  Bruno Haible  <bruno@clisp.org>
28603
28604         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
28605
28606 2005-08-17  Bruno Haible  <bruno@clisp.org>
28607
28608         * modules/mbuiter: New file.
28609         * MODULES.html.sh (Extended multibyte and wide character utilities):
28610         Add mbuiter.
28611
28612 2005-08-17  Bruno Haible  <bruno@clisp.org>
28613
28614         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
28615         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
28616
28617 2005-08-17  Bruno Haible  <bruno@clisp.org>
28618
28619         * m4/strcasestr.m4: New file.
28620
28621 2005-08-17  Bruno Haible  <bruno@clisp.org>
28622
28623         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
28624         * lib/strstr.c: Completely rewritten, with multibyte locale support.
28625
28626 2005-08-17  Bruno Haible  <bruno@clisp.org>
28627
28628         * lib/strcasestr.h: New file.
28629         * lib/strcasestr.c: New file.
28630
28631 2005-08-17  Bruno Haible  <bruno@clisp.org>
28632
28633         * lib/strcasecmp.c: Use mbuiter.h.
28634
28635 2005-08-17  Bruno Haible  <bruno@clisp.org>
28636
28637         * lib/mbuiter.h: New file.
28638
28639 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
28640
28641         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
28642         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
28643         and gl_GETOPT are both invoked via different paths (as happens
28644         with GNU tar CVS because it uses both argp and getopt), the former
28645         wins.
28646
28647 2005-08-16  Bruno Haible  <bruno@clisp.org>
28648
28649         * modules/tls: New file.
28650         * MODULES.html.sh (Multithreading): Add tls.
28651
28652 2005-08-16  Bruno Haible  <bruno@clisp.org>
28653
28654         * modules/strnlen1: New file.
28655         * MODULES.html.sh (String handling): Add strnlen1.
28656
28657 2005-08-16  Bruno Haible  <bruno@clisp.org>
28658
28659         * modules/strcase (Files): Add m4/mbrtowc.m4.
28660         (Depends-on): Add strnlen1, mbchar.
28661
28662 2005-08-16  Bruno Haible  <bruno@clisp.org>
28663
28664         * modules/mbiter: New file.
28665         * MODULES.html.sh (Extended multibyte and wide character utilities):
28666         Add mbiter.
28667
28668 2005-08-16  Bruno Haible  <bruno@clisp.org>
28669
28670         * modules/mbfile: New file.
28671         * MODULES.html.sh (Extended multibyte and wide character utilities):
28672         Add mbfile.
28673
28674 2005-08-16  Bruno Haible  <bruno@clisp.org>
28675
28676         * modules/mbchar: New file.
28677         * MODULES.html.sh (Extended multibyte and wide character utilities):
28678         New section.
28679
28680 2005-08-16  Bruno Haible  <bruno@clisp.org>
28681
28682         * m4/tls.m4: New file, from GNU gettext.
28683
28684 2005-08-16  Bruno Haible  <bruno@clisp.org>
28685
28686         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
28687         always.
28688         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
28689
28690 2005-08-16  Bruno Haible  <bruno@clisp.org>
28691
28692         * m4/mbiter.m4: New file.
28693
28694 2005-08-16  Bruno Haible  <bruno@clisp.org>
28695
28696         * m4/mbfile.m4: New file.
28697
28698 2005-08-16  Bruno Haible  <bruno@clisp.org>
28699
28700         * m4/mbchar.m4: New file.
28701
28702 2005-08-16  Bruno Haible  <bruno@clisp.org>
28703
28704         * lib/tls.h: New file, from GNU gettext.
28705         * lib/tls.c: New file, from GNU gettext.
28706
28707 2005-08-16  Bruno Haible  <bruno@clisp.org>
28708
28709         * lib/strnlen1.h: New file.
28710         * lib/strnlen1.c: New file.
28711
28712 2005-08-16  Bruno Haible  <bruno@clisp.org>
28713
28714         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
28715         (mbi_init): Update.
28716         (mbi_avail, mbi_advance): Let the iteration end before the terminating
28717         NUL byte, not after it.
28718
28719 2005-08-16  Bruno Haible  <bruno@clisp.org>
28720
28721         * lib/strcase.h (strcasecmp): Add note in comments.
28722         * lib/strncasecmp.c: Use code from strcasecmp.c.
28723         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
28724         (strcasecmp): Work correctly in multibyte locales.
28725
28726 2005-08-16  Bruno Haible  <bruno@clisp.org>
28727
28728         * lib/mbiter.h: New file.
28729
28730 2005-08-16  Bruno Haible  <bruno@clisp.org>
28731
28732         * lib/mbfile.h: New file.
28733
28734 2005-08-16  Bruno Haible  <bruno@clisp.org>
28735
28736         * lib/mbchar.h: New file.
28737         * lib/mbchar.c: New file.
28738
28739 2005-08-16  Bruno Haible  <bruno@clisp.org>
28740
28741         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
28742         the valid ones. Makes the comparison operations transitive:
28743         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
28744         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
28745
28746 2005-08-15  Simon Josefsson  <jas@extundo.com>
28747
28748         * modules/ssize_t (License): Change to 'unlimited'.
28749
28750         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
28751
28752 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28753
28754         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
28755         Add comments for each pending glibc patch.
28756
28757 2005-08-15  Bruno Haible  <bruno@clisp.org>
28758
28759         * lib/regex.h (__restrict_arr): Don't define to __restrict if
28760         __cplusplus is defined.
28761
28762 2005-08-14  Jim Meyering  <jim@meyering.net>
28763
28764         Sync from coreutils.
28765
28766         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
28767         Use the hash-table-based cycle-detection code not just when
28768         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
28769         Reported by James Youngman in
28770         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
28771         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
28772         FTS_TIGHT_CYCLE_CHECK.
28773         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
28774         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
28775         once again.
28776         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
28777         * lib/fts.c (fd_safer): Remove decl.
28778         Include fcntl--.h rather than unistd-safer.h
28779         (fts_safe_changedir): Don't call fd_safer; no longer needed
28780         now that we include fcntl--.h.
28781
28782 2005-08-12  Simon Josefsson  <jas@extundo.com>
28783
28784         * modules/getndelim2: Use ssize_t module.
28785         * modules/getnline: Likewise.
28786         * modules/safe-read: Likewise.
28787         * modules/xreadlink: Likewise.
28788
28789         * modules/ssize_t: New file.
28790
28791 2005-08-12  Simon Josefsson  <jas@extundo.com>
28792
28793         * m4/readline.m4: Look for termcap, curses or ncurses if required.
28794
28795 2005-08-12  Simon Josefsson  <jas@extundo.com>
28796
28797         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28798         ssize_t.
28799
28800 2005-08-12  Simon Josefsson  <jas@extundo.com>
28801
28802         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
28803         readline, getdelim and check_version.
28804         (Support for systems lacking ISO C 99: Sizes of integer types):
28805         Add size_max.
28806
28807 2005-08-12  Bruno Haible  <bruno@clisp.org>
28808
28809         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
28810
28811 2005-08-11  Simon Josefsson  <jas@extundo.com>
28812
28813         * modules/readline: New file.
28814
28815         * modules/strnlen (Files): Add strnlen.h.
28816
28817 2005-08-11  Simon Josefsson  <jas@extundo.com>
28818
28819         * m4/readline.m4: New file.
28820
28821 2005-08-11  Simon Josefsson  <jas@extundo.com>
28822
28823         * lib/readline.h, readline.c: New file.
28824
28825 2005-08-11  Simon Josefsson  <jas@extundo.com>
28826
28827         * doc/gnulib.texi (Initial import, Finishing touches): Mention
28828         gl_AVOID.
28829
28830 2005-08-11  Bruno Haible  <bruno@clisp.org>
28831
28832         * lib/strnlen.h (strnlen): Change parameter name to match comment.
28833
28834 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
28835
28836         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
28837
28838 2005-08-10  Simon Josefsson  <jas@extundo.com>
28839
28840         * tests/test-iconvme.c: New file.
28841
28842 2005-08-10  Simon Josefsson  <jas@extundo.com>
28843
28844         * m4/strnlen.m4: New file.
28845
28846         * m4/strndup.m4: Don't check for strnlen declaration, done in
28847         strnlen.m4.
28848
28849 2005-08-10  Simon Josefsson  <jas@extundo.com>
28850
28851         * lib/strndup.c: Use strnlen.h.
28852
28853         * lib/strnlen.h: New file.
28854
28855 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
28856
28857         * README: Typos.
28858
28859 2005-08-02  Simon Josefsson  <jas@extundo.com>
28860
28861         * modules/readline: New file.
28862
28863 2005-08-02  Simon Josefsson  <jas@extundo.com>
28864
28865         * modules/getdelim: New file.
28866
28867         * modules/getline: Rewrite, don't use getndelim2.
28868
28869 2005-08-02  Simon Josefsson  <jas@extundo.com>
28870
28871         * m4/getline.m4: Separate out getdelim stuff into separate module.
28872
28873         * m4/getdelim.m4: New file.
28874
28875 2005-08-02  Simon Josefsson  <jas@extundo.com>
28876
28877         * lib/getline.h, getline.c: Rewrite.
28878
28879         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
28880
28881 2005-07-31  Bruno Haible  <bruno@clisp.org>
28882
28883         * lib/lock.h (gl_lock_initializer): New macro.
28884         (gl_lock_define_initialized): Use it.
28885         (gl_rwlock_initializer): New macro.
28886         (gl_rwlock_define_initialized): Use it.
28887         (gl_recursive_lock_initializer): New macro.
28888         (gl_recursive_lock_define_initialized): Use it.
28889
28890 2005-07-30  Karl Berry  <karl@gnu.org>
28891
28892         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
28893         Report from Ben Pfaff, regarding getopt.
28894
28895 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
28896
28897         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
28898         normal way.
28899         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
28900         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
28901         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
28902         (gl_GETOPT): Use the new macros.  Most of the implementation
28903         is moved to the new macros.  This is for programs like Emacs
28904         that don't want all the functionality of gl_GETOPT.
28905
28906 2005-07-26  Bruno Haible  <bruno@clisp.org>
28907
28908         * m4/lock.m4: Update from GNU gettext.
28909
28910 2005-07-26  Bruno Haible  <bruno@clisp.org>
28911
28912         * lib/lock.h: Update from GNU gettext.
28913         * lib/lock.c: Update from GNU gettext.
28914
28915 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
28916
28917         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
28918         obsolescent AC_TRY_RUN.  Include the default includes files, for
28919         'exit'.
28920
28921 2005-07-24  Bruno Haible  <bruno@clisp.org>
28922
28923         * modules/visibility: New file.
28924         * MODULES.html.sh (Misc): Add visibility.
28925
28926 2005-07-24  Bruno Haible  <bruno@clisp.org>
28927
28928         * m4/visibility.m4: New file.
28929
28930 2005-07-24  Bruno Haible  <bruno@clisp.org>
28931
28932         * doc/visibility.texi: New file.
28933
28934 2005-07-22  Bruno Haible  <bruno@clisp.org>
28935
28936         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
28937         $(ALLOCA_H), redundant through BUILT_SOURCES.
28938         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
28939         redundant through BUILT_SOURCES.
28940         * modules/byteswap (Makefile.am): Remove explicit dependency on
28941         $(BYTESWAP_H), redundant through BUILT_SOURCES.
28942         * modules/fnmatch (Makefile.am): Remove explicit dependency on
28943         $(FNMATCH_H), redundant through BUILT_SOURCES.
28944         * modules/getopt (Makefile.am): Remove explicit dependency on
28945         $(GETOPT_H), redundant through BUILT_SOURCES.
28946         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
28947         redundant through BUILT_SOURCES.
28948         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
28949         redundant through BUILT_SOURCES.
28950         * modules/stdbool (Makefile.am): Remove explicit dependency on
28951         $(STDBOOL_H), redundant through BUILT_SOURCES.
28952         * modules/stdint (Makefile.am): Remove explicit dependency on
28953         $(STDINT_H), redundant through BUILT_SOURCES.
28954         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
28955         Remove explicit dependency on $(SYSEXITS_H).
28956         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
28957
28958 2005-07-18  Simon Josefsson  <jas@extundo.com>
28959
28960         * lib/check-version.c (check_version): Accept identical versions too.
28961
28962 2005-07-18  Bruno Haible  <bruno@clisp.org>
28963
28964         * modules/lock: New file.
28965         * MODULES.html.sh (Multithreading): New section.
28966
28967 2005-07-18  Bruno Haible  <bruno@clisp.org>
28968
28969         * m4/lock.m4: New file, from GNU gettext.
28970
28971 2005-07-18  Bruno Haible  <bruno@clisp.org>
28972
28973         * lib/lock.h: New file, from GNU gettext.
28974         * lib/lock.c: New file, from GNU gettext.
28975
28976 2005-07-18  Bruno Haible  <bruno@clisp.org>
28977
28978         * lib/lock.h (gl_once_t): New type.
28979         (gl_once_define, gl_once): New macros.
28980         * lib/lock.c (fresh_once): New variable.
28981         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
28982         functions.
28983
28984 2005-07-16  Simon Josefsson  <jas@extundo.com>
28985
28986         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
28987         workaround, suggested by Bruno.
28988
28989 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
28990
28991         * modules/xalloc (Depends-on): Add xalloc-die.
28992         * modules/xvasprintf (Depends-on): Add xalloc-die.
28993
28994 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
28995
28996         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
28997         with a minor change.
28998
28999 2005-07-15  Bruno Haible  <bruno@clisp.org>
29000
29001         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
29002         When using lib/poll.c, define poll as rpl_poll.
29003
29004 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
29005
29006         * modules/argp (Depends-on): Remove unlocked-io.
29007
29008 2005-07-14  Derek Price  <derek@ximbiot.com>
29009
29010         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
29011         for glob symlink bug.
29012
29013 2005-07-14  Bruno Haible  <bruno@clisp.org>
29014
29015         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
29016         Instead, test for *_unlocked function declarations directly.
29017
29018 2005-07-11  Simon Josefsson  <jas@extundo.com>
29019
29020         * modules/size_max: New file.
29021
29022         * modules/xsize: Depend on size_max module for size_max.m4.
29023
29024 2005-07-11  Simon Josefsson  <jas@extundo.com>
29025
29026         * lib/size_max.h: New file.
29027
29028 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
29029
29030         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
29031         copyright symbol and the year.
29032         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
29033         (version_etc_va): Use parameterized copyright notice.
29034         Reword to conform to the current GNU coding standards.
29035
29036 2005-07-11  Karl Berry  <karl@gnu.org>
29037
29038         * doc/gnulib.texi (Quoting): new node.
29039         (Initial import): more info, from Patrice.
29040
29041 2005-07-11  Bruno Haible  <bruno@clisp.org>
29042
29043         * gnulib-tool (func_usage): Document option --avoid.
29044         (Command line options): Handle --avoid.
29045         (func_acceptable): New function.
29046         (func_modules_transitive_closure): Use it.
29047
29048 2005-07-11  Bruno Haible  <bruno@clisp.org>
29049
29050         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
29051         Reported by Jim Meyering.
29052
29053 2005-07-10  Bruno Haible  <bruno@clisp.org>
29054
29055         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
29056         Needed when size_t is smaller than 'unsigned int'.
29057         Reported by Paul Eggert.
29058
29059 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29060
29061         * modules/argp (Depends-on): Add unlocked-io
29062
29063 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29064
29065         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
29066         block of defines.
29067
29068 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29069
29070         * config/srclist.txt: Comment out regcomp.c, since we have a porting
29071         fix now.
29072
29073 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
29074         and Paul Eggert  <eggert@cs.ucla.edu>
29075
29076         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
29077         in wint_t, not wchar_t.  Remove now-unnecessary cast.
29078
29079 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29080
29081         * modules/regex (Files): Add lib/regex_internal.c,
29082         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
29083         (Depends-on): Add extensions.
29084         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
29085
29086 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29087
29088         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
29089         pathconf.
29090         * m4/same.m4 (gl_SAME): Likewise.
29091         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
29092
29093         * m4/regex.m4: Adjust to new libc regex implementation.
29094         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
29095         all the .c and .h parts of (the new) regex.
29096         Quote the m4 stuff better.
29097         Check for RE_ICASE bug of old gnulib.
29098         Check for REG_STARTEND of recent libc.
29099         Rename local variables from jm_* to gl_*.
29100         Quote operand of "test -f".
29101         Say "recent enough" version of libc, not "version 2".
29102         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
29103         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
29104         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
29105         Remove check for btowc, isascii.
29106         Require AM_LANGINFO_CODESET.
29107
29108 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29109
29110         * lib/regex.c, regex.h: Sync from libc.
29111         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
29112         * lib/regexec.c:
29113         New files, synced from libc, except that regex_internal.h
29114         currently has a small porting fix.
29115
29116 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29117
29118         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
29119         regex_internal.c, regexec.c.
29120         Add regex_internal.h too, but as a comment, since the libc version
29121         is currently broken in gnulib mode.
29122
29123 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29124
29125         Support programs like Emacs that use gnulib but not gettext.
29126         * MODULES.html.sh (Internationalization functions): Add gettext-h.
29127         * modules/gettext-h: New file.
29128         * modules/gettext (Files): Remove lib/gettext.h.
29129         (Depends-on): Add gettext-h.
29130         (Makefile.am): Remove lib_SOURCES.
29131         * modules/argmatch, modules/c-stack, modules/closeout:
29132         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
29133         * modules/execute, modules/file-type, modules/getaddrinfo:
29134         * modules/getopt, modules/human, modules/javacomp:
29135         * modules/javaexec, modules/mkdir-p, modules/obstack:
29136         * modules/openat, modules/pagealign_alloc, modules/pipe:
29137         * modules/quotearg, modules/regex, modules/rpmatch:
29138         * modules/unicodeio, modules/userspec, modules/version-etc:
29139         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
29140         * modules/xsetenv:
29141         Depend on gettext-h, not gettext.
29142
29143 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29144
29145         * gnulib-tool (func_import): Add support for 'public domain' license.
29146         * modules/alloca, modules/atexit, modules/memmove:
29147         Now public domain, not GPL.
29148         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
29149         * modules/realloc, modules/strerror, modules/strtod:
29150         Now LGPL, not GPL.
29151
29152 2005-07-05  Bruno Haible  <bruno@clisp.org>
29153
29154         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
29155         autoconf CVS. Needed for mingw.
29156
29157 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29158
29159         Remove the dependency of the strftime module on the tzset module.
29160         * modules/strftime (Depends-on): Remove dependency on tzset.
29161
29162 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29163
29164         Remove the dependency of the strftime module on the tzset module.
29165         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
29166         gl_FUNC_TZSET_CLOBBER.
29167
29168 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29169
29170         Remove the dependency of the strftime module on the tzset module.
29171         * lib/strftime.c (my_strftime)
29172         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
29173         Copy the input structure, to work around some of the bug with
29174         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
29175         Solaris releases, you should also use the tzset module, but we won't
29176         require it as a dependency any more since we don't want LGPLed code
29177         to depend on GPLed code.
29178
29179 2005-07-02  Jim Meyering  <jim@meyering.net>
29180
29181         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
29182         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
29183         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
29184         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
29185
29186 2005-07-02  Jim Meyering  <jim@meyering.net>
29187
29188         * lib/backupfile.c (backup_args): Change a `0' to NULL.
29189
29190 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
29191
29192         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
29193         declares only 'struct timespec;' (!).
29194
29195 2005-07-01  Jim Meyering  <jim@meyering.net>
29196
29197         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
29198         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
29199         * lib/save-cwd.c, tempname.c:
29200         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
29201         and don't include <sys/file.h>).
29202
29203 2005-06-29  Jim Meyering  <jim@meyering.net>
29204
29205         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
29206         type name.  Use the variable name instead.
29207         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
29208         Likewise.
29209
29210 2005-06-28  Simon Josefsson  <jas@extundo.com>
29211
29212         * modules/check-version (Files): Add check-version.m4.
29213
29214 2005-06-28  Simon Josefsson  <jas@extundo.com>
29215
29216         * m4/check-version.m4: New file, suggested by Jim Meyering
29217         <jim@meyering.net>.
29218
29219 2005-06-28  Simon Josefsson  <jas@extundo.com>
29220
29221         * lib/check-version.h, lib/check-version.c: New files.
29222
29223 2005-06-28  Simon Josefsson  <jas@extundo.com>
29224
29225         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
29226         collision with global variable.  Better indentation.  Don't
29227         increment buffer pointer beyond buffer end.  Based on comments
29228         from Paul Eggert <eggert@cs.ucla.edu>.
29229
29230         * lib/base64.h: Indent.
29231
29232 2005-06-28  Simon Josefsson  <jas@extundo.com>
29233
29234         * doc/gnulib.texi (Library version handling): New section.
29235
29236 2005-06-28  Jim Meyering  <jim@meyering.net>
29237
29238         * check-module (find_included_lib_files): Hard-code another
29239         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
29240         but modules/fts-lgpl (correctly) does not list those files.
29241
29242         * modules/canonicalize (Files): Add lib/pathmax.h.
29243
29244 2005-06-25  Simon Josefsson  <jas@extundo.com>
29245
29246         * modules/check-version: New file.
29247
29248 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
29249
29250         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
29251         initializer of struct addrinfo, as an indication that we don't
29252         care how many members the structure has.
29253
29254 2005-06-24  Derek Price  <derek@ximbiot.com>
29255         and Bruno Haible  <bruno@clisp.org>
29256
29257         Remove stat module & update lstat.
29258         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
29259         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29260         * m4/stat.m4: Remove this file.
29261
29262 2005-06-24  Derek Price  <derek@ximbiot.com>
29263         and Bruno Haible  <bruno@clisp.org>
29264
29265         Remove stat module & update lstat.
29266         * lib/stat.c: Remove this file...
29267         (slash_aware_lstat): ...moving this content and its support...
29268         * lib/lstat.c (rpl_lstat): ...into here.
29269         * lib/lstat.h: New file.
29270
29271 2005-06-24  Derek Price  <derek@ximbiot.com>
29272         and Bruno Haible  <bruno@clisp.org>
29273
29274         Remove stat module & update lstat.
29275         * config/srclist.txt (libc sources): Remove stat.
29276
29277 2005-06-24  Derek Price  <derek@ximbiot.com>
29278         and Bruno Haible  <bruno@clisp.org>
29279
29280         Remove stat module & update lstat.
29281         * MODULES.html.sh (stat): Remove.
29282         * MODULES.html: Regenerated.
29283         * modules/lstat (Description): Correct function name.
29284         (Files): Add "lstat.h".
29285         (Depends-on): Remove stat, add xalloc, stat-macros.
29286         * modules/stat: Remove this file.
29287         (Include): Add "lstat.h", remove <sys/stat.h>.
29288
29289 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29290
29291         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
29292         (ranged_convert): Don't save conversion in a temporary struct.
29293         This causes a warning with GCC 4.0.0, and anyway in the typical
29294         case it's not worth the extra 100 bytes or so of code.
29295         (ranged_convert, __mktime_internal): When calling a function via a
29296         pointer P, use P () rather than (*P) (), as we now assume C89 or
29297         better.
29298
29299 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29300
29301         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
29302         "who -r" failed to give output.  Problem reported by Tim Waugh.
29303
29304         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
29305         (xcalloc): Use it to avoid needless tests.
29306         Problem reported by Jim Meyering.
29307
29308 2005-06-20  Derek Price  <derek@ximbiot.com>
29309
29310         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
29311         unnecessary for Autoconfs > 2.59c.
29312
29313 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29314
29315         * lib/argp.h (__option_is_short): Check upper limit of
29316         __key. Isprint() requires its argument to have the value
29317         of an unsigned char or EOF.
29318
29319 2005-06-16  Jim Meyering  <jim@meyering.net>
29320
29321         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
29322         when either N or S is zero.
29323
29324 2005-06-16  Derek Price  <derek@ximbiot.com>
29325
29326         * m4/bison.m4: Declare YACC & YFLAGS precious.
29327
29328 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
29329
29330         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
29331         multibyte string or pattern, fall back on unibyte matching.
29332         Problem reported by James Youngman.
29333
29334 2005-06-08  Bruno Haible  <bruno@clisp.org>
29335
29336         * modules/csharpcomp: New file.
29337         * MODULES.html.sh (C#): Add csharpcomp.
29338
29339 2005-06-08  Bruno Haible  <bruno@clisp.org>
29340
29341         * m4/csharpcomp.m4: New file, from GNU gettext.
29342
29343 2005-06-08  Bruno Haible  <bruno@clisp.org>
29344
29345         * lib/csharpcomp.h: New file, from GNU gettext.
29346         * lib/csharpcomp.c: New file, from GNU gettext.
29347         * lib/csharpcomp.sh.in: New file, from GNU gettext.
29348
29349 2005-06-08  Bruno Haible  <bruno@clisp.org>
29350
29351         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
29352         warning on mingw.
29353
29354 2005-06-07  Derek Price  <derek@ximbiot.com>
29355
29356         Sync from CVS.
29357         * lib/glob_.h: Indent nested #ifdef.
29358
29359 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
29360
29361         Sync from coreutils.
29362         Use "file name" when talking about file names, instead of "filename"
29363         or "path", as per the GNU coding standards.
29364         * lib/mkdir-p.c: Renamed from makepath.c.
29365         (make_dir_parents): Renamed from make_path.  All callers changed.
29366         * lib/mkdir-p.h: Likewise.  All includers changed.
29367         * lib/filenamecat.c: Renamed from path-concat.c.
29368         (file_name_concat): Renamed from path_concat.  All callers changed.
29369         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
29370         * lib/filenamecat.h: Likewise.  All includers changed.
29371         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
29372         in comments or local variable names.
29373         * lib/basename.c: Likewise.
29374         * lib/canonicalize.c, canonicalize.h: Likewise.
29375         * lib/dirname.c, dirname.h: Likewise.
29376         * lib/euidaccess.c: Likewise.
29377         * lib/exclude.c: Likewise
29378         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
29379         * lib/fsusage.c, fsuage.h: Likewise.
29380         * lib/fts.c, fts_.h: Likewise.
29381         * lib/getcwd.c: Likewise.
29382         * lib/getloadavg.c: Likewise.
29383         * lib/mkstemp.c: Likewise.
29384         * lib/mountlist.c, mountlist.h: Likewise.
29385         * lib/openat.c, openat.h: Likewise.
29386         * lib/readlink-stub.c: Likewise.
29387         * lib/readutmp.c, readutmp.h: Likewise.
29388         * lib/rename.c: Likewise.
29389         * lib/rmdir.c: Likewise.
29390         * lib/same.c: Likewise.
29391         * lib/savedir.c: Likewise.
29392         * lib/stripslash.c: Likewise.
29393         * lib/tempname.c: Likewise.
29394         * lib/xreadlink.c: Likewise.
29395         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
29396         All uses changed.
29397         * lib/exclude.h: Likewise.
29398
29399         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
29400         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
29401         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
29402         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
29403         * lib/pathmax.h: Include <limits.h> unconditionally, since other
29404         files have been getting away with it for years (MORE/BSD 4.3
29405         is extinct now).
29406         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
29407         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
29408
29409         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
29410         Define to 256, not 255, as per modern POSIX.
29411
29412 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
29413
29414         Sync from coreutils.
29415         Use "file name" when talking about file names, instead of "filename"
29416         or "path", as per the GNU coding standards.
29417         * MODULES.html.sh: mkdir-p renamed from makepath.
29418         filenamecat renamed from path-concat.
29419         * modules/filenamecat: Renamed from modules/path-concat.
29420         (Files): filenamecat.h and filenamecat.c renamed from
29421         path-concat.h and path-concat.c.
29422         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
29423         (Include): filenamecat.h, not path-concat.h.
29424         * modules/mkdir-p: Renamed from modules/makepath.
29425         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
29426         makepath.c.
29427         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
29428         (Include): mkdir-p.h, not makepath.h.
29429
29430 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
29431
29432         Sync from coreutils.
29433         * m4/mkdir-p.m4: Renamed from makepath.m4.
29434         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
29435         Rename files from makepath.c to mkdir-p.c, and from
29436         makepath.h to mkdir-p.h.
29437         * m4/filenamecat.m4: Renamed from path-concat.m4.
29438         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
29439         Rename files from path-concat.c to filenamecat.c,
29440         and from path-concat.h to filenamecat.h.
29441         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
29442         "file name" in local variables or comments.
29443         * m4/rename.m4: Likewise.
29444
29445 2005-06-01  Bruno Haible  <bruno@clisp.org>
29446
29447         * modules/csharpexec: New file.
29448         * MODULES.html.sh (C#): New section.
29449
29450 2005-06-01  Bruno Haible  <bruno@clisp.org>
29451
29452         * m4/csharp.m4: New file, from GNU gettext.
29453         * m4/csharpexec.m4: New file, from GNU gettext.
29454
29455 2005-06-01  Bruno Haible  <bruno@clisp.org>
29456
29457         * lib/csharpexec.h: New file, from GNU gettext.
29458         * lib/csharpexec.c: New file, from GNU gettext.
29459         * lib/csharpexec.sh.in: New file, from GNU gettext.
29460
29461 2005-05-31  Derek Price  <derek@ximbiot.com>
29462             Paul Eggert  <eggert@cs.ucla.edu>
29463
29464         Sync from cvs.
29465         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
29466
29467 2005-05-31  Derek Price  <derek@ximbiot.com>
29468             Paul Eggert  <eggert@cs.ucla.edu>
29469
29470         Sync from cvs.
29471         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
29472
29473 2005-05-29  Derek Price  <derek@ximbiot.com>
29474
29475         * config/srclist.txt (glob_.h, glob.c): Add these files.
29476
29477 2005-05-29  Derek Price  <derek@ximbiot.com>
29478
29479         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
29480         * modules/glob: New file.
29481         * modules/getlogin_r: Add link to POSIX spec in description.
29482
29483 2005-05-29  Derek Price  <derek@ximbiot.com>
29484             Paul Eggert  <eggert@cs.ucla.edu>
29485
29486         * m4/glob.m4: New file.
29487
29488 2005-05-29  Derek Price  <derek@ximbiot.com>
29489             Paul Eggert  <eggert@cs.ucla.edu>
29490
29491         * lib/glob_.h, lib/glob.c: New files.
29492
29493 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29494
29495         * modules/fts (Files): Remove m4/inttypes-pri.m4.
29496         * modules/fts-lgpl (Depends-on): Remove gettext.
29497
29498 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29499
29500         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
29501         and don't require gt_INTTYPES_PRI.
29502
29503 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29504
29505         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
29506
29507         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
29508         the configuration hassle isn't worth it.
29509         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
29510         (LONGEST_MODIFIER, PRIuMAX): Remove.
29511
29512 2005-05-27  Bruno Haible  <bruno@clisp.org>
29513
29514         * lib/getlogin_r.h: Remove second include of <stddef.h>.
29515
29516 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
29517
29518         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
29519         _POSIX_PTHREAD_SEMANTICS for Solaris.
29520
29521 2005-05-25  Derek Price  <derek@ximbiot.com>
29522
29523         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
29524
29525 2005-05-25  Derek Price  <derek@ximbiot.com>
29526             Paul Eggert  <eggert@cs.ucla.edu>
29527
29528         * modules/getlogin_r, m4/getlogin_r.m4: New files.
29529         * lib/getlogin_r.c, getlogin_r.h: New files.
29530
29531 2005-05-25  Bruno Haible  <bruno@clisp.org>
29532             Derek Price  <derek@ximbiot.com>
29533
29534         * lib/getlogin_r.h: Simplify API documentation.
29535
29536 2005-05-23  Derek Price  <derek@ximbiot.com>
29537
29538         * modules/minmax (Files): Add m4/minmax.m4.
29539         (configure.ac): Add gl_MINMAX.
29540
29541 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
29542
29543         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
29544         so that unistd-safer.h (GPL'ed code) need not be included.
29545
29546 2005-05-22  Bruno Haible  <bruno@clisp.org>
29547
29548         * m4/minmax.m4: New file.
29549         Based on a patch by Derek Price <derek@ximbiot.com>.
29550
29551 2005-05-22  Bruno Haible  <bruno@clisp.org>
29552
29553         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
29554         (INT64_MIN): Fix definition.
29555         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
29556
29557         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
29558         NEED_SIGNED_INT_TYPES.
29559
29560         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
29561         HAVE_SYSTEM_INTTYPES.
29562
29563 2005-05-22  Bruno Haible  <bruno@clisp.org>
29564
29565         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
29566         Also include <sys/param.h> if it defines MIN, MAX.
29567         Based on a patch by Derek Price <derek@ximbiot.com>.
29568
29569 2005-05-21  Jim Meyering  <jim@meyering.net>
29570
29571         * modules/fts (Files): Add m4/inttypes-pri.m4.
29572         (Depends-on): Add lstat and remove gettext.  Alphabetize.
29573
29574 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29575
29576         New fts module.
29577         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
29578         (setup_dir, free_dir): New functions.
29579         (enter_dir, leave_dir): Define trivial
29580         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
29581         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
29582         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
29583         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
29584         Move to fts-cycle.c.
29585         (fts_open): Use setup_dir.
29586         (fts_close): Use free_dir.
29587         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
29588         This adds a label and some gotos, but the alternatives were messier.
29589         Check for memory allocation failure when entering a dir.
29590         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
29591         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
29592         (FTS): New member fts_cycle, that is a union that contains the
29593         old active_dir_ht and cycle_state.  All uses changed to mention
29594         fts_cycle.ht and fts_cycle.state.
29595         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
29596         fts.c, with the following changes:
29597         (setup_dir, free_dir): New functions.
29598         (enter_dir): Now returns bool.  Return true if successful, false
29599         if memory exhausted.  All callers changed.
29600         Do not bother partly cleaning up on
29601         memory allocation failure; that is free_dir's job.
29602         However, free ad if hash_insert fails, to avoid memory leak.
29603         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
29604         fts->fts_options to see which union member to use.
29605
29606 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29607
29608         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
29609         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
29610
29611 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29612
29613         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
29614
29615 2005-05-20  Jim Meyering  <jim@meyering.net>
29616
29617         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
29618         Now a macro, to pacify GCC.
29619
29620 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
29621
29622         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
29623         of -1.
29624
29625 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
29626
29627         * lib/chown.c (rpl_chown): Return -1 on failure.
29628
29629 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
29630
29631         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
29632         Don't check for stddef.h.
29633         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
29634         don't use its results.
29635         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
29636         since we include them unconditionally.  Don't require
29637         AM_STDBOOL_H, since stdbool is a prerequisite.
29638         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
29639         since we assume C89 or better.
29640         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
29641         as we don't use their results.
29642         Don't check for fchdir, memmove, memset, strrchr, as we use
29643         them unconditionally.
29644         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
29645         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
29646
29647 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
29648
29649         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
29650         Include <stddef.h> unconditionally, since we assume C89 now.
29651         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
29652         * lib/fts.c: Include fts_.h first, to check interface.
29653         Do not include intprops.h; no longer needed.
29654         Include cycle-check.h and hash.h, since fts_.h no longer does.
29655         Remove unnecessary casts of closedir to void.
29656         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
29657         decide whether to decrement nlinks.
29658         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
29659         (FTS): Use struct hash_table * instead of Hash_table, so that
29660         we no longer need to include hash.h here.
29661
29662 2005-05-18  Jim Meyering  <jim@meyering.net>
29663
29664         * modules/dirfd (License): Change to LGPL.  Most of the code
29665         is already in the public domain.
29666
29667 2005-05-18  Jim Meyering  <jim@meyering.net>
29668
29669         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
29670         Reported by Yoann Vandoorselaere.
29671
29672 2005-05-17  Jim Meyering  <jim@meyering.net>
29673
29674         * m4/fts.m4: New file, from coreutils.
29675
29676 2005-05-17  Jim Meyering  <jim@meyering.net>
29677
29678         * lib/fts.c, lib/fts_.h: New files, from coreutils.
29679
29680 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
29681
29682         Sync from coreutils.
29683         * m4/unlinkdir.m4: New file.
29684
29685 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
29686
29687         Sync from coreutils.
29688         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
29689         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
29690         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
29691         White space changes only.
29692         * lib/makepath.c (make_path): Port to hosts where leading "//" is
29693         special.
29694         * lib/yesno.c: Include getline.h, not ctype.h.
29695         (yesno): Don't remove leading white space; POSIX doesn't allow it.
29696         Use getline to remove arbitrary restriction on response length.
29697
29698 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
29699
29700         * config/srclist-update: Spell out "Street" in FSF postal
29701         mail address; this is the style the FSF seems to prefer.
29702
29703         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
29704         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
29705         this updates FSF postal mail address.
29706
29707         Sync from coreutils.
29708         * modules/unlinkdir: New file.
29709         * modules/yesno (Depends-on): Add getline.
29710         * MODULES.html.sh (File system functions): Add unlinkdir.
29711
29712 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
29713
29714         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
29715         lib/strsep.h:
29716         Change the initial comment to refer to GPL, not LGPL.
29717         gnulib-tool will change it to LGPL as needed.
29718
29719         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
29720         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
29721         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
29722         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
29723         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
29724         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
29725         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
29726         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
29727         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
29728         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
29729         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
29730         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
29731         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
29732         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
29733         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
29734         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
29735         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
29736         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
29737         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
29738         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
29739         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
29740         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
29741         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
29742         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
29743         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
29744         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
29745         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
29746         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
29747         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
29748         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
29749         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
29750         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
29751         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
29752         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
29753         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
29754         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
29755         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
29756         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
29757         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
29758         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
29759         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
29760         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
29761         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
29762         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
29763         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
29764         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
29765         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
29766         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
29767         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
29768         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
29769         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
29770         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
29771         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
29772         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
29773         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
29774         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
29775         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
29776         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
29777         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
29778         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
29779         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
29780         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
29781         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
29782         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
29783         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
29784         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
29785         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
29786         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
29787         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
29788         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
29789         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
29790         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
29791         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
29792         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
29793         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
29794         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
29795         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
29796         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
29797         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
29798         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
29799         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
29800         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
29801         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
29802         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
29803         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
29804         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
29805         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
29806         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
29807         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
29808         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
29809         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
29810         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
29811         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
29812         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
29813         lib/yesno.c, lib/yesno.h:
29814         Update FSF postal mail address.
29815
29816 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
29817
29818         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
29819         tests/test-memmem.c, tests/test-stpncpy.c:
29820         Update FSF postal mail address.
29821
29822 2005-05-13  Bruno Haible  <bruno@clisp.org>
29823
29824         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
29825         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
29826         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
29827         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
29828         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
29829         Add support for 64-bit integers in the MSVC compiler.
29830
29831 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29832
29833         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
29834
29835 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
29836
29837         * gnulib-tool (func_import): Sort and uniquify recommended includes.
29838
29839 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
29840
29841         * doc/getdate.texi (General date syntax): Don't say that date
29842         date --iso-8601=ns generates acceptable dates; it doesn't yet.
29843         Problem reported by Nic Ferrier.
29844
29845 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29846
29847         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
29848         specified in ai_socktype. Fix invalid ai_protocol
29849         check. ai_protocol is usually set to 0 or depending on
29850         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
29851         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
29852         ai_socktype / ai_protocol in the returned addrinfo structure.
29853
29854 2005-05-10  Simon Josefsson  <jas@extundo.com>
29855
29856         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
29857         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29858
29859 2005-05-10  Karl Berry  <karl@gnu.org>
29860
29861         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
29862         (from http://www.gnu.org/licenses).
29863         * doc/COPYING.LIB: also rename to COPYING.LESSER.
29864         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
29865         fdl.texi suffices.
29866
29867 2005-05-10  Karl Berry  <karl@gnu.org>
29868
29869         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
29870         (COPYING.DOC): remove.
29871
29872         * config/srclist-update: new FSF address.
29873
29874 2005-05-10  Derek Price  <derek@ximbiot.com>
29875
29876         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
29877         possible.
29878
29879 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29880             Bruno Haible  <bruno@clisp.org>
29881
29882         * modules/inet_ntop: New file.
29883         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29884         inet_ntop.
29885
29886 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29887             Bruno Haible  <bruno@clisp.org>
29888
29889         * m4/inet_ntop.m4: New file.
29890
29891 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29892             Bruno Haible  <bruno@clisp.org>
29893
29894         * lib/inet_ntop.h: New file.
29895         * lib/inet_ntop.c: New file, from glibc with modifications.
29896
29897 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
29898
29899         * modules/time_r (License): Change to LGPL.
29900         * modules/extensions (License): Change to LGPL.  Actually,
29901         the license is more permissive than that, but currently gnulib-tool
29902         doesn't know how to handle more-permissive licenses.
29903
29904         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
29905         Problem reported by Dave Love.
29906
29907 2005-05-08  Jim Meyering  <jim@meyering.net>
29908
29909         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
29910         blank.
29911
29912 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
29913
29914         * modules/argmatch (Depends-on): Add stdbool.
29915         * modules/backupfile (Depends-on): Likewise.
29916         * modules/chdir-long (Depends-on): Likewise.
29917         * modules/closeout (Depends-on): Likewise.
29918         * modules/cycle-check (Depends-on): Likewise.
29919         * modules/dirname (Depends-on): Likewise.
29920         * modules/fnmatch (Depends-on): Likewise.
29921         * modules/fsusage (Depends-on): Likewise.
29922         * modules/fwriteerror (Depends-on): Likewise.
29923         * modules/getcwd (Depends-on): Likewise.
29924         * modules/getloadavg (Depends-on): Likewise.
29925         * modules/hard-locale (Depends-on): Likewise.
29926         * modules/makepath (Depends-on): Likewise.
29927         * modules/mountlist (Depends-on): Likewise.
29928         * modules/nanosleep (Depends-on): Likewise.
29929         * modules/posixtm (Depends-on): Likewise.
29930         * modules/quotearg (Depends-on): Likewise.
29931         * modules/readtokens (Depends-on): Likewise.
29932         * modules/readtokens0 (Depends-on): Likewise.
29933         * modules/readutmp (Depends-on): Likewise.
29934         * modules/save-cwd (Depends-on): Likewise.
29935         * modules/strftime (Depends-on): Likewise.
29936         * modules/userspec (Depends-on): Likewise.
29937         * modules/utimecmp (Depends-on): Likewise.
29938         * modules/xgetcwd (Depends-on): Likewise.
29939         * modules/xnanosleep (Depends-on): Likewise.
29940         * modules/xstrtod (Depends-on): Likewise.
29941         * modules/yesno (Depends-on): Likewise.
29942
29943 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29944
29945         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
29946         needless checks.
29947
29948 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
29949
29950         Merge from coreutils.  Among other things,
29951         add bulletproofing for cases where stdin, stdout, or stderr are closed.
29952         * lib/fd-safer.c: New file.
29953         * lib/fcntl-safer.h, open-safer.c: Remove.
29954         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
29955         * lib/dup-safer.c: Include unistd-safer.h first.
29956         Don't include errno.h.
29957         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
29958         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
29959         * lib/file-type.c: Rely on file-type.h change.
29960         * lib/getloadavg.c: Include unistd-safer.h.
29961         (getloadavg): Use safer open.
29962         * lib/getusershell.c: Include "stdio-safer.h".
29963         (getusershell): Use safer fopen.
29964         * lib/long-options.c (long_options): Use NULL rather than 0.
29965         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
29966         'free'.
29967         * lib/modechange.c: Likewise.
29968         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
29969         (MODE_DONE): New constant.
29970         (struct mode_change): Remove 'next' member.
29971         (make_node_op_equals): New function; like the old one of the
29972         same name, except it allocates an array.
29973         (mode_compile, mode_create_from_ref): Use it.
29974         (mode_compile): Allocate result as an array, not a linked list.
29975         Parse octal string ourself, so that we catch mistakes like "+0".
29976         (mode_adjust): Arg is an array, not a linked list.
29977         * lib/modechange.c: Include stat-macros.h, xalloc.h.
29978         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
29979         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
29980         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
29981         Remove.  This is now stat-macros.h's job.
29982         (talloc): Remove.  All callers replaced by xalloc, so that
29983         our invokers don't have to worry about reporting memory failures.
29984         (make_node_op_equals): Remove.
29985         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
29986         New constants.
29987         (struct mode_change): Moved here from modechange.h.
29988         (mode_append_entry): Remove.
29989         (mode_compile): Remove MASKED_OPS arg, since it encouraged
29990         apps to have incorrect behavior.  Use simpler algorithm for head
29991         and tail.  Don't futz with umask; that's now the job of mode_adjust.
29992         Detect more invalid usages rather than having somewhat-random behavior.
29993         Don't insert an "a=" action, as that leads to incorrect behavior.
29994         (mode_compile, mode_create_from_ref): Return NULL on error instead
29995         of an enum, since now there's only one way to have an error.  All
29996         callers changed.
29997         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
29998         at the correct time.  Simplify calculation of "+u" and its ilk.
29999         Don't mishandle "+X".
30000         (mode_free): Remove "register" and localize decls.
30001         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30002         (struct mode_change): Move to modechange.c; callers don't
30003         need to see this stuff.
30004         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
30005         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
30006         (mode_change, mode_adjust): Reflect the new signatures noted above.
30007         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
30008         that might redefine system include files.
30009         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
30010         (my_usleep): Use NULL rather than (void *) 0.
30011         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
30012         Use siginterrupt to specify that system calls should be interrupted.
30013         (rpl_nanosleep): Move initialization of suspended closer to call of
30014         my_usleep.
30015         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
30016         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
30017         (desirable_utmp_entry): New function.
30018         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
30019         using x2nrealloc, to simplify logic.
30020         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
30021         size calculation.  Do not assume utmp file is a regular file.
30022         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
30023         (READ_UTMP_CHECK_PIDS): New constant.
30024         * lib/save-cwd.c: Include unistd-safer.h.
30025         (save_cwd): Use fd_safer.
30026         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
30027         [!_LIBC] Include "stat-macros.h" instead.
30028         * lib/unistd-safer.h (fd_safer): New decl.
30029
30030 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30031
30032         * modules/getloadavg (Depends-on): Add unistd-safer.
30033         * modules/getusershell (Depends-on): Add stdio-safer.
30034         * modules/lstat (Depends-on): Remove xalloc.
30035         * modules/mkstemp (Depends-on): Add stat-macros.
30036         * modules/modechange (Depends-on): Remove xstrtol.
30037         Add stat-macros, xalloc.
30038         * modules/save-cwd (Depends-on): Add unistd-safer.
30039         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
30040         * modules/unistd-safer (Files): Add lib/fd-safer.c
30041         (Makefile.am): Remove lib_SOURCES.
30042
30043         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
30044         Remove fcntl-safer; unistd-safer supersedes it.
30045
30046 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30047
30048         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
30049         AC_HEADER_STAT.
30050         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
30051         (gl_PREREQ_CHOWN): Remove.
30052         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
30053         it.  Don't require AC_HEADER_STAT.
30054         (gl_PREREQ_LSTAT): Remove.
30055         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
30056         Don't require AC_HEADER_STAT.
30057         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
30058         (gl_PREREQ_RMDIR): Remove.
30059         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
30060         mention stat-macros.h or AC_HEADER_STAT, since we'll make
30061         the stat-macros module a prerequisite.
30062         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
30063         * m4/filemode.m4 (gl_FILEMODE): Likewise.
30064         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
30065         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
30066         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
30067         variable names.
30068         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
30069         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
30070         variable prefixes.
30071         * m4/fcntl-safer.m4: Remove.
30072         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
30073         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
30074         Invoke gl_PREREQ_FD_SAFER.
30075         (gl_PREREQ_FD_SAFER): New macro.
30076         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
30077         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
30078         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
30079         Remove duplicate call to AC_LIBOBJ(readutmp).
30080         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
30081
30082         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
30083         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
30084
30085 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30086
30087         * MODULES.html.sh (Misc): Add byteswap.
30088
30089 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30090
30091         * modules/getcwd (Depends-on): Add extensions.
30092         * modules/openat (Depends-on): Likewise.
30093
30094 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30095
30096         * modules/byteswap: New file.
30097
30098 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30099
30100         * m4/byteswap.m4: New file.
30101
30102 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30103
30104         * lib/byteswap_.h: New file.
30105
30106 2005-04-25  Karl Berry  <karl@gnu.org>
30107
30108         * m4/gettext.m4: Update from GNU gettext 0.14.4.
30109
30110 2005-04-25  Albert Chin  <china@thewrittenword.com>
30111
30112         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
30113         Toolkit C bug.
30114
30115 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
30116
30117         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
30118         (func_ln_if_changed) Remove forcibly for no error message
30119         in case file does not exist.
30120
30121 2005-04-19  Simon Josefsson  <jas@extundo.com>
30122
30123         * gnulib-tool (Options): Make --symlink mean --symbolic.
30124
30125 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
30126
30127         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
30128
30129 2005-04-16  Simon Josefsson  <jas@extundo.com>
30130
30131         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
30132
30133 2005-04-15  Simon Josefsson  <jas@extundo.com>
30134
30135         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
30136
30137 2005-04-15  Simon Josefsson  <jas@extundo.com>
30138
30139         * gnulib-tool: Rename --symlink to --symbolic.
30140
30141 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
30142
30143         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
30144         symbolic links to files instead of copying/moving.  Add --aux-dir,
30145         specifying directory relative --dir where auxiliary build tools
30146         are placed.
30147
30148 2005-04-14  Bruno Haible  <bruno@clisp.org>
30149
30150         * modules/allocsa (License): Change to LGPL.
30151         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30152
30153 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
30154
30155         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
30156         that "UTC +1 second" continues to work.  Problem reported
30157         by Dmitry V. Levin.
30158         (relunit_snumber): New rule.
30159         (relunit): Use it.
30160
30161 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
30162
30163         * lib/getdate.y (universal_time_zone_table): New constant.
30164         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
30165         universal_time_zone_table.
30166         (lookup_zone): Prefer universal_time_zone_table to
30167         local_time_zone_table, so that "GMT" time stamps are allowed in
30168         London during the summer.  Problem reported by Ian Abbott.
30169
30170 2005-04-12  Jim Meyering  <jim@meyering.net>
30171
30172         * lib/human.c (humblock): Set *options even when returning due to
30173         xstrtoumax conversion failure.  Thanks to a used-uninitialized
30174         warning from gcc-4.
30175
30176 2005-04-09  Jim Meyering  <jim@meyering.net>
30177
30178         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
30179         -Wuninitialized: initialize tm0.tm_year.
30180
30181 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
30182
30183         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
30184         count, since there's no maximum.  All uses changed.
30185         Add member dsts_seen.
30186         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
30187         not being INT_MAX.
30188         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
30189         Use pc_rels_seen to decide whther a date is absolute.
30190
30191         * lib/getdate.y (number): Don't overwrite year.
30192         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
30193         check.
30194
30195 2005-04-02  Simon Josefsson  <jas@extundo.com>
30196
30197         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
30198         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
30199
30200 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
30201
30202         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
30203         where no absolute path name can be longer than PATH_MAX.
30204
30205 2005-03-27  Jim Meyering  <jim@meyering.net>
30206
30207         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
30208
30209 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
30210
30211         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
30212         "one's complement" -> "ones' complement" in comment, as per Knuth.
30213         "value of type" -> "type or expression" in comment.
30214         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
30215
30216 2005-03-26  Jim Meyering  <jim@meyering.net>
30217
30218         Comment nits.
30219         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
30220         Correct typos: s/or/of/.
30221
30222 2005-03-26  Jim Meyering  <jim@meyering.net>
30223
30224         * modules/check-include-files: Move to ../ and rename to...
30225         * check-module: ...this.
30226
30227 2005-03-25  Jim Meyering  <jim@meyering.net>
30228
30229         * modules/xvasprintf (Files): Add xalloc.h.
30230
30231 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
30232
30233         * modules/gettext (Files): config/config.rpath ->
30234         build-aux/config.rpath
30235         * modules/iconv (Files): Likewise.
30236         Problem reported by Oskar Liljeblad.
30237
30238 2005-03-23  Jim Meyering  <jim@meyering.net>
30239
30240         * modules/check-include-files: New script to check for
30241         missing dependencies, multiple includes, etc.
30242
30243         * modules/c-strtold (Depends-on): Add xalloc.
30244         * modules/c-strtod (Depends-on): Add xalloc.
30245         * modules/hash (Depends-on): Add xalloc.
30246         (Files): Remove lib/xalloc.h.
30247
30248         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
30249         * modules/userspec (Files): Add lib/inttostr.h.
30250
30251 2005-03-23  Jim Meyering  <jim@meyering.net>
30252
30253         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
30254
30255 2005-03-22  Jim Meyering  <jim@meyering.net>
30256
30257         * modules/stat-macros: New module.
30258         * modules/canonicalize, modules/euidaccess, modules/file-type,
30259         * modules/filemode, modules/lchown, modules/makepath,
30260         * modules/rmdir, modules/stat: Depend on new stat-macros module
30261         rather than listing lib/stat-macros.h manually.
30262         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
30263
30264 2005-03-22  Jim Meyering  <jim@meyering.net>
30265
30266         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
30267
30268 2005-03-22  Bruno Haible  <bruno@clisp.org>
30269
30270         * config/srclist.txt: Replace target directory 'config' with
30271         'build-aux'.
30272         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
30273         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
30274         ../build-aux/.
30275
30276 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
30277
30278         * modules/chdir-long (Depends-on): Add mempcpy.
30279
30280         * modules/acl, modules/backupfile, modules/c-strtod,
30281         modules/c-strtold, modules/canon-host, modules/canonicalize,
30282         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
30283         modules/exclude, modules/exitfail, modules/file-type,
30284         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
30285         modules/getdate, modules/getline, modules/getpagesize,
30286         modules/getpass, modules/getugroups, modules/group-member,
30287         modules/hard-locale, modules/hash, modules/human, modules/idcache,
30288         modules/inttostr, modules/long-options, modules/makepath,
30289         modules/md5, modules/memcasecmp, modules/memcoll,
30290         modules/modechange, modules/mountlist, modules/path-concat,
30291         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
30292         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
30293         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
30294         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
30295         modules/strftime, modules/strndup, modules/strverscmp,
30296         modules/timespec, modules/unlocked-io, modules/userspec,
30297         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
30298         modules/yesno:
30299         Remove lib_SOURCES line from Makefile.am section, as this is now
30300         done automatically by the corresponding Autoconf macro.
30301
30302 2005-03-21  Jim Meyering  <jim@meyering.net>
30303
30304         Changes imported from coreutils.
30305
30306         * lib/cycle-check.c: Don't include xalloc.h.
30307
30308         * lib/path-concat.c: Don't include assert.h.
30309         (path_concat): Remove assertion that would have triggered
30310         for ABASE starting with more than one slash.
30311         Reported by Andreas Schwab.
30312
30313         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
30314         properly when ABASE is an absolute file name.
30315         Correct the description of this function.
30316         Include <assert.h>.
30317         Add an assertion and a test driver.
30318         This fixes a bug introduced on 2004-07-02.
30319         Andreas Schwab reported the resulting failure of cp --parents:
30320         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
30321
30322 2005-03-21  Jim Meyering  <jim@meyering.net>
30323
30324         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
30325         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
30326
30327 2005-03-21  Jim Meyering  <jim@meyering.net>
30328         and  Paul Eggert  <eggert@cs.ucla.edu>
30329
30330         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
30331         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
30332         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
30333         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
30334         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
30335         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
30336         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
30337         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
30338         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
30339         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
30340         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
30341         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
30342         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
30343         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
30344         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
30345         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
30346         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
30347         for these modules.
30348
30349 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
30350
30351         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
30352         (which shouldn't happen), generate nothing instead of returning 0
30353         immediately, so that nstrftime (NULL, ...) doesn't return 0.
30354
30355 2005-03-16  Bruno Haible  <bruno@clisp.org>
30356
30357         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
30358         HAVE_LONGLONG_64BIT.
30359
30360 2005-03-16  Bruno Haible  <bruno@clisp.org>
30361
30362         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
30363         HAVE_LONGLONG_64BIT.
30364
30365 2005-03-16  Bruno Haible  <bruno@clisp.org>
30366
30367         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
30368         HAVE_LONGLONG_64BIT.
30369
30370 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
30371
30372         * lib/strftime.c (my_strftime): Prepend space to format so that we can
30373         reliably distinguish strftime failure from empty output on POSIX
30374         hosts.
30375
30376 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
30377
30378         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
30379         (iconv_string): Don't guess a size-zero buffer, as that might cause
30380         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
30381         result would be 'too large', where 'too large' is (heuristically)
30382         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
30383         overflow concerns.  This will prevent some unwanted malloc failures
30384         when the inputs are very large.
30385
30386 2005-03-15  Karl Berry  <karl@gnu.org>
30387
30388         * config/srclist.txt (config.rpath): from gettext.
30389         * config/config.rpath: update.
30390
30391 2005-03-15  Bruno Haible  <bruno@clisp.org>
30392
30393         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
30394         to 'negate'.
30395
30396         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
30397         variable.
30398
30399         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
30400         results.
30401
30402 2005-03-14  Simon Josefsson  <jas@extundo.com>
30403
30404         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
30405         <fx@gnu.org>.
30406
30407 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
30408
30409         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
30410         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
30411         intprops.h.
30412         * lib/strtol.c: Likewise.
30413
30414 2005-03-14  Jim Meyering  <jim@meyering.net>
30415
30416         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
30417         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
30418         to be nonzero so that we (and caller) can detect the difference
30419         between a valid zero-length expansion and an error return, even
30420         when the underlying strftime fails before writing anything into
30421         that location.
30422
30423 2005-03-14  Bruno Haible  <bruno@clisp.org>
30424
30425         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
30426         Update from GNU gettext 0.14.3.
30427
30428 2005-03-10  Jim Meyering  <jim@meyering.net>
30429
30430         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
30431
30432 2005-03-10  Jim Meyering  <jim@meyering.net>
30433
30434         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
30435         so that this module works on systems without fchdir.
30436
30437 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
30438
30439         Factor int-properties macros into a single file, except for
30440         glibc-related files.
30441         * lib/intprops.h: New file.
30442         * lib/getloadavg.c: Include it instead of limits.h.
30443         (INT_STRLEN_BOUND): Remove.
30444         * lib/human.c: Include intprops.h.
30445         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
30446         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
30447         302/1000.
30448         * lib/inttostr.h: Include intprops.h instead of limits.h.
30449         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
30450         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
30451         for consistency with intprops.h.
30452         (time_t_is_integer, twos_complement_arithmetic): Use them.
30453         * lib/sig2str.h: Include <signal.h>, intprops.h.
30454         (INT_STRLEN_BOUND): Remove.
30455         * lib/strftime.c (TYPE_SIGNED): Remove.
30456         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
30457         * lib/strtol.c: Adjust comments to match intprops.h.
30458         * lib/userspec.c: Include intprops.h.
30459         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
30460         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
30461         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
30462         instead of rolling our own expressions.
30463         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
30464
30465         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
30466         instead of int.
30467         (my_strftime): Do not mishandle years close to INT_MAX, by doing
30468         the right thing even if adding 1900 would overflow.  Similarly
30469         for tm_mon + 1 and tm_yday + 1.
30470         Make %Y always equivalent to %C%y, and similarly for %G and %g.
30471         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
30472         (DO_SIGNED_NUMBER): New macro.
30473         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
30474
30475 2005-03-07  Bruno Haible  <bruno@clisp.org>
30476
30477         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
30478
30479 2005-03-07  Bruno Haible  <bruno@clisp.org>
30480
30481         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
30482
30483 2005-03-04  Derek R. Price  <derek@ximbiot.com>
30484
30485         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
30486         (func_import): Only replace files via --import when they have actually
30487         changed.
30488
30489 2005-03-03  Derek R. Price  <derek@ximbiot.com>
30490
30491         * m4/mmap-anon.m4: New file.
30492         * m4/pagealign_alloc.m4: New file.
30493
30494 2005-03-03  Derek R. Price  <derek@ximbiot.com>
30495             Bruno Haible  <bruno@clisp.org>
30496
30497         * modules/pagealign_alloc: New file.
30498         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
30499
30500 2005-03-03  Derek R. Price  <derek@ximbiot.com>
30501             Bruno Haible  <bruno@clisp.org>
30502
30503         * lib/pagealign_alloc.h: New file.
30504         * lib/pagealign_alloc.c: New file.
30505
30506 2005-03-03  Bruno Haible  <bruno@clisp.org>
30507
30508         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
30509         Use an all-permissive copyright notice, recommended by RMS.
30510
30511 2005-03-02  Bruno Haible  <bruno@clisp.org>
30512
30513         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
30514         of AIX, the replacement has to be done only after <string.h> is
30515         included, therefore not in config.h. stpncpy.h does the replacement,
30516         and stpncpy.c uses it.
30517
30518 2005-03-02  Bruno Haible  <bruno@clisp.org>
30519
30520         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
30521         stpncpy.c uses it.
30522
30523 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
30524
30525         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
30526         The workaround isn't strictly needed for POSIX conformance, and
30527         it's too much of a pain to configure and maintain.  We'll ask
30528         people to fix their kernels instead.
30529         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
30530         (NANOSLEEP_BUG_WORKAROUND): Remove.
30531         (xnanosleep): Remove the workaround.
30532
30533 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
30534
30535         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
30536         Reported by Derek Price.
30537         (Include): Add "timespec.h".
30538
30539         * modules/xnanosleep (Depends-on): Remove gethrxtime.
30540
30541 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
30542
30543         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
30544         to detect nanosleep bug.
30545
30546 2005-03-01  Bruno Haible  <bruno@clisp.org>
30547
30548         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
30549
30550 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
30551
30552         * modules/gethrxtime: New file.
30553         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
30554         (Depends-on): Add gethrxtime.
30555         (configure.ac): Add gl_XNANOSLEEP.
30556         (Makefile.am): Remove lib_SOURCES line.
30557
30558 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
30559
30560         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
30561         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
30562
30563 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
30564
30565         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
30566         * lib/timespec.h (gettime): Return void, since it always
30567         succeeds now.  All uses changed.
30568         * lib/gettime.c (gettime) Likewise.
30569         [HAVE_NANOTIME]: Prefer nanotime.
30570         Assume gettimeofday succeeds, as POSIX requires.
30571         Assime time () succeeds, since other code already does.
30572         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
30573         (timespec_subtract): Remove.
30574         (NANOSLEEP_BUG_WORKAROUND): New constant.
30575         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
30576         things considerably.  Use it only on GNU/Linux hosts, since the
30577         workaround shouldn't be needed elsewhere.
30578
30579 2005-02-24  Bruno Haible  <bruno@clisp.org>
30580
30581         * modules/gettext (Files): Add m4/glibc2.m4.
30582
30583 2005-02-24  Bruno Haible  <bruno@clisp.org>
30584
30585         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
30586         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
30587         * m4/progtest.m4:
30588         Update from GNU gettext 0.14.2.
30589         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
30590
30591 2005-02-24  Bruno Haible  <bruno@clisp.org>
30592
30593         * lib/localcharset.c: Update from GNU gettext 0.14.2.
30594         * lib/config.charset: Update from GNU gettext 0.14.2.
30595
30596 2005-02-24  Bruno Haible  <bruno@clisp.org>
30597
30598         * lib/gettext.h: Update from GNU gettext 0.14.2.
30599
30600 2005-02-23  Simon Josefsson  <jas@extundo.com>
30601
30602         * m4/iconvme.m4: New file.
30603
30604 2005-02-23  Jim Meyering  <jim@meyering.net>
30605
30606         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
30607         change.
30608         Thanks to Bruno Haible for catching it.
30609
30610 2005-02-22  Simon Josefsson  <jas@extundo.com>
30611
30612         * modules/iconvme: New file.
30613
30614         * MODULES.html.sh: Add iconvme.
30615
30616 2005-02-22  Simon Josefsson  <jas@extundo.com>
30617
30618         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
30619
30620 2005-02-22  Simon Josefsson  <jas@extundo.com>
30621
30622         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
30623
30624 2005-02-22  Jim Meyering  <jim@meyering.net>
30625
30626         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
30627         s/ifndef/ifdef/.
30628
30629 2005-02-20  Neil Conway  <neilc@samurai.com>
30630
30631         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
30632         returned by OSX/Darwin if the specified buffer is not large
30633         enough for the hostname.
30634
30635 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30636
30637         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
30638         pass it to _help, otherwise the latter coredumps trying to
30639         dereference state.root_argp.
30640
30641 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
30642
30643         * modules/chdir-long (Depends-on): Add memrchr.
30644         * modules/memrchr (Files): Add lib/memrchr.h.
30645         (Include): "memrchr.h".
30646
30647 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
30648
30649         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
30650
30651 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
30652
30653         * lib/memrchr.h: New file.
30654         * lib/chdir-long.c: Include it.
30655         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
30656         Don't bother including stddef.h.
30657
30658 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
30659
30660         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
30661         inclusion.
30662         Include <sys/types.h>, for dev_t.
30663         (ME_DUMMY, ME_REMOTE): Move from here....
30664         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
30665         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
30666         Dmitry V. Levin.
30667         Include mountlist.h first, to test the interface.
30668
30669 2005-01-29  Bruno Haible  <bruno@clisp.org>
30670
30671         * lib/progname.c (program_name): Initialize.
30672         Needed when linking statically on MacOS X.
30673
30674 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
30675
30676         Sync from coreutils.
30677         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
30678         (Depends-on): Add c-strtod.
30679         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
30680
30681 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
30682
30683         Sync from coreutils.
30684         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
30685
30686         Remove files that are specific to coreutils.
30687         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
30688
30689 2005-01-28  Bruno Haible  <bruno@clisp.org>
30690
30691         * modules/javacomp: New file.
30692         * MODULES.html.sh (Java): Add javacomp.
30693
30694 2005-01-28  Bruno Haible  <bruno@clisp.org>
30695
30696         * m4/javacomp.m4: New file, from GNU gettext.
30697
30698 2005-01-28  Bruno Haible  <bruno@clisp.org>
30699
30700         * lib/javacomp.sh.in: New file, from GNU gettext.
30701         * lib/javacomp.h: New file, from GNU gettext.
30702         * lib/javacomp.c: New file, from GNU gettext.
30703
30704 2005-01-26  Simon Josefsson  <jas@extundo.com>
30705
30706         * lib/gai_strerror.c: Use GPL in header.
30707
30708 2005-01-26  Bruno Haible  <bruno@clisp.org>
30709
30710         * modules/javaexec: New file.
30711         * MODULES.html.sh (Java): Add javaexec.
30712
30713 2005-01-26  Bruno Haible  <bruno@clisp.org>
30714
30715         * m4/javaexec.m4: New file, from GNU gettext.
30716
30717 2005-01-26  Bruno Haible  <bruno@clisp.org>
30718
30719         * lib/javaexec.sh.in: New file, from GNU gettext.
30720         * lib/javaexec.h: New file, from GNU gettext.
30721         * lib/javaexec.c: New file, from GNU gettext.
30722
30723 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30724
30725         * modules/lchown (Depends-on): Remove lchown.h
30726
30727 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30728
30729         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
30730         must be defined if the header file was not found, in order
30731         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
30732
30733 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30734
30735         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
30736         initializers for struct pentry_state.
30737         (__argp_error): Check return value of __asprintf
30738         (__argp_failure): Translate error message
30739
30740         * lib/argp-parse.c: Removed braces around the expansion of N_()
30741
30742 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
30743
30744         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
30745         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
30746         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
30747         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
30748         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
30749         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
30750         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
30751         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
30752         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
30753         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
30754         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
30755         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
30756         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
30757         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
30758         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
30759         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
30760         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
30761         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
30762         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
30763         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
30764         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
30765         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
30766         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
30767         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
30768         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
30769         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
30770         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
30771         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
30772         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
30773         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
30774         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
30775         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
30776         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
30777         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
30778         xstrtol.m4, xstrtoumax.m4, yesno.m4:
30779         Use an all-permissive copyright notice, recommended by RMS.
30780
30781 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
30782
30783         * modules/chdir-long (Depends-on): Remove mempcpy.
30784
30785 2005-01-21  Jim Meyering  <jim@meyering.net>
30786
30787         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
30788         same value as for Solaris 9.
30789
30790         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
30791         component length.  This included changing the parameter to be
30792         of type `char *' rather than `char const *'.
30793         * lib/chdir-long.h (chdir_long): Update prototype.
30794
30795         * lib/openat.c (fdopendir, fstatat): New functions.
30796         * lib/openat.h: Include headers required for use of DIR and struct
30797         stat.
30798         [AT_SYMLINK_NOFOLLOW]: Define.
30799         (fdopendir, fstatat): Add prototypes.
30800
30801 2005-01-21  Bruno Haible  <bruno@clisp.org>
30802
30803         * modules/classpath: New file.
30804         * MODULES.html.sh (Java): Add classpath.
30805
30806 2005-01-21  Bruno Haible  <bruno@clisp.org>
30807
30808         * lib/classpath.h: New file, from GNU gettext.
30809         * lib/classpath.c: New file, from GNU gettext.
30810
30811 2005-01-20  Simon Josefsson  <jas@extundo.com>
30812
30813         * modules/version-etc-fsf: New file.
30814
30815 2005-01-20  Simon Josefsson  <jas@extundo.com>
30816
30817         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
30818         * lib/version-etc.c: Remove version_etc_copyright.
30819         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
30820         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
30821
30822 2005-01-20  Simon Josefsson  <jas@extundo.com>
30823
30824         * lib/base64.h (isbase64): Add.
30825
30826         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
30827         using a unsigned prototype, don't inline.
30828         (base64_decode): Use it.
30829
30830 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
30831
30832         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
30833         it.
30834
30835 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
30836
30837         * lib/save-cwd.c (save_cwd): Remove code to support the case
30838         where fchdir is missing or flaky.
30839
30840 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
30841
30842         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
30843
30844 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
30845
30846         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
30847         AC_LIBSOURCES now does this.
30848         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
30849         with new ullong_max module.
30850
30851 2005-01-19  Bruno Haible  <bruno@clisp.org>
30852
30853         * modules/sh-quote: New file.
30854         * MODULES.html.sh (Executing programs): Add sh-quote.
30855
30856 2005-01-19  Bruno Haible  <bruno@clisp.org>
30857
30858         * lib/sh-quote.h: New file, from GNU gettext.
30859         * lib/sh-quote.c: New file, from GNU gettext.
30860
30861 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
30862
30863         Merge from coreutils.
30864         * m4/ullong_max.m4: New file.
30865         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
30866         (gl_MACROS): Assume localeconv exists.
30867
30868 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
30869
30870         Merge changes from coreutils, as described below in several
30871         changelogs dated today.
30872
30873         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
30874         (O_DIRECTORY): Remove; not needed here, since "." must be
30875         a directory.  All uses removed.
30876         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
30877         universal on Suns, and we also need to test for IRIX.
30878         Revamp code to use 'if' rather than '#if'.
30879         Avoid unnecessary comparison of cwd->desc to 0.
30880
30881         * lib/utimens.c (futimens): Robustify the previous patch, by checking
30882         for known valid error numbers rather than observed invalid ones.
30883
30884 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
30885
30886         * modules/ullong_max: New file.
30887
30888         * modules/chdir-long, modules/openat: New files.
30889         * modules/save-cwd (Depends-on): Depend on chdir-long.
30890         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
30891
30892 2005-01-18  Jim Meyering  <jim@meyering.net>
30893
30894         Merge from coreutils.
30895         * m4/chdir-long.m4, m4/openat.m4: New files.
30896         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
30897         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
30898         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
30899         is sane and DOES follow symlinks.  Besides, testing 20 different
30900         systems found no broken chown implementations.
30901         Prompted by a change in rsync's copy of this macro.
30902         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
30903
30904         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
30905
30906         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
30907         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
30908         NULL-means-set-to-current-time semantics.
30909         Remove temporary file immediately, rather than waiting
30910         for configure's at-exit trap code to do it.
30911
30912 2005-01-18  Jim Meyering  <jim@meyering.net>
30913
30914         * lib/version-etc.c (version_etc_copyright): Update copyright date.
30915
30916         * lib/utimens.c (futimens): Account for the fact that futimes
30917         can also fail with errno == ENOSYS or errno == ENOENT.
30918         Patch from Dmitry V. Levin.
30919
30920         Change the name of the robust chdir function from chdir to chdir_long.
30921         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
30922         (restore_cwd): Use chdir_long, not chdir.
30923         * lib/chdir-long.c: Renamed from chdir.c.
30924         * lib/chdir-long.h: Renamed from chdir.h.
30925         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
30926         Hurd.
30927
30928 2005-01-18  Bruno Haible  <bruno@clisp.org>
30929
30930         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
30931         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
30932         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
30933         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
30934         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
30935         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
30936         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
30937         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
30938         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
30939         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
30940         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
30941         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
30942         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
30943         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
30944         Use an all-permissive copyright notice, recommended by RMS.
30945
30946 2005-01-18  Bob Proulx  <bob@proulx.com>
30947
30948         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
30949         simplify offsetof() macro construct to avoid compile failure with
30950         native HP-UX 11.0 ANSI C compiler.
30951
30952 2005-01-17  Bruno Haible  <bruno@clisp.org>
30953
30954         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
30955         redundant because stpncpy.m4 takes care of it.
30956
30957 2005-01-17  Bruno Haible  <bruno@clisp.org>
30958
30959         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
30960
30961 2005-01-17  Bruno Haible  <bruno@clisp.org>
30962
30963         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
30964         used.
30965
30966 2005-01-17  Bruno Haible  <bruno@clisp.org>
30967
30968         * lib/fwriteerror.h (fwriteerror): Change specification to include
30969         fclose.
30970         * lib/fwriteerror.c: Include <stdbool.h>.
30971         (fwriteerror): At the end, close the file stream. Record whether
30972         stdout was already closed.
30973
30974 2005-01-17  Bruno Haible  <bruno@clisp.org>
30975
30976         * lib/execute.c (environ): Declare if needed.
30977         * lib/pipe.c (environ): Likewise.
30978         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
30979
30980 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30981
30982         * modules/argp: Depend on vsnprintf
30983
30984 2005-01-10  Jim Meyering  <jim@meyering.net>
30985
30986         * modules/closeout (Depends-on): Add atexit.
30987
30988 2005-01-06  Bruno Haible  <bruno@clisp.org>
30989
30990         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
30991
30992 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
30993
30994         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
30995         definitions to be after all include files, to avoid collisions.
30996         Problem reported by Bob Proulx.
30997
30998 2005-01-04  Jim Meyering  <jim@meyering.net>
30999
31000         Changes imported from coreutils.
31001         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
31002         as the mkstemp template, use a temporary directory and an
31003         8.3-friendly template to avoid trouble on systems like DJGPP.
31004         Reported by Juan M. Guerrero via Stepan Kasal.
31005         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
31006         close. Remove the temporary directory right away, rather than waiting
31007         for configure's at-exit trap code to do it.
31008         Suggestion from Stepan Kasal.
31009
31010 2005-01-01  Simon Josefsson  <jas@extundo.com>
31011
31012         * gnulib-tool: Print #include directives when --import'ing.
31013
31014 2004-12-28  Simon Josefsson  <jas@extundo.com>
31015
31016         * tests/test-base64.c: Include required header files.  Remove
31017         unused variables.
31018
31019 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31020
31021         * modules/error (Depends-on): Remove gettext.
31022
31023 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31024
31025         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
31026         not needed.  This removes a dependency on the gettext module.
31027         [defined _LIBC]: Do not include <libintl.h>; not needed.
31028
31029 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
31030
31031         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
31032         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
31033
31034 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
31035
31036         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
31037         HAVE_DECL_STRTOLD.
31038
31039 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31040
31041         * modules/getdate (Depends-on): Remove alloca-opt.
31042
31043 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31044
31045         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
31046
31047 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31048
31049         * lib/argp-parse.c: Include <stddef.h>.
31050         (alignof, alignto): New macros.
31051         (parser_init): Don't assume that void * is aligned sufficiently
31052         for struct option.
31053
31054         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
31055         need to extend the stack.
31056         (YYINITDEPTH): New macro, so that the initial stack isn't overly
31057         large.
31058
31059 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31060
31061         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
31062
31063 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
31064
31065         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
31066         (2004-10-24) change.  Apparently this was a false alarm.
31067
31068         * modules/getdate: Depend on alloca-opt, not alloca.
31069
31070 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
31071
31072         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
31073         Remove now-obsolete comment about AIX.
31074         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
31075         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
31076         (YYMAXDEPTH): New macro.
31077
31078 2004-12-18  Simon Josefsson  <jas@extundo.com>
31079
31080         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
31081
31082 2004-12-18  Bruno Haible  <bruno@clisp.org>
31083
31084         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
31085
31086 2004-12-18  Bruno Haible  <bruno@clisp.org>
31087
31088         * lib/fatal-signal.c (fatal_signals): Make non-const.
31089         (init_fatal_signals): New function.
31090         (uninstall_handlers, install_handlers): Ignore signals that were set to
31091         SIG_IGN.
31092         (at_fatal_signal): Call init_fatal_signals.
31093         (init_fatal_signal_set): Likewise. Ignore signals that were set to
31094         SIG_IGN.
31095         Reported by Paul Eggert.
31096
31097 2004-12-18  Bruno Haible  <bruno@clisp.org>
31098
31099         * doc/alloca.texi: New file.
31100         * doc/alloca-opt.texi: New file.
31101
31102 2004-12-17  Jim Meyering  <jim@meyering.net>
31103
31104         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
31105         Otherwise, install-sh could exit with improper exit status when
31106         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
31107
31108 2004-12-16  Simon Josefsson  <jas@extundo.com>
31109
31110         * tests/test-base64.c: Add license.
31111
31112 2004-12-15  Stepan Kasal  <address@hidden>
31113
31114         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
31115
31116 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
31117
31118         * modules/getcwd (Files): Add m4/d-ino.m4.
31119         Suggested by Mark D. Baushke.
31120
31121 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
31122
31123         * lib/getdate.y (textint): New member "negative".
31124         (time_zone_hhmm): New function.
31125         Expect 14 shift-reduce conflicts, not 13.
31126         (o_colon_minutes): New rule.
31127         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
31128         (yylex): Set the "negative" member of signed numbers.
31129
31130 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
31131
31132         * doc/getdate.texi (Time of day items, Time zone items):
31133         Describe new formats +00:00, UTC+00:00.
31134
31135 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
31136
31137         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
31138         spurious "-l"s.  Problem reported by Stepan Kasal.
31139
31140 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
31141
31142         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
31143         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
31144
31145 2004-12-04  Simon Josefsson  <jas@extundo.com>
31146
31147         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
31148         Vandoorselaere <yoann@prelude-ids.org>.
31149
31150 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31151
31152         Changes imported from coreutils.
31153         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
31154         exist.
31155         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
31156
31157 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31158
31159         Changes imported from coreutils.
31160         * lib/hard-locale.c: Assume <locale.h> exists.
31161         Include "strdup.h".
31162         (GLIBC_VERSION): New macro.
31163         (hard_locale): Assume setlocale exists.
31164         Rewrite to avoid #ifdef.
31165         Use strdup rather than malloc + strcpy.
31166         * lib/human.c: Assume <locale.h> exists.
31167         (human_readable): Assume localeconv exists.
31168
31169 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31170
31171         * modules/hard-locale (Depends-on): Add strdup.
31172
31173 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
31174
31175         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
31176         convert T2, not T.  (Imported from libc.)
31177
31178 2004-11-30  Simon Josefsson  <jas@extundo.com>
31179
31180         * modules/restrict (License): Change to LGPL.
31181
31182 2004-11-30  Simon Josefsson  <jas@extundo.com>
31183
31184         * m4/restrict.m4: Add copyright and copying conditions.
31185
31186 2004-11-30  Simon Josefsson  <jas@extundo.com>
31187
31188         * m4/base64.m4: New file.
31189
31190 2004-11-30  Simon Josefsson  <jas@extundo.com>
31191
31192         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
31193         base64.
31194
31195         * tests/test-base64.c: New file.
31196
31197         * modules/base64: New file.
31198
31199 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
31200
31201         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
31202         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
31203
31204         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
31205
31206 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
31207
31208         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
31209         (__getcwd.c): Don't restore errno; glibc doesn't.
31210         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
31211         first, falling back to our code only if its results look suspicious.
31212         Ensure that the resulting buffer is only as large as necessary.
31213
31214         * lib/readutmp.c: Include readutmp.h first.
31215         Include <errno.h>, since readutmp.h no longer does that.
31216         * lib/readutmp.h: Don't include <errno.h>,
31217         <sys/param.h>, <time.h>; not needed to establish interface.
31218         (errno): Remove decl.
31219         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
31220         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
31221         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
31222
31223 2004-11-28  Simon Josefsson  <jas@extundo.com>
31224
31225         * lib/base64.h, base64.c: New file.
31226
31227 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
31228
31229         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
31230
31231 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
31232
31233         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
31234         (Depends-on): Remove pathmax, same.  Add mempcpy.
31235         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
31236         (Makefile.am): Append getcwd.h to lib_SOURCES.
31237         (Include): Add getcwd.h.
31238         (Maintainer): Change from Jim Meyering to "all, glibc",
31239         since getdate now uses intended-for-glibc code.
31240         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
31241         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
31242
31243 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
31244
31245         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
31246         HP's ANSI C compiler.
31247         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
31248         Declaring int functions causes warnings on some modern systems and
31249         shouldn't be needed to compile on ancient ones.
31250         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
31251         defined.
31252
31253         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
31254         with the following changes.
31255         (__set_errno): Parenthesize properly.
31256         Include <stdbool.h>.
31257         (MIN, MAX, MATCHING_INO): New macros.
31258         (__getcwd): Define with prototype, not K&R form.
31259         Use heuristics to allocate default buffer on stack if possible.
31260         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
31261         behavior, and to avoid the PATH_MAX limit when computing
31262         ../../../../...
31263         Use MATCHING_INO to compare inode number to file.
31264         Check for arithmetic overflow in size calculations.
31265         Fix bug in reallocation of dot array that caused getcwd to fail
31266         on directories nested deeper than 75.
31267         Be more careful about saving errno on error.
31268         Do not use realloc; use only free+malloc, as this is a bit
31269         more flexible and avoids a needless copy operation.
31270         Do not inspect st_dev and st_ino for symbolic links; POSIX
31271         doesn't specify the latter.
31272         Check for closedir errors.
31273         Avoid needless casts.
31274         Use "#ifdef weak_alias" around weak_alias, to be like other
31275         glibc code.
31276         The following changes to getcwd.c have effect only when used in
31277         gnulib; they have no effect inside glibc proper.
31278         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
31279         as alloca isn't used.
31280         (alloca, __alloca): Likewise.
31281         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
31282         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
31283         unconditionally, as gnulib assumes C89 or better.
31284         Do not include <sys/param.h>.
31285         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
31286         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
31287         better.
31288         (NULL) [!defined NULL]: Remove; we assume C89 or better.
31289         Include <dirent.h> in a way that is compatible with modern Autoconf.
31290         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
31291         New macros, if not already defined.
31292         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
31293         Use "_LIBC", not "defined _LIBC", for consistency.
31294         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
31295         a mempcpy module.
31296         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
31297         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
31298         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
31299         credit only to Jim Meyering and adjust the copyright dates.
31300         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
31301         <stdlib.h>, <unistd.h>, "pathmax.h".
31302         Instead, include "xgetcwd.h" (first) and "getcwd.h".
31303         (INITIAL_BUFFER_SIZE): Remove.
31304         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
31305
31306 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
31307
31308         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
31309         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
31310         Use the _ONCE methods, for efficiency.
31311         Check for fcntl.h.  In test program, include <errno.h>
31312         and <fcntl.h> if available.  Remove old K&R cruft from
31313         test program.  Check for common errors in GNU/Linux,
31314         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
31315         don't do AC_LIBOBJ, as that's getcwd.m4's job.
31316         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
31317         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
31318         name accordingly.
31319         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
31320         accommodate new getcwd.c.
31321         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
31322         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
31323         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
31324         that's all we need now.
31325
31326 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31327
31328         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
31329         argp-parse.c depends on getopt internals, that means we should
31330         always use our getopt, to be on the safe side.
31331         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
31332         order not to spoil the result of an eventual previous invocation
31333         of gl_GETOPT_SUBSTITUTE.
31334
31335 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31336
31337         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
31338         redefinition warnings. To avoid them, include the defines
31339         in `#if !defined __need_getopt ... #endif'. The only place
31340         where __getopt_argv_const is used is in definitions
31341         of getopt_long and getopt_long_only below, which are as well
31342         protected by `#ifndef __need_getopt'.
31343         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
31344         __need_getopt after including <stdio.h> and <unistd.h> These
31345         headers might have defined it.
31346
31347 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
31348
31349         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
31350
31351 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
31352
31353         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
31354         (futimens): New function, which uses futimes if available.
31355         (futimens, utimens): Support timespec==NULL, with same semantics
31356         as utime and utimens.
31357         * lib/utimens.h (futimens): New decl.
31358
31359 2004-11-23  Jim Meyering  <jim@meyering.net>
31360
31361         * lib/getopt_.h: Remove trailing blanks.
31362
31363 2004-11-23  Jim Meyering  <jim@meyering.net>
31364
31365         * lib/__fpending.c: Add comment.
31366
31367 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
31368
31369         * modules/canonicalize (Depends-on): Add xreadlink.
31370         Problem reported by James Youngman.
31371
31372 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
31373
31374         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
31375         New macros.
31376         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
31377         optopt): Use them instead of invoking ## directly; otherwise, the
31378         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
31379
31380 2004-11-19  Bruno Haible  <bruno@clisp.org>
31381
31382         * lib/strtok_r.c: Move comments from here...
31383         * lib/strtok_r.h: ... to here.
31384
31385 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
31386
31387         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
31388         implementations that mishandle size_t overflow.
31389
31390 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
31391
31392         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
31393         might fail.  Problem reported by Yoann Vandoorselaere.
31394         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
31395         implementations that mishandle size_t overflow.
31396
31397 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31398
31399         * modules/canon-host (Depends-on): Add strdup.
31400
31401 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31402
31403         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
31404
31405 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31406
31407         * lib/canon-host.c: Include "strdup.h".
31408         (canon_host): Use getaddrinfo if available, so that IPv6 works.
31409         Use strdup instead of malloc/strcpy to duplicate strings.
31410
31411         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
31412         (human_space_before_unit): New constant.
31413         * lib/human.c (human_readable): Support it.
31414
31415         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
31416         (xgetcwd): Set errno correctly when failing.
31417         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
31418         the failure is actually due to a PATH_MAX problem.
31419
31420         Further getopt changes to make it more likely that glibc will
31421         buy the changes back.
31422         * lib/getopt.c (POSIXLY_CORRECT): New constant.
31423         (getopt): Use it, so to preserve glibc semantic
31424         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
31425         when compiling for libc.
31426         * lib/getopt_.h (__getopt_argv_const): Bring it back.
31427         (getopt_long, getopt_long_only): Use it.
31428
31429         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
31430         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
31431         (getopt): Argv is now char * const *, as per standard.
31432         (_getopt_internal_r, _getopt_internal): Argv is now char **,
31433         not char *__getopt_argv_const *.
31434         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
31435         _getopt_long_only_r): Likewise.
31436         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
31437         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
31438         _getopt_long_r, _getopt_long_only_r): Likewise.
31439         * lib/getopt_.h (__getopt_argv_const): Remove.
31440         (getopt): Argv is now char * const *, as per standard.
31441
31442         * lib/getdate.y (tORDINAL): New token.
31443         (day, relunit): Allow it for relative times.
31444         (relative_time_table): Use tORDINAL for ordinals.
31445
31446 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31447
31448         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
31449         Document that "second" isn't allowed as an ordinal number.
31450
31451 2004-11-16  Jim Meyering  <jim@meyering.net>
31452
31453         * modules/closeout (Depends-on): Add fpending.
31454
31455 2004-11-15  Jim Meyering  <jim@meyering.net>
31456
31457         * lib/closeout.c: Include "__fpending.h" once again.
31458         Include <stdbool.h>.
31459         (close_stdout): Don't fail just because stdout was closed initially,
31460         since some programs don't write to stdout in the normal course of
31461         operation (other than --version and --help), and we don't want this
31462         function to make e.g. `touch file >&-' fail.
31463         But do fail if it was closed and someone has tried to write to it.
31464         E.g., `printf foo >&-' must fail.
31465
31466 2004-11-13  Jim Meyering  <jim@meyering.net>
31467
31468         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
31469
31470 2004-11-12  Simon Josefsson  <jas@extundo.com>
31471
31472         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
31473         small doc fix is still pending.
31474
31475 2004-11-11  Simon Josefsson  <jas@extundo.com>
31476
31477         * modules/strtok_r: New file.
31478
31479         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31480         strtok_r.
31481
31482 2004-11-11  Simon Josefsson  <jas@extundo.com>
31483
31484         * m4/strtok_r.m4: New file.
31485
31486         * m4/getopt.m4: Replace opterr.
31487
31488 2004-11-11  Simon Josefsson  <jas@extundo.com>
31489
31490         * lib/strtok_r.h, strtok_r.c: New file.
31491
31492 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
31493
31494         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
31495         of replacing opterr, getopt, etc.  This should handle the
31496         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
31497
31498 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
31499
31500         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
31501         we can stop lying to compilers about the constness of argv when we
31502         are compiled outside glibc.
31503         (getopt, getopt_long, getopt_long_only): Use it.
31504         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
31505         _getopt_internal, getopt): Likewise.
31506         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
31507         _getopt_long_only_r): Likewise.
31508         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
31509         _getopt_long_r, _getopt_long_only_r): Likewise.
31510
31511         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
31512         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
31513         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
31514         the other external symbols.
31515         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
31516         declaration, since the above renaming now works around collisions.
31517
31518 2004-11-11  Jim Meyering  <jim@meyering.net>
31519
31520         * lib/linebreak.c: Remove trailing blanks.
31521         * lib/alloca_.h: Likewise.
31522         * lib/acosl.c: Likewise.
31523         * lib/euidaccess.c: Likewise.
31524         * lib/allocsa.h: Likewise.
31525
31526 2004-11-10  Simon Josefsson  <jas@extundo.com>
31527
31528         * m4/getaddrinfo.m4: New file.
31529
31530 2004-11-10  Simon Josefsson  <jas@extundo.com>
31531
31532         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
31533
31534 2004-11-10  Simon Josefsson  <jas@extundo.com>
31535
31536         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31537         getaddrinfo.
31538
31539         * modules/getaddrinfo: New file.
31540
31541 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31542
31543         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
31544
31545 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31546
31547         * lib/mktime.c (SHR): New macro, which is a portable
31548         substitute for >> that should work even on Crays.
31549         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
31550         Problem reported by Mark D. Baushke in
31551         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
31552         * lib/getdate.y (SHR): Likewise.
31553         (tm_diff): Use it.
31554         * lib/strftime.c (SHR): Likewise.
31555         (tm_diff): Use it.
31556         * lib/quotearg.c (struct quoting_options): Use unsigned int for
31557         quote_these_too, so that right shifts are well defined.  All uses
31558         changed.
31559
31560 2004-11-10  Jim Meyering  <jim@meyering.net>
31561
31562         Ensure that no close failure goes unreported.
31563         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
31564         return early when it seems there's nothing to flush.
31565         Don't include __fpending.h.
31566
31567 2004-11-10  Jim Meyering  <jim@meyering.net>
31568
31569         * modules/closeout (Depends-on): Remove fpending.
31570
31571 2004-11-10  Jim Meyering  <jim@meyering.net>
31572
31573         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
31574
31575 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
31576
31577         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
31578         gl_FUNC_STRFTIME.
31579         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
31580         and AC_REQUIRE when possible, to avoid duplicate checks.
31581         Check for <wchar.h>.
31582
31583 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
31584
31585         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
31586
31587 2004-11-09  Bruno Haible  <bruno@clisp.org>
31588
31589         * m4/sockpfaf.m4: New file.
31590
31591 2004-11-05  Bruno Haible  <bruno@clisp.org>
31592
31593         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
31594         Reported by Mark D. Baushke <mdb@cvshome.org>.
31595
31596 2004-11-04  Bruno Haible  <bruno@clisp.org>
31597
31598         2004-09-11  Bruno Haible  <bruno@clisp.org>
31599                 * allocsa.valgrind: New file.
31600         2004-02-06  Bruno Haible  <bruno@clisp.org>
31601                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
31602                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
31603                 Reported by Christopher Seip <chris.seip@hp.com>.
31604
31605 2004-11-04  Bruno Haible  <bruno@clisp.org>
31606
31607         * modules/allocsa (Files): Add lib/allocsa.valgrind.
31608         (Makefile.am): Distribute it.
31609
31610 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
31611
31612         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
31613         with errno == ERANGE if the buffer is too small.
31614         Problem reported by Mark D. Baushke.
31615
31616 2004-11-03  Albert Chin  <china@thewrittenword.com>
31617             Paul Eggert  <eggert@cs.ucla.edu>
31618
31619         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
31620         equivalent, substitute $ac_type for equivalent type rather than
31621         blindly using uint32_t *always* which won't work if uint32_t is not
31622         available.  Define _UINT32_T to work around typedef of uint32_t if
31623         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
31624         2.5.1.
31625
31626 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31627
31628         * m4/jm-macros.m4: Sync from coreutils.
31629         (gl_MACROS): Check for mbrlen, for pathchk.
31630         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
31631
31632 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31633
31634         * lib/xreadlink.c (MAXSIZE): New macro.
31635         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
31636         size does not exceed MAXSIZE.  Avoid cast.
31637         As suggested by Mark D. Baushke in
31638         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
31639         if readlink fails with buffer size just under MAXSIZE, try again
31640         with MAXSIZE.
31641
31642 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31643
31644         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
31645
31646 2004-11-02  Derek R. Price  <derek@ximbiot.com>
31647         and  Paul Eggert  <eggert@cs.ucla.edu>
31648
31649         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
31650         (get_date): Overparenthesize to avoid GCC warning.
31651
31652 2004-11-02  Bruno Haible  <bruno@clisp.org>
31653
31654         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
31655         returns void.
31656
31657 2004-11-02  Bruno Haible  <bruno@clisp.org>
31658
31659         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
31660         function returns void.
31661
31662 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
31663
31664         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
31665         fflush_unlocked, flockfile, funlockfile, funlockfile,
31666         fputs_unlocked, putc_unlocked.
31667
31668 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
31669
31670         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
31671         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
31672         already declared.
31673
31674 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
31675
31676         * modules/getdate (Files): Add doc/getdate.texi.
31677         (Depends-on): Add setenv, xalloc.
31678
31679 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
31680
31681         * lib/getdate.y: Add support for TZ="foo" within a date string.
31682         Fix some bugs near time_t boundaries.  Reject dates with
31683         out-of-range components, e.g., "Sept 31".
31684         Include <stdlib.h>, "setenv.h", "xalloc.h".
31685         (ISDIGIT_LOCALE): Remove; unused.
31686         Note that the TZ and time functions used here are not reentrant.
31687         (mktime_ok, get_tz): New functions.
31688         (TZBUFSIZE): New constant.
31689         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
31690         This requires that we sometimes generate our own TZ="XXX..." setting.
31691
31692 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
31693
31694         * doc/getdate.texi: New file, from coreutils with modifications for
31695         the new TZ parsing.
31696
31697 2004-10-27  Derek R. Price  <derek@ximbiot.com>
31698
31699         * lib/mktime.c (not_equal_tm): Remove redundant check.
31700
31701 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31702
31703         * modules/regex (lib_SOURCES): Add regex.c.
31704         Reported by James Youngman in
31705         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
31706
31707 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31708
31709         * lib/getdate.y: Use Bison 1.875 features, and some minor
31710         code cleanups.  This change does not affect semantics.
31711         Don't include <stdlib.h>; no longer needed.
31712         Don't include unlocked-io.h; only the "#if TEST" code uses
31713         stdio, and performance isn't crucial there.
31714         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
31715         Bison 1.875 features as described below.
31716         All uses of "PC." replaced by "pc->".
31717         (YYSTYPE): Add a forward declaration.
31718         (yylex, yyerror): Use full prototypes in forward decls.
31719         Use "%pure-parser" rather than obsolescent "%pure_parser".
31720         Use %parse-param and %lex-param instead of obsolescent
31721         YYPARSE_PARAM and YYLEX_PARAM.
31722         (meridian_table, month_and_day_table, time_units_table,
31723         relative_time_table, time_zone_table, military_table,
31724         lookup_zone, lookup_word, get_date):
31725         Use NULL instead of 0 where appropriate.
31726         (to_hour): Avoid abort (), to avoid a dependency on
31727         stdlib.h.
31728         (yyerror, yylex): Now accepts parser_control * arg.
31729         (main) [TEST]: Use '\0' rather than 0 for char.
31730
31731 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
31732
31733         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
31734
31735 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
31736
31737         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
31738         It's now the caller's responsibility to handle the case where
31739         !HAVE_GETPAGESIZE && !defined getpagesize.
31740
31741         * lib/mktime.c (leapyear): Arg is long int, not int.
31742
31743 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
31744
31745         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
31746
31747 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
31748
31749         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
31750         missing.  Problem reported by James Youngman.
31751
31752 2004-10-16  Simon Josefsson  <jas@extundo.com>
31753
31754         * gnulib-tool: Fix comments.  Fix parse problem.
31755         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
31756
31757 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
31758
31759         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
31760         implementation of getopt_long.  Problem reported by Alexander Taler in:
31761         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
31762
31763 2004-10-15  Bruno Haible  <bruno@clisp.org>
31764
31765         * gnulib-tool: Untabify. Initialize supplied_libname.
31766         (func_usage): More homogenous output.
31767         (func_modules_transitive_closure, func_modules_to_filelist,
31768         func_emit_lib_Makefile_am): New functions.
31769         (func_import): New function, extracted from big case statement. Use
31770         func_get_license, func_modules_transitive_closure,
31771         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
31772         opt_lgpl. Don't use test -a, as it's not portable.
31773         (func_create_testdir): Use func_modules_transitive_closure,
31774         func_modules_to_filelist, func_emit_lib_Makefile_am.
31775
31776 2004-10-15  Bruno Haible  <bruno@clisp.org>
31777
31778         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
31779
31780 2004-10-15  Bruno Haible  <bruno@clisp.org>
31781
31782         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
31783         the portions belonging to each module.
31784         Suggested by Derek Robert Price <derek@ximbiot.com>.
31785
31786 2004-10-12  Simon Josefsson  <jas@extundo.com>
31787
31788         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
31789         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
31790         to real functions.
31791
31792 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31793
31794         * modules/vsnprintf: New file.
31795
31796 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31797
31798         * m4/vsnprintf.m4: New file.
31799
31800 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31801
31802         * lib/vsnprintf.h: New file.
31803         * lib/vsnprintf.c: New file.
31804
31805 2004-10-11  Bruno Haible  <bruno@clisp.org>
31806
31807         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
31808         vsnprintf.
31809
31810 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
31811
31812         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
31813
31814 2004-10-07  Bruno Haible  <bruno@clisp.org>
31815
31816         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
31817         fits into the provided buffer.
31818
31819 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
31820
31821         * lib/diacrit.c, diacrit.h: Add GPL notice.
31822
31823         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
31824         notice.
31825         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
31826         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
31827         This avoids a potential constant-folding bug.
31828
31829 2004-10-05  Bruno Haible  <bruno@clisp.org>
31830
31831         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
31832         for the declaration of strsep.
31833
31834 2004-10-05  Bruno Haible  <bruno@clisp.org>
31835
31836         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
31837
31838 2004-10-04  Simon Josefsson  <jas@extundo.com>
31839
31840         * modules/memmem: New file.
31841         * tests/test-memmem.c: New file.
31842         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
31843
31844 2004-10-04  Simon Josefsson  <jas@extundo.com>
31845
31846         * m4/memmem.m4: New file.
31847
31848 2004-10-04  Simon Josefsson  <jas@extundo.com>
31849
31850         * lib/memmem.h: New file.
31851         * lib/memmem.c: New file, taken from glibc.
31852
31853 2004-10-04  Simon Josefsson  <jas@extundo.com>
31854
31855         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
31856         '#ifdef USE_UNLOCKED_IO'.
31857
31858 2004-10-04  Simon Josefsson  <jas@extundo.com>
31859
31860         * config/srclist.txt: Add memmem from glibc.
31861
31862 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
31863
31864         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
31865
31866         * modules/argmatch, modules/argp, modules/closeout, modules/error,
31867         modules/exclude, modules/getdate, modules/getline,
31868         modules/getndelim2, modules/getpass, modules/getpass-gnu,
31869         modules/getusershell, modules/linebuffer, modules/md5,
31870         modules/mountlist, modules/posixtm, modules/readtokens,
31871         modules/readutmp, modules/regex, modules/sha1,
31872         modules/version-etc, modules/yesno:
31873         Remove dependency on unlocked-io.
31874
31875 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
31876
31877         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
31878
31879         * m4/unlocked-io.m4: Add copyright notice.
31880         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
31881
31882 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
31883
31884         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
31885         * lib/xmalloc.c (xmemdup): Likewise.
31886         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
31887         XFREE): Remove these long-obsolescent macros.
31888         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
31889         * lib/xstrdup.c: Remove.
31890
31891         * lib/regex.c (re_comp): Cast gettext return value to char *,
31892         Problem reported by Martin Neitzel via Mark D. Baushke.
31893
31894 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
31895
31896         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
31897         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
31898         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
31899         regex.c, sha1.c, version-etc.c, yesno.c:
31900         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
31901         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
31902         the includer's responsibility.
31903
31904         Sync from coreutils.
31905
31906         * lib/modechange.c (mode_compile): Don't decrement a pointer that
31907         points to the start of a string, as the C Standard says the
31908         resulting behavior is undefined.
31909
31910         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
31911         simple -> simple_backups, numbered_existing ->
31912         numbered_existing_backups, numbered -> numbered_backups
31913         to avoid shadowing problems.  All uses changed.
31914         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
31915         * lib/backupfile.c (check_extension, numbered_backup):
31916         Rename locals to avoid shadowing 'basename'.
31917         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
31918         once.
31919
31920         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
31921         * lib/.cvsignore: Add getopt.h.
31922
31923 2004-10-04  Bruno Haible  <bruno@clisp.org>
31924
31925         * modules/README: New file.
31926         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
31927         not a module.
31928
31929 2004-10-02  Jim Meyering  <jim@meyering.net>
31930
31931         * lib/dirfd.h, getpagesize.h: Add copyright notice.
31932
31933 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31934
31935         * modules/strsep: New file.
31936
31937 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31938
31939         * m4/strsep.m4: New file.
31940
31941 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31942
31943         * lib/strsep.h: New file.
31944         * lib/strsep.c: New file.
31945
31946 2004-10-01  Simon Josefsson  <jas@extundo.com>
31947
31948         * lib/snprintf.c (snprintf): Handle size==0.
31949
31950 2004-10-01  Simon Josefsson  <jas@extundo.com>
31951             Bruno Haible  <bruno@clisp.org>
31952
31953         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
31954         (snprintf): Declare 'args'.
31955
31956 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
31957
31958         * lib/snprintf.c: Remove comments as to why each header is needed.
31959
31960 2004-10-01  Bruno Haible  <bruno@clisp.org>
31961
31962         * MODULES.html.sh: Add strsep.
31963
31964 2004-09-30  Simon Josefsson  <jas@extundo.com>
31965
31966         * modules/snprintf: New file.
31967
31968 2004-09-30  Simon Josefsson  <jas@extundo.com>
31969
31970         * m4/snprintf.m4: New file.
31971
31972 2004-09-30  Simon Josefsson  <jas@extundo.com>
31973
31974         * lib/snprintf.h, lib/snprintf.c: New files.
31975
31976 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31977
31978         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
31979         (hol_entry_help): Never translate an empty string.
31980         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
31981         * lib/argp.h (OPTION_NO_TRANS): New option.
31982
31983 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
31984
31985         * modules/argp (Maintainer): Replace Simon Josefsson
31986         by Sergey Poznyakoff.
31987
31988 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
31989
31990         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
31991         changes merged back into glibc.
31992
31993 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
31994
31995         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
31996
31997 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
31998
31999         * lib/xvasprintf.c: Include xalloc.h.
32000         (xvasprintf): Use xalloc_die, not xmalloc_die.
32001
32002 2004-09-29  Bruno Haible  <bruno@clisp.org>
32003
32004         * modules/alloca-opt: New file, derived from modules/alloca.
32005         * modules/allocsa: Depend on alloca-opt instead of alloca.
32006         * modules/setenv: Likewise.
32007         * modules/vasnprintf: Likewise.
32008         * MODULES.html.sh: Add alloca-opt.
32009
32010 2004-09-28  Simon Josefsson  <jas@extundo.com>
32011
32012         * gnulib-tool: New parameter --lgpl, to asseert that modules are
32013         LGPL, and to replace license template from GPL to LGPL.
32014
32015 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
32016
32017         * modules/dummy: Change license to LGPL.
32018
32019 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
32020
32021         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
32022
32023 2004-09-24  Simon Josefsson  <jas@extundo.com>
32024
32025         * modules/minmax (License): Change from GPL to LGPL.
32026
32027 2004-09-23  Simon Josefsson  <jas@extundo.com>
32028
32029         * gnulib-tool (--import): Typo.
32030
32031 2004-09-23  Simon Josefsson  <jas@extundo.com>
32032
32033         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
32034
32035 2004-09-22  Bruno Haible  <bruno@clisp.org>
32036
32037         * modules/*: Add 'License' field.
32038         * gnulib-tool: Accept --extract-license option.
32039         (func_get_license): New function.
32040
32041 2004-09-21  Bruno Haible  <bruno@clisp.org>
32042
32043         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
32044         Reported by Simon Josefsson.
32045
32046 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32047
32048         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
32049         gl_AC_TYPE_LONG_LONG.
32050
32051 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32052
32053         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
32054
32055 2004-09-18  Simon Josefsson  <jas@extundo.com>
32056         and  Paul Eggert  <eggert@cs.ucla.edu>
32057
32058         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
32059         calls with autoreconf.  Define GL_LIB.
32060
32061 2004-09-14  Karl Berry  <karl@gnu.org>
32062
32063         * config/srclist.txt: unsync setenv.c, sigh.
32064
32065 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32066
32067         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
32068         Problem reported by Bruno Haible in:
32069         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
32070
32071 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32072
32073         * config/srclist.txt: Comment out argp-pvh.c.
32074
32075 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
32076
32077         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
32078         in case some system header has #define'd it.  Problem reported by
32079         Soeren D. Schulze in
32080         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
32081
32082 2004-09-09  Karl Berry  <karl@gnu.org>
32083
32084         * regex.[ch]: delete from the root.  These were supposed to be
32085                 synced with emacs cvs, but this has not happened for about
32086                 a year, and anyway nothing else uses emacs regex.[ch].
32087                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
32088                 lib/regex[.ch] is untouched.
32089
32090 2004-09-09  Bruno Haible  <bruno@clisp.org>
32091
32092         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
32093
32094 2004-09-09  Bruno Haible  <bruno@clisp.org>
32095
32096         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
32097         modifications.
32098         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
32099
32100 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
32101
32102         * modules/xvasprintf: New file.
32103         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
32104
32105 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
32106
32107         * lib/xvasprintf.h: New file.
32108         * lib/xvasprintf.c: New file.
32109         * lib/xasprintf.c: New file.
32110
32111 2004-09-08  Bruno Haible  <bruno@clisp.org>
32112
32113         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
32114
32115 2004-09-08  Bruno Haible  <bruno@clisp.org>
32116
32117         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
32118         length is > INT_MAX.
32119         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
32120         more.
32121
32122 2004-09-08  Bruno Haible  <bruno@clisp.org>
32123
32124         * lib/stdint_.h: New file, taken from GNU clisp.
32125
32126 2004-09-08  Bruno Haible  <bruno@clisp.org>
32127             Oskar Liljeblad  <oskar@osk.mine.nu>
32128
32129         * modules/stdint: New file.
32130         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
32131
32132 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32133
32134         Import from coreutils.
32135         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
32136         strings on unbounded length.  alloca's performance benefits aren't
32137         that important here.
32138         (V_STRDUP): Remove.
32139         (parse_with_separator): New function, with most of the internals
32140         of the old parse_user_spec.  Allow user to omit both user and group,
32141         for compatibility with FreeBSD.
32142         Clone only the user name, not the entire spec.
32143         Do not set *uid, *gid unless entirely successful.
32144         Avoid memory leak in some failing cases.
32145         Fix regression for USER.GROUP reported by Dmitry V. Levin in
32146         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
32147         (parse_user_spec): Rewrite to use parse_with_separator.
32148
32149 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32150
32151         * modules/userspec: Don't depend on alloca.
32152
32153 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32154
32155         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
32156
32157 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
32158
32159         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
32160         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
32161         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
32162
32163 2004-08-16  Simon Josefsson  <jas@extundo.com>
32164
32165         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
32166         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
32167         Add --dry-run for --import.
32168         Let user provided command line parameters override configure.ac
32169         settings.
32170
32171 2004-08-12  Simon Josefsson  <jas@extundo.com>
32172
32173         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
32174         as discussed with Paul Eggert in threads rooted at
32175         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
32176         and
32177         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
32178         Before, the test was empty, and relied on ELIDE_CODE in source
32179         code.)
32180         (gl_PREREQ_GETOPT): New macro.
32181         (gl_GETOPT): Use them.
32182
32183 2004-08-12  Simon Josefsson  <jas@extundo.com>
32184
32185         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
32186         * lib/getopt_.h: Renamed from getopt.h.
32187
32188 2004-08-12  Simon Josefsson  <jas@extundo.com>
32189
32190         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
32191         Change default library name from libfoo to libgnu.
32192         Now, if you have a configure.ac that says:
32193                 gl_SOURCE_BASE(gl)
32194                 gl_M4_BASE(gl/m4)
32195                 gl_MODULES(error getopt etcetera)
32196                 gl_INIT
32197         you can import all you need by running:
32198                 ../gnulib/gnulib-tool --import
32199
32200         * modules/getopt (Files): Rename getopt.h to getopt_.h.
32201         (Makefile.am): Rewrite, use logic from argz.
32202         (Include): Use <getopt.h> instead of "getopt.h".
32203
32204 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32205
32206         * modules/argp (Files): Add m4/unlocked-io.m4.
32207         (Depends-on): Add extensions.
32208
32209 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32210
32211         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
32212         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
32213         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
32214         Check for program_invocation_name, program_invocation_short_name,
32215         flockfile, funlockfile, features.h, _getopt_long_only_r.
32216
32217 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32218
32219         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
32220         its complicated substitute.
32221         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
32222         and program_invocation_name.
32223         (__argp_basename) [!_LIBC]: Remove; the only use was
32224         replaced by its body.
32225         (__argp_short_program_name): Change condition from
32226         !defined __argp_short_program_name to
32227         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
32228         to match argp-namefrob.h.
32229         (__argp_failure): Don't assume strerror_r returns char *.
32230         * lib/argp-parse.c (N_): Define unconditionally.
32231         (argp_default_options): Fill out initializers with 0 to avoid
32232         gcc warnings.
32233
32234 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32235
32236         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
32237         getopt1.c.
32238
32239 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32240
32241         Merge from coreutils.
32242
32243         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
32244
32245         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
32246         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
32247
32248 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32249
32250         Merge from coreutils.
32251
32252         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
32253         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
32254         for Reliant Unix 5.43.
32255
32256         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
32257         (union fooround): Use uintmax_t, not long int.
32258         The rest is a merge from libc:
32259         [defined _LIBC]: Include <shlib-compat.h>.
32260         (_obstack) [defined _LIBC]: Remove after 2.3.4.
32261
32262         * lib/settime.c (settime): Recode to avoid warning with
32263         Sun Forte C 6U2.
32264
32265         * lib/strverscmp.c: Convert to UTF-8.
32266
32267 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32268
32269         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
32270         m4/uintmax_t.m4.
32271
32272 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32273
32274         * modules/xalloc-die: New file.
32275         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
32276
32277         * modules/md5 (Files): Add m4/uint32_t.m4.
32278         * modules/sha1: Renamed from modules/sha.
32279         (Files):
32280         Rename lib/sha.h to lib/sha1.h.
32281         Rename lib/sha.c to lib/sha1.c.
32282         Rename m4/sha.m4 to m4/sha1.m4.
32283         (lib_SOURCES): Likewise.
32284         (configure.ac): Rename gl_SHA to gl_SHA1.
32285         (Include): sha.h -> sha1.h.
32286
32287 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32288
32289         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
32290         * m4/sha1.m4: Renamed from sha.m4.
32291         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
32292
32293 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32294
32295         * lib/obstack.h (obstack_empty_p):
32296         Don't assume that chunk->contents is suitably aligned.
32297         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
32298         Likewise. Problem reported by Benno in
32299         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
32300
32301         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
32302         readable.  This could be improved further but it'd take some work.
32303
32304 2004-08-08  Simon Josefsson  <jas@extundo.com>
32305
32306         * modules/xgethostname (Depends-on): Remove exit and error (not
32307         used).
32308
32309         * modules/getpass-gnu: Add getpass.h.
32310         (Depends-on): Add stdbool.
32311         * modules/getpass: Add getpass.h.
32312
32313 2004-08-08  Simon Josefsson  <jas@extundo.com>
32314
32315         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
32316         Check getpass declaration.
32317
32318 2004-08-08  Simon Josefsson  <jas@extundo.com>
32319
32320         * lib/xgethostname.c: Don't include error.h (not used).
32321
32322         * lib/getpass.h: Add.
32323         * lib/getpass.c: Include getpass.h first.
32324
32325 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
32326
32327         * lib/xalloc-die.c: New file.
32328         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
32329         All uses removed.
32330         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
32331         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
32332         xalloc-die.c.
32333         (_, N_, xalloc_die): Move to xalloc-die.c.
32334         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
32335         so that we needn't mess with xalloc_msg_memory_exhausted.
32336
32337         * lib/sha1.h: Renamed from sha.h.
32338         (SHA1_H): Renamed from _SHA_H.
32339         (sha1_ctx): Renamed from sha_ctx.
32340         (sha1_init_ctx): Renamed from sha_init_ctx.
32341         (sha1_process_block): Renamed from sha_process_block.
32342         (sha1_process_bytes): Renamed from sha_process_bytes.
32343         (sha1_finish_ctx): Renamed from sha_finish_ctx.
32344         (sha1_read_ctx): Renamed from sha_read_ctx.
32345         (sha1_stream): Renamed from sha_stream.
32346         (sha1_buffer): Renamed from sha_buffer.
32347         * lib/sha1.c: Likewise; renamed from sha.c.
32348         Do not include <sys/types.h>.
32349         Include <stddef.h> rather than <stdlib.h>.
32350
32351 2004-08-08  Bruno Haible  <bruno@clisp.org>
32352
32353         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
32354         FILESYSTEM_PREFIX_LEN.
32355         * lib/progreloc.c: Likewise.
32356         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
32357
32358 2004-08-06  Simon Josefsson  <jas@extundo.com>
32359
32360         * modules/progname (Depends-on): Don't depend on stdbool.
32361
32362 2004-08-06  Simon Josefsson  <jas@extundo.com>
32363
32364         * modules/getsubopt: New file.
32365         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32366         getsubopt.
32367
32368 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32369
32370         More merge from coreutils.
32371
32372         * m4/utimens.m4, m4/utimecmp.m4: New files.
32373         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
32374         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
32375         prereq.m4, sha.m4: Import changes from coreutils.
32376
32377 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32378
32379         More merge from coreutils.
32380         * modules/raise, modules/readtokens0, modules/utimens:
32381         * modules/utimecmp, module/xnanosleep: New files.
32382         * modules/strftime: Add lib/strftime.h.
32383         Change include from <time.h> to "strftime.h".
32384         * modules/yesno: Add lib/yesno.h.
32385         * modules/backupfile: Remove lib/addext.c.
32386         * modules/euidaccess: Add stat-macros.h.
32387         * modules/canonicalize, modules/euidaccess,
32388         modules/filemode, modules/lchown, modules/makepath,
32389         modules/rmdir, modules/stat: Likewise.
32390
32391 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32392
32393         Merge from tar.
32394         * lib/argp-help.c (make_hol, hol_append): Don't assume that
32395         SIZE_MAX is a valid preprocessor constant.
32396         (__argp_basename): Change from "#ifndef _LIBC"
32397         to "#ifndef __argp_short_program_name", so that
32398         we don't compile these functions for tar.
32399
32400         More merges from coreutils.
32401         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
32402         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
32403         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
32404         * lib/addext.c: Remove; no longer needed.
32405         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
32406         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
32407         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
32408         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
32409         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
32410         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
32411         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
32412         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
32413         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
32414         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
32415         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
32416         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
32417         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
32418         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
32419         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
32420         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
32421         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
32422         Import changes from coreutils.
32423
32424 2004-08-05  Simon Josefsson  <jas@extundo.com>
32425
32426         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
32427
32428 2004-08-05  Simon Josefsson  <jas@extundo.com>
32429
32430         * m4/getsubopt.m4: New file.
32431
32432 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32433
32434         Merge from coreutils.
32435
32436         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
32437         * m4/getcwd-path-max.m4: New files.
32438
32439         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
32440         FILESYSTEM_PREFIX_LEN ->
32441         FILE_SYSTEM_PREFIX_LEN.
32442         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
32443         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
32444         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
32445         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
32446
32447         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
32448         prerequisite modules now handle the DOS stuff.
32449         Don't check for unistd.h.
32450
32451 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32452
32453         Merge from coreutils.
32454
32455         * lib/.gdb-history: Remove; this doesn't belong here.
32456
32457         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
32458         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
32459         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
32460         * lib/getcwd.c: New files.
32461
32462         * lib/dirname.h: Include <stdbool.h>.
32463         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
32464         for consistency with POSIX terminology.  All uses changed.
32465         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
32466         (strip_trailing_slashes): Use bool for booleans.
32467         * lib/stripslash.c (strip_trailing_slashes): Likewise.
32468
32469         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
32470         sometimes returns a positive errno value even when it succeeds.
32471         (print_errno_message) [!LIBC]: Fall back on strerror if
32472         __strerror_r fails.
32473
32474         * lib/path-concat.c (mempcpy): Don't define if a system header defines
32475         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
32476         (longest_relative_suffix): New function.
32477         (path_concat): Use it.  Assume first argument is not NULL.
32478         Port to DOS.  Omit redundant separators.
32479         Report an error instead of returning NULL.
32480         Use mempcpy instead of memcpy.
32481         (xpath_concat): Remove: not declared or used.
32482
32483         * lib/same.h: Include <stdbool.h>
32484         (same_name): Return bool, not int.
32485         * lib/same.c (same_name): Likewise.
32486         (errno): Don't declare; we assume C89 or better now.
32487
32488         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
32489         if not already defined.
32490
32491         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
32492         * lib/dup-safer.c (errno): Likewise.
32493
32494 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32495
32496         Merge from coreutils.
32497         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
32498         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
32499         * modules/path-concat: Don't depend on strdup.
32500
32501 2004-08-03  Simon Josefsson  <jas@extundo.com>
32502
32503         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
32504         * lib/progname.h: Don't include stdbool.h.
32505
32506 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
32507
32508         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
32509         * MODULES.html.sh (func_all_modules): Remove fatal.
32510
32511 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
32512
32513         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
32514
32515 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
32516
32517         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
32518         working.
32519
32520 2004-08-02  Simon Josefsson  <jas@extundo.com>
32521
32522         * lib/getsubopt.h: New file, with comments from Bruno Haible.
32523         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
32524         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
32525
32526 2004-08-01  Simon Josefsson  <jas@extundo.com>
32527
32528         * lib/xgetdomainname.c: Include stdlib.h, for free().
32529
32530 2004-07-19  Bruno Haible  <bruno@clisp.org>
32531
32532         * MODULES.html.sh (func_all_modules): Add dummy.
32533
32534 2004-07-16  Simon Josefsson  <jas@extundo.com>
32535
32536         * modules/dummy: New file.
32537
32538 2004-07-16  Simon Josefsson  <jas@extundo.com>
32539
32540         * lib/dummy.c: New file.
32541
32542 2004-07-16  Bruno Haible  <bruno@clisp.org>
32543
32544         * lib/backupfile.h: Add extern "C" for C++.
32545         * lib/closeout.h: Likewise.
32546         * lib/copy-file.h: Likewise.
32547         * lib/findprog.h: Likewise.
32548         * lib/full-write.h: Likewise.
32549         * lib/pathname.h: Likewise.
32550         * lib/progname.h: Likewise.
32551         * lib/stpcpy.h: Likewise.
32552         * lib/stpncpy.h: Likewise.
32553         * lib/strcase.h: Likewise.
32554         * lib/strstr.h: Likewise.
32555         * lib/xalloc.h: Likewise.
32556
32557         * lib/mbswidth.h: Add extern "C" for C++.
32558         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
32559
32560 2004-07-13  Robert Millan  <robertmh@gnu.org>
32561
32562         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
32563
32564 2004-07-09  Simon Josefsson  <jas@extundo.com>
32565
32566         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
32567         failed without this.)
32568
32569 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32570
32571         * modules/chown (Files): Add lib/fchown-stub.c, since
32572         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
32573
32574 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32575
32576         * lib/fchown-stub.c: New file.
32577
32578 2004-06-24  Jim Meyering  <jim@meyering.net>
32579
32580         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
32581
32582 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32583
32584         * modules/argz: Omit "#include".
32585
32586         * MODULES.html.sh (func_all_modules): Add calloc, to match
32587         2004-06-01 addition of calloc module.
32588
32589 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32590
32591         * m4/argz.m4: New file, which is autoupdated from libtool.
32592
32593 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32594
32595         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
32596         libtool.
32597
32598 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32599
32600         * config/srclist-update: Don't insist on "USA." before the
32601         close-comment, as libtool omits the period and puts the */ on a
32602         separate line.
32603         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
32604         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
32605
32606 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
32607
32608         * modules/argz: New file.
32609         * MODULES.html.sh (func_all_modules): Add argz.
32610
32611 2004-06-12  Jim Meyering  <jim@meyering.net>
32612         and  Paul Eggert  <eggert@cs.ucla.edu>
32613
32614         * modules/hash (Files): Add lib/xalloc.h.
32615         * modules/pipe (Depends-on): Add wait-process.
32616         * modules/stat (Depends-on): Add xalloc.
32617         * modules/userspec (Files): Add lib/userspec.h.
32618         * modules/xstrto
32619
32620         Upgrade from gettext-0.13.
32621         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
32622         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
32623         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
32624
32625 2004-06-10  Jim Meyering  <jim@meyering.net>
32626
32627         * lib/calloc.c: New file.
32628
32629 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
32630
32631         * lib/getdate.y (yylex): Allow space between sign and number.
32632         Problem reported by Dan Jacobson.
32633
32634 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
32635
32636         Merge from coreutils CVS.
32637
32638         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
32639         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
32640         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
32641         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
32642         xstrtol.m4: Fix copyright date and/or serial number.
32643
32644         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
32645         See if we need an fchown replacement.
32646         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
32647         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
32648         and use the replacement function if we detect either defect.
32649
32650         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
32651         gl_UTIMECMP.
32652
32653 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
32654         and  Jim Meyering  <jim@meyering.net>
32655
32656         Merge from coreutils CVS.
32657
32658         * lib/stat-macros.h: New file, with contents from file-type.h
32659         and coreutils' system.h.
32660         * lib/file-type.c: Include "stat-macros.h".
32661         * lib/file-type.h (file_type): Move all macro definitions to new file,
32662         stat-macros.h.
32663
32664         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
32665         Wrap old code with this conditional.
32666         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
32667         function that does not dereference symlinks.
32668         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
32669
32670         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
32671         dependency problems.
32672         (xreadlink): Accept new arg SIZE, for efficiency.
32673         All decls and uses changed.
32674         * lib/xreadlink.h: Include <stddef.h>, for size_t.
32675
32676         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
32677         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
32678
32679         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
32680         sysexits.h.
32681
32682 2004-06-01  Jim Meyering  <jim@meyering.net>
32683
32684         * m4/calloc.m4: New file.
32685
32686 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
32687
32688         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
32689         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
32690         Also, fix a typo in a diagnostic.
32691
32692 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
32693
32694         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
32695         or AC_FUNC_REALLOC.
32696
32697 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
32698
32699         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
32700         macros to be defined.
32701         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
32702         the allocator returns NULL because the requested size is zero.
32703
32704 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32705
32706         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
32707         var.  Add comment explaining why libc still defines it.  This
32708         merges the following patch from glibc:
32709         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
32710
32711 2004-05-20  Andreas Schwab  <schwab@suse.de>
32712
32713         * m4/free.m4: Replace free if it not known to work, not the other
32714         way round.
32715
32716 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32717
32718         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
32719         present in glibc since revision 1.1 of this file.
32720         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
32721         obstack_alignment_mask, obstack_alloc, obstack_base,
32722         obstack_blank, obstack_blank_fast, obstack_chunk_size,
32723         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
32724         obstack_grow0, obstack_init, obstack_int_grow,
32725         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
32726         obstack_next_free, obstack_object_size, obstack_ptr_grow,
32727         obstack_ptr_grow_fast, obstack_room): Remove declarations of
32728         nonexistent functions.
32729
32730 2004-05-18  Karl Berry  <karl@gnu.org>
32731
32732         * config/srclist.txt: break link for vasnprintf.c.
32733
32734 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
32735
32736         Port obstack to the AS/400, where pointers are 16 bytes wide and
32737         you cannot cast an integer to a valid pointer.  This patch is
32738         currently waiting to be integrated into glibc; see
32739         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
32740
32741         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
32742         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
32743         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
32744         (struct obstack): temp member is now a union of a pointer and
32745         an integer, instead of an integer.  All integer uses changed.
32746         This does not affect the physical layout of struct obstack,
32747         except on hosts (like the AS/400) where the size or alignment of
32748         void * is greater than that of ptrdiff_t.
32749         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
32750         __STDC__)]: Store temporary in pointer member of union, not
32751         integer member.
32752         * lib/obstack.c: Include <stddef.h>, for offsetof.
32753         (struct fooalign): Remove; it doesn't need a name.
32754         (union fooround): Change double to long double, and add void *.
32755         (DEFAULT_ALIGNMENT): Use offsetof to compute.
32756         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
32757         not a macro.  Hence the values are always int; so remove all
32758         casts-to-int in uses.
32759
32760 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
32761
32762         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
32763         we can get this patch merged into glibc.
32764
32765 2004-05-17  Derek R. Price  <derek@ximbiot.com>
32766             Paul Eggert  <eggert@cs.ucla.edu>
32767
32768         * m4/argp: Depend on alloca.
32769
32770 2004-05-17  Derek R. Price  <derek@ximbiot.com>
32771             Paul Eggert  <eggert@cs.ucla.edu>
32772
32773         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
32774         freecoding.
32775
32776 2004-05-17  Bruno Haible  <bruno@clisp.org>
32777
32778         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
32779         precision that consists of a '.' followed by an empty digit string.
32780         Patch by Tor Lillqvist <tml@iki.fi>.
32781
32782 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32783
32784         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
32785         for backward compatibility with older code.  We need our own
32786         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
32787         it under some other name, and our alloca.h will define it.
32788
32789 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32790             Derek Price  <derek@ximbiot.com>
32791
32792         * lib/alloca.c: Include <alloca.h>, to get our interface.
32793         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
32794         include <alloca.h> first.  Use C89 prototype for alloca; this
32795         requires including <stddef.h> for size_t.  Use extern "C" if C++.
32796         Use #elif for simplicity, since we can assume C89 now.
32797         Don't try to source the system alloca.h since it will not be found
32798         and to prevent recursively including its replacement.
32799         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
32800         * lib/regex.c: Likewise.
32801
32802 2004-05-16  Derek Price  <derek@ximbiot.com>
32803             Paul Eggert  <eggert@cs.ucla.edu>
32804
32805         getline cleanup.  This changes the getndelim2 API: both order of
32806         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
32807         no delimiter).
32808
32809         * lib/getline.c: Don't include stddef.h or stdio.h, since our
32810         interface does that.
32811         (getline): Always use getdelim, so that we don't have two
32812         copies of this code.
32813         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
32814         if available.
32815         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
32816         (GETNDELIM2_MAXIMUM): New macro.
32817         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
32818         instead of the old practice of delim2==0.  All callers changed.
32819         Return -1 on overflow, instead of returning junk.
32820         Do not set *linesize unless allocation succeeds.
32821         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
32822         that we include sys/types.h.
32823         * lib/getnline.h: Likewise.
32824         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
32825         (getndelim2): Reorder arguments.
32826         * lib/getnline.c (getnline, getndelim):
32827         Don't discard the NMAX argument.
32828         (getnline): Invoke getndelim, to avoid code duplication.
32829         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
32830         of (size_t) -1 by callers of the getnline family.
32831
32832 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
32833
32834         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
32835         Check for gettimeofday.
32836         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
32837         Check for settimeofday, stime.
32838
32839 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
32840
32841         * lib/nanosleep.c (suspended): Change its type from int to
32842         sig_atomic_t volatile.
32843         (first_call): Make it private to rpl_nanosleep, and have it
32844         be zero initially as that's a bit faster.
32845         (my_usleep): Round up fractional times instead of truncating them,
32846         as this is the usual meaning for 'sleep'.
32847
32848         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
32849         doesn't work.
32850         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
32851         (ENOSYS): Define if not defined.
32852         (settime): Fall back on stime if it exists and settimeofday fails.
32853         But don't bother with fallbacks if a method fails with errno == EPERM.
32854
32855 2004-05-11  Jim Meyering  <jim@meyering.net>
32856
32857         Prior to this change, the save_cwd caller required read access to the
32858         current directory on most systems (ones with the fchdir function).
32859
32860         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
32861         fails, try write-only, and finally, resort to using xgetcwd.
32862
32863 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
32864
32865         * lib/obstack.c, obstack.h: Import changes from libc.
32866
32867 2004-04-28  Bruno Haible  <bruno@clisp.org>
32868
32869         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
32870         also implicitly appends .exe to executables.
32871         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
32872         accepts Windows pathnames.
32873         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
32874         Treat Cygwin like Windows, since it now accepts Windows pathnames.
32875         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
32876         Treat Cygwin like Windows, since it now accepts Windows pathnames.
32877         Reported by Derek Robert Price <derek@ximbiot.com>.
32878
32879 2004-04-21  Karl Berry  <karl@gnu.org>
32880
32881         * config/srclist.txt (localcharset.c): break sync.
32882
32883 2004-04-20  Paul Eggert  <eggert@twinsun.com>
32884
32885         * m4/host-os.m4: Add a copyright notice.
32886
32887 2004-04-20  Jim Meyering  <jim@meyering.net>
32888
32889         Change UTILS_ to gl_ in AC_DEFINE'd names.
32890         Change utils_- and jm_-prefixed variables, too.
32891         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
32892         UTILS_FUNC_MKDIR_TRAILING_SLASH.
32893         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
32894
32895         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
32896         Don't emit trailing blanks.
32897         Also rename jm_-prefixed variables to have gl_ prefix.
32898
32899         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
32900         Also rename jm_-prefixed variables to have gl_ prefix.
32901
32902         * m4/jm-macros.m4: Reflect the renamings.
32903         * m4/prereq.m4: Likewise.
32904
32905 2004-04-20  Jim Meyering  <jim@meyering.net>
32906
32907         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
32908         memory.
32909
32910 2004-04-20  Jim Meyering  <jim@meyering.net>
32911             Bruno Haible  <bruno@clisp.org>
32912
32913         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
32914         memory when realloc fails.
32915
32916 2004-04-19  Jim Meyering  <jim@meyering.net>
32917
32918         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
32919         now that readutmp.c may call `free (0)'.
32920
32921 2004-04-19  Bruno Haible  <bruno@clisp.org>
32922
32923         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
32924         * m4/inttypes_h.m4: Likewise.
32925         * m4/stdint_h.m4: Likewise.
32926         * m4/intmax_t.m4: Likewise.
32927         * m4/uintmax_t.m4: Likewise.
32928
32929 2004-04-18  Jim Meyering  <jim@meyering.net>
32930
32931         * m4/prereq.m4: Don't forbid jm_ prefix.
32932
32933         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
32934         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
32935         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
32936         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
32937         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
32938         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
32939         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
32940         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
32941         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
32942         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
32943         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
32944         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
32945         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
32946         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
32947         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
32948         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
32949         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
32950         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
32951         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
32952
32953 2004-04-18  Jim Meyering  <jim@meyering.net>
32954
32955         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
32956         failure, don't leak memory and do call END_UTMP_ENT.
32957
32958 2004-04-16  Jim Meyering  <jim@meyering.net>
32959
32960         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
32961         coreutils' stat program.
32962         (gl_PREREQ): Don't require jm_PREREQ_STAT.
32963
32964 2004-04-11  Paul Eggert  <eggert@twinsun.com>
32965
32966         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
32967         C89.
32968         (CHAR_BIT): Remove, since we assume C89.
32969         Include <stdint.h> if available, as per current Autoconf CVS advice.
32970
32971 2004-03-31  Jim Meyering  <jim@meyering.net>
32972
32973         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
32974         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
32975         * m4/xalloc.m4: Likewise.
32976
32977 2004-03-30  Paul Eggert  <eggert@twinsun.com>
32978
32979         Merge from coreutils.
32980
32981         * m4/inttostr.m4: New file.
32982         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
32983         Require AM_STDBOOL_H and gl_TIMESPEC instead.
32984         Require gl_CLOCK_TIME.
32985         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
32986
32987 2004-03-30  Paul Eggert  <eggert@twinsun.com>
32988
32989         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
32990         not bool, to be more consistent with Unix conventions.
32991         Suggested by Bruno Haible.
32992
32993         Merge from coreutils.
32994
32995         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
32996         * lib/umaxtostr.c: New files.
32997
32998         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
32999         the usual <time.h> dance.
33000         (get_date): Change signature to support fractional time stamps.
33001         All callers changed.
33002         * lib/getdate.y: Include "getdate.h" first, as we can now
33003         assume C89 and don't need to worry about 'const'.
33004         Similarly, include "unlocked-io.h" near start, not in middle.
33005         Include <limits.h>.
33006         (textint.value): Use long int rather than int.
33007         (textint.digits): Use size_t rather than int.
33008         (BILLION, LOG10_BILLION): New constants.
33009         (parser_control): New member rel_ns.  Members day_ordinal,
33010         time_zone, month, day, hour, minutes, rel_year, rel_month,
33011         rel_day, rel_hour, rel_minutes, rel_seconds
33012         are now long int, not int.  Member seconds is now struct timespec,
33013         not int.  New member timespec_seen.  Members dates_seen, days_seen,
33014         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
33015         not int.
33016         (%union.intval): Now long int, not int.
33017         New member timespec.
33018         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
33019         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
33020         (spec): Now is a timespec or an item list.
33021         (timespec, items): New nonterminals.
33022         (time, rel, relunit, number, get_date):
33023         Add support for fractional seconds.
33024         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
33025         (gmtime, localtime, mktime): Remove decls; not needed with C89.
33026         (to_hour): First arg is now long int, not int.
33027         (to_year): Returns long int, not int.
33028         Don't treat year -70 like 70.
33029         (tm_diff): Returns long int, not int.
33030         (lookup_word): Use bool instead of int when appropriate.
33031         (yylex): Use size_t for count, not int.
33032         Detect overflow when parsing large integer constants.
33033         Add support for fractions.
33034         (get_date): Make pointers 'const' if possible.
33035         Use more-portable code to detect integer overflow.
33036         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
33037         Don't use ctime; it's not reliable if the year has >4 digits.
33038
33039         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
33040         This is for compatibility with BSD.
33041
33042         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
33043         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
33044         From coreutils' system.h.
33045
33046         * lib/userspec.c: Don't include "posixver.h".
33047         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
33048         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
33049         compatible extension.  Simplify code by removing a boolean int
33050         that was always nonzero if a string was nonnull.
33051
33052 2004-03-30  Jim Meyering  <jim@meyering.net>
33053
33054         Merge from coreutils.
33055
33056         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
33057         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
33058         on some systems one must include <grp.h> before it.
33059         Reported by Christian Krackowizer.
33060
33061 2004-03-30  Jim Meyering  <jim@meyering.net>
33062
33063         Merge from coreutils.
33064
33065         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
33066
33067         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
33068         an empty input stream.
33069
33070         * lib/readtokens.c: Include <stdbool.h>.
33071         (readtoken): Use `size_t' rather than int/long.
33072         All callers adjusted.
33073         Use `bool' rather than `int' where appropriate.
33074         Use memset rather than an explicit loop.
33075         Use x2nrealloc rather than xrealloc.
33076         Allow the use of `\0' as a delimiter.
33077         (readtokens): Likewise.
33078         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
33079
33080 2004-03-30  Jim Meyering  <jim@meyering.net>
33081
33082         * m4/realloc.m4: Remove file, since now it does no more than
33083         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
33084         the `configure.ac' section of module/realloc.
33085         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
33086
33087 2004-03-30  Bruno Haible  <bruno@clisp.org>
33088
33089         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
33090         nonnull.
33091
33092 2004-03-29  Paul Eggert  <eggert@twinsun.com>
33093
33094         Merge changes to getloadavg.c from coreutils and Emacs.
33095
33096         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
33097         Define to an expression, not to the empty string.
33098         Include cloexec.h and xalloc.h.
33099         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
33100         Use set_cloexec_flag rather than rolling our own.
33101         * lib/cloexec.c, lib/cloexec.h: New files.
33102
33103 2004-03-29  Paul Eggert  <eggert@twinsun.com>
33104
33105         * m4/cloexec.m4: New file.
33106
33107 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33108
33109         * lib/getopt.h: Sync with libc CVS.
33110
33111 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33112             Bruno Haible  <bruno@clisp.org>
33113
33114         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
33115         mbswidth.
33116
33117 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33118             Bruno Haible  <bruno@clisp.org>
33119
33120         * lib/mbswidth.h: Include <wchar.h> only if
33121         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
33122         <wchar.h>.
33123         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
33124
33125 2004-03-09  Paul Eggert  <eggert@twinsun.com>
33126
33127         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
33128         Sync with libc CVS.
33129         * lib/getopt_int.h: New file, also synced from libc.
33130
33131 2004-03-09  Paul Eggert  <eggert@twinsun.com>
33132
33133         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
33134         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
33135         Bring back getopt.c, getopt.h, getopt1.c.
33136
33137 2004-03-07  Paul Eggert  <eggert@twinsun.com>
33138
33139         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
33140         All uses changed.  Check for sa_sigaction member; this fixes
33141         a bug first reported by Jason Andrade in
33142         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
33143
33144 2004-03-07  Paul Eggert  <eggert@twinsun.com>
33145
33146         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
33147         '#if' expressions.  Unlike the code it replaces, it does not
33148         depend on (defined _SC_PAGESIZE).  However, it does depend on
33149         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
33150         first reported by Jason Andrade in
33151         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
33152
33153 2004-02-25  Simon Josefsson  <jas@extundo.com>
33154
33155         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
33156
33157 2004-02-25  Simon Josefsson  <jas@extundo.com>
33158
33159         * lib/strdup.h: New file.
33160         * lib/strdup.c: Include it.
33161         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
33162         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
33163
33164 2004-02-23  Karl Berry  <karl@gnu.org>
33165
33166         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
33167         (from fencepost.gnu.org:/gd/gnuorg).
33168
33169 2004-02-23  Karl Berry  <karl@gnu.org>
33170
33171         * config/srclistvars.sh (GNUORG) [karl]: redefine.
33172         * config/srclist.txt: add maintain/standards documents.
33173
33174 2004-02-18  Bruno Haible  <bruno@clisp.org>
33175
33176         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
33177         Reported by Derek Robert Price <derek@ximbiot.com>.
33178
33179 2004-02-16  Karl Berry  <karl@gnu.org>
33180
33181         * config/mkinstalldirs, install-sh: update from automake.
33182
33183 2004-02-06  Karl Berry  <karl@gnu.org>
33184
33185         * m4/po.m4: update from gettext 0.14.1.
33186
33187 2004-02-06  Karl Berry  <karl@gnu.org>
33188
33189         * lib/config.charset: update from gettext 0.14.1.
33190
33191 2004-02-05  Paul Eggert  <eggert@twinsun.com>
33192
33193         Add comments and code, prompted by suggestions from Bruno Haible
33194         for sh-quote.
33195         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
33196         describing the enum quoting_style values.
33197         * lib/quotearg.c (quotearg_alloc): New function.
33198         (quotearg_buffer_restyled): Treat lone { and } as special.
33199         Treat = as special.  Work around bug with older shells
33200         that "see" a '\' that is really the 2nd byte of a multibyte char.
33201         Quote empty string with shell_quoting_style.
33202
33203 2004-02-03  Bruno Haible  <bruno@clisp.org>
33204
33205         * m4/pipe.m4: New file, from GNU gettext.
33206
33207 2004-02-03  Bruno Haible  <bruno@clisp.org>
33208
33209         * lib/pipe.h: New file, from GNU gettext.
33210         * lib/pipe.c: New file, from GNU gettext.
33211
33212 2004-01-27  Bruno Haible  <bruno@clisp.org>
33213
33214         * m4/execute.m4: New file, from GNU gettext.
33215
33216 2004-01-27  Bruno Haible  <bruno@clisp.org>
33217
33218         * lib/execute.h: New file, from GNU gettext.
33219         * lib/execute.c: New file, from GNU gettext.
33220         * lib/w32spawn.h: New file, from GNU gettext.
33221
33222 2004-01-24  Paul Eggert  <eggert@twinsun.com>
33223
33224         Merge from diffutils.
33225
33226         * lib/file-type.c (file_type): Add typed memory objects.
33227         * lib/file-type.h (S_TYPEISTMO): New macro.
33228
33229         * lib/c-stack.h (c_stack_action): Remove argv argument.
33230         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
33231         (die): Don't calculate message unless segv_action returns.
33232         (get_stack_location, min_address_from_argv, max_address_from_argv,
33233         volatile stack_base, volatile_stack_size): Remove.
33234         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
33235         that every segmentation violation is a stack overflow.  (Ouch!)
33236         See Debian bug 136249 (still outstanding) for more info about why
33237         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
33238
33239 2004-01-24  Paul Eggert  <eggert@twinsun.com>
33240
33241         Exit-status fix from coreutils.
33242
33243         Use exit_failure consistently in place of EXIT_FAILURE,
33244         so that program exit statuses are consistent on failure.
33245
33246         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
33247         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
33248         * lib/argmatch.h: Comment fix to match the above.
33249         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
33250         Now a macro referring to exit_failure, instead of a separate
33251         variable.  Include "exitfail.h" to get it.
33252         * lib/xstrtol.h: Include "exitfail.h".
33253         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
33254
33255         * lib/long-options.c (parse_long_options): Use prototype
33256         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
33257         for clarity.
33258
33259 2004-01-21  Jim Meyering  <jim@meyering.net>
33260
33261         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
33262         so as not to conflict with a different-sized __mktime_internal
33263         function in GNU libc.
33264         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
33265         Problem building statically-linked `ls' reported by Michael Brunnbauer.
33266
33267 2004-01-20  Karl Berry  <karl@gnu.org>
33268
33269         * config/config.guess: update from config.
33270
33271         * config/srclistvars.sh: GNUWWWLICENSES for karl.
33272
33273 2004-01-20  Bruno Haible  <bruno@clisp.org>
33274
33275         Safer stack allocation.
33276         * lib/setenv.c: Include allocsa.h.
33277         (alloca): Remove fallback definition.
33278         (freea): Remove macro.
33279         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
33280         instead of freea.
33281
33282 2004-01-20  Bruno Haible  <bruno@clisp.org>
33283
33284         * m4/eealloc.m4: New file, from GNU gettext.
33285
33286 2004-01-20  Bruno Haible  <bruno@clisp.org>
33287
33288         * m4/allocsa.m4: New file, from GNU gettext.
33289
33290 2004-01-20  Bruno Haible  <bruno@clisp.org>
33291
33292         * lib/xallocsa.h: New file, from GNU gettext.
33293         * lib/xallocsa.c: New file, from GNU gettext.
33294
33295 2004-01-20  Bruno Haible  <bruno@clisp.org>
33296
33297         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
33298
33299 2004-01-20  Bruno Haible  <bruno@clisp.org>
33300
33301         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
33302         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
33303         specially.
33304
33305 2004-01-20  Bruno Haible  <bruno@clisp.org>
33306
33307         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
33308         patch.
33309
33310 2004-01-20  Bruno Haible  <bruno@clisp.org>
33311
33312         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
33313
33314 2004-01-20  Bruno Haible  <bruno@clisp.org>
33315
33316         * lib/eealloc.h: New file.
33317
33318 2004-01-20  Bruno Haible  <bruno@clisp.org>
33319
33320         * lib/binary-io.h: Avoid warnings on Cygwin.
33321
33322 2004-01-20  Bruno Haible  <bruno@clisp.org>
33323
33324         * lib/allocsa.h: New file, from GNU gettext.
33325         * lib/allocsa.c: New file, from GNU gettext.
33326
33327 2004-01-18  Karl Berry  <karl@gnu.org>
33328
33329         * doc/gpl.texi, doc/lgpl.texi: new files.
33330
33331 2004-01-18  Karl Berry  <karl@gnu.org>
33332
33333         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
33334         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
33335
33336 2004-01-15  Paul Eggert  <eggert@twinsun.com>
33337
33338         Merge from coreutils.
33339
33340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
33341         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
33342         (gl_DEFAULT_POSIX2_VERSION): Move
33343         the documentation from 'configure' into 'config.hin',
33344         so that 'configure --help' isn't burdened by it and
33345         we don't have to worry about its formatting there.
33346         Reword the documentation so that it's more succinct
33347         and can be run together into a single paragraph.
33348         * m4/same.m4 (gl_SAME): Check for pathconf.
33349
33350 2004-01-15  Paul Eggert  <eggert@twinsun.com>
33351
33352         Merge from coreutils.
33353
33354         * lib/posixver.c: Include posixver.h.
33355
33356         * lib/same.c: Include <stdbool.h>, <limits.h>.
33357         (_POSIX_NAME_MAX): Define if not defined.
33358         (MIN): New macro.
33359         (same_name): If file names are silently truncated, report
33360         that the file names are the same if they are the same after
33361         the silent truncation.
33362
33363         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
33364         conversion function.
33365         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
33366         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
33367         longer needed.
33368
33369 2004-01-15  Jim Meyering  <jim@meyering.net>
33370
33371         Merge from coreutils.
33372
33373         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
33374         if no library is required.
33375         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
33376         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
33377         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
33378         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
33379         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
33380         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
33381         value, $ac_cv_search_crypt, if it's "none required".
33382         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
33383         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
33384         not gl_FUNC_GETLOADAVG.
33385         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
33386         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
33387
33388 2004-01-15  Jim Meyering  <jim@meyering.net>
33389
33390         Merge from coreutils.
33391
33392         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
33393         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
33394         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
33395
33396         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
33397         optional configure-time default.
33398
33399         * lib/version-etc.c (version_etc_copyright): Update copyright date.
33400
33401         * lib/xreadlink.c (xreadlink): Correct outdated comment.
33402
33403 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
33404
33405         Merge from coreutils.
33406
33407         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
33408         value, $ac_cv_search_nanosleep, if it's "none required".
33409
33410 2004-01-14  Paul Eggert  <eggert@twinsun.com>
33411
33412         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
33413         with like-named macro in fnmatch.c.
33414         (EXT): Use an internal constant instead.
33415
33416         Merge fnmatch patches from glibc.
33417         * lib/fnmatch.c (mbsinit): Remove define.
33418         Add libc_hidden_ver (__fnmatch, fnmatch).
33419         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
33420         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
33421
33422 2004-01-14  Karl Berry  <karl@gnu.org>
33423
33424         * config/install-sh: update from automake.
33425
33426 2004-01-13  Karl Berry  <karl@gnu.org>
33427
33428         * config/install-sh: update from automake.
33429
33430 2004-01-09  Karl Berry  <karl@gnu.org>
33431
33432         * config/install-sh: update from automake.
33433
33434 2004-01-05  Karl Berry  <karl@gnu.org>
33435
33436         * config/config.{sub,guess}: update from config.
33437
33438 2003-12-31  Karl Berry  <karl@gnu.org>
33439
33440         * config/depcomp: update from automake.
33441
33442 2003-12-14  Karl Berry  <karl@gnu.org>
33443
33444         * lib/config.charset: update from gettext-runtime.
33445
33446 2003-12-03  Paul Eggert  <eggert@twinsun.com>
33447
33448         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
33449         Bug reported by Alfred M. Szmidt.
33450
33451 2003-12-03  Bruno Haible  <bruno@clisp.org>
33452
33453         * m4/gettext.m4: Upgrade from gettext-0.13.
33454         * m4/po.m4: Upgrade from gettext-0.13.
33455         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
33456         * m4/intmax.m4: New file, from gettext-0.13.
33457         * m4/printf-posix.m4: New file, from gettext-0.13.
33458
33459 2003-11-29  Karl Berry  <karl@gnu.org>
33460
33461         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
33462
33463 2003-11-25  Paul Eggert  <eggert@twinsun.com>
33464             Bruno Haible  <bruno@clisp.org>
33465
33466         * lib/printf-parse.h: Don't include sys/types.h.
33467         (ARG_NONE): New macro.
33468         (char_directive): Change type of *arg_index fields to size_t.
33469         * lib/printf-parse.c: Don't include sys/types.h.
33470         (SSIZE_MAX): Remove macro.
33471         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
33472         Remove unnecessary overflow check.
33473         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
33474         fields.
33475
33476 2003-11-25  Bruno Haible  <bruno@clisp.org>
33477
33478         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
33479
33480 2003-11-25  Bruno Haible  <bruno@clisp.org>
33481
33482         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
33483         gt_TYPE_SSIZE_T.
33484
33485 2003-11-24  Paul Eggert  <eggert@twinsun.com>
33486
33487         * modules/alloca: Remove dependency on xalloc.
33488
33489 2003-11-24  Paul Eggert  <eggert@twinsun.com>
33490
33491         * lib/alloca.c: Remove dependency on xalloc module.
33492         (xalloc_die): Remove.
33493         (memory_full) [!defined emacs]: New macro.
33494         [!defined emacs]: Don't include xalloc.h.
33495         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
33496         address arithmetic overflows.  Change datatypes a bit to avoid
33497         unnecessary casts.
33498
33499 2003-11-22  Jim Meyering  <jim@meyering.net>
33500
33501         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
33502         s/size/size_t/.
33503
33504 2003-11-21  Karl Berry  <karl@gnu.org>
33505
33506         * config/config.{sub,guess}: update from config.
33507
33508 2003-11-18  Karl Berry  <karl@gnu.org>
33509
33510         * config/config.{sub,guess}: update from config.
33511
33512         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
33513
33514 2003-11-17  Paul Eggert  <eggert@twinsun.com>
33515
33516         * README: Mention that S+T cannot overflow if S is the size of
33517         an existing object and T is sufficiently small.
33518
33519 2003-11-17  Jim Meyering  <jim@meyering.net>
33520
33521         On systems without utime and without a utimes function capable of
33522         dealing with a NULL struct utimbuf* argument, this utime replacement
33523         could -- in unusual circumstances -- leak a file descriptor.
33524         * lib/utime.c: Include <unistd.h> and <errno.h>.
33525         (utime_null): Be sure to close `fd' and to preserve errno.
33526         Reported by Geoff Collyer via Arnold Robbins.
33527
33528 2003-11-17  Bruno Haible  <bruno@clisp.org>
33529
33530         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
33531         (Depends-on): Add xsize.
33532
33533 2003-11-17  Bruno Haible  <bruno@clisp.org>
33534
33535         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
33536
33537 2003-11-17  Bruno Haible  <bruno@clisp.org>
33538
33539         * lib/vasnprintf.c (alloca): Remove fallback definition.
33540         (freea): Remove definition.
33541         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
33542         Reported by Paul Eggert.
33543
33544 2003-11-16  Paul Eggert  <eggert@twinsun.com>
33545             Bruno Haible  <bruno@clisp.org>
33546
33547         Protect against address arithmetic overflow.
33548         * lib/printf-args.h: Include stddef.h.
33549         (arguments): Change type of field 'count' to size_t.
33550         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
33551         'unsigned int' where appropriate.
33552         * lib/printf-parse.h: Include sys/types.h.
33553         (char_directive): Change type of *arg_index fields to ssize_t.
33554         (char_directives): Change type of fields 'count', max_*_length to
33555         size_t.
33556         * lib/printf-parse.c: Include sys/types.h and xsize.h.
33557         (SSIZE_MAX): Define fallback value.
33558         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
33559         instead of 'int' where appropriate. Check a_allocated, d_allocated
33560         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
33561         * lib/vasnprintf.c: Include xsize.h.
33562         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
33563         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
33564         overflow. Avoid wraparound when converting a width or precision from
33565         decimal to binary.
33566
33567 2003-11-16  Bruno Haible  <bruno@clisp.org>
33568
33569         Update from GNU gettext.
33570         * lib/printf-parse.c: Generalize to it can be compiled for wide
33571         strings.
33572         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
33573         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
33574         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
33575         SNPRINTF): New macros.
33576         Don't include <alloca.h> if the file is used inside libintl.
33577         (local_wcslen): New function, for Solaris 2.5.1.
33578         (VASNPRINTF): Use it instead of wcslen.
33579
33580 2003-11-16  Bruno Haible  <bruno@clisp.org>
33581
33582         * lib/xsize.h (xmax): New function.
33583         (xsum, xsum3, xsum4): Declare as "pure" functions.
33584
33585 2003-11-12  Paul Eggert  <eggert@twinsun.com>
33586
33587         * modules/xalloc (Files): Undo latest change, since xalloc.h
33588         no longer needs SIZE_MAX or PTRDIFF_MAX.
33589
33590 2003-11-12  Paul Eggert  <eggert@twinsun.com>
33591
33592         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
33593         gl_PTRDIFF_MAX.
33594
33595 2003-11-12  Paul Eggert  <eggert@twinsun.com>
33596
33597         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
33598         "return", to pacify some unknown compiler.  Problem reported
33599         by Joerg Schilling.
33600
33601 2003-11-12  Paul Eggert  <eggert@twinsun.com>
33602
33603         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
33604         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
33605         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
33606         heuristic is just as accurate as far as we know, and it removes a
33607         dependency on size_max.m4 and ptrdiff_max.m4.
33608
33609 2003-11-11  Bruno Haible  <bruno@clisp.org>
33610
33611         * modules/xsize (Files): Add m4/size_max.m4.
33612         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
33613
33614 2003-11-11  Bruno Haible  <bruno@clisp.org>
33615
33616         * m4/size_max.m4: New file.
33617         * m4/ptrdiff_max.m4: New file.
33618         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
33619         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
33620         (gl_XALLOC): Invoke it.
33621
33622 2003-11-11  Bruno Haible  <bruno@clisp.org>
33623
33624         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
33625         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
33626         defined.
33627
33628 2003-11-10  Paul Eggert  <eggert@twinsun.com>
33629
33630         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
33631         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
33632         rejected some allocations of exactly SIZE_MAX - 2 bytes.
33633         From Bruno Haible.
33634         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
33635         not (size_t) -1, since it's defined here.
33636
33637 2003-11-09  Karl Berry  <karl@gnu.org>
33638
33639         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
33640
33641 2003-11-06  Paul Eggert  <eggert@twinsun.com>
33642
33643         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
33644         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
33645         Reject sizes of exactly SIZE_MAX bytes.
33646         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
33647         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
33648
33649 2003-11-05  Bruno Haible  <bruno@clisp.org>
33650
33651         * lib/xsize.h: Include limits.h, to avoid a possible collision with
33652         SIZE_MAX defined in <limits.h> on Solaris.
33653
33654 2003-11-04  Jim Meyering  <jim@meyering.net>
33655
33656         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
33657         variable names, rather than @VAR@.
33658         * modules/poll: Likewise.
33659
33660 2003-11-04  Bruno Haible  <bruno@clisp.org>
33661
33662         * modules/xsize: New file.
33663         * modules/linebreak: Depend on xsize.
33664         * MODULES.html.sh (func_all_modules): Add xsize.
33665
33666 2003-11-04  Bruno Haible  <bruno@clisp.org>
33667
33668         * m4/xsize.m4: New file.
33669
33670 2003-11-04  Bruno Haible  <bruno@clisp.org>
33671
33672         * lib/xsize.h: New file.
33673         * lib/linebreak.c: Include xsize.h.
33674         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
33675         argument for overflow.
33676         Suggested by Paul Eggert.
33677
33678 2003-11-03  Karl Berry  <karl@gnu.org>
33679
33680         * config/config.{guess,sub}: update from config.
33681
33682 2003-11-03  Jim Meyering  <jim@meyering.net>
33683
33684         * modules/userspec (lib_SOURCES): Add userspec.h.
33685         (Include): Add "userspec.h".
33686         Improve description.
33687
33688 2003-11-03  Jim Meyering  <jim@meyering.net>
33689
33690         * lib/userspec.c: Include "userspec.h".
33691         * lib/userspec.h: New file.
33692
33693 2003-11-03  Bruno Haible  <bruno@clisp.org>
33694
33695         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
33696
33697 2003-11-03  Bruno Haible  <bruno@clisp.org>
33698
33699         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
33700         available, to avoid (extremely rare) race condition.
33701         Suggested by Paul Eggert.
33702
33703 2003-11-02  Karl Berry  <karl@gnu.org>
33704
33705         * config/srclist.txt (vasprintf.c): sync broken, sigh.
33706
33707 2003-10-31  Paul Eggert  <eggert@twinsun.com>
33708
33709         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
33710         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
33711         (read_filesystem_list): Set and use me_type_malloced.
33712         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
33713         whatever the type happens to be), for brevity and consistency.
33714         Check for size calculation overflow on Alphas running OSF/1.
33715
33716 2003-10-31  Jim Meyering  <jim@meyering.net>
33717
33718         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
33719
33720         * lib/linebuffer.c: Include <string.h> for declaration of memset.
33721
33722 2003-10-30  Paul Eggert  <eggert@twinsun.com>
33723             Bruno Haible  <bruno@clisp.org>
33724
33725         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
33726         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
33727
33728 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33729
33730         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
33731         netbsd*-gnu*.  Suggested by Robert Millan.
33732
33733 2003-10-29  Paul Eggert  <eggert@twinsun.com>
33734
33735         * modules/group-member: Depend on stdbool.
33736
33737 2003-10-29  Paul Eggert  <eggert@twinsun.com>
33738
33739         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
33740
33741 2003-10-29  Paul Eggert  <eggert@twinsun.com>
33742
33743         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
33744         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
33745         after the 'gnu' in these cases.  This fixes some bugs in the
33746         previous change, and is based on suggestions by Robert Millan.
33747
33748 2003-10-29  Paul Eggert  <eggert@twinsun.com>
33749
33750         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
33751         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
33752         no longer needed.
33753         * lib/quotearg.c (quotearg_n_options): Use it.
33754         * lib/group-member.c: Include <stdbool.h>.
33755         (free_group_info): Arg is now const *; don't free arg.
33756         (get_group_info): Now returns bool and accepts struct group_info *,
33757         rather than returning a malloc'ed struct group_info *.
33758         All uses changed.  Check for overflow in internal size calculation.
33759
33760         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
33761         rather than xmalloc/xrealloc.
33762         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
33763         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
33764         conformance bug: the old code used a pointer after freeing the
33765         storage that it addressed.
33766         * lib/hash.c (hash_initialize): Simplify the code by using
33767         xalloc_oversized rather than doing it by hand.
33768         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
33769         the buffer preserved.  Use free and xmalloc instead.
33770         * lib/quotearg.c (quotearg_n_options): Likewise.
33771         Use a simpler test for size overflow.  Don't use xalloc_oversized
33772         because unsigned int might be wider than size_t (!); this suggests
33773         that we should switch from unsigned int to size_t for slot numbers.
33774
33775 2003-10-28  Paul Eggert  <eggert@twinsun.com>
33776
33777         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
33778         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
33779         NetBSD kernels.  Requested by Richard Stallman.
33780
33781 2003-10-27  Paul Eggert  <eggert@twinsun.com>
33782
33783         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
33784         to allocate the returned structure.  Do not allocate a subarray,
33785         as x2nrealloc will do that.
33786         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
33787         instead of xnrealloc.
33788         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
33789
33790 2003-10-27  Bruno Haible  <bruno@clisp.org>
33791
33792         * lib/stdbool_.h: Better support for BeOS.
33793
33794 2003-10-26  Paul Eggert  <eggert@twinsun.com>
33795
33796         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
33797         now uses inline.
33798
33799 2003-10-26  Paul Eggert  <eggert@twinsun.com>
33800
33801         * lib/xalloc.h (xalloc_oversized): New static inline function, for
33802         callers that want to do their own size-overflow checking.  Include
33803         <stdbool.h>, since xalloc_oversized returns bool.
33804         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
33805         to use xalloc_oversized.
33806
33807         Add two functions x2realloc, x2nrealloc, for programs that grow
33808         arrays dynamically by doubling their sizes.
33809         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
33810         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
33811         New functions.
33812
33813         Port to C99 semantics for 'inline' of external functions.
33814         Bug reported by Bruno Haible.
33815         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
33816         with the old contents of xnmalloc.
33817         (xnmalloc, xmalloc): Use it.
33818         (xnrealloc_inline): New static inline function,
33819         with the old contents of xnrealloc.
33820         (xnrealloc, xrealloc): Use it.
33821
33822         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
33823         that.
33824
33825 2003-10-26  Karl Berry  <karl@gnu.org>
33826
33827         * config/srclist.txt (COPYING.DOC): no longer available from
33828         /gd/gnuorg; don't know where the ultimate source is.
33829
33830 2003-10-25  Paul Eggert  <eggert@twinsun.com>
33831
33832         Fix several address-calculation bugs in the hash modules,
33833         plus some minor code cleanup.
33834
33835         * lib/hash.h: Include <stdbool.h>, for bool.
33836         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
33837         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
33838         hash_get_n_entries, hash_get_max_bucket_length,
33839         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
33840         hash_rehash): Use size_t rather than unsigned.
33841         * lib/hash.c (struct hash_table, hash_get_n_buckets,
33842         hash_get_n_buckets_used, hash_get_n_entries,
33843         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
33844         hash_get_entries, hash_do_for_each, hash_string, is_prime,
33845         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
33846         Likewise.
33847         (SIZE_MAX): Define if not defined.
33848         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
33849         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
33850         hash_print):
33851         Use const * when possible.
33852         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
33853         (check_tuning): Fix bug: if tuning parameters were very close to
33854         0 or 1, rounding errors could have caused subscript violations.
33855         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
33856         (hash_initialize): Add 'fail:' label
33857         to free table and return NULL, and use it to simplify code.
33858         Use calloc rather than clearing the storage ourself.
33859         (hash_initialize, hash_rehash): Check for arithmetic overflow in
33860         buffer size calculations.
33861         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
33862         Include <stddef.h>, for size_t.
33863         * lib/hash-pjw.c (hash_pjw): Likewise.
33864         Switch to method described by Bruno Haible.
33865         Include <limits.h>, for CHAR_BIT.
33866         (SIZE_BITS): New macro.
33867
33868 2003-10-23  Paul Eggert  <eggert@twinsun.com>
33869
33870         * m4/getline.m4 (AM_FUNC_GETLINE):
33871         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
33872         hosts.  Problem reported by Derek Robert Price in
33873         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
33874         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
33875         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
33876
33877 2003-10-21  Paul Eggert  <eggert@twinsun.com>
33878
33879         * lib/getndelim2.c (getndelim2): When size calculation overflows,
33880         ceiling the allocation at NMAX bytes rather than silently
33881         discarding input bytes before NMAX is reached.  This makes
33882         a difference only if NMAX exceeds SIZE_MAX / 2.
33883
33884         * lib/obstack.c: Merge from glibc.
33885         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
33886         Add libc_hidden_def (_obstack_newchunk).
33887         (_obstack_free) [! defined _LIBC]: Remove.
33888         [defined _LIBC]: Make a strong alias from obstack_free, rather than
33889         a clone of the function body.
33890         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
33891         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
33892
33893         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
33894         glibc.
33895         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
33896         arg to memcpy.
33897
33898         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
33899         (obstack_ptr_grow_fast, obstack_int_grow_fast):
33900         Don't use lvalue casts, as GCC plans to remove support for them
33901         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
33902         was also present in the non-GCC version, indicating that this
33903         code had always been buggy and had never been widely used.
33904         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
33905         Use the fast variant of each macro, rather than copying the
33906         definiens of the fast variant; that way, we'll be more likely to
33907         catch future bugs in the fast variants.
33908
33909 2003-10-20  Bruno Haible  <bruno@clisp.org>
33910
33911         * modules/wait-process: New file.
33912         * MODULES.html.sh (func_all_modules): Add wait-process.
33913
33914 2003-10-20  Bruno Haible  <bruno@clisp.org>
33915
33916         * m4/wait-process.m4: New file.
33917
33918 2003-10-20  Bruno Haible  <bruno@clisp.org>
33919
33920         * lib/wait-process.h: New file, from GNU gettext.
33921         * lib/wait-process.c: New file, from GNU gettext.
33922
33923 2003-10-19  Jim Meyering  <jim@meyering.net>
33924
33925         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
33926         HPUX 10.20.
33927
33928 2003-10-18  Karl Berry  <karl@gnu.org>
33929
33930         * config/config.guess: update from config.
33931
33932 2003-10-16  Paul Eggert  <eggert@twinsun.com>
33933
33934         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
33935         (getgroups): First arg is int, not size_t.
33936         Don't let 'free' mangle errno.
33937
33938 2003-10-16  Paul Eggert  <eggert@twinsun.com>
33939
33940         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
33941
33942 2003-10-16  Karl Berry  <karl@gnu.org>
33943
33944         * config/config.{guess,sub}: update from config.
33945
33946 2003-10-16  Jim Meyering  <jim@meyering.net>
33947
33948         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
33949         memcpy.
33950
33951 2003-10-15  Paul Eggert  <eggert@twinsun.com>
33952
33953         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
33954         (SIZE_MAX): Remove.
33955         (new_exclude, add_exclude_file): Initial size no longer needs to
33956         be a power of 2.
33957         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
33958         our own address arithmetic overflow checking.
33959
33960         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
33961         (fnmatch): Do not alloca more than 2000 wide characters;
33962         instead, use malloc for large buffers.
33963         Check for address arithmetic overflow, and return -1
33964         with errno set to ENOMEM in that case.
33965         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
33966         (NEW_PATTERN): Do not alloca more than 8000 bytes;
33967         instead, return -1.  Check for address arithmetic overflow.
33968
33969 2003-10-14  Paul Eggert  <eggert@twinsun.com>
33970
33971         Handle invalid suffixes and overflow independently, so that
33972         callers can treat them independently as needed.  Fix some bugs in
33973         suffix handling, e.g., "100k@" was not diagnosed as an invalid
33974         suffix for a human-readable blocksize.  The major caller-visible
33975         change is the addition of a new
33976         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
33977         that both overflow and suffix chars were found.
33978
33979         * lib/human.c (humblock): Don't check separately for invalid suffix
33980         char; that is xstrtoumax's job (now that its bug is fixed).
33981         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
33982         INTMAX_MAX]: New macros.
33983         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
33984         TYPE_MAXIMUM): New macros.
33985         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
33986         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
33987         if overflow occurs, as it's what __strtol does and it's more useful
33988         in practice.
33989         (__xstrtol): If __strtol reports some error other than ERANGE,
33990         reflect it to the caller as LONGINT_INVALID.  If it reports
33991         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
33992         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
33993         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
33994         value.
33995         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
33996         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
33997         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
33998         [defined UINTMAX_MAX]: New macros.
33999
34000 2003-10-14  Bruno Haible  <bruno@clisp.org>
34001
34002         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
34003
34004 2003-10-14  Bruno Haible  <bruno@clisp.org>
34005
34006         * m4/sig_atomic_t: New file, from GNU gettext.
34007         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
34008
34009 2003-10-14  Bruno Haible  <bruno@clisp.org>
34010
34011         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
34012         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
34013         Also use volatile where needed.
34014
34015 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34016
34017         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
34018         Change maintainer from Bruno Haible to 'all'.
34019
34020 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34021
34022         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
34023
34024 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34025
34026         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
34027         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
34028         and define in terms of the other primitives.
34029         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
34030         (SIZE_MAX): Define if not already defined.
34031         (array_size_overflow): New function.
34032         (xalloc_die): Abort instead of exiting if 'error' returns.
34033         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
34034         (xmalloc, xrealloc): Use them.
34035         (xcalloc): Check for address arithmetic overflow.
34036         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
34037         a bit faster than strcpy.
34038
34039 2003-10-10  Simon Josefsson  <jas@extundo.com>
34040
34041         * modules/argp (Depends-on): Add restrict and strcase.
34042
34043 2003-10-10  Simon Josefsson  <jas@extundo.com>
34044
34045         * m4/argp.m4: Add AC_C_INLINE.
34046
34047 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34048
34049         Merge getpass from libc, plus a few fixes.
34050
34051         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
34052         Include <stdbool.h>.
34053         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
34054         __fsetlocking to empty.
34055         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
34056         do include <bits/libc-lock.h>.
34057         Do not include <fcntl.h>; not needed.
34058         [_LIBC]: Include <wchar.h>.
34059         (NOTCANCEL_MODE): New macro.
34060         (flockfile, funlockfile) [_LIBC]: New macros.
34061         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
34062         [!_LIBC]: New macros.
34063         (call_fclose): New function.
34064         (getpass): Use it.  Save tty stream separately; this simplifies the
34065         code and makes it more reliable if stdin happens to equal stdout.
34066         Invoke __fsetlocking on tty.
34067         Handle thread cancellation if needed.
34068         Namespace cleanup (use __tcgetattr, __getline).
34069         Use bool for Booleans.
34070         [USE_IN_LIBIO]: Handle wide streams.
34071         [!_LIBC]: Unconditionally do the fseek, since we don't know what
34072         stream might go where.
34073
34074         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
34075         doesn't have to include <stdio.h> before us.
34076         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
34077         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
34078         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
34079         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
34080         if not declared, so that we can use getpass.c code from libc without
34081         rewriting it.
34082         (flockfile, ftrylockfile, funlockfile): New macros.
34083
34084 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34085
34086         * modules/getpass: Depend on stdbool.
34087
34088 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34089
34090         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
34091
34092 2003-10-07  Karl Berry  <karl@gnu.org>
34093
34094         * config/config.{guess,sub}: update from config.
34095
34096 2003-10-06  Jim Meyering  <jim@meyering.net>
34097             Bruno Haible  <bruno@clisp.org>
34098
34099         This lets translators provide better translations for the
34100         "Written by ..." part of --version output.
34101         * lib/version-etc.h: Include stdarg.h.
34102         (version_etc_copyright): Declare as readonly.
34103         (version_etc): Make this function variadic with a NULL-terminated list
34104         of author name strings.
34105         (version_etc_va): New declaration.
34106         * lib/version-etc.c: Include stdarg.h, stdlib.h.
34107         (version_etc_copyright): Declare as readonly.
34108         (version_etc_va): New function. Provide a different translatable string
34109         for each possible number of authors < 10. Abbreviate when there are 10
34110         authors or more.
34111         (version_etc): Make this function variadic. Call version_etc_va.
34112         Suggestion from Gary V. Vaughan.
34113
34114         * lib/long-options.h (parse_long_options): Change prototype: the
34115         authors string is moved to the end and becomes variadic.
34116         * lib/long-options.c: Include stdarg.h.
34117         (parse_long_options): Make this function variadic, too.
34118         Call version_etc_va, not version_etc.
34119
34120 2003-10-06  Bruno Haible  <bruno@clisp.org>
34121
34122         * modules/version-etc-2: Remove file.
34123         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
34124
34125 2003-10-06  Bruno Haible  <bruno@clisp.org>
34126
34127         * modules/fatal-signal: New file.
34128         * MODULES.html.sh (func_all_modules): Add fatal-signal.
34129
34130 2003-10-06  Bruno Haible  <bruno@clisp.org>
34131
34132         * m4/fatal-signal.m4: New file.
34133         * m4/signalblocking.m4: New file, from GNU gettext.
34134
34135 2003-10-06  Bruno Haible  <bruno@clisp.org>
34136
34137         * lib/version-etc-2.h: Remove file.
34138         * lib/version-etc-2.c: Remove file.
34139
34140 2003-10-06  Bruno Haible  <bruno@clisp.org>
34141
34142         * lib/fatal-signal.h: New file, from GNU gettext.
34143         * lib/fatal-signal.c: New file, from GNU gettext.
34144
34145 2003-10-05  Paul Eggert  <eggert@twinsun.com>
34146
34147         * README: Rework advice for preventing empty .o files.
34148         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
34149         not <sys/types.h>.
34150
34151 2003-10-04  Karl Berry  <karl@gnu.org>
34152
34153         * lib/argp*: update from libc.
34154
34155 2003-10-04  Karl Berry  <karl@gnu.org>
34156
34157         * config/config.{guess,sub}: update from config.
34158
34159 2003-10-02  Bruno Haible  <bruno@clisp.org>
34160
34161         * modules/lchown (Include): Add lchown.h.
34162         * modules/time_r (Include): Use "..." syntax.
34163         * modules/xgetdomainname (Include): Add xgetdomainname.h.
34164
34165 2003-10-01  Simon Josefsson  <jas@extundo.com>
34166
34167         * MODULES.html.sh (func_all_modules): Move gethostname from section
34168         'based on' to section 'lacking' POSIX:2001.
34169
34170 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
34171
34172         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
34173         to output mode on the same stream.
34174
34175 2003-09-29  Paul Eggert  <eggert@twinsun.com>
34176
34177         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
34178         Fix arg typo in previous patch.
34179
34180 2003-09-28  Jim Meyering  <jim@meyering.net>
34181
34182         * lib/error.c: Correct cpp indentation.
34183
34184 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34185
34186         * modules/free: New file.
34187
34188 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34189
34190         * m4/free.m4: New file.
34191
34192 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34193
34194         * lib/minmax.h (MIN, MAX)
34195         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
34196         Omit the special code that used __typeof__, since we worry that
34197         it could be more trouble than it's worth.  See:
34198         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
34199         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
34200
34201         * lib/free.c: New file.
34202
34203 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
34204
34205         Trivial fixes to Makefile.am parts of module listings.
34206         * modules/strstr: Append strstr.h to lib_SOURCES.
34207         * modules/strcase: Likewise, for strcase.h.
34208
34209 2003-09-27  Karl Berry  <karl@gnu.org>
34210
34211         * config/mkinstalldirs: update from automake.
34212
34213 2003-09-26  Paul Eggert  <eggert@twinsun.com>
34214
34215         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
34216         (error_tail): Do not loop, reallocating temporary buffer, since
34217         the output cannot contain more wide characters than the input
34218         contains bytes, the size must be big enough already.  This avoids
34219         one potential size overflow calculation.  Check for size overflow
34220         when calculating temporary buffer size.  Free temporary buffer
34221         when done, if it was allocated with malloc; this plugs a memory
34222         leak.  Remove casts from void * to pointers, that are no longer
34223         needed now that we're assuming C89 or better.
34224
34225         Merge error changes from glibc.
34226
34227         * lib/error.c, error.h: Update copyright notice header to match glibc.
34228         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
34229         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
34230         Disable cancellation while printing error.
34231         * lib/error.h: Prepend __ to parameter names.
34232
34233 2003-09-26  Jim Meyering  <jim@meyering.net>
34234
34235         * lib/error.c (error_tail): Move some declarations
34236         into inner scope where the local variables are used.
34237
34238 2003-09-26  Bruno Haible  <bruno@clisp.org>
34239
34240         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
34241         stpncpy().
34242         Don't define stpncpy through config.h; it's now done through stpncpy.h.
34243
34244 2003-09-26  Bruno Haible  <bruno@clisp.org>
34245
34246         * lib/stpncpy.h (gnu_stpncpy): New declaration.
34247         (stpncpy): Define as alias for gnu_stpncpy.
34248         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
34249
34250 2003-09-25  Simon Josefsson  <jas@extundo.com>
34251
34252         * lib/xgetdomainname.h: New file.
34253         * lib/xgetdomainname.c: New file.
34254
34255 2003-09-25  Simon Josefsson  <jas@extundo.com>
34256             Bruno Haible  <bruno@clisp.org>
34257
34258         * modules/getdomainname: New file.
34259         * modules/xgetdomainname: New file.
34260         * MODULES.html.sh (func_all_modules): Add getdomainname,
34261         xgetdomainname.
34262
34263 2003-09-25  Simon Josefsson  <jas@extundo.com>
34264             Bruno Haible  <bruno@clisp.org>
34265
34266         * m4/getdomainname.m4: New file.
34267
34268 2003-09-25  Simon Josefsson  <jas@extundo.com>
34269             Bruno Haible  <bruno@clisp.org>
34270
34271         * lib/getdomainname.h: New file.
34272         * lib/getdomainname.c: New file.
34273
34274 2003-09-25  Karl Berry  <karl@gnu.org>
34275
34276         * lib/argp-fmtstream.c, argp-help.c: update from libc.
34277
34278 2003-09-25  Karl Berry  <karl@gnu.org>
34279
34280         * config/install-sh: update from automake.
34281
34282 2003-09-25  Bruno Haible  <bruno@clisp.org>
34283
34284         * modules/version-etc-2: New file, from modules/version-etc with
34285         modifications.
34286         * MODULES.html.sh (func_all_modules): Add version-etc-2.
34287
34288 2003-09-25  Bruno Haible  <bruno@clisp.org>
34289
34290         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
34291         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
34292
34293 2003-09-24  Simon Josefsson  <jas@extundo.com>
34294
34295         * modules/xgethostname: Add xgethostname.h.
34296
34297 2003-09-24  Paul Eggert  <eggert@twinsun.com>
34298
34299         * lib/linebuffer.c (freebuffer): Don't free the argument, just
34300         the buffer associated with the argument.  Bug reported by
34301         Simon Josefsson.
34302
34303 2003-09-24  Paul Eggert  <eggert@twinsun.com>
34304
34305         * README: Document assumptions that 'int' is at least 32 bits
34306         wide, that integer arithmetic is 2's complement without overflow,
34307         that there are no holes in integer values, that adding sizes of
34308         two nonoverlapping objects can't overflow, and that all-bits-zero
34309         yields scalar zero.  Fix spelling and capitalization typos.
34310
34311 2003-09-19  Karl Berry  <karl@gnu.org>
34312
34313         * lib/argp.h: update from libc.
34314
34315 2003-09-17  Paul Eggert  <eggert@twinsun.com>
34316
34317         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
34318         to avoid spurious warnings like "AC_RUN_IFELSE was called before
34319         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
34320
34321 2003-09-17  Paul Eggert  <eggert@twinsun.com>
34322
34323         * gnulib-tool: Use "test -h", not "test -L", for portability
34324         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
34325         (tags_regexp): Remove, since \| doesn't conform to POSIX.
34326         (sed_extract_prog): Issue s commands one-by-one, rather than
34327         using \| in one s command.
34328
34329 2003-09-16  Paul Eggert  <eggert@twinsun.com>
34330
34331         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
34332         input error, instead of returning NULL the next time we are called
34333         (and therefore losing track of errno).
34334
34335 2003-09-16  Bruno Haible  <bruno@clisp.org>
34336
34337         * gnulib-tool (func_create_testdir): Warn about duplicated
34338         dependencies.
34339
34340 2003-09-15  Paul Eggert  <eggert@twinsun.com>
34341
34342         * modules/argmatch, modules/fatal, modules/obstack,
34343         modules/xalloc, modules/xgethostname: Sort dependencies by
34344         importance, not alphabetically.
34345
34346 2003-09-15  Paul Eggert  <eggert@twinsun.com>
34347
34348         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
34349         fails, so that the caller gets the proper errno.
34350
34351         * lib/readutmp.c (read_utmp): Likewise.
34352         Check for fstat error.  Close stream and free storage
34353         when failing.
34354
34355 2003-09-14  Karl Berry  <karl@gnu.org>
34356
34357         * config/srclist.txt (strdup.c): disable for c89 changes.
34358
34359 2003-09-14  Jim Meyering  <jim@meyering.net>
34360
34361         * lib/getloadavg.c: Correct cpp indentation.
34362         * lib/strdup.c: Likewise.
34363         * lib/vasnprintf.c: Likewise.
34364
34365 2003-09-14  Bruno Haible  <bruno@clisp.org>
34366
34367         * modules/fwriteerror: New file.
34368         * MODULES.html.sh (func_all_modules): Add fwriteerror.
34369
34370 2003-09-14  Bruno Haible  <bruno@clisp.org>
34371
34372         * lib/fwriteerror.h: New file.
34373         * lib/fwriteerror.c: New file.
34374
34375 2003-09-12  Paul Eggert  <eggert@twinsun.com>
34376
34377         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
34378         modules/xgethostname, modules/xalloc: Depend on exit.
34379
34380 2003-09-12  Paul Eggert  <eggert@twinsun.com>
34381
34382         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
34383
34384         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
34385         and AC_MINIX, too, so that their extensions are available.
34386
34387         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
34388         This macro has been superseded by gl_BACKUPFILE.
34389
34390         More patches to assume C89 or better.
34391
34392         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
34393
34394         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
34395         unconditionally.
34396         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
34397         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
34398         Include <string.h>, <stdlib.h> unconditionally.
34399         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
34400         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
34401         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
34402         headers or for string.h.
34403         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
34404         or strtoul.
34405
34406         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
34407         headers.
34408         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
34409         * m4/userspec.m4 (gl_USERSPEC): Likewise.
34410         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
34411         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
34412         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
34413         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
34414         memcpy, memset.
34415         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
34416         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
34417         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
34418         strtol.
34419         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
34420         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
34421         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
34422         strtoul.
34423
34424 2003-09-12  Paul Eggert  <eggert@twinsun.com>
34425
34426         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
34427         * lib/obstack.c [!defined _LIBC]: Likewise.
34428         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
34429         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
34430         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
34431
34432         More changes to assume C89 or better.
34433
34434         * lib/error.c (error_tail): Assume vprintf.
34435
34436         * lib/argmatch.c (getenv): Remove decl.
34437         * lib/progreloc.c (get_full_program_name): Define via prototype.
34438         * lib/setenv.c (clearenv): Likewise.
34439         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
34440         needed.
34441         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
34442         (malloc, memcpy): Remove decls.
34443         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
34444         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
34445         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
34446         (memcpy): Remove macro.
34447         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
34448         (__P): Remove.  All uses removed.
34449         (PTR): Remove.  All uses changed to void *.
34450         (CHAR_BIT, NULL): Remove.
34451         (spaces, zeros, memset_space, memset_zero)
34452         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
34453         Remove.
34454         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
34455         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
34456         Define with prototype.
34457         Remove now-unnecessary prototype decl.
34458         (extra_args_spec): Assume ANSI C.  All uses changed.
34459         (extra_args_spec_iso): Remove.
34460         (my_strftime, emacs_strftimeu): Define via prototype.
34461         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
34462         unconditionally.
34463         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
34464         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
34465         (strtoul, strtol): Remove decls.
34466         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
34467         LONG_MAX): Remove.
34468         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
34469         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
34470         (LOCALE_PARAM_PROTO): New macro.
34471         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
34472         (INTERNAL (strtol), strtol): Define with a prototype.
34473         (PARAMS): Remove.  All uses removed.
34474         * lib/tempname.c: Include <string.h> unconditionally.
34475         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
34476         * lib/xgethostname.c (main): Define with a prototype.
34477         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
34478         Include <stdlib.h> unconditionally.
34479         (calloc, malloc, realloc, free): Remove decls.
34480         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
34481         Include <stdlib.h> unconditionally.  Sort include file names.
34482         (strtod): Remove.
34483         (xstrtod): Define with a prototype.
34484         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
34485         (strtol, strtoul): Remove decls.
34486
34487 2003-09-11  Paul Eggert  <eggert@twinsun.com>
34488
34489         More patches to assume C89 or better.
34490         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
34491         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
34492         string.h, memchr, STDC_HEADERS.
34493
34494 2003-09-11  Paul Eggert  <eggert@twinsun.com>
34495
34496         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
34497         Include <stdlib.h>, <string.h> unconditionally.
34498         Remove now-unnecessary cast to char *.
34499         * lib/strnlen.c: Include <string.h> unconditionally.
34500         * lib/yesno.c (yesno): Define with a prototype.
34501
34502 2003-09-11  Bruno Haible  <bruno@clisp.org>
34503
34504         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
34505
34506 2003-09-10  Jim Meyering  <jim@meyering.net>
34507
34508         * lib/error.c: Correct indentation of cpp directives.
34509
34510 2003-09-10  Bruno Haible  <bruno@clisp.org>
34511
34512         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
34513         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
34514         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
34515         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
34516         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
34517         <stdlib.h> and <string.h> checks.
34518         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
34519         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
34520
34521 2003-09-10  Bruno Haible  <bruno@clisp.org>
34522
34523         * lib/strcspn.c: Include <string.h> unconditionally.
34524         * lib/strpbrk.c: Include <string.h> unconditionally.
34525         * lib/strstr.c: Include <string.h> unconditionally.
34526         * lib/unicodeio.c: Include <string.h> unconditionally.
34527         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
34528         * lib/unsetenv.c: Likewise.
34529         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
34530         * lib/yesno.c: Include <stdlib.h> unconditionally.
34531         (rpmatch): Add prototype.
34532
34533 2003-09-09  Paul Eggert  <eggert@twinsun.com>
34534
34535         More patches to assume C89 or better.
34536         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
34537         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
34538         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
34539         or for string.h.
34540         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
34541         stdlib.h.
34542         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
34543         C headers.
34544         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
34545         string.h.
34546         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
34547         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
34548         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
34549         or for string.h.
34550         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
34551         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
34552         C headers.
34553         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
34554         memcpy.
34555         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
34556         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
34557         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
34558         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
34559         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
34560         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
34561         string.h, free.
34562         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
34563         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
34564         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
34565         C headers, or for string.h.
34566         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
34567         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
34568         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
34569         headers, memory.h, stdlib.h, string.h, strings.h.
34570         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
34571         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
34572         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
34573         strchr.
34574         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
34575         headers, memory.h, string.h.
34576         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
34577         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
34578         free.
34579         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
34580         headers.
34581         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
34582         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
34583         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
34584         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
34585         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
34586
34587 2003-09-09  Paul Eggert  <eggert@twinsun.com>
34588
34589         More K&R removal.
34590
34591         * lib/acosl.c (main): Use a prototype.
34592         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
34593         tanl.c: Likewise.
34594
34595         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
34596
34597         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
34598         (getopt, etopt_long, getopt_long_only, _getopt_internal)
34599         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
34600         with a prototype.
34601         * lib/getopt.c (const): Remove macro.
34602         Include <string.h> unconditionally.
34603         (my_index): Remove; all uses changed to strchr.
34604         (strlen): Remove decl.
34605         (exchange): Remove forward decl; no longer needed.
34606         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
34607         Define with prototype.
34608         * lib/getopt1.c (const): Remove macro.
34609         (getopt_long, getopt_long_only, main): Define with prototype.
34610
34611         * lib/getugroups.c: Include <string.h> unconditionally.
34612
34613         * lib/getusershell.c: Include <stdlib.h> unconditionally.
34614         (getusershell, setusershell, endusershell, readname, main):
34615         Define with prototypes.
34616
34617         * lib/group-member.c: Include group-member.h first.
34618         Include <stdlib.h> unconditionally.
34619
34620         * lib/hard-locale.c: Include hard-locale.h first.
34621         Include <stdlib.h>, <string.h> unconditionally.
34622
34623         * lib/hash.c (free, malloc): Remove decls.
34624         Include <stdlib.h> unconditionally.
34625
34626         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
34627         (getenv): Do not declare.
34628
34629         * lib/idcache.c: Include <string.h> unconditionally.
34630
34631         * lib/long-options.c: Include long-options.h first, to test interface.
34632         Include <stdlib.h> unconditionally.
34633
34634         * lib/makepath.c: Include makepath.h first, to test interface.
34635         Include <stdlib.h> and <string.h> unconditionally.
34636
34637         * lib/linebuffer.c: Include <stdlib.h>.
34638         (free): Remove decl.
34639
34640         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
34641         stddef.h. rpl_malloc returns void *, not char *.
34642         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
34643         prototype.
34644
34645         * lib/md5.h: Include <limits.h> unconditionally.
34646         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
34647         (__P): Remove; all uses removed.
34648         * lib/md5.c: Include "md5.h" first.
34649         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
34650         md5_buffer, md5_process_bytes, md5_process_block):
34651         Define with prototypes.
34652         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
34653         * lib/sha.c: Include "sha.h" first.
34654         Include <stdlib.h>, <string.h> unconditionally.
34655
34656         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
34657         * lib/memcmp.c (__ptr_t): Likewise.
34658         * lib/memrchr.c (__ptr_t): Likewise.
34659         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
34660         Include <string.h> unconditionally.
34661         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
34662         * lib/memchr.c: Include <stdlib.h> unconditionally.
34663         * lib/memchr.c (LONG_MAX): Remove.
34664         * lib/memrchr.c (LONG_MAX): Likewise.
34665         * lib/memchr.c (__memchr): Define via a prototype.
34666         * lib/memrchr.c (__memrchr): Likewise.
34667         * lib/memcmp.c (__P): Remove, and remove all uses.
34668         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
34669         Remove forward decls; no longer needed.
34670         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
34671         Use types required by C89 in prototype.
34672
34673         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
34674         * lib/savedir.c: Likewise.
34675         * lib/mkdir.c (free): Remove decl.
34676         * lib/rmdir.c (rmdir): Define with a prototype.
34677         * lib/savedir.c: Include savedir.h first, to test interface.
34678
34679         * lib/mktime.c (STDC_HEADERS): Remove.
34680         Include <stdlib.h>, <string.h> unconditionally.
34681
34682         * lib/modechange.c: Include <stdlib.h> unconditionally.
34683         (malloc): Remove decl.
34684
34685         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
34686         (free): Remove decl.
34687
34688         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
34689         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
34690         (This type really should be intptr_t, but that's a C99ism.)
34691         (_obstack_memcpy): Remove: all uses changed to memcpy.
34692         Include <string.h> unconditionally.
34693         (struct obstack): Assume __STDC__ for types of members
34694         chunkfun, freefun, extra_arg.
34695         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
34696         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
34697         obstack_begin, obstack_specify_allocation,
34698         obstack_specify_allocation_with_arg, obstack_chunkfun,
34699         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
34700         Remove unprototyped decls and the macros that use them.
34701         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
34702         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
34703         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
34704         (defined __STDC__ && __STDC__)]:
34705         Remove nonprototyped code.
34706         Include <stdlib.h> unconditionally.
34707         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
34708         _obstack_allocated_p, _obstack_free, obstack_free,
34709         _obstack_memory_used, print_and_abort):
34710         Define using prototypes.
34711         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
34712         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
34713         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
34714         obstack_next_free, obstack_object_size, obstack_room) [0]:
34715         Remove unused, unprototyped code.
34716
34717         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
34718
34719         * lib/physmem.c (physmem_total, physmem_available, main): Define
34720         with prototypes.
34721
34722         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
34723         (main): Define with a prototype.
34724
34725         * lib/posixver.c (getenv): Remove decl.
34726
34727         * lib/putenv.c (malloc): Returns void *, not char *.
34728         Include <string.h> unconditionally.
34729         (strchr, memcpy, NULL): Do not define.
34730
34731         * lib/readtokens.c: Include readtokens.h first, to test interface.
34732         Include <stdlib.h>, <string.h> unconditionally.
34733         (init_tokenbuffer): Define with a prototype.
34734
34735         * lib/regex.c (PARAMS): Remove.  All uses removed.
34736         All uses of _RE_ARGS removed, too.
34737         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
34738         unconditionally.
34739         (bzero): Assume memset exists.
34740         (memcmp, memcpy, NULL): Remove.
34741         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
34742         char, or assignments to local vars of type signed char.
34743         (init_syntax_once, PREFIX(extract_number_and_incr),
34744         PREFIX(print_partial_compiled_pattern),
34745         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
34746         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
34747         PREFIX(regex_grow_registers), PREFIX(regex_compile),
34748         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
34749         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
34750         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
34751         wcs_compile_range, byte_compile_range, truncate_wchar,
34752         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
34753         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
34754         count_mbs_length, wcs_re_match_2_internal,
34755         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
34756         PREFIX(alt_match_null_string_p),
34757         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
34758         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
34759         regfree, PREFIX(extract_number)): Define with prototype.  Remove
34760         now-unnecessary declaration, if any.
34761         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
34762         regcomp, regexec):
34763         Remove now-unnecessary casts among pointer types.
34764         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
34765
34766         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
34767         (free): Remove decl.
34768
34769         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
34770
34771         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
34772         (free): Remove decl.
34773
34774         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
34775         * lib/xgetcwd.c: Likewise.
34776
34777         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
34778         (free): Remove decl.
34779
34780         * lib/strchrnul.c (strchrnul): Define with a prototype.
34781         Fix bug: c_in was not converted to char before searching.
34782
34783         The following changes are not K&R related:
34784
34785         * lib/group-member.h: Include <sys/types.h>, so that this file is
34786         self-contained.
34787         * lib/makepath.h: Likewise.
34788
34789         * lib/getusershell.c (readname, default_index, line_size, readname):
34790         Use size_t, not int, for sizes.
34791         (readname): If the size overflows, report an error instead of
34792         looping forever.
34793
34794 2003-09-09  Paul Eggert  <eggert@twinsun.com>
34795
34796         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
34797         libc.
34798
34799 2003-09-09  Paul Eggert  <eggert@twinsun.com>
34800
34801         * README: New section: portability guidelines.
34802
34803 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
34804
34805         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
34806         C89 spec.
34807
34808 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
34809
34810         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
34811
34812 2003-09-08  Paul Eggert  <eggert@twinsun.com>
34813
34814         Assume C89 or better; remove K&R cruft.
34815         A few of these changes were first proposed by Derek Robert Price
34816         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
34817
34818         * lib/addext.c: Include <string.h> unconditionally.
34819         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
34820         Don't declare getenv or malloc.
34821
34822         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
34823         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
34824         (NULL): Remove.
34825         (find_stack_direction, alloca): Use prototypes.
34826
34827         * lib/atexit.c (atexit): Define using a prototype.
34828
34829         * lib/basename.c, dirname.c, stripslash.c:
34830         Include <string.h> unconditionally.
34831
34832         * lib/bcopy.c: Include <stddef.h>.
34833         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
34834
34835         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
34836
34837         * lib/error.h (error, error_at_line, error_print_progname)
34838         [! (defined (__STDC__) && __STDC__)]: Remove decls.
34839         * lib/error.c: Include error.h first, to check interface.
34840         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
34841         (VA_START): Remove; all uses changeed to va_start.
34842         (exit, strerror): Remove decls.
34843         (error_print_progname): Prototype uncondionally.
34844         Don't include <errno.h>; no longer needed.
34845         (private_strerror): Remove.
34846         (error_tail): Always define.
34847         (error, error_at_line): Assume C89 or better; always use prototypes.
34848         * lib/fatal.c: Include "fatal.h" first, to test interface.
34849         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
34850         (VA_START): Remove; all uses changed to va_start.
34851         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
34852         this case.
34853         (exit): Remove decl.
34854         (fatal): Prototype unconditionally.  Assume va_start works.
34855         Abort at end, to pacify gcc.
34856
34857         * lib/euidaccess.c (main): Define with a prototype.
34858
34859         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
34860
34861         * lib/exitfail.c: Include <stdlib.h> unconditionally.
34862
34863         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
34864         prototypes.
34865         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
34866         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
34867         (getenv): Remove decl.
34868         (fnmatch): Define using a prototype.
34869         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
34870         (FCT): Define using a prototype.
34871
34872         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
34873
34874         * lib/gethostname.c: Include <stddef.h>.
34875         (gethostname): Define with prototype.  Length is size_t, not int.
34876
34877 2003-09-08  Paul Eggert  <eggert@twinsun.com>
34878
34879         Assume C89 or better; remove K&R cruft.
34880         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
34881         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
34882         string.h, getenv, malloc.
34883         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
34884         headers.
34885         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
34886         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
34887         do not check for strerror.
34888         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
34889         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
34890         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
34891         do not check for doprnt or vprintf.
34892         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
34893         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
34894
34895 2003-09-08  Paul Eggert  <eggert@twinsun.com>
34896
34897         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
34898         getversion.c should have been removed then, but was accidentally
34899         preserved.
34900
34901         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
34902         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
34903
34904 2003-09-08  Karl Berry  <karl@gnu.org>
34905
34906         * config/config.sub, config.guess, srclistvars.sh: update from savannah
34907                 config, forget about prep.
34908
34909         * config/depcomp, missing: update from automake.
34910
34911 2003-09-07  Paul Eggert  <eggert@twinsun.com>
34912
34913         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
34914         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
34915
34916 2003-09-07  Paul Eggert  <eggert@twinsun.com>
34917
34918         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
34919         copy_tm_result.  Bug reported by Simon Josefsson in
34920         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
34921
34922 2003-09-06  Paul Eggert  <eggert@twinsun.com>
34923
34924         * m4/time_r.m4: New file.
34925         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
34926         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
34927         is. Check for timegm declaration.
34928         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
34929         Do not check for gmtime_r.
34930         Replace mktime if __mktime_internal does not exist and if mktime
34931         hasn't been replaced already.
34932
34933 2003-09-06  Paul Eggert  <eggert@twinsun.com>
34934
34935         * lib/time_r.c, lib/time_r.h: New files.
34936
34937         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
34938         __localtime_r.
34939         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
34940         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
34941
34942         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
34943         __gmtime_r.
34944         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
34945         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
34946         Include <time_r.h>.
34947
34948         * lib/timegm.c: Switch to glibc implementation, with the following
34949         changes:
34950         [defined HAVE_CONFIG_H]: Include <config.h>.
34951         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
34952         (__mktime_internal) [!defined _LIBC]: New decl.
34953         (__gmtime_r) [!defined _LIBC]: New macro and function.
34954         (timegm): Use a prototype, since gnulib assumes C89.
34955         Do not bother declaring tmp to be const, as it's not really usefu.
34956         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
34957         (timegm): Declare only if HAVE_DECL_TIMEGM.
34958
34959 2003-09-06  Paul Eggert  <eggert@twinsun.com>
34960
34961         * MODULES.html.sh (func_all_modules): Add time_r.
34962         * modules/time_r: New file.
34963         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
34964         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
34965
34966 2003-09-03  Paul Eggert  <eggert@twinsun.com>
34967
34968         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
34969         Bug reported by Lute Kamstra in
34970         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
34971
34972         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
34973         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
34974         course with correspondingly smaller numbers for tomorrow and
34975         yesterday.  From Tadayoshi Funaba.  Originally installed into
34976         sh-utils on 1999-08-07, but the patch got lost (I guess during the
34977         coreutils merge?).
34978
34979 2003-08-31  Simon Josefsson  <jas@extundo.com>
34980
34981         * modules/timegm: New file.
34982         * MODULES.html.sh (func_all_modules): Add timegm.
34983
34984 2003-08-31  Simon Josefsson  <jas@extundo.com>
34985
34986         * m4/timegm.m4: New file.
34987
34988 2003-08-31  Simon Josefsson  <jas@extundo.com>
34989
34990         * lib/timegm.h: New file.
34991         * lib/timegm.c: New file.  Based on
34992         wget-1.8.2/src/http.c:mktime_from_utc.
34993
34994 2003-08-31  Karl Berry  <karl@gnu.org>
34995
34996         * lib/argp.h: update from libc.
34997
34998 2003-08-28  Bruno Haible  <bruno@clisp.org>
34999
35000         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
35001         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
35002         followed by '#define fnmatch fnmatch_posix' gives an error.
35003
35004 2003-08-28  Bruno Haible  <bruno@clisp.org>
35005
35006         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
35007         warning on QNX, which defines O_BINARY to 000000.
35008
35009 2003-08-27  Jim Meyering  <jim@meyering.net>
35010
35011         * m4/mkstemp.m4: Require that the system mkstemp be able to create
35012         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
35013         would fail after 32.  Reported by Danny Levinson.  Details here:
35014         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
35015
35016 2003-08-24  Bruno Haible  <bruno@clisp.org>
35017
35018         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
35019         MSVC7 <stdio.h> is included later.
35020
35021 2003-08-22  Simon Josefsson  <jas@extundo.com>
35022
35023         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
35024
35025 2003-08-20  Karl Berry  <karl@gnu.org>
35026
35027         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
35028
35029 2003-08-20  Bruno Haible  <bruno@clisp.org>
35030
35031         * modules/progname: New file.
35032         * MODULES.html.sh (func_all_modules): Add progname.
35033
35034 2003-08-20  Bruno Haible  <bruno@clisp.org>
35035
35036         * lib/progname.h: New file, from GNU gettext.
35037         * lib/progname.c: New file, from GNU gettext.
35038         * lib/progreloc.c: New file, from GNU gettext.
35039
35040 2003-08-19  Jim Meyering  <jim@meyering.net>
35041
35042         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
35043         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
35044
35045 2003-08-19  Bruno Haible  <bruno@clisp.org>
35046
35047         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
35048         more.
35049
35050 2003-08-19  Bruno Haible  <bruno@clisp.org>
35051
35052         * lib/xstrdup.c: Assume <string.h> exists.
35053
35054 2003-08-18  Paul Eggert  <eggert@twinsun.com>
35055
35056         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
35057         in makefile rules.
35058
35059 2003-08-18  Jim Meyering  <jim@meyering.net>
35060
35061         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
35062         * m4/lib-ld.m4: Likewise.
35063
35064 2003-08-18  Jim Meyering  <jim@meyering.net>
35065
35066         * lib/setenv.h: Indent nested cpp directive.
35067         * lib/vasnprintf.c: Remove trailing blanks.
35068
35069 2003-08-17  Simon Josefsson  <jas@extundo.com>
35070
35071         * modules/xstrndup: New file.
35072         * MODULES.html.sh (func_all_modules): Add xstrndup.
35073
35074 2003-08-17  Simon Josefsson  <jas@extundo.com>
35075
35076         * modules/argp: Fix autoconf macro name. Add more dependencies.
35077
35078 2003-08-17  Simon Josefsson  <jas@extundo.com>
35079
35080         * m4/xstrndup.m4: New file.
35081
35082 2003-08-17  Simon Josefsson  <jas@extundo.com>
35083
35084         * m4/argp.m4: New file.
35085
35086 2003-08-17  Simon Josefsson  <jas@extundo.com>
35087             Bruno Haible  <bruno@clisp.org>
35088
35089         * lib/xstrndup.h: New file.
35090         * lib/xstrndup.c: New file.
35091
35092 2003-08-17  Bruno Haible  <bruno@clisp.org>
35093
35094         * modules/strndup (Files, Include): Add lib/strndup.h.
35095
35096 2003-08-17  Bruno Haible  <bruno@clisp.org>
35097
35098         * modules/euidaccess (Files): Add lib/euidaccess.h.
35099
35100 2003-08-17  Bruno Haible  <bruno@clisp.org>
35101
35102         * lib/strndup.h: New file.
35103
35104 2003-08-17  Bruno Haible  <bruno@clisp.org>
35105
35106         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
35107         like AC_GNU_SOURCE.
35108         * modules/extensions (configure.ac): Comment out the invocation of
35109         gl_USE_SYSTEM_EXTENSIONS.
35110
35111 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35112
35113         Merges from coreutils, etc.
35114         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
35115         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
35116         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
35117         fixing a typo.
35118         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
35119         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
35120
35121 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35122
35123         Document merge from coreutils.
35124         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
35125         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
35126         * modules/utime: Add m4/utimes-null.m4.
35127
35128 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35129
35130         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
35131         space, undoing this 2003-08-12 change:
35132         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
35133
35134 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35135
35136         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
35137         strtoul.c from libc, undoing this 2003-08-12 change:
35138         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
35139
35140 2003-08-16  Jim Meyering  <jim@meyering.net>
35141
35142         Merges from coreutils.
35143         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
35144         prefix.  Adjust cache variables similarly.  Create 500 rather than
35145         just 300 files, to exercise bug on Darwin6.5, too.
35146         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
35147         $missing_dir.
35148         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
35149         AM_SYS_POSIX_TERMIOS.
35150         Reported by mkc@mathdogs.com.
35151         Also change use of $am_cv_sys_posix_termios
35152         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
35153         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
35154         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
35155         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
35156         in /proc/mounts until it finds one with matching device number.  This
35157         is unnecessary when the FILE argument *is* a mount point.  No stat call
35158         is necessary in that case.  So, disable the statvfs-testing code on
35159         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
35160         as RedHat bug# 84846.
35161         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
35162         to 1MB, so as not to render systems with no stack size limit (e.g.,
35163         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
35164         Include <unistd.h>.  On some systems,
35165         it is required for the definition of _SC_PAGESIZE.
35166
35167 2003-08-16  Jim Meyering  <jim@meyering.net>
35168
35169         Merge from coreutils.
35170         * lib/xstrtoimax.c: #else #if -> #elif.
35171         * lib/xstrtoumax.c: Likewise.
35172
35173 2003-08-16  Jim Meyering  <jim@meyering.net>
35174
35175         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
35176         * m4/utimes.m4: Removed.
35177         * m4/utimes-null.m4: Renamed from utimes.m4.
35178
35179         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
35180         to 1MB, so as not to render systems with no stack size limit (e.g.,
35181         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
35182         Include <unistd.h>.  On some systems,
35183         it is required for the definition of _SC_PAGESIZE.
35184
35185 2003-08-16  Jim Meyering  <jim@meyering.net>
35186         and Paul Eggert  <eggert@cs.ucla.edu>
35187
35188         Merges from coreutils, etc.
35189
35190         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
35191         using the latest version from cvs.  This avoids problems with #line
35192         directives using a vendor (Sun) compiler.
35193         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
35194         Don't set GETGROUPS_LIB here; now it's
35195         done via getgroups.m4's wrapper function.
35196         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
35197         rather than just in sh-util/configure.in, so that the
35198         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
35199         same.
35200         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
35201         AC_FUNC_GETLOADAVG where to find getloadavg.c.
35202         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
35203         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
35204         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
35205         Remove code that is now done by the newly-required macros.
35206         Append $(EXEEXT) to DF_PROG.
35207         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
35208         Do not invoke or require the following here,
35209         since prereq.m4 or some gnulib .m4 now does this for us:
35210         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
35211         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
35212         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
35213         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
35214         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
35215         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
35216         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
35217         AC_FUNC_OBSTACK.
35218         Do not replace the following functions, as this is now the job
35219         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
35220         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
35221         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
35222         atexit getpass, strdup, getpagesize.
35223         Replace 'raise'.
35224         Do not check for the following functions, as this is now the job
35225         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
35226         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
35227         setregid.
35228         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
35229         Check for sys/sysctl.h.
35230         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
35231         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
35232         of checking for ssize_t ourselves.
35233
35234         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
35235         Require every macro that gnulib/modules/* suggests for us.
35236         (jm_PREREQ_ADDEXT): New macro.
35237         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
35238         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
35239
35240         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
35241         (gl_PHYSMEM): Use it.
35242         Also check for `table' function.
35243         Check for new headers and functions.
35244         Add check for sys/sysmp.h.
35245         With suggestions from Kaveh Ghazi.
35246         Ignore headers that are present but cannot be compiled.  This
35247         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
35248         C 5.4.
35249
35250 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35251
35252         Document merge from coreutils.
35253         * modules/userspec: Depend on posixver.
35254         * modules/strftime: Depend on tzset.
35255
35256 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35257
35258         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
35259         rather than tab, after '#' in shell-script copyright notices.
35260         Suggested by Bruno Haible.
35261
35262 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35263
35264         * config/srclist-update: Use three spaces, rather than tab, after '#'
35265         in shell-script copyright notices.  Suggested by Bruno Haible.
35266         Remove unnecessary parenthesization in regular expression.
35267
35268 2003-08-15  Jim Meyering  <jim@meyering.net>
35269
35270         Merge from coreutils.
35271         * lib/xgethostname.c: Include <stdlib.h>.
35272         (xghostname): Don't exit for anything other than memory-related
35273         failure; just return NULL.
35274         * lib/userspec.c: Include "posixver.h".
35275         (parse_user_spec): Accept `.' as a separator only
35276         in pre-POSIX-200112 mode.
35277         * lib/strtoimax.c: Use #elif rather than #else #if.
35278         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
35279         Remove function, now that we can rely on a working tzset function.
35280         [!_LIBC]: Ensure that the required autoconf test has been run.
35281         [!defined _NL_CURRENT && HAVE_STRFTIME]:
35282         Use underlying_strftime for %r.
35283         * lib/sha.c: Merge in some clean-up and optimization changes from
35284         glibc.
35285         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
35286         Ensure that it is a multiple of 64.
35287         Rearrange loop exit tests so as to avoid performing an
35288         additional fread after encountering an error or EOF.
35289         * lib/realloc.c: Update copyright date.
35290
35291 2003-08-15  Jim Meyering  <jim@meyering.net>
35292         and Paul Eggert  <eggert@twinsun.com>
35293
35294         Merge from coreutils.
35295         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
35296         member but strut utmpx does not.  Needed for AIX 4.3.3.
35297         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
35298
35299 2003-08-15  Jim Meyering  <jim@meyering.net>
35300         and Paul Eggert  <eggert@cs.ucla.edu>
35301
35302         Merges from coreutils, etc.
35303         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
35304         Require gl_FUNC_TZSET_CLOBBER.
35305         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
35306         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
35307         members.
35308
35309 2003-08-14  Paul Eggert  <eggert@twinsun.com>
35310
35311         Help the merge from coreutils.
35312         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
35313         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
35314         * m4/tzset.m4: Use it too.
35315
35316 2003-08-14  Paul Eggert  <eggert@twinsun.com>
35317
35318         * modules/tzset: New file.
35319
35320 2003-08-14  Jim Meyering  <jim@meyering.net>
35321
35322         Merges from coreutils.
35323         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
35324         variable names, rather than @FNMATCH_H@.
35325         * modules/alloca: Likewise for $(ALLOCA_H).
35326
35327         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
35328         the three copies of the literal target, `fnmatch.h'.
35329         * modules/alloca (alloca.h): Likewise.
35330
35331 2003-08-14  Jim Meyering  <jim@meyering.net>
35332
35333         Merge from coreutils.
35334         * m4/tzset.m4: New file.
35335         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
35336         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
35337         otherwise, AIX 5.1 systems would end up using the latter.
35338         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
35339         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
35340         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
35341         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
35342
35343 2003-08-14  Jim Meyering  <jim@meyering.net>
35344
35345         Merge from coreutils.
35346         * lib/obstack.h: Whitespace changes.
35347         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
35348         and xcalloc return values.
35349         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
35350         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
35351         hang on OSF/1 5.1 for DIR on both local and remote file systems.
35352         Reported by (and fix confirmed by) Nelson H. F. Beebe.
35353         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
35354         error from mntctl.
35355         Use mntctl's return value to drive the entry-processing loop, since
35356         we can't rely on the value of the vmt_length member in the last
35357         entry.  On some systems doing so could result in exhausting
35358         virtual memory.  Based in part on a patch from Mike Jetzer.
35359
35360 2003-08-14  Jim Meyering  <jim@meyering.net>
35361         and Paul Eggert  <eggert@twinsun.com>
35362
35363         Merges from coreutils, plus other fixes.
35364         * lib/physmem.c: Merge in portability changes from gcc/libiberty
35365         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
35366         for credits and details.  Thanks to Kaveh Ghazi for helping
35367         to keep these files in sync.
35368         (ARRAY_SIZE): Define it.
35369         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
35370         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
35371         (memcasecmp): Don't assume size_t fits in unsigned int.
35372         Remove casts and duplicate code.
35373         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
35374         (memcpy): Remove definition.
35375         Merge in some clean-up and optimization changes from glibc.
35376         [BLOCKSIZE]: Move definition to top of file.
35377         Ensure that it is a multiple of 64.
35378         Rearrange loop exit tests so as to avoid performing an
35379         additional fread after encountering an error or EOF.
35380         * lib/md5.h (md5_uintptr): Define.
35381         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
35382         return to the initial working directory.  Preserve errno
35383         for caller.
35384         * lib/idcache.c: Include "xalloc.h".
35385         (xmalloc, xrealloc): Remove decls.
35386         (getuser): Remove casts no longer required in C89.
35387         * lib/human.c: Include stdio.h, for sprintf.
35388         * lib/group-member.c: Include "xalloc.h".
35389         (xmalloc, xrealloc): Remove decls.
35390         (get_group_info): Remove casts no longer required in C89.
35391         * lib/getusershell.c (readname): Remove casts no longer required in
35392         C89.
35393         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
35394         * lib/getline.c: Whitespace fix, from coreutils.
35395
35396 2003-08-13  Paul Eggert  <eggert@twinsun.com>
35397
35398         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
35399         Check for isascii.
35400
35401         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
35402         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
35403         Undo previous (whitespace-only) change.
35404
35405 2003-08-13  Paul Eggert  <eggert@twinsun.com>
35406
35407         * lib/exclude.c: Include <ctype.h>
35408         (IN_CTYPE_DOMAIN): New macro.
35409         (is_space): New fn.
35410         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
35411         and empty lines.
35412
35413         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
35414         Undo previous (whitespace-only) change.
35415
35416 2003-08-13  Paul Eggert  <eggert@twinsun.com>
35417
35418         * config/srclist-update: Change update back to the old behavior,
35419         leaving whitespace alone.  Use one 'sed' command rather than a
35420         pipeline.
35421         (fixlicense): Now a variable, not a function.
35422         (remove_trailing_blanks): Remove.
35423         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
35424         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
35425         Undo previous (whitespace-only) change.
35426
35427 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35428
35429         Merge from coreutils.
35430         * modules/euidaccess: Add lib_SOURCES, include for new
35431         file euidaccess.h
35432
35433 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35434
35435         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
35436         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
35437         Normalize leading white space and remove trailing white space.
35438
35439         Merge from coreutils
35440         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
35441
35442         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
35443         0.12.1.  These files are now being upgraded automatically by
35444         ../config/srclist-update.
35445
35446 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35447
35448         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
35449         Normalize leading white space and remove trailing white space.
35450         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
35451         notice, as per ../config/srclist-update.
35452
35453         Merge from coreutils.
35454         * lib/euidaccess.h: New file.
35455         * lib/euidaccess.c: Include it.
35456         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
35457         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
35458         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
35459
35460 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35461
35462         * config/srclist-update: Add copyright notice.
35463         (remove_id_lines, remove_trailing_blanks): New constants.
35464         (fixfile): Use them to normalize spacing a bit in copied files.
35465         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
35466         Normalize leading white space and remove trailing white space.
35467
35468         * config/texinfo.tex: Sync with texinfo.
35469
35470         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
35471         strtoul.c from libc, to merge coreutils whitespace changes.
35472
35473         * config/srclist.txt: Get the following m4 files from gettext:
35474         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
35475         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
35476         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
35477         wint_t.m4.
35478
35479 2003-08-12  Karl Berry  <karl@gnu.org>
35480
35481         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
35482         been made.
35483
35484 2003-08-11  Paul Eggert  <eggert@twinsun.com>
35485
35486         * modules/gnu-source, m4/gnu-source.m4:
35487         Remove; we're assuming Autoconf 2.54 or later now.
35488         Suggested by Bruno Haible.
35489         * MODULES.html.sh (func_all_modules): Remove gnu-source.
35490
35491 2003-08-11  Bruno Haible  <bruno@clisp.org>
35492
35493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
35494
35495 2003-08-11  Bruno Haible  <bruno@clisp.org>
35496
35497         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
35498         (vasnprintf): Use it instead of wcslen.
35499
35500 2003-08-11  Bruno Haible  <bruno@clisp.org>
35501
35502         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
35503         value to ensure that _Bool promotes to int. Use #define for _Bool when
35504         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
35505
35506 2003-08-10  Karl Berry  <karl@gnu.org>
35507
35508         * lib/regex.h: update from libc (whitespace fix).
35509
35510 2003-08-09  Paul Eggert  <eggert@twinsun.com>
35511
35512         Merge some files from coreutils.  These changes were
35513         originally made by Jim Meyering.
35514         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
35515         many older Unixes require this.
35516         * lib/alloca.c (alloca): Remove cast to argument of free;
35517         no longer needed in C89.
35518         * lib/alloca_.h, regex.h: Fix white space to match
35519         what GNU indent does.
35520
35521 2003-08-09  Paul Eggert  <eggert@twinsun.com>
35522
35523         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
35524         apparently Emacs's Unicode mode got confused before my 2003-08-05
35525         checkin.
35526
35527 2003-08-08  Paul Eggert  <eggert@twinsun.com>
35528
35529         * m4/extensions.m4: New file.
35530         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
35531         Require gl_USE_SYSTEM_EXTENSIONS.
35532         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
35533         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
35534
35535 2003-08-08  Paul Eggert  <eggert@twinsun.com>
35536
35537         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
35538         * modules/extensions, modules/gnu-source: New files.
35539         * modules/timespec, modules/unlocked-io: Depend on extensions.
35540
35541 2003-08-07  Paul Eggert  <eggert@twinsun.com>
35542
35543         * modules/restrict: New file.
35544         * MODULES.html.sh (func_all_modules): Add restrict.
35545         * modules/regex: Depend on restrict.
35546
35547 2003-08-07  Paul Eggert  <eggert@twinsun.com>
35548
35549         * m4/restrict.m4: New file.
35550         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
35551
35552 2003-08-07  Bruno Haible  <bruno@clisp.org>
35553
35554         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
35555         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
35556
35557 2003-08-07  Bruno Haible  <bruno@clisp.org>
35558
35559         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
35560         makes the module 'getndelim2' compatible with the module 'getline'.
35561
35562 2003-08-05  Paul Eggert  <eggert@twinsun.com>
35563
35564         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
35565         byte with "\201" to avoid glitches when editing that source file
35566         with multi-gnome-terminal.
35567
35568 2003-08-05  Paul Eggert  <eggert@twinsun.com>
35569
35570         * lib/bumpalloc.h: Remove.
35571
35572 2003-08-05  Paul Eggert  <eggert@twinsun.com>
35573
35574         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
35575         * modules/bumpalloc: Remove.
35576
35577 2003-08-04  Paul Eggert  <eggert@twinsun.com>
35578
35579         * lib/getloadavg.c: Change copyright notice and spacing to conform to
35580         GNU coding style.
35581
35582         Merge from coreutils.
35583         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
35584         1. From glibc.
35585         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
35586         from Karl Berry, implemented by Jim Meyering.
35587         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
35588         from Dmitry V. Levin.
35589         Remove anachronistic cast of xrealloc.
35590         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
35591         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
35592         type. Otherwise, it wouldn't compile with at least /bin/cc on
35593         ymp-cray-unicos9.0.2.X.
35594         Combine two mostly-identical uses of alloca into one.
35595         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
35596
35597 2003-08-04  Dave Love  <d.love@dl.ac.uk>
35598
35599         [From Emacs.]
35600
35601         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
35602         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
35603         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
35604         obsolete NLIST_NAME_UNION.
35605         [__GNU__]: Undef BSD and FSCALE.
35606         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
35607
35608 2003-08-03  Paul Eggert  <eggert@twinsun.com>
35609
35610         * lib/stdbool_.h (_Bool): Make it signed char, instead of
35611         an enum type, so that it's guaranteed to promote to int.  See:
35612         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
35613
35614 2003-08-03  Karl Berry  <karl@gnu.org>
35615
35616         * config/depcomp: update from automake.
35617
35618 2003-07-31  Paul Eggert  <eggert@twinsun.com>
35619
35620         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
35621         (strerror): Don't assume that a printable int fits in 14 bytes.
35622
35623 2003-07-31  Bruno Haible  <bruno@clisp.org>
35624
35625         * modules/getpass-gnu: New file.
35626         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
35627
35628 2003-07-31  Bruno Haible  <bruno@clisp.org>
35629
35630         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
35631
35632 2003-07-24  Karl Berry  <karl@gnu.org>
35633
35634         * config/missing: update from automake.
35635
35636 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
35637             Bruno Haible  <bruno@clisp.org>
35638
35639         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
35640         * lib/getline.c (getline, getdelim): Likewise.
35641         Remove _GNU_SOURCE define; now it's defined in config.h through
35642         m4/getline.m4.
35643
35644 2003-07-23  Karl Berry  <karl@gnu.org>
35645
35646         * config/config.sub: update from prep.
35647
35648 2003-07-22  Paul Eggert  <eggert@twinsun.com>
35649
35650         * modules/xalloc (Depends-on): Add exitfail.
35651         * modules/xmemcoll: Likewise.
35652
35653 2003-07-22  Paul Eggert  <eggert@twinsun.com>
35654
35655         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
35656         over-parenthesization in macros.
35657
35658         Sync with coreutils.
35659
35660         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
35661         required by C99.
35662
35663         Use `exit_failure' for xalloc and xmemcoll instead of their own
35664         private exit-failure variables.
35665         * lib/xalloc.h (xalloc_exit_failure): Remove.
35666         * lib/xmalloc.c: Likewise.  Include exitfail.h.
35667         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
35668         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
35669         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
35670         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
35671
35672 2003-07-20  Jim Meyering  <jim@meyering.net>
35673
35674         * modules/closeout (Depends-on): Add exitfail.
35675         Suggestion from Bruno Haible.
35676
35677 2003-07-19  Karl Berry  <karl@gnu.org>
35678
35679         * config/config.sub: update from prep.
35680
35681 2003-07-18  Paul Eggert  <eggert@twinsun.com>
35682
35683         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
35684         Remove.
35685         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
35686         to test that it can stand by itself.  Include "exitfail.h".
35687         Clients should set exit_failure instead.
35688         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
35689
35690 2003-07-18  Bruno Haible  <bruno@clisp.org>
35691
35692         * modules/getndelim2: New file.
35693         * modules/getline: Share files with module getndelim2.
35694         * modules/getnline: Depend on getndelim2 instead of sharing files with
35695         it. Add getnline.c to lib_SOURCES.
35696         * MODULES.html.sh (func_all_modules): Add getndelim2.
35697
35698 2003-07-18  Bruno Haible  <bruno@clisp.org>
35699
35700         * m4/getndelim2.m4: New file.
35701         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
35702         invoke gl_PREREQ_GETNDELIM2.
35703         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
35704         gl_PREREQ_GETNDELIM2.
35705         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
35706         gl_GETNDELIM2.
35707
35708 2003-07-18  Bruno Haible  <bruno@clisp.org>
35709
35710         * lib/getndelim2.h: New file.
35711         * lib/getndelim2.c: Make into a module of its own. Include config.h,
35712         getndelim2.h.
35713         (getndelim2): Make non-static. Change return type to ssize_t.
35714         * lib/getline.h: Change argument names.
35715         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
35716         * lib/getnline.c: Include getndelim2.h.
35717
35718 2003-07-18  Andreas Schwab  <schwab@suse.de>
35719
35720         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
35721
35722 2003-07-17  Karl Berry  <karl@gnu.org>
35723
35724         * config/config.sub: update from prep.
35725
35726 2003-07-17  Bruno Haible  <bruno@clisp.org>
35727
35728         * modules/getnline: New file.
35729         * modules/getline: Add lib/getndelim2.c to source file list.
35730         * MODULES.html.sh (func_all_modules): Add getnline.
35731
35732 2003-07-17  Bruno Haible  <bruno@clisp.org>
35733
35734         * m4/getnline.m4: New file.
35735
35736 2003-07-17  Bruno Haible  <bruno@clisp.org>
35737
35738         * m4/Makefile.am.in: Remove file.
35739         * m4/Makefile.am: Remove file.
35740         * m4/Makefile.in: Remove file.
35741
35742 2003-07-17  Bruno Haible  <bruno@clisp.org>
35743
35744         * lib/getnline.h: New file.
35745         * lib/getnline.c: New file.
35746         * lib/getndelim2.c: New file, extracted from getline.c.
35747         (getndelim2): Renamed from getdelim2, with added nmax argument.
35748         * lib/getline.c: Include getndelim2.c.
35749         (getdelim2): Moved out to getndelim2.c.
35750         (getline, getdelim): Update.
35751
35752 2003-07-17  Bruno Haible  <bruno@clisp.org>
35753
35754         * lib/Makefile.am: Remove file.
35755         * lib/Makefile.in: Remove file.
35756
35757 2003-07-17  Bruno Haible  <bruno@clisp.org>
35758
35759         * configure.in: Remove file.
35760         * Makefile.in: Remove file.
35761
35762 2003-07-17  Bruno Haible  <bruno@clisp.org>
35763
35764         * MODULES.html.sh: Put the </BODY> right before </HTML>.
35765
35766 2003-07-16  Karl Berry  <karl@gnu.org>
35767
35768         * config/srclist-update: was running fixlicense twice, which caused
35769                 texinfo.tex to be nullified for some reason.  Simplify,
35770                 $gplsrc is no longer needed as far as I can see?
35771
35772 2003-07-16  Jim Meyering  <jim@meyering.net>
35773
35774         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
35775
35776 2003-07-15  Paul Eggert  <eggert@twinsun.com>
35777
35778         * config/srclist.txt: Get the following files from gettext-runtime/intl
35779         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
35780         ref-del.sin.  From Bruno Haible.
35781         * config/srclist-update (fixfile): Change grep pattern again, since the
35782         previous fix didn't work (there was another trailing $).  Use
35783         '[$]' to escape the $s.
35784
35785 2003-07-15  Karl Berry  <karl@gnu.org>
35786
35787         * lib/vasnprintf.c: update from gettext.
35788
35789 2003-07-15  Karl Berry  <karl@gnu.org>
35790
35791         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
35792         gets expanded when surrounded by '$'.
35793
35794 2003-07-15  Jim Meyering  <jim@meyering.net>
35795
35796         * modules/save-cwd: Don't depend on error.  From Derek Price.
35797
35798 2003-07-15  Jim Meyering  <jim@meyering.net>
35799
35800         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
35801
35802 2003-07-14  Simon Josefsson  <jas@extundo.com>
35803
35804         * modules/mempcpy: New file.
35805         * MODULES.html.sh (func_all_modules): Add mempcpy.
35806
35807 2003-07-14  Simon Josefsson  <jas@extundo.com>
35808
35809         * m4/mempcpy.m4: New file.
35810
35811 2003-07-14  Simon Josefsson  <jas@extundo.com>
35812
35813         * lib/mempcpy.h: New file.
35814         * lib/mempcpy.c: New file.
35815
35816 2003-07-14  Paul Eggert  <eggert@twinsun.com>
35817
35818         * modules/getdate, modules/posixtm: Depend on mktime.
35819
35820 2003-07-14  Paul Eggert  <eggert@twinsun.com>
35821
35822         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
35823         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
35824         unicodeio.c, unicodeio.h, unlocked-io.h:
35825         Switch from LGPL to GPL.
35826
35827 2003-07-14  Paul Eggert  <eggert@twinsun.com>
35828
35829         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
35830         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
35831         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
35832         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
35833         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
35834         updated automatically by ../config/srclist-update.  This changes
35835         their license from LPGL to GPL.
35836
35837 2003-07-14  Paul Eggert  <eggert@twinsun.com>
35838
35839         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
35840         assumed to refer to the root of the most recent stable gettext version.
35841         * config/srclistvars.sh: Add defaults for eggert.
35842         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
35843         Match "This program" as well as "The program".  This is needed
35844         for gettext.
35845
35846 2003-07-14  Jim Meyering  <jim@meyering.net>
35847
35848         Don't emit diagnostics.  Let callers do that.
35849         * lib/save-cwd.c: Don't include "error.h".
35850         (save_cwd): Don't call error.  Ensure that errno is valid
35851         when returning nonzero.
35852
35853         * lib/save-cwd.h (restore_cwd): Update prototype.
35854         * lib/save-cwd.c (restore_cwd): Remove two parameters.
35855         Simplify.  Don't call error upon failure.  Let callers do that.
35856         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
35857         when auditing is enabled.  But don't bother updating the #if.
35858
35859 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
35860
35861         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
35862         it breaks C++ compilation.
35863         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
35864
35865 2003-07-10  Simon Josefsson  <jas@extundo.com>
35866
35867         * modules/strchrnul (Makefile.am): Add strchrnul.h.
35868
35869 2003-07-10  Jim Meyering  <jim@meyering.net>
35870
35871         * m4/clock_time.m4: Remove trailing blank.
35872         * m4/intmax_t.m4: Likewise.
35873
35874 2003-07-10  Jim Meyering  <jim@meyering.net>
35875
35876         * lib/vasnprintf.c: Remove trailing blanks.
35877         Make cpp indentation consistent.
35878
35879 2003-07-09  Paul Eggert  <eggert@twinsun.com>
35880
35881         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
35882         posixver.c, strftime.c, strnlen.c, strverscmp.c:
35883         Switch from LGPL to GPL.
35884
35885 2003-07-09  Paul Eggert  <eggert@twinsun.com>
35886
35887         * config/srclist.txt: Sort sublists.  Add
35888         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
35889         that differ from gnulib for one reason or another; we'd like this list
35890         to be smaller but for now let's document what we have.
35891
35892 2003-07-08  Paul Eggert  <eggert@twinsun.com>
35893
35894         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
35895         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
35896         and sweeter "eval x=$x".
35897         * config/srclist.txt: Get lib/argp* from glibc.
35898
35899 2003-07-07  Paul Eggert  <eggert@twinsun.com>
35900
35901         * lib/mktime.c: Fix some boundary cases and remove need for floating
35902         point.
35903
35904         Issue a compile-time diagnostic if time_t is floating point, or if
35905         two's complement arithmetic is not in effect, or if arithmetic
35906         right shift does not propagate the sign.  These assumptions were
35907         all in the original code but they weren't checked.
35908
35909         (TIME_T_MIDPOINT, verify): New macros.
35910         (__isleap): Remove; it has integer overflow problems.
35911         (leapyear): New function, without those problems.
35912         (ydhms_tm_diff): Remove; splitting into two parts.
35913         (ydhms_diff): New function, containing the arithmetic part of
35914         the old ydhms_tm_diff function.  Issue a compile-time
35915         diagnostic if we are not using C99 integer division.
35916         Avoid casts when possible.
35917         (guess_time_tm): New function, containing the checking part of
35918         the old ydhms_tm_diff function.  Return the new value, rather than
35919         the difference between it and the old.  Accept a new argument T
35920         so that *T specifies the old value.  Check for overflow in the result.
35921
35922         (__mktime_internal): Use a time_t offset, not a long int offset.
35923         This undoes the 2003-06-04 change, which is no longer needed now
35924         that we have better overflow checking.
35925         (localtime_offset): Likewise.
35926
35927         (__mktime_internal): Avoid harmful overflow on hosts where time_t
35928         and long are 64-bit but int is only 32-bit.
35929         (ydhms_diff): Use long int to store year1 and yday1.
35930         Issue a compile-time diagnostic if long int is not wide enough.
35931
35932         (__mktime_internal): Use long int to store adjusted year and yday.
35933         Use plain C rather than preprocessor commands, if that doesn't
35934         affect efficiency.
35935         Check for overflow (and try to repair) after each probe
35936         rather than checking only at the very end.  This avoids some bugs
35937         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
35938         does not equal GMT offset at maximum time).
35939         Use integer to check for overflow rather than floating point; this
35940         is more portable to non-IEEE hosts, and is a tad faster.
35941         When we detect that we are oscillating between two values,
35942         don't check whether tm_isdst has the requested value, since
35943         we already know the answer.  When tm_isdst has the wrong value,
35944         use a different heuristic to find the right one, based on the
35945         extreme values actually observed in practice in tz2003a,
35946         rather than the (overly optimistic) "previous 3 calendar quarters".
35947
35948         (not_equal_tm, print_tm, check_result): Use "const T" rather than
35949         "T const" to accommodate glibc style.
35950         (check_result): Use less-confusing report format.  "long" -> "long int.
35951         (main): Likewise.
35952         Don't loop if the iteration overflows time_t.
35953         Allow a negative step in the iteration.
35954
35955 2003-07-06  Karl Berry  <karl@gnu.org>
35956
35957         * config/depcomp: update from automake.
35958         * config/config.sub: update from prep.
35959
35960 2003-07-03  Karl Berry  <karl@gnu.org>
35961
35962         * config/config.guess: update from prep.
35963
35964 2003-07-01  Paul Eggert  <eggert@twinsun.com>
35965
35966         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
35967         xreadlink.c now includes it unconditionally.
35968
35969 2003-07-01  Paul Eggert  <eggert@twinsun.com>
35970
35971         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
35972         having it depend on HAVE_SYS_TYPES_H.
35973
35974 2003-07-01  Bruno Haible  <bruno@clisp.org>
35975
35976         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
35977         <sys/types.h> should be sufficient.
35978         Reported by Paul Eggert.
35979
35980 2003-06-26  Karl Berry  <karl@gnu.org>
35981
35982         * config/depcomp: update from automake.
35983
35984 2003-06-26  Bruno Haible  <bruno@clisp.org>
35985
35986         * modules/human: Depend on module stdbool.
35987
35988 2003-06-25  Bruno Haible  <bruno@clisp.org>
35989
35990         * modules/readlink: New file.
35991         * modules/xreadlink: Depend on it.
35992         * MODULES.html.sh (func_all_modules): Add readlink.
35993
35994 2003-06-25  Bruno Haible  <bruno@clisp.org>
35995
35996         * m4/readlink.m4: New file.
35997
35998 2003-06-25  Bruno Haible  <bruno@clisp.org>
35999
36000         * lib/readlink.c: New file.
36001
36002 2003-06-22  Karl Berry  <karl@gnu.org>
36003
36004         * config/srclist.txt: update mkinstalldirs from automake.
36005         * config/mkinstalldirs: update.
36006
36007 2003-06-22  Bruno Haible  <bruno@clisp.org>
36008
36009         Portability to mingw32.
36010         * m4/ssize_t.m4: New file, from GNU gettext.
36011         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
36012         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
36013
36014 2003-06-22  Bruno Haible  <bruno@clisp.org>
36015
36016         * modules/safe-read: Add m4/ssize_t.m4.
36017         * modules/xreadlink: Add m4/ssize_t.m4.
36018
36019 2003-06-20  Bruno Haible  <bruno@clisp.org>
36020
36021         Assume C89, so PARAMS isn't needed.
36022         * lib/unicodeio.h (PARAMS): Remove.
36023         * lib/unicodeio.c: Don't use PARAMS.
36024
36025 2003-06-18  Karl Berry  <karl@gnu.org>
36026
36027         * config/config.{guess,sub}: update from prep.
36028
36029 2003-06-18  Jim Meyering  <jim@meyering.net>
36030
36031         Merge changes from coreutils.
36032         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
36033         Remove explicit declarations of xmalloc and realloc.
36034         Include xalloc.h.
36035         (read_utmp): Remove anachronistic cast of xmalloc.
36036
36037 2003-06-17  Paul Eggert  <eggert@twinsun.com>
36038
36039         Assume C89, so PARAMS isn't needed.
36040         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
36041         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
36042         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
36043         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
36044         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
36045         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
36046         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
36047         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
36048         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
36049         lib/xstrtod.h, lib/xstrtol.h: Likewise.
36050         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
36051         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
36052         no longer needed. Anyway, config.h should always be included before any
36053         other file.
36054
36055 2003-06-11  Simon Josefsson  <jas@extundo.com>
36056
36057         * modules/sysexits: New file.
36058         * MODULES.html.sh (func_all_modules): Add sysexits.
36059
36060 2003-06-11  Simon Josefsson  <jas@extundo.com>
36061
36062         * lib/sysexit_.h: New file.
36063
36064 2003-06-11  Derek Price  <derek@ximbiot.com>
36065
36066         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
36067         necessary.
36068
36069 2003-06-11  Bruno Haible  <bruno@clisp.org>
36070
36071         * m4/sysexits.m4: New file.
36072
36073 2003-06-10  Simon Josefsson  <jas@extundo.com>
36074
36075         * lib/argp.h: New file, from glibc.
36076         * lib/argp-ba.c: New file, from glibc.
36077         * lib/argp-eexst.c: New file, from glibc.
36078         * lib/argp-fmtstream.c: New file, from glibc.
36079         * lib/argp-fmtstream.h: New file, from glibc.
36080         * lib/argp-fs-xinl.c: New file, from glibc.
36081         * lib/argp-help.c: New file, from glibc.
36082         * lib/argp-namefrob.h: New file, from glibc.
36083         * lib/argp-parse.c: New file, from glibc.
36084         * lib/argp-pv.c: New file, from glibc.
36085         * lib/argp-pvh.c: New file, from glibc.
36086         * lib/argp-xinl.c: New file, from glibc.
36087
36088 2003-06-10  Simon Josefsson  <jas@extundo.com>
36089
36090         * modules/strchrnul: New file.
36091
36092 2003-06-10  Simon Josefsson  <jas@extundo.com>
36093
36094         * modules/argp: New file.
36095
36096 2003-06-10  Simon Josefsson  <jas@extundo.com>
36097
36098         * m4/strchrnul.m4: New file.
36099
36100 2003-06-10  Simon Josefsson  <jas@extundo.com>
36101
36102         * lib/strchrnul.h: New file.
36103         * lib/strchrnul.c: New file.
36104
36105 2003-06-10  Bruno Haible  <bruno@clisp.org>
36106
36107         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
36108
36109 2003-06-07  Karl Berry  <karl@gnu.org>
36110
36111         * config/config.{guess,sub}: update from prep.
36112
36113 2003-06-07  Jim Meyering  <jim@meyering.net>
36114
36115         * modules/strtod: Use $(...) notation, not @...@ for
36116         AC_REPLACE'd variables.
36117         * modules/localcharset: Likewise.
36118
36119 2003-06-07  Jim Meyering  <jim@meyering.net>
36120
36121         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
36122         in place of my name in the copyright comment.
36123         Remove definition and uses of __P.
36124
36125         From coreutils.
36126         * lib/stat.c: Don't declare xmalloc explicitly.
36127         Instead, include "xalloc.h".
36128         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
36129         xrealloc, and xcalloc return values.
36130         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
36131         Improve comment.
36132         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
36133
36134 2003-06-07  Bruno Haible  <bruno@clisp.org>
36135
36136         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
36137         avoid AC_CONFIG_LINKS.
36138         * modules/fnmatch (Makefile.am): Use explicit creation rule for
36139         fnmatch.h, to avoid AC_CONFIG_LINKS.
36140         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
36141
36142 2003-06-07  Bruno Haible  <bruno@clisp.org>
36143
36144         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
36145         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
36146         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
36147         directory.
36148         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
36149         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
36150         directory.
36151
36152 2003-06-06  Jim Meyering  <jim@meyering.net>
36153
36154         Merge from coreutils.
36155         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
36156         Consolidate declarations and initializations of *_base* locals.
36157
36158         Merge from coreutils.
36159         This avoids a core dump on systems without GNU putenv,
36160         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
36161         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
36162         (unsetenv): New static function, from GNU libc.
36163         (rpl_putenv): Use it.
36164
36165         * lib/modechange.c: Remove trailing blanks.
36166
36167         Merge from coreutils.
36168         * lib/fsusage.c: Remove declaration of statfs.
36169         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
36170
36171         * lib/posixtm.c: Include <stdbool.h> unconditionally.
36172
36173 2003-06-06  Jim Meyering  <jim@meyering.net>
36174
36175         * lib/stdbool_.h: Renamed from stdbool.h.in.
36176
36177 2003-06-06  Jim Meyering  <jim@meyering.net>
36178             Bruno Haible  <bruno@clisp.org>
36179
36180         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
36181         Adjust Makefile.am snippet not to redirect directly to target.
36182         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
36183
36184 2003-06-05  Paul Eggert  <eggert@twinsun.com>
36185
36186         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
36187         mismatch, look in future quarters as well as past.  This fixes a
36188         bug when processing fall-backwards gaps immediately after a long
36189         period of daylight-saving time.
36190
36191         * lib/mktime.c: Assume freestanding C89 or better.
36192         (HAVE_LIMITS_H): Remove.  Assume it's 1.
36193         (__P): Remove; not used.
36194         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
36195         (mktime, not_equal_tm, print_tm, check_result,
36196         main): Use prototypes.  Use const * where appropriate.
36197         (main): Fix typo in testing code that uncovered by above changes.
36198         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
36199
36200 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36201
36202         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
36203         locale.h, localeconv.  This merges changes from coreutils.
36204
36205         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
36206         It can be removed after the next Autoconf is released.
36207         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
36208         needed.
36209
36210 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36211
36212         * lib/mktime.c: Fix Debian bug 177940
36213         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
36214         (localtime_offset): Now long int, not time_t, because we want it
36215         to be guaranteed to be signed.  All uses changed.
36216         (__mktime_internal): If overflow would occur when adding offset,
36217         don't add it.
36218
36219         Merge 'human' changes from coreutils.  Rewrite to support
36220         locale-specific notations like thousands separators.
36221         * lib/human.c: Simplify authorship notice.
36222         Include human.h immediately after config.h.
36223         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
36224         <limits.h>: Do not include, since human.h does.
36225         (SIZE_MAX, UINTMAX_MAX): New macros.
36226         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
36227         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
36228         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
36229         (power_letter): Renamed from suffixes.
36230         (generate_suffix_backwards): Remove.
36231         (adjust_value): Now takes int style (because of human.h changes)
36232         and long double value (for greater precision on some platforms).
36233         (group_number): New function.
36234         (human_readable): Use it.  Use integer options, not enum.
36235         Put the options before the sizes in the arg list.
36236         Support all the new options.
36237         The old human_readable function has been removed;
36238         use inttostr.h instead.
36239         (human_readable, default_block_size, humblock):
36240         Use uintmax_t, not int, for block sizes.
36241         (human_readable_inexact, block_size_types): Remove.
36242         (block_size_opts): New constant.
36243         (human_options): Renamed from human_block_size, with new signature
36244         that allows block sizes up to UINTMAX_MAX.  All callers changed.
36245         * lib/human.h: Add copyright and authorship notice.
36246         Include <limits.h> and <stdbool.h> unconditionally.
36247         (PARAMS): Remove.  All uses removed.
36248         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
36249         (enum human_inexact_style): Remove tag; now a nameless enum.
36250         (human_floor, human_ceiling, human_round_to_even): Now have
36251         values 2, 0, 1 rather than -1, 1, 0.
36252         (human_group_digits, human_suppress_point_zero, human_autoscale,
36253         human_base_1024, human_SI, human_B): New constants.
36254         (human_readable_inexact, human_block_size): Remove.
36255         (human_readable): Size args are now uintmax_t, not int.
36256         (human_options): New decl.
36257
36258         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
36259         unnecessary now that we assume C89 or better.  This change
36260         imported from coreutils.
36261
36262         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
36263         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
36264         in the 2003-05-30 sync from glibc.
36265
36266         .h files should stand alone, but we shouldn't include <sys/types.h>
36267         if we can get away with just <stddef.h>.
36268
36269         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
36270         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
36271         rather than <sys/types.h>, as we merely need size_t.
36272         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
36273         to get size_t.
36274         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
36275         Include <stdio.h>, to get FILE.
36276         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
36277         memcasecmp.h has included <stddef.h> and all we need is size_t.
36278         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
36279         our interface, instead of including <sys/types.h>
36280
36281 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36282
36283         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
36284         now, as glibc mktime is buggy on non-glibc systems.
36285
36286 2003-06-03  Karl Berry  <karl@gnu.org>
36287
36288         * config/config.sub: update from prep.
36289
36290 2003-06-02  Paul Eggert  <eggert@twinsun.com>
36291
36292         [from coreutils]
36293         Fix some minor time-related bugs with POSIX time arguments.
36294         Some valid time stamps were being rejected (notably -1, and
36295         time stamps before 1900 on 64-bit hosts).  And some invalid
36296         time stamps were being accepted, e.g. September 31.
36297
36298         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
36299         that we can return (time_t) -1 successfully.
36300         * lib/posixtm.c: Likewise.
36301         [HAVE_STDBOOL_H]: Include <stdbool.h>.
36302         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
36303         (t): Remove static var.
36304         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
36305         of static var.  All uses changed.
36306         (year): Do not reject years before 1900; they can occur with
36307         64-bit time_t.
36308         (posix_time_parse): Do not check for out-of-range components;
36309         that is now the caller's responsibility, since our checks were
36310         only approximations.
36311         (posixtime): Use mktime to check for out-of-range components,
36312         since it knows them exactly.
36313         If mktime returns (time_t) -1, check whether an error actually occurred
36314         by invoking localtime on -1.
36315         (main) [TEST_POSIXTIME]: Check for input data errors, and report
36316         posixtime failures better.
36317         Improve the test data (in comments only).
36318
36319 2003-06-02  Karl Berry  <karl@gnu.org>
36320
36321         * config/mkinstalldirs (version): new variable.
36322         (--version): new option.
36323         (usage): improve message.
36324
36325 2003-05-30  Karl Berry  <karl@gnu.org>
36326
36327         * lib/mktime.c: update from libc.
36328
36329 2003-05-30  Bruno Haible  <bruno@clisp.org>
36330
36331         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
36332         * config/config.rpath: Upgrade to gettext-0.12.1.
36333
36334 2003-05-30  Bruno Haible  <bruno@clisp.org>
36335
36336         * m4/gettext.m4: Upgrade to gettext-0.12.1.
36337         * m4/nls.m4: New file, from gettext-0.12.1.
36338         * m4/po.m4: New file, from gettext-0.12.1.
36339         * m4/progtest.m4: Upgrade to gettext-0.12.1.
36340
36341 2003-05-30  Bruno Haible  <bruno@clisp.org>
36342
36343         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
36344         * lib/localcharset.h: Likewise.
36345         * lib/localcharset.c: Likewise.
36346
36347 2003-05-29  Karl Berry  <karl@gnu.org>
36348
36349         * config/config.rpath: update from gettext.
36350
36351 2003-05-28  Paul Eggert  <eggert@twinsun.com>
36352
36353         Assume the headers required for C89 freestanding compilers.
36354         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
36355         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
36356         * m4/human.m4 (gl_HUMAN): Likewise.
36357         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
36358         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
36359         * m4/userspec.m4 (gl_USERSPEC): Likewise.
36360         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
36361         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36362         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
36363
36364 2003-05-28  Paul Eggert  <eggert@twinsun.com>
36365
36366         Assume the headers required for C89 freestanding compilers.
36367         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
36368         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
36369         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
36370         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
36371         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
36372         define, since <limits.h> is guaranteed to do that.
36373         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
36374         * lib/exclude.c: Include <stdbool.h> unconditionally.
36375         * lib/tempname.c: Include <stddef.h> unconditionally.
36376         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
36377         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
36378         <stddef.h> does that.
36379         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
36380         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
36381         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
36382         needed.
36383         * lib/xstrtol.c: Likewise.
36384         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
36385         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
36386
36387         * lib/addext.c (addext): Use assignment rather than cast, to avoid
36388         warnings on some platforms.
36389
36390         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
36391         arbitrarily.
36392
36393 2003-05-26  Jim Meyering  <jim@meyering.net>
36394
36395         Merge in a change from coreutils:
36396         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
36397         that is guaranteed to be `no'.  Use `no_such_member' to indicate
36398         that condition, rather than `-1' which is slightly misleading.
36399         Change the name of the cache variable to have the gl_ prefix.
36400         Prompted by a patch from Richard Dawe for DJGPP.
36401
36402 2003-05-24  Karl Berry  <karl@gnu.org>
36403
36404         * config/config.guess: update from prep.
36405
36406 2003-05-22  Karl Berry  <karl@gnu.org>
36407
36408         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
36409
36410 2003-05-20  Karl Berry  <karl@gnu.org>
36411
36412         * config/config.guess: update from prep.
36413
36414 2003-05-18  Karl Berry  <karl@gnu.org>
36415
36416         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
36417         might actually be set by the user.
36418
36419         * config/depcomp, install-sh, mdate-sh: update from automake.
36420
36421 2003-05-17  Bruno Haible  <bruno@clisp.org>
36422
36423         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
36424         invalid expansion for AC_EGREP_CPP.
36425         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
36426         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
36427         Suggested by Akim Demaille <akim@epita.fr> in
36428         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
36429
36430 2003-05-12  Jim Meyering  <jim@meyering.net>
36431
36432         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
36433         the space-padded-by-default conversion specifiers, %e, %k, %l.
36434
36435 2003-05-12  Bruno Haible  <bruno@clisp.org>
36436
36437         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
36438         the string is longer than 4 KB.
36439
36440 2003-05-11  Karl Berry  <karl@gnu.org>
36441
36442         * config/config.{guess,sub}: update from prep.
36443
36444 2003-05-09  Bruno Haible  <bruno@clisp.org>
36445
36446         * modules/error: Add m4/strerror_r.m4 to file list.
36447
36448 2003-05-03  Bruno Haible  <bruno@clisp.org>
36449
36450         Upgrade to Unicode-4.0.
36451         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
36452         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
36453         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
36454         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
36455         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
36456         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
36457         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
36458         Change width of U+E0100..U+E01EF from 1 to 0.
36459
36460 2003-04-25  Jim Meyering  <jim@meyering.net>
36461
36462         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
36463         of type size_t, not int.
36464
36465 2003-04-25  Bruno Haible  <bruno@clisp.org>
36466
36467         * lib/copy-file.c: Include <stddef.h>, for size_t.
36468
36469 2003-04-21  Paul Eggert  <eggert@twinsun.com>
36470
36471         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
36472         code which expansion is under static control.  Patch imported from
36473         Akim Demaille's patch to Bison; see
36474         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
36475
36476 2003-04-14  Bruno Haible  <bruno@clisp.org>
36477
36478         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
36479
36480 2003-04-11  Jim Meyering  <jim@meyering.net>
36481
36482         Merge changes from Coreutils.
36483
36484         2003-03-22  Jim Meyering  <jim@meyering.net>
36485
36486         * lib/strftime.c (widen): Cast alloca return value to proper type.
36487
36488         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
36489
36490         From GNU libc.
36491         * lib/strftime.c (my_strftime): Handle very large width
36492         specifications for numeric values correctly.  Improve checks for
36493         overflow.
36494
36495         2003-01-19  Jim Meyering  <jim@meyering.net>
36496
36497         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
36498         definitions.
36499         (nl_get_alt_digit) [! defined my_strftime]: Define.
36500         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
36501         _nl_get_alt_digit and _nl_get_walt_digit.
36502
36503         * lib/strftime.c (my_strftime): Merge in locale-related changes from
36504         libc. These changes have no effect outside of _LIBC.
36505
36506 2003-04-10  Bruno Haible  <bruno@clisp.org>
36507
36508         * modules/findprog: New file.
36509         * MODULES.html.sh (func_all_modules): Add it.
36510
36511 2003-04-10  Bruno Haible  <bruno@clisp.org>
36512
36513         * m4/findprog.m4: New file.
36514         * m4/eaccess.m4: New file.
36515
36516 2003-04-10  Bruno Haible  <bruno@clisp.org>
36517
36518         * lib/findprog.h: New file, from GNU gettext.
36519         * lib/findprog.c: New file, from GNU gettext.
36520
36521 2003-04-05  Jim Meyering  <jim@meyering.net>
36522
36523         Merge changes from Coreutils.
36524
36525         * lib/exclude.h (PARAMS): Remove definition and uses.
36526         * lib/exclude.c: Remove uses of `PARAMS'.
36527
36528         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
36529         Add test-cases for DOS filenames. Declare program_name.
36530         (main): Set up program_name.  Patch by Rich Dawe.
36531
36532         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
36533         error from mntctl.
36534         Use mntctl's return value to drive the entry-processing loop, since
36535         we can't rely on the value of the vmt_length member in the last
36536         entry.  On some systems doing so could result in exhausting
36537         virtual memory.  Based in part on a patch from Mike Jetzer.
36538
36539 2003-04-04  Bruno Haible  <bruno@clisp.org>
36540
36541         * modules/linebreak: New file.
36542         * MODULES.html.sh (func_all_modules): Add it.
36543
36544 2003-04-04  Bruno Haible  <bruno@clisp.org>
36545
36546         * m4/linebreak.m4: New file.
36547
36548 2003-04-04  Bruno Haible  <bruno@clisp.org>
36549
36550         * lib/linebreak.h: New file, from GNU gettext.
36551         * lib/linebreak.c: New file, from GNU gettext with slight
36552         modifications.
36553         * lib/lbrkprop.h: New file, from GNU gettext.
36554
36555 2003-04-03  Bruno Haible  <bruno@clisp.org>
36556
36557         * modules/utf8-ucs4: New file.
36558         * modules/utf16-ucs4: New file.
36559         * modules/ucs4-utf8: New file.
36560         * modules/ucs4-utf16: New file.
36561         * MODULES.html.sh (func_all_modules): Add them.
36562
36563 2003-04-03  Bruno Haible  <bruno@clisp.org>
36564
36565         * m4/utf-ucs4.m4: New file.
36566         * m4/ucs4-utf.m4: New file.
36567
36568 2003-04-03  Bruno Haible  <bruno@clisp.org>
36569
36570         * lib/utf8-ucs4.h: New file, from GNU gettext.
36571         * lib/utf16-ucs4.h: New file, from GNU gettext.
36572         * lib/ucs4-utf8.h: New file, from GNU gettext.
36573         * lib/ucs4-utf16.h: New file, from GNU gettext.
36574
36575 2003-04-02  Bruno Haible  <bruno@clisp.org>
36576
36577         * modules/binary-io: New file.
36578         * MODULES.html.sh (func_all_modules): Add it.
36579
36580 2003-04-02  Bruno Haible  <bruno@clisp.org>
36581
36582         * lib/binary-io.h: New file, from GNU gettext.
36583
36584 2003-04-01  Bruno Haible  <bruno@clisp.org>
36585
36586         * modules/pathname: New file.
36587         * MODULES.html.sh (func_all_modules): Add it.
36588
36589 2003-04-01  Bruno Haible  <bruno@clisp.org>
36590
36591         * lib/pathname.h: New file, from GNU gettext.
36592         * lib/concatpath.c: New file, from GNU gettext.
36593
36594 2003-03-30  Bruno Haible  <bruno@clisp.org>
36595
36596         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
36597
36598 2003-03-30  Bruno Haible  <bruno@clisp.org>
36599
36600         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
36601         function chown() doesn't exist.
36602
36603 2003-03-28  Bruno Haible  <bruno@clisp.org>
36604
36605         * modules/copy-file: New file.
36606         * MODULES.html.sh (func_all_modules): Add it.
36607
36608 2003-03-28  Bruno Haible  <bruno@clisp.org>
36609
36610         * m4/copy-file.m4: New file.
36611
36612 2003-03-28  Bruno Haible  <bruno@clisp.org>
36613
36614         * lib/copy-file.h: New file, from GNU gettext.
36615         * lib/copy-file.c: New file, from GNU gettext.
36616
36617 2003-03-18  Jim Meyering  <jim@meyering.net>
36618
36619         * lib/quote.c (quote_n): Fix typo in comment.
36620
36621 2003-03-18  Bruno Haible  <bruno@clisp.org>
36622
36623         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
36624         checking.
36625         * m4/onceonly_2_57.m4: Likewise.
36626
36627 2003-03-17  Bruno Haible  <bruno@clisp.org>
36628
36629         * m4/onceonly.m4: Require autoconf 2.54 or newer.
36630         (m4_quote): Remove macro.
36631         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
36632
36633 2003-03-14  Jim Meyering  <jim@meyering.net>
36634
36635         Merge changes from Coreutils.
36636         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
36637         to be const, in order to avoid warnings.
36638         (obstack_room): Likewise.
36639         (obstack_empty_p): Likewise.
36640
36641 2003-03-14  Bruno Haible  <bruno@clisp.org>
36642
36643         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
36644         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
36645
36646 2003-03-13  Paul Eggert  <eggert@twinsun.com>
36647
36648         Merge changes from Bison.
36649         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
36650         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
36651         when compiling Bison 1.875's `bitset bset = obstack_alloc
36652         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
36653         * lib/hash.c: Include <stdbool.h> unconditionally.
36654
36655 2003-03-13  Paul Eggert  <eggert@twinsun.com>
36656
36657         * m4/onceonly.m4 (m4_quote): New macro.
36658         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
36659         Quote AC_FOREACH variable-expansions properly.
36660
36661 2003-03-13  Paul Eggert  <eggert@twinsun.com>
36662
36663         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
36664
36665 2003-03-09  Paul Eggert  <eggert@twinsun.com>
36666
36667         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
36668         Reported by Bruce Becker; see:
36669         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
36670
36671 2003-03-03  Paul Eggert  <eggert@twinsun.com>
36672             Bruno Haible  <bruno@clisp.org>
36673
36674         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
36675         Reported by John Hughes, see
36676         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
36677
36678 2003-02-20  Bruno Haible  <bruno@clisp.org>
36679
36680         * MODULES.html.sh (func_all_modules): Add poll.
36681
36682 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
36683
36684         * modules/poll: New file.
36685
36686 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
36687
36688         * lib/poll_.h: New file.
36689         * lib/poll.c: New file.
36690
36691 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
36692
36693         * m4/poll.m4: New file.
36694
36695 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
36696
36697         * modules/mathl: New file.
36698
36699 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
36700
36701         * lib/mathl.h: New file.
36702         * lib/acosl.c: New file.
36703         * lib/asinl.c: New file.
36704         * lib/atanl.c: New file.
36705         * lib/ceill.c: New file.
36706         * lib/cosl.c: New file.
36707         * lib/expl.c: New file.
36708         * lib/floorl.c: New file.
36709         * lib/frexpl.c: New file.
36710         * lib/ldexpl.c: New file.
36711         * lib/logl.c: New file.
36712         * lib/sincosl.c: New file.
36713         * lib/sinl.c: New file.
36714         * lib/sqrtl.c: New file.
36715         * lib/tanl.c: New file.
36716         * lib/trigl.c: New file.
36717         * lib/trigl.h: New file.
36718
36719 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
36720
36721         * m4/mathl.m4: New file.
36722
36723 2003-02-18  Bruno Haible  <bruno@clisp.org>
36724
36725         * MODULES.html.sh (func_all_modules): Add mathl.
36726
36727 2003-02-17  Bruno Haible  <bruno@clisp.org>
36728
36729         * modules/mkdtemp: New module.
36730         * MODULES.html.sh (func_all_modules): Add it.
36731
36732 2003-02-17  Bruno Haible  <bruno@clisp.org>
36733
36734         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
36735
36736 2003-02-17  Bruno Haible  <bruno@clisp.org>
36737
36738         * lib/mkdtemp.h: New file, from GNU gettext.
36739         * lib/mkdtemp.c: New file, from GNU gettext.
36740
36741 2003-02-02  Jim Meyering  <jim@meyering.net>
36742
36743         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
36744         e.g. glibc-2.2.93.
36745
36746 2003-01-31  Bruno Haible  <bruno@clisp.org>
36747
36748         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
36749         'rpl_rename'.
36750         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
36751         'rpl_strnlen'.
36752         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
36753         'rpl_strtod'.
36754         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
36755         'rpl_utime'.
36756
36757 2003-01-31  Bruno Haible  <bruno@clisp.org>
36758
36759         * lib/rename.c: #undef rename before defining rpl_rename.
36760         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
36761
36762 2003-01-30  Bruno Haible  <bruno@clisp.org>
36763
36764         * modules/vasnprintf, modules/vasprintf: New modules.
36765         * MODULES.html.sh (func_all_modules): Add them.
36766
36767 2003-01-30  Bruno Haible  <bruno@clisp.org>
36768
36769         * m4/signed.m4: New file, from GNU gettext.
36770         * m4/longdouble.m4: New file, from GNU gettext.
36771         * m4/wchar_t.m4: New file, from GNU gettext.
36772         * m4/wint_t.m4: New file, from GNU gettext.
36773         * m4/vasnprintf.m4: New file.
36774         * m4/vasprintf.m4: New file.
36775
36776 2003-01-30  Bruno Haible  <bruno@clisp.org>
36777
36778         * lib/printf-args.h: New file, from GNU gettext.
36779         * lib/printf-args.c: New file, from GNU gettext.
36780         * lib/printf-parse.h: New file, from GNU gettext.
36781         * lib/printf-parse.c: New file, from GNU gettext.
36782         * lib/vasnprintf.h: New file, from GNU gettext.
36783         * lib/vasnprintf.c: New file, from GNU gettext.
36784         * lib/asnprintf.c: New file, from GNU gettext.
36785         * lib/vasprintf.h: New file, from GNU gettext with modifications.
36786         * lib/vasprintf.c: New file, from GNU gettext.
36787         * lib/asprintf.c: New file, from GNU gettext.
36788
36789 2003-01-29  Bruno Haible  <bruno@clisp.org>
36790
36791         * modules/stpncpy: New module.
36792         * MODULES.html.sh (func_all_modules): Add it.
36793
36794 2003-01-29  Bruno Haible  <bruno@clisp.org>
36795
36796         * m4/stpncpy.m4: New file.
36797
36798 2003-01-29  Bruno Haible  <bruno@clisp.org>
36799
36800         * lib/stpncpy.h: New file, from GNU gettext with modifications.
36801         * lib/stpncpy.c: New file, from GNU gettext with modifications.
36802
36803 2003-01-28  Bruno Haible  <bruno@clisp.org>
36804
36805         * modules/c-ctype: New module.
36806         * MODULES.html.sh (func_all_modules): Add it.
36807
36808 2003-01-28  Bruno Haible  <bruno@clisp.org>
36809
36810         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
36811         Paul Eggert.
36812         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
36813         Paul Eggert.
36814
36815 2003-01-27  Bruno Haible  <bruno@clisp.org>
36816
36817         * modules/xsetenv: New module.
36818         * MODULES.html.sh (func_all_modules): Add it.
36819
36820 2003-01-27  Bruno Haible  <bruno@clisp.org>
36821
36822         * lib/xsetenv.h: New file, from GNU gettext.
36823         * lib/xsetenv.c: New file, from GNU gettext.
36824
36825 2003-01-23  Jim Meyering  <jim@meyering.net>
36826
36827         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
36828         from working on systems without dirfd (at least Irix and OSF1/Tru64).
36829
36830 2003-01-23  Bruno Haible  <bruno@clisp.org>
36831
36832         * modules/minmax: New module.
36833         * MODULES.html.sh (func_all_modules): Add it.
36834
36835 2003-01-23  Bruno Haible  <bruno@clisp.org>
36836
36837         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
36838         Eggert.
36839
36840 2003-01-22  Bruno Haible  <bruno@clisp.org>
36841
36842         * modules/exit: New module.
36843         * MODULES.html.sh (func_all_modules): Add it.
36844
36845 2003-01-22  Bruno Haible  <bruno@clisp.org>
36846
36847         * lib/exit.h: New file, from GNU gettext.
36848
36849 2003-01-19  Bruno Haible  <bruno@clisp.org>
36850
36851         * gnulib-tool: Recognize option --extract-maintainer.
36852         (func_get_maintainer): New function.
36853         * modules/*: Add Maintainer entry.
36854
36855 2003-01-16  Jim Meyering  <jim@meyering.net>
36856
36857         * m4/regex.m4: The `regex' struct is both input and output.
36858         Initialize it before each use.  Patch by Tim Waugh.
36859
36860 2003-01-16  Bruno Haible  <bruno@clisp.org>
36861
36862         * MODULES.html.sh: Add a table of contents. Add the module name as
36863         leftmost column. Add hyperlinks.
36864
36865 2003-01-15  Bruno Haible  <bruno@clisp.org>
36866
36867         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
36868
36869 2003-01-15  Bruno Haible  <bruno@clisp.org>
36870
36871         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
36872         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
36873         suffix.
36874
36875 2003-01-15  Bruno Haible  <bruno@clisp.org>
36876
36877         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
36878
36879 2003-01-15  Bruno Haible  <bruno@clisp.org>
36880
36881         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
36882         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
36883
36884 2003-01-14  Jim Meyering  <jim@meyering.net>
36885
36886         * lib/same.c (same_name): Tweak a comment.
36887
36888 2003-01-14  Bruno Haible  <bruno@clisp.org>
36889
36890         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
36891         when a string comparison is sufficient.
36892
36893 2003-01-14  Bruno Haible  <bruno@clisp.org>
36894
36895         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
36896         'unsigned int'.
36897
36898 2003-01-14  Bruno Haible  <bruno@clisp.org>
36899
36900         * lib/hash-pjw.c: Add comment about low quality of this function.
36901
36902 2003-01-13  Bruno Haible  <bruno@clisp.org>
36903
36904         * modules/stpcpy: Distribute lib/stpcpy.h.
36905         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
36906
36907 2003-01-13  Bruno Haible  <bruno@clisp.org>
36908
36909         * modules/*: Add a description.
36910         * modules/strpbrk: Fix Makefile.am snippet.
36911         * modules/strtoimax: Fix dependencies.
36912         * modules/strtoumax: Likewise.
36913
36914 2003-01-13  Bruno Haible  <bruno@clisp.org>
36915
36916         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
36917         * modules/alloca (Makefile.am): All object files depend on alloca.h.
36918         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
36919
36920 2003-01-13  Bruno Haible  <bruno@clisp.org>
36921
36922         * gnulib-tool (func_create_testdir): Store config/* files in the main
36923         directory.
36924         * config.rpath: Move to ...
36925         * config/config.rpath: ... here.
36926         * modules/gettext: Contains config/config.rpath, not config.rpath.
36927         * modules/iconv: Likewise.
36928
36929 2003-01-12  Paul Eggert  <eggert@twinsun.com>
36930
36931         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
36932         to avoid collisions with libcurses and libreadline.
36933
36934         * m4/getstr.m4: Remove.
36935         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
36936
36937 2003-01-12  Paul Eggert  <eggert@twinsun.com>
36938
36939         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
36940         to avoid collisions with libcurses and libreadline.
36941
36942         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
36943         * lib/getstr.h, getstr.c: Remove.
36944         * lib/getline.c: Include "getline.h", to check interface.
36945         Move body of old getstr.c here: this defines MIN_CHUNK and
36946         declares getdelim2, which is renamed from getstr.
36947         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
36948
36949         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
36950         All uses changed.
36951         * lib/linebuffer.h: Likewise.
36952         (readline): Remove backward-compatibility macro.
36953
36954 2003-01-12  Paul Eggert  <eggert@twinsun.com>
36955
36956         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
36957         to avoid collisions with libcurses and libreadline.
36958         * getstr: Remove.
36959         * MODULES.html.sh: Remove getstr.
36960         * modules/getline: Depend on unlocked-io, not getstr.
36961
36962 2003-01-12  Jim Meyering  <jim@meyering.net>
36963
36964         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
36965
36966 2003-01-10  Bruno Haible  <bruno@clisp.org>
36967
36968         * modules/alloca: Change Makefile.am requirements. Simplify Include
36969         requirements. Add lib/alloca_.h to file list.
36970
36971 2003-01-10  Bruno Haible  <bruno@clisp.org>
36972
36973         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
36974
36975 2003-01-10  Bruno Haible  <bruno@clisp.org>
36976
36977         * lib/alloca_.h: New file.
36978         * lib/getdate.y: Unconditionally include alloca.h.
36979         * lib/makepath.c: Likewise.
36980         * lib/setenv.c: Likewise.
36981         * lib/userspec.c: Likewise.
36982
36983 2003-01-09  Karl Berry  <karl@gnu.org>
36984
36985         * MODULES.html.sh: include `dirname $0` in PATH, to find
36986         gnulib-tool.
36987
36988 2003-01-09  Bruno Haible  <bruno@clisp.org>
36989
36990         * modules/stdbool: Change configure.ac, Makefile.am requirements.
36991         Simplify Include requirements. Add lib/stdbool.h.in to file list.
36992
36993 2003-01-09  Bruno Haible  <bruno@clisp.org>
36994
36995         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
36996
36997 2003-01-09  Bruno Haible  <bruno@clisp.org>
36998
36999         * lib/stdbool.h.in: New file.
37000
37001 2003-01-09  Bruno Haible  <bruno@clisp.org>
37002
37003         * gnulib-tool (func_all_modules): Ignore files ending in ~.
37004         * MODULES.html.sh: Likewise.
37005
37006 2003-01-08  Jim Meyering  <jim@meyering.net>
37007
37008         * lib/full-write.c: Undefine and define-away `const' after inclusion
37009         of errno.h, not before.  Suggestion from Bruno Haible.
37010
37011 2003-01-08  Bruno Haible  <bruno@clisp.org>
37012
37013         * modules/full-read: Depend on full-write.
37014
37015 2003-01-08  Bruno Haible  <bruno@clisp.org>
37016
37017         * lib/safe-read.c: Include specification header first, to ensure its
37018         selfcontainedness.
37019         * lib/full-write.c: Likewise.
37020
37021 2003-01-07  Jim Meyering  <jim@meyering.net>
37022
37023         * lib/full-write.c: Rework so that it may serve to define full_read,
37024         too.
37025         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
37026
37027 2003-01-07  Bruno Haible  <bruno@clisp.org>
37028
37029         * lib/strtoimax.c: Include <stdint.h> as an alternative to
37030         <inttypes.h>.
37031         * lib/xstrtol.h: Likewise.
37032         * lib/xstrtoimax.c: Likewise.
37033         * lib/xstrtoumax.c: Likewise.
37034         * lib/human.h: Likewise.
37035
37036         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
37037         on systems that have <inttypes.h> but not <stdint.h>.
37038
37039 2003-01-07  Bruno Haible  <bruno@clisp.org>
37040
37041         * MODULES.html.sh: Add copyright notice.
37042         (missed_files): Omit CVS directory entries.
37043         (func_module): Make it work with sed-3.02.
37044         * MODULES.txt: Remove file.
37045
37046 2003-01-06  Jim Meyering  <jim@meyering.net>
37047
37048         * lib/version-etc.c: Update year in translatable copyright string.
37049
37050 2003-01-03  Karl Berry  <karl@gnu.org>
37051
37052         * config/config.{guess,sub}: update from prep.
37053
37054 2003-01-02  Karl Berry  <karl@gnu.org>
37055
37056         * doc/COPYING.DOC: belatedly updated to 1.2.
37057
37058 2003-01-01  Karl Berry  <karl@gnu.org>
37059
37060         * gnulib-tool (func_verify_module): report module name $module in
37061         error message, not $1.
37062         * gnulib-tool (create-testdir): don't complain if destdir couldn't
37063         be created, only if it doesn't exist.
37064         * gnulib-tool (last_checkin_date): don't expand the $Date here.
37065
37066 2002-12-31  Paul Eggert  <eggert@twinsun.com>
37067
37068         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
37069
37070 2002-12-31  Paul Eggert  <eggert@twinsun.com>
37071
37072         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
37073         memcmp if strcoll doesn't work.
37074
37075 2002-12-31  Bruno Haible  <bruno@clisp.org>
37076
37077         * lib/utime.c (utime_null): No need to call ftruncate if the file was
37078         nonempty.
37079
37080 2002-12-31  Bruno Haible  <bruno@clisp.org>
37081
37082         * lib/memcoll.c (STRCOLL): New macro.
37083         (memcoll): Use it.
37084
37085 2002-12-31  Bruno Haible  <bruno@clisp.org>
37086
37087         * lib/localcharset.h: New file.
37088         * lib/localcharset.c: Include it.
37089         * lib/unicodeio.c: Likewise.
37090
37091 2002-12-31  Bruno Haible  <bruno@clisp.org>
37092
37093         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
37094         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
37095
37096 2002-12-31  Bruno Haible  <bruno@clisp.org>
37097
37098         * lib/getline.h: Include <stddef.h>, for size_t.
37099
37100         * lib/unicodeio.h: Include <stddef.h>, for size_t.
37101         * lib/unicodeio.c: Don't include <stddef.h>.
37102
37103 2002-12-31  Bruno Haible  <bruno@clisp.org>
37104
37105         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
37106         HAVE_TM_ZONE.
37107
37108 2002-12-24  Karl Berry  <karl@gnu.org>
37109
37110         * config/config.guess: update from prep.
37111
37112 2002-12-24  Bruno Haible  <bruno@clisp.org>
37113
37114         General infrasructure.
37115         * m4/README: Rewritten.
37116         * m4/onceonly.m4: New file.
37117         * m4/onceonly_2_57.m4: New file.
37118
37119         Module atexit.
37120         * m4/atexit.m4: New file.
37121
37122         Module strtod.
37123         * m4/strtod.m4: New file.
37124
37125         Module strtol.
37126         * m4/strtol.m4: New file.
37127
37128         Module strtoul.
37129         * m4/strtoul.m4: New file.
37130
37131         Module memchr.
37132         * m4/memchr.m4: New file.
37133
37134         Module memcmp.
37135         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
37136         (jm_FUNC_MEMCMP): Invoke it.
37137
37138         Module memcpy.
37139         * m4/memcpy.m4: New file.
37140
37141         Module memmove.
37142         * m4/memmove.m4: New file.
37143
37144         Module memset.
37145         * m4/memset.m4: New file.
37146
37147         Module strcspn.
37148         * m4/strcspn.m4: New file.
37149
37150         Module strpbrk.
37151         * m4/strpbrk.m4: New file.
37152
37153         Module strstr.
37154         * m4/strstr.m4: New file.
37155
37156         Module strerror.
37157         * m4/strerror.m4: New file.
37158
37159         Module mktime.
37160         * m4/mktime.m4: Renamed from jm-mktime.m4.
37161         (gl_PREREQ_MKTIME): New macro.
37162         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
37163
37164         Module malloc.
37165         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
37166         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
37167         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
37168
37169         Module realloc.
37170         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
37171         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
37172         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
37173
37174         Module strftime.
37175         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
37176         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
37177         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
37178         gl_TM_GMTOFF.
37179         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
37180
37181         Module xalloc.
37182         * m4/xalloc.m4: New file.
37183
37184         Module alloca.
37185         * m4/alloca.m4: New file.
37186
37187         Module putenv.
37188         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
37189         (jm_FUNC_PUTENV): Invoke it.
37190
37191         Module setenv.
37192         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
37193         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
37194         when invoked twice.
37195         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
37196         gt_FUNC_SETENV.
37197
37198         Module memrchr.
37199         * m4/memrchr.m4: New file.
37200
37201         Module stpcpy.
37202         * m4/stpcpy.m4: New file.
37203
37204         Module strcase.
37205         * m4/strcase.m4: New file.
37206
37207         Module strdup.
37208         * m4/strdup.m4: New file.
37209
37210         Module strnlen.
37211         * m4/strnlen.m4: New file.
37212
37213         Module strndup.
37214         * m4/strndup.m4: New file.
37215
37216         Module xstrtod.
37217         * m4/xstrtod.m4: New file.
37218
37219         Module xstrtol.
37220         * m4/xstrtol.m4: New file.
37221
37222         Module getdate.
37223         * m4/getdate.m4: New file.
37224
37225         Module unlocked-io.
37226         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
37227         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
37228         * m4/jm-glibc-io.m4n: Remove file.
37229
37230         Module long-options.
37231         * m4/long-options.m4: New file.
37232
37233         Module md5.
37234         * m4/md5.m4: New file.
37235
37236         Module sha.
37237         * m4/sha.m4: New file.
37238
37239         Module getstr.
37240         * m4/getstr.m4: New file.
37241
37242         Module getline.
37243         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
37244         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
37245         <sys/types.h>, for size_t. Use the function name gnu_getline, not
37246         simply getline. Infoke gl_PREREQ_GETLINE.
37247
37248         Module obstack.
37249         * m4/obstack.m4: New file.
37250
37251         Module hash.
37252         * m4/hash.m4: New file.
37253
37254         Module readtokens.
37255         * m4/readtokens.m4: New file.
37256
37257         Module strverscmp.
37258         * m4/strverscmp.m4: New file.
37259
37260         Module stdbool.
37261         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
37262         OSF/1.
37263
37264         Module strtoll.
37265         * m4/strtoll.m4: New file.
37266
37267         Module strtoull.
37268         * m4/strtoull.m4: New file.
37269
37270         Module strtoimax.
37271         * m4/strtoimax.m4: New file.
37272
37273         Module strtoumax.
37274         * m4/strtoumax.m4: New file.
37275
37276         Module xstrtoimax.
37277         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
37278         jm_AC_PREREQ_XSTRTOIMAX.
37279         Moved the strtol prerequisites to strtol.m4.
37280         Moved the strtoll prerequisites to strtoll.m4.
37281         Moved the strtoimax prerequisites to strtoimax.m4.
37282
37283         Module xstrtoumax.
37284         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
37285         jm_AC_PREREQ_XSTRTOUMAX.
37286         Moved the strtoul prerequisites to strtoul.m4.
37287         Moved the strtoull prerequisites to strtoull.m4.
37288         Moved the strtoumax prerequisites to strtoumax.m4.
37289
37290         Module chown.
37291         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
37292         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
37293
37294         Module dup2.
37295         * m4/dup2.m4: New file.
37296
37297         Module ftruncate.
37298         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
37299         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
37300
37301         Module getgroups.
37302         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
37303         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
37304
37305         Module gettimeofday.
37306         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
37307         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
37308         gl_PREREQ_GETTIMEOFDAY.
37309
37310         Module mkdir.
37311         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
37312         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
37313
37314         Module mkstemp.
37315         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
37316         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
37317         jm_AC_TYPE_UINTMAX_T.
37318         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
37319
37320         Module stat.
37321         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
37322         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
37323
37324         Module lstat.
37325         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
37326         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
37327
37328         Module timespec.
37329         * m4/timespec.m4 (gl_TIMESPEC): New macro.
37330         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
37331         * m4/st_mtim.m4: Indentation.
37332
37333         Module nanosleep.
37334         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
37335         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
37336         gl_PREREQ_NANOSLEEP.
37337
37338         Module regex.
37339         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
37340         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
37341         (gl_REGEX): New macro.
37342
37343         Module rename.
37344         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
37345         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
37346
37347         Module rmdir.
37348         * m4/rmdir.m4: New file.
37349
37350         Module utime.
37351         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
37352         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
37353         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
37354
37355         Module dirname.
37356         * m4/dirname.m4: New file.
37357
37358         Module getopt.
37359         * m4/getopt.m4: New file.
37360
37361         Module unistd-safer.
37362         * m4/unistd-safer.m4: New file.
37363
37364         Module fnmatch.
37365         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
37366         declaration.
37367         (gl_PREREQ_FNMATCH_EXTRA): New macro.
37368         (gl_FUNC_FNMATCH_POSIX): New macro.
37369         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
37370         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
37371         simply fnmatch.
37372
37373         Module exclude.
37374         * m4/exclude.m4: New file.
37375
37376         Module human.
37377         * m4/human.m4: New file.
37378
37379         Module acl.
37380         * m4/acl.m4: Nop.
37381
37382         Module backupfile.
37383         * m4/backupfile.m4: New file.
37384         * m4/d-ino.m4: Indentation.
37385
37386         Module fsusage.
37387         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
37388         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
37389         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
37390
37391         Module dirfd.
37392         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
37393         requirements.
37394
37395         Module euidaccess.
37396         * m4/euidaccess.m4: New file.
37397
37398         Module file-type.
37399         * m4/file-type.m4: New file.
37400
37401         Module fileblocks.
37402         * m4/fileblocks.m4: New file.
37403
37404         Module filemode.
37405         * m4/filemode.m4: New file.
37406
37407         Module isdir.
37408         * m4/isdir.m4: New file.
37409
37410         Module lchown.
37411         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
37412         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
37413
37414         Module makepath.
37415         * m4/makepath.m4: New file.
37416
37417         Module modechange.
37418         * m4/modechange.m4: New file.
37419
37420         Module mountlist.
37421         * m4/mountlist.m4: New file.
37422         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
37423         Indentation.
37424
37425         Module path-concat.
37426         * m4/path-concat.m4: New file.
37427
37428         Module pathmax.
37429         * m4/pathmax.m4: New file.
37430
37431         Module same.
37432         * m4/same.m4: New file.
37433
37434         Module save-cwd.
37435         * m4/save-cwd.m4: New file.
37436
37437         Module savedir.
37438         * m4/savedir.m4: New file.
37439
37440         Module xgetcwd.
37441         * m4/xgetcwd.m4: New file.
37442         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
37443
37444         Module xreadlink.
37445         * m4/xreadlink.m4: New file.
37446
37447         Module safe-read.
37448         * m4/safe-read.m4: New file.
37449
37450         Module safe-write.
37451         * m4/safe-write.m4: New file.
37452
37453         Module closeout.
37454         * m4/closeout.m4: New file.
37455
37456         Module stdio-safer.
37457         * m4/stdio-safer.m4: New file.
37458
37459         Module getpass.
37460         * m4/getpass.m4: New file.
37461
37462         Module getugroups.
37463         * m4/getugroups.m4: New file.
37464
37465         Module group-member.
37466         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
37467         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
37468
37469         Module idcache.
37470         * m4/idcache.m4: New file.
37471
37472         Module userspec.
37473         * m4/userspec.m4: New file.
37474
37475         Module gettime.
37476         * m4/clock_time.m4: New file.
37477         * m4/gettime.m4: New file.
37478
37479         Module settime.
37480         * m4/settime.m4: New file.
37481
37482         Module posixtm.
37483         * m4/posixtm.m4: New file.
37484
37485         Module gethostname.
37486         * m4/gethostname.m4: New file.
37487
37488         Module canon-host.
37489         * m4/canon-host.m4: New file.
37490
37491         Module gettext.
37492         * m4/codeset.m4: New file, from gettext-0.11.5.
37493         * m4/gettext.m4: New file, from gettext-0.11.5.
37494         * m4/glibc21.m4: New file, from gettext-0.11.5.
37495         * m4/iconv.m4: New file, from gettext-0.11.5.
37496         * m4/intdiv0.m4: New file, from gettext-0.11.5.
37497         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
37498         * m4/inttypes.m4: New file, from gettext-0.11.5.
37499         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
37500         * m4/isc-posix.m4: New file, from gettext-0.11.5.
37501         * m4/lcmessage.m4: New file, from gettext-0.11.5.
37502         * m4/lib-ld.m4: New file, from gettext-0.11.5.
37503         * m4/lib-link.m4: New file, from gettext-0.11.5.
37504         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
37505         * m4/progtest.m4: New file, from gettext-0.11.5.
37506         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
37507         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
37508         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
37509
37510         Module localcharset.
37511         * m4/localcharset.m4: New file.
37512
37513         Module hard-locale.
37514         * m4/hard-locale.m4: New file.
37515
37516         Module mbswidth.
37517         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
37518         onceonly macros.
37519         * m4/mbrtowc.m4: Add comment.
37520
37521         Module memcasecmp.
37522         * m4/memcasecmp.m4: New file.
37523
37524         Module memcoll.
37525         * m4/memcoll.m4: New file.
37526
37527         Module unicodeio.
37528         * m4/unicodeio.m4: New file.
37529
37530         Module rpmatch.
37531         * m4/rpmatch.m4: New file.
37532
37533         Module yesno.
37534         * m4/yesno.m4: New file.
37535
37536         Module exitfail.
37537         * m4/exitfail.m4: New file.
37538
37539         Module c-stack.
37540         * m4/c-stack.m4 (gl_C_STACK): New macro.
37541         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
37542
37543         Module error.
37544         * m4/error.m4 (gl_ERROR): New macro.
37545         (jm_PREREQ_ERROR): Use onceonly macros.
37546
37547         Module fatal.
37548         * m4/fatal.m4: New file.
37549
37550         Module getloadavg.
37551         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
37552         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
37553
37554         Module getpagesize.
37555         * m4/getpagesize.m4: New file.
37556
37557         Module getusershell.
37558         * m4/getusershell.m4: New file.
37559
37560         Module physmem.
37561         * m4/physmem.m4: New file.
37562
37563         Module posixver.
37564         * m4/posixver.m4: New file.
37565
37566         Module quotearg.
37567         * m4/quotearg.m4: New file.
37568
37569         Module quote.
37570         * m4/quote.m4: New file.
37571
37572         Module readutmp.
37573         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
37574
37575         Module sig2str.
37576         * m4/sig2str.m4: New file.
37577
37578         Other.
37579         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
37580         ulonglong.m4.
37581         * m4/intmax_t.m4: New file.
37582         * m4/d-type.m4: Indentation.
37583         * m4/jm-macros.m4: Update.
37584         * m4/prereq.m4 (jm_PREREQ): Update.
37585         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
37586         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
37587         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
37588         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
37589         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
37590         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
37591         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
37592         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
37593         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
37594         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
37595         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
37596         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
37597         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
37598         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
37599         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
37600         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
37601         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
37602         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
37603         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
37604
37605 2002-12-24  Bruno Haible  <bruno@clisp.org>
37606
37607         * MODULES.txt: Update according to m4/ changes.
37608
37609         Module gettext.
37610         * config.rpath: New file, from gettext-0.11.5.
37611
37612         * modules/*: New module descriptions.
37613         * gnulib-tool: New file.
37614         * MODULES.html.sh: New file.
37615
37616 2002-12-21  Karl Berry  <karl@gnu.org>
37617
37618         * doc/fdl.texi: update to version 1.2.
37619
37620 2002-12-19  Karl Berry  <karl@gnu.org>
37621
37622         * config/config.guess: update from prep.
37623
37624 2002-12-18  Bruno Haible  <bruno@clisp.org>
37625
37626         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
37627         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
37628
37629 2002-12-17  Bruno Haible  <bruno@clisp.org>
37630
37631         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
37632         stdlib.h, string.h.
37633
37634 2002-12-17  Bruno Haible  <bruno@clisp.org>
37635
37636         * lib/canon-host.c (strdup): Remove unused declaration.
37637
37638         * lib/fsusage.c: Include full_read.h.
37639         (get_fs_usage): Use full_read instead of safe_read.
37640
37641         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
37642
37643 2002-12-12  Karl Berry  <karl@gnu.org>
37644
37645         * config/config.guess: update from prep.
37646
37647 2002-12-11  Bruno Haible  <bruno@clisp.org>
37648
37649         * m4/setenv.m4: New file, from gettext-0.11.5.
37650
37651 2002-12-11  Bruno Haible  <bruno@clisp.org>
37652
37653         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
37654         not unsetenv().
37655         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
37656         modifications:
37657
37658         2002-12-11  Bruno Haible  <bruno@clisp.org>
37659
37660                 * setenv.c (alloca): Fall back to malloc.
37661                 (freea): New macro.
37662                 (setenv): Use freea() to free memory allocated with alloca().
37663
37664         2002-11-13  Bruno Haible  <bruno@clisp.org>
37665
37666                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
37667                 function declarations.
37668                 * unsetenv.c (unsetenv): Likewise.
37669
37670         2002-03-04  Bruno Haible  <bruno@clisp.org>
37671
37672                 Portability to AIX 4.3.3.
37673                 * unsetenv.c: New file, extracted from setenv.c.
37674                 * setenv.c: Move the unsetenv() function to unsetenv.c.
37675
37676         2001-12-20  Bruno Haible  <bruno@clisp.org>
37677
37678                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
37679                 use malloc instead. For SunOS 4.
37680
37681         2001-12-11  Bruno Haible  <bruno@clisp.org>
37682
37683                 * setenv.c: Declare alloca.
37684                 (compar_fn_t): New typedef.
37685                 (KNOWN_VALUE, STORE_VALUE): Use it.
37686
37687         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
37688         setenv.h.
37689
37690 2002-12-10  Paul Eggert  <eggert@twinsun.com>
37691
37692         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
37693         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
37694         Choose values that are less likely to collide with system fnmatch
37695         options.
37696         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
37697         defined (e.g., a pure POSIX system).
37698         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
37699         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
37700
37701 2002-12-06  Paul Eggert  <eggert@twinsun.com>
37702
37703         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
37704         a pain in practice to deal with generated m4 files.  This change
37705         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
37706
37707         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
37708         and jm-glibc-io.m4, as they are no longer a special case.
37709         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
37710         kludge and the auto-generation stuff.  Check only whether the
37711         functions are declared, not whether they exist, since older hosts
37712         that don't declare the functions can't use the optimization anyway.
37713
37714 2002-12-06  Jim Meyering  <jim@meyering.net>
37715
37716         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
37717
37718         Merge in changes from libc's misc/error.c, in preparation
37719         for the merge of gnulib's changes back into libc.
37720
37721         * lib/error.c (_): Define only if not already defined.
37722         Move definition to follow all #include directives.
37723         Include unlocked-io.h only if !_LIBC.
37724         [_LIBC]: Include <libio/libioP.h>.
37725         [USE_IN_LIBIO]: Include <libio/iolibio.h>
37726         (fflush): Tweak definition to use INTUSE.
37727         (putc): Define.
37728
37729 2002-12-05  Paul Eggert  <eggert@twinsun.com>
37730
37731         * lib/alloca.c [defined emacs]: Include "lisp.h".
37732         (xalloc_die) [defined emacs]: New macro.
37733         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
37734         [! defined emacs]: Include <xalloc.h>.
37735         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
37736         (pointer): Typedef to POINTER_TYPE *.
37737         (malloc): Remove decl; we now always use xmalloc.
37738         (alloca): Use old-style definition, since Emacs needs this.
37739         Check for arithmetic overflow when computing combined size.
37740
37741 2002-12-04  Paul Eggert  <eggert@twinsun.com>
37742
37743         Do not generate unlocked-io.h automatically, since it's easier to
37744         maintain it by hand.
37745
37746         * lib/unlocked-io.h: New file, from GNU diffutils,
37747         but with proper copyright notice and attribution.
37748         * lib/gen-uio: Remove.
37749         * lib/Makefile.am: Add copyright notice.
37750         (libfetish_a_SOURCES): Add unlocked-io.h.
37751         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
37752         (DISTCLEANFILES, io_functions): Remove macros.
37753         (EXTRA_DIST): Remove gen_uio.
37754         (unlocked-io.h): Remove rule.
37755
37756 2002-12-04  Jim Meyering  <jim@meyering.net>
37757
37758         Reflect the fact that stat.c and lstat.c are no longer generated.
37759         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
37760         (DISTCLEANFILES): Likewise.
37761         (EXTRA_DIST): Likewise.
37762         (all_local): Don't depend on stat.c or lstat.c.
37763         (stat.c, lstat.c): Remove rules.
37764         (EXTRA_DIST): Remove xstat.in.
37765
37766         * lib/xstat.in: Remove file.  Contents moved into stat.c.
37767         * lib/stat.c: New file.  Contents mostly from xstat.in.
37768         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
37769         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
37770
37771         * lib/safe-read.c: Rework so that it may serve to define safe_write,
37772         too.
37773         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
37774
37775 2002-12-03  Jim Meyering  <jim@meyering.net>
37776
37777         * lib/safe-read.c, safe-write.c: Change variable names and comments,
37778         but not semantics, to minimize the differences between these two files.
37779         (safe_read): Change comment to mention SAFE_READ_ERROR.
37780
37781         * lib/safe-read.c (IS_EINTR): Define.
37782         (safe_read): Use IS_EINTR in place of in-function cpp directives.
37783
37784 2002-12-02  Jim Meyering  <jim@meyering.net>
37785
37786         * lib/safe-read.c (EINTR): Define.
37787         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
37788         (INT_MAX): Provide fallback.
37789         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
37790
37791         * lib/safe-read.h (SAFE_READ_ERROR): Define.
37792
37793 2002-12-02  Bruno Haible  <bruno@clisp.org>
37794
37795         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
37796         Define, taken from safe-read.c.
37797         (INT_MAX): Provide fallback.
37798         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
37799         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
37800
37801         * lib/safe-read.c (EINTR): Remove definition.
37802         (safe_read): Don't use EINTR if it is absent.
37803
37804 2002-12-01  Jim Meyering  <jim@meyering.net>
37805
37806         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
37807         zero.
37808         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
37809
37810 2002-11-27  Paul Eggert  <eggert@twinsun.com>
37811
37812         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
37813         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
37814         with `if (! (value < limit)) abort ();', for readability.
37815
37816 2002-11-26  Karl Berry  <karl@gnu.org>
37817
37818         * lib/strdup.c: copy from libc again, with jim's ok.
37819         * lib/.cppi-disable: re-add strdup.c
37820
37821 2002-11-25  Karl Berry  <karl@gnu.org>
37822
37823         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
37824         instead of "strtol.c".
37825
37826 2002-11-25  Karl Berry  <karl@gnu.org>
37827
37828         * config/install-sh: update from automake for variable quoting, $0 in
37829         error msgs, etc.
37830
37831         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
37832         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
37833         entry.
37834
37835 2002-11-25  Jim Meyering  <jim@meyering.net>
37836
37837         * lib/mktime.c: Sync from libc, now that it has the latest fix.
37838
37839 2002-11-24  Karl Berry  <karl@gnu.org>
37840
37841         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
37842         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
37843
37844 2002-11-24  Jim Meyering  <jim@meyering.net>
37845
37846         Update from coreutils:
37847
37848         * lib/mktime.c: Merge in changes from libc.
37849
37850         Avoid a link-time failure on some Linux systems.
37851         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
37852         (otherwise).
37853         (__mon_yday): Declare with the STATIC attribute.
37854         (__mktime_internal): Likewise.
37855         Based on a report from Greg Schafer.
37856
37857 2002-11-23  Jim Meyering  <jim@meyering.net>
37858
37859         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
37860         Use `unsigned', not `int', as type of index.
37861
37862         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
37863
37864         * lib/fsusage.c: Remove unneeded parentheses around operands of
37865         `defined'.
37866
37867 2002-11-22  Paul Eggert  <eggert@twinsun.com>
37868
37869         * lib/quotearg.h: Allow multiple inclusion by surrounding with
37870         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
37871         so that we can be included first.
37872         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
37873         * lib/quotearg.c: Include quotearg.h immediately after config.h.
37874         No need to include stddef.h or sys/types.h any more.
37875         Surround local include files with "", not "<>".
37876         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
37877         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
37878         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
37879         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
37880         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
37881         (ISPRINT): Remove; no longer needed now that we assume C89.
37882
37883         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
37884         Preserve errno.
37885
37886         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
37887         quotearg_char): Use SIZE_MAX rather than
37888         (size_t) -1 when we are talking about "infinity".
37889
37890         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
37891
37892 2002-11-22  Paul Eggert  <eggert@twinsun.com>
37893
37894         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
37895         hint that one should use `if (! x) abort ();' rather than `assert
37896         (x);', and anyway it's one less thing to worry about configuring.
37897         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
37898         hash_rehash, hash_insert): Use abort rather than assert.
37899
37900 2002-11-22  Bruno Haible  <bruno@clisp.org>
37901
37902         * lib/safe-read.h: Assume C89. Add comments.
37903         (safe_read): Change return type to size_t.
37904         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
37905         byte counts > SSIZE_MAX correctly.
37906         * lib/safe-write.h: New file.
37907         * lib/safe-write.c: New file.
37908         * lib/full-read.h: New file.
37909         * lib/full-read.c: New file.
37910         * lib/full-write.h: Assume C89. Add comments.
37911         * lib/full-write.c: Include safe-write.h.
37912         (full_write): Rewritten to use safe_write.
37913         Suggested by Jim Meyering and Paul Eggert.
37914
37915 2002-11-21  Jim Meyering  <jim@meyering.net>
37916
37917         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
37918
37919         Merge in changes from the coreutils.
37920
37921         2002-09-25  Paul Eggert  <eggert@twinsun.com>
37922         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
37923         <stdint.h>.
37924         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
37925         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
37926         int.  Work more efficiently if X is the same width as uintmax_t.
37927         Do not compare X to -1, to avoid bogus compiler warning.
37928         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
37929         Don't assume that f_frsize and f_bsize are the same type.
37930
37931         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
37932         warning on FreeBSD.
37933
37934         * lib/makepath.c (make_path): Restore umask *before* creating the final
37935         component.
37936         (make_path): Minor reformatting.
37937
37938         * lib/xmalloc.c: Adjust to work with new autoconf macros,
37939         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
37940         HAVE_MALLOC/HAVE_REALLOC.
37941
37942         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
37943         dummy ones.  At least on GNU/Linux systems, `auto' means something
37944         else.
37945         From Michael Stone.
37946
37947 2002-11-21  Bruno Haible  <bruno@clisp.org>
37948
37949         Remove case insensitive option matching.
37950         * lib/argmatch.h (argcasematch): Remove declaration.
37951         (ARGCASEMATCH): Remove macro.
37952         (__xargmatch_internal): Remove case_sensitive argument.
37953         (XARGMATCH): Update.
37954         (XARGCASEMATCH): Remove macro.
37955         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
37956         case_sensitive argument.
37957         (argcasematch): Remove function.
37958         (__xargmatch_internal): Remove case_sensitive argument.
37959         (main): Use XARGMATCH instead of XARGCASEMATCH.
37960
37961         * lib/xmalloc.c: Change compile-time error message. Add comment about
37962         required autoconf version.
37963
37964 2002-11-20  Paul Eggert  <eggert@twinsun.com>
37965
37966         Merge argmatch cleanups from Bison.  Assume C89.
37967
37968         * lib/argmatch.c: Include config.h here, not in argmatch.h.
37969         Include stdlib.h, for EXIT_FAILURE.
37970         Always include <string.h>, since we assume C89.
37971         (EXIT_FAILURE): Remove pre-C89 bug workaround.
37972         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
37973         Include <stddef.h> instead, since it's all we need for size_t.
37974         (PARAMS): Remove.  All uses removed.
37975         (ARRAY_CARDINALITY): Do not bother to #undef.
37976         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
37977         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
37978         Remove unnecessary parentheses.
37979         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
37980         Insert necessary parentheses.
37981         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
37982         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
37983
37984 2002-11-19  Bruno Haible  <bruno@clisp.org>
37985
37986         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
37987         * lib/mbswidth.h: Include <stddef.h>, for size_t.
37988
37989         * lib/mbswidth.h (PARAMS): Remove macro.
37990         (mbswidth, mbsnwidth): Use ANSI C function declarations.
37991         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
37992
37993         * lib/gcd.h (PARAMS): Remove macro.
37994         (gcd): Use ANSI C function declarations.
37995         * lib/gcd.c (gcd): Likewise.
37996
37997 2002-11-15  Bruno Haible  <bruno@clisp.org>
37998
37999         * lib/strcspn.c: Include <stddef.h>.
38000         (strcspn): Use ANSI C function declaration. Change return type to
38001         size_t. Use NULL.
38002         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
38003         (strpbrk): Use NULL.
38004         * lib/strpbrk.h (PARAMS): Remove macro.
38005         (strpbrk): Use ANSI C function declaration.
38006         * lib/strstr.c: Don't include <sys/types.h>.
38007         * lib/strstr.h (PARAMS): Remove macro.
38008         (strstr): Use ANSI C function declarations.
38009
38010 2002-11-14  Karl Berry  <karl@gnu.org>
38011
38012         * config/mkinstalldirs: `do' on separate line, instead of
38013         `for var; do'.
38014
38015 2002-11-06  Bruno Haible  <bruno@clisp.org>
38016
38017         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
38018         * lib/gcd.c (gcd): Likewise.
38019
38020 2002-11-05  Bruno Haible  <bruno@clisp.org>
38021
38022         * lib/gcd.h: New file, from gettext-0.11.5.
38023         * lib/gcd.c: New file, from gettext-0.11.5.
38024
38025 2002-11-05  Bruno Haible  <bruno@clisp.org>
38026
38027         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38028         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38029         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38030         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38031
38032         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
38033         <libintl.h>.
38034         * lib/makepath.c: Include gettext.h instead of <locale.h> and
38035         <libintl.h>.
38036
38037         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
38038         * lib/human.c: Include gettext.h instead of <libintl.h>.
38039         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
38040         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
38041         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
38042         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
38043         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
38044         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
38045         (textdomain): Remove definition.
38046         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
38047
38048         * lib/long-options.c: Remove include of <libintl.h> and definition of
38049         _.
38050         * lib/same.c: Remove include of <libintl.h> and definition of _.
38051
38052 2002-11-04  Owen Taylor  <otaylor@redhat.com>
38053
38054         * lib/config.charset: A few additions for Solaris.
38055
38056 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
38057
38058         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
38059         * lib/localcharset.c (locale_charset): Declare as extern "C".
38060
38061 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
38062
38063         * lib/config.charset: msdos in uk_UA uses CP1125.
38064
38065 2002-11-04  Bruno Haible  <bruno@clisp.org>
38066
38067         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
38068         * lib/strcase.h: New file, from GNU gettext-0.11.5.
38069         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
38070         * lib/strstr.h: New file, from GNU gettext-0.11.5.
38071         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
38072
38073 2002-11-04  Bruno Haible  <bruno@clisp.org>
38074
38075         * lib/localcharset.c (locale_charset): Don't return an empty string.
38076
38077 2002-11-04  Bruno Haible  <bruno@clisp.org>
38078
38079         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
38080         aliases.
38081
38082 2002-11-04  Bruno Haible  <bruno@clisp.org>
38083
38084         * lib/config.charset: Update for newest glibc. Add canonical names
38085         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
38086
38087 2002-11-04  Bruno Haible  <bruno@clisp.org>
38088
38089         * lib/config.charset: Add support for NetBSD.
38090
38091 2002-11-04  Bruno Haible  <bruno@clisp.org>
38092
38093         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
38094
38095 2002-11-01  Bruno Haible  <bruno@clisp.org>
38096
38097         * configure.in: Add AC_CONFIG_AUX_DIR call.
38098         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
38099         test/Makefile.
38100         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
38101
38102 2002-09-28  Karl Berry  <karl@gnu.org>
38103
38104         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
38105         installed automake until the next release, since changes have been
38106         made.
38107
38108 2002-09-25  Karl Berry  <karl@gnu.org>
38109
38110         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
38111         * lib/getopt*: copy from libc/posix.
38112         * lib/gettext.h: copy from gettext.
38113         * lib/.cppi-disable: add strdup.c, gettext.h.
38114
38115 2002-09-25  Karl Berry  <karl@gnu.org>
38116
38117         * config/srclist.txt: enable gettext.h check.
38118         * config/config.{guess,sub}: update from prep.
38119         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
38120                 from automake 1.6.3.
38121         See srclist*.
38122
38123 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
38124
38125         * regex.c (PATFETCH): Remove the translating fetch.
38126         (PATFETCH_RAW): Rename to PATFETCH.
38127         (set_image_of_range): New fun.
38128         (SET_RANGE_TABLE_WORK_AREA): Use it.
38129         (regex_compile): Don't translate the pattern chars so eagerly.
38130         Only do it when inserting an `exactn' bytecode or when handling
38131         a char-range.
38132         (mutually_exclusive_p): Avoid empty statement.
38133
38134 2002-07-06  Jim Meyering  <meyering@lucent.com>
38135
38136         * m4/README: Don't mention Makefile.am.in.
38137         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
38138
38139 2002-07-01  Jim Meyering  <meyering@lucent.com>
38140
38141         * lib/c-stack.c: Include sys/time.h.
38142         From Volker Borchert.
38143
38144 2002-06-26  Paul Eggert  <eggert@twinsun.com>
38145
38146         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
38147
38148 2002-06-26  Paul Eggert  <eggert@twinsun.com>
38149
38150         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
38151         New macro.  Use it uniformly instead of
38152         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
38153         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
38154         reported by Vin Shelton.
38155
38156 2002-06-22  Paul Eggert  <eggert@twinsun.com>
38157
38158         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
38159         Do not assume SA_SIGINFO behavior.
38160         Bug reported by Jim Meyering on NetBSD 1.5.2.
38161
38162 2002-06-22  Jim Meyering  <meyering@lucent.com>
38163
38164         * m4/c-stack.m4: New file, from diffutils-2.8.2.
38165         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
38166
38167         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
38168         now that configure.ac uses AC_GNU_SOURCE.
38169         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
38170         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
38171
38172         Update to latest tools.  Suggestions from Paul Eggert.
38173         * m4/stdbool.m4: New file, from diffutils-2.8.2.
38174         * m4/gnu-source.m4: Update from diffutils-2.8.2.
38175         * m4/fnmatch.m4: Likewise.
38176         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
38177         to AC_HEADER_STDBOOL
38178
38179 2002-06-22  Jim Meyering  <meyering@lucent.com>
38180
38181         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
38182         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
38183
38184 2002-06-22  Jim Meyering  <meyering@lucent.com>
38185
38186         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
38187
38188         * lib/exitfail.c, exitfail.h: Likewise.
38189         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
38190
38191         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
38192         of fnmatch.h.
38193         (EXTRA_DIST): Add fnmatch_loop.c.
38194         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
38195
38196         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
38197         * lib/fnmatch.c: Update from diffutils-2.8.2.
38198         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
38199         * lib/fnmatch.h: Remove file.
38200
38201 2002-06-21  Jim Meyering  <meyering@lucent.com>
38202
38203         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
38204         * m4/mbrtowc.m4: Likewise.
38205
38206         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
38207         * m4/mbswidth.m4: Reflect name change:
38208         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
38209         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
38210
38211         * m4/lib-link.m4: Update from gettext-0.11.2.
38212         * m4/gettext.m4: Likewise.
38213
38214         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
38215         From Alfred M. Szmidt.
38216
38217 2002-06-18  Paul Eggert  <eggert@twinsun.com>
38218
38219         * lib/file-type.h: Report an error if neither S_ISREG nor
38220         S_IFREG is defined, instead of using a test specific to glibc
38221         2.2.  This should be safe, since POSIX requires S_ISREG and
38222         Unix Version 7 had S_IFREG.  We don't need to check for
38223         <sys/types.h> since we don't use any symbols that it defines.
38224
38225 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
38226
38227         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
38228         $@-t, so that each temporary file name is unique and valid in the first
38229         8 characters, for operation under DOS.
38230
38231 2002-06-15  Paul Eggert  <eggert@twinsun.com>
38232
38233         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
38234
38235 2002-06-15  Jim Meyering  <meyering@lucent.com>
38236
38237         Work even with DJGPP 2.03, which lacks support for symlinks.
38238         From Richard Dawe.
38239         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
38240         is defined.
38241         * lib/lchown.c (S_ISLNK): Likewise.
38242
38243 2002-06-15  Jim Meyering  <meyering@lucent.com>
38244
38245         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
38246         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
38247         have been included before this file.
38248
38249 2002-06-14  Jim Meyering  <meyering@lucent.com>
38250
38251         * lib/file-type.h: Use the version from diffutils-2.8.2.
38252         * lib/file-type.c: Likewise.
38253
38254 2002-06-07  Jim Meyering  <meyering@lucent.com>
38255
38256         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
38257         They're needed at least for NetBSD 1.5.2.
38258         ($statxfs_includes): Include those same headers.
38259         ($statxfs_includes): Include sys/vfs.h if available.
38260         ($statxfs_includes): Likewise for sys/statvfs.h.
38261         Check for the following members in both structs statfs and statvfs:
38262         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
38263
38264 2002-06-01  Jim Meyering  <meyering@lucent.com>
38265
38266         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
38267         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
38268
38269 2002-05-28  Jim Meyering  <meyering@lucent.com>
38270
38271         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
38272         Reported by Volker Borchert.
38273
38274 2002-05-27  Jim Meyering  <meyering@lucent.com>
38275
38276         Fix a problem seen only on nonconforming systems whereby ls.c's
38277         use of localtime, and then of gettimeofday would cause trouble:
38278         the localtime call used to initialize rpl_gettimeofday's save
38279         mechanism would clobber ls's current local time information so
38280         that in any long listing the first file would always be listed
38281         with date 1970-01-01.  Analysis by Volker Borchert.
38282
38283         * lib/gettimeofday.c (localtime): Undefine.
38284         (rpl_localtime): New function.
38285
38286 2002-05-27  Jim Meyering  <meyering@lucent.com>
38287
38288         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
38289         localtime.
38290
38291         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
38292         use the replacement function; it wouldn't resolve at link time.
38293         Reported by Volker Borchert.
38294
38295 2002-05-22  Jim Meyering  <meyering@lucent.com>
38296
38297         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
38298         file-type.h.
38299         * lib/file-type.h: New file.
38300         * lib/file-type.c (file_type): New file/function.  Extracted from
38301         diffutils.
38302
38303 2002-04-30  Jim Meyering  <meyering@lucent.com>
38304
38305         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
38306
38307 2002-04-29  Paul Eggert  <eggert@twinsun.com>
38308
38309         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
38310
38311 2002-04-29  Paul Eggert  <eggert@twinsun.com>
38312
38313         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
38314         Do not check for alloca.h (no longer used) or stdbool.h (was never
38315         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
38316
38317 2002-04-29  Paul Eggert  <eggert@twinsun.com>
38318
38319         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
38320
38321 2002-04-29  Jim Meyering  <meyering@lucent.com>
38322
38323         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
38324         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
38325         Use AC_FUNC_STRNLEN here instead.
38326
38327         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
38328         With autoconf-2.53a, it's part of AC_PROG_CC.
38329
38330 2002-04-28  Paul Eggert  <eggert@twinsun.com>
38331
38332         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
38333         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
38334
38335 2002-04-28  Paul Eggert  <eggert@twinsun.com>
38336
38337         * lib/sig2str.h, lib/sig2str.c: New files.
38338         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
38339
38340 2002-04-28  Paul Eggert  <eggert@twinsun.com>
38341
38342         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
38343         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
38344         of 127, since 64 is the largest conceivable number for ancient
38345         nonstandard hosts.
38346         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
38347
38348 2002-04-28  Jim Meyering  <meyering@lucent.com>
38349
38350         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
38351
38352 2002-04-24  Jim Meyering  <meyering@lucent.com>
38353
38354         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
38355         (jm_PREREQ): Use it.
38356
38357         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
38358         mach/mach.h fcntl.h.
38359         Check for this function: setlocale.
38360
38361 2002-04-24  Jim Meyering  <meyering@lucent.com>
38362
38363         * lib/gettext.h: New file, from Gettext.
38364         * lib/Makefile.am (INCLUDES): Remove -I../intl.
38365         (libfetish_a_SOURCES): Add gettext.h.
38366
38367 2002-04-16  Jim Meyering  <meyering@lucent.com>
38368
38369         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
38370         ut_pid, ut_id, ut_exit.
38371
38372 2002-04-16  Jim Meyering  <meyering@lucent.com>
38373
38374         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
38375         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
38376         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
38377
38378 2002-04-12  Jim Meyering  <meyering@lucent.com>
38379
38380         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
38381         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
38382         existence of the getmntinfo function.  Needed for Darwin 5.3.
38383
38384         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
38385         This is necessary at least on Darwin 5.3.
38386
38387         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
38388         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
38389         strnlen.o in the library, and that makes some versions of ranlib
38390         object.
38391
38392 2002-04-12  Jim Meyering  <meyering@lucent.com>
38393
38394         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
38395
38396 2002-04-09  Jim Meyering  <meyering@lucent.com>
38397
38398         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
38399         to be more precise.  Rather than saying we're checking whether the
38400         function `works', say what we're testing.
38401         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
38402         Reported by Bruno Haible.
38403
38404 2002-03-10  Jim Meyering  <meyering@lucent.com>
38405
38406         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
38407         Suggestion from Santiago Vila.
38408
38409 2002-03-08  Jim Meyering  <meyering@lucent.com>
38410
38411         * lib/rename.c: Mention that this wrapper is needed also on
38412         mips-dec-ultrix4.4 systems.
38413
38414 2002-03-02  Jim Meyering  <meyering@lucent.com>
38415
38416         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
38417         not HAVE_CLOCK_SETTIME.
38418
38419 2002-02-27  Paul Eggert  <eggert@twinsun.com>
38420
38421         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
38422         Check for clock_settime.
38423
38424 2002-02-27  Paul Eggert  <eggert@twinsun.com>
38425
38426         * lib/nanosleep.h: Rename to....
38427         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
38428
38429         * lib/gettime.c: New file.
38430         * lib/settime.c: New file.
38431         * lib/stime.c: Remove.
38432
38433         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
38434         timespec.h.  Remove nanosleep.h.
38435
38436 2002-02-25  Paul Eggert  <eggert@twinsun.com>
38437
38438         * m4/acl.m4: New file.
38439         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
38440         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
38441
38442 2002-02-25  Paul Eggert  <eggert@twinsun.com>
38443
38444         * lib/acl.c, lib/acl.h: New files.
38445         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
38446
38447 2002-02-24  Jim Meyering  <meyering@lucent.com>
38448
38449         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
38450         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
38451         cause trouble.  Reported by Nelson Beebe.
38452
38453 2002-02-23  Paul Eggert  <eggert@twinsun.com>
38454
38455         * lib/path-concat.c (xpath_concat): Reorder code to pacify
38456         compilers that don't know that xalloc_die never returns.
38457
38458 2002-02-20  Jim Meyering  <meyering@lucent.com>
38459
38460         * lib/getdate.c: Regenerate using bison-1.33.
38461
38462 2002-02-17  Jim Meyering  <meyering@lucent.com>
38463
38464         * config/config.guess (main): Don't use `head -1'; it's no longer
38465         portable. Use `sed 1q' instead.
38466
38467 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
38468
38469         * m4/codeset.m4: Upgrade to gettext-0.11.
38470         * m4/gettext.m4: Upgrade to gettext-0.11.
38471         * m4/glibc21.m4: Upgrade to gettext-0.11.
38472         * m4/iconv.m4: Upgrade to gettext-0.11.
38473         * m4/isc-posix.m4: Upgrade to gettext-0.11.
38474         * m4/lcmessage.m4: Upgrade to gettext-0.11.
38475         * m4/lib-ld.m4: New file, from gettext-0.11.
38476         * m4/lib-link.m4: New file, from gettext-0.11.
38477         * m4/lib-prefix.m4: New file, from gettext-0.11.
38478         * m4/progtest.m4: Upgrade to gettext-0.11.
38479
38480 2002-02-15  Paul Eggert  <eggert@twinsun.com>
38481
38482         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
38483         (jm_PREREQ): Use it.
38484
38485 2002-02-15  Paul Eggert  <eggert@twinsun.com>
38486
38487         * lib/posixver.c, lib/posixver.h: New files.
38488         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
38489
38490 2002-02-02  Paul Eggert  <eggert@twinsun.com>
38491             Bruno Haible  <bruno@clisp.org>
38492
38493         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
38494         (fwrite_success_callback): New declaration.
38495         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
38496         print_unicode_char. Call failure callback instead of error.
38497         (fwrite_success_callback): New function.
38498         (exit_failure_callback): New function.
38499         (fallback_failure_callback): New function.
38500         (print_unicode_char): Call unicode_to_mb.
38501
38502 2002-01-26  Jim Meyering  <meyering@lucent.com>
38503
38504         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
38505         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
38506
38507 2002-01-26  Jim Meyering  <meyering@lucent.com>
38508
38509         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
38510
38511 2002-01-22  Paul Eggert  <eggert@twinsun.com>
38512
38513         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
38514
38515 2002-01-22  Jim Meyering  <meyering@lucent.com>
38516
38517         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
38518         Otherwise, some versions of automake would omit the rule that makes
38519         Makefile from Makefile.in.
38520
38521 2002-01-21  Paul Eggert  <eggert@twinsun.com>
38522
38523         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
38524         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
38525         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
38526         (memcoll): Set errno to zero if there is no error.
38527
38528         * lib/quotearg.c (quotearg_buffer_restyled):
38529         Fix bug with quoting buffers containing NUL when backslashing escapes.
38530         This bug was exposed by the other changes in this patch.
38531         (quotearg_n_options): New arg ARGSIZE.
38532         All callers changed.
38533         (quoting_options_from_style): New function.
38534         (quotearg_n_style): Use it.
38535         (quotearg_n_style_mem): New function.
38536
38537         * lib/quotearg.h (quotearg_n_style_mem): New function.
38538
38539 2002-01-19  Jim Meyering  <meyering@lucent.com>
38540
38541         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
38542         Remove useless quotes: DF_PROG="df".
38543         * m4/strnlen.m4: New file.
38544
38545 2002-01-16  Paul Eggert  <eggert@twinsun.com>
38546
38547         * lib/backupfile.c (ISDIGIT): Comment fix.
38548         * lib/getdate.y (ISDIGIT): Likewise.
38549         * lib/posixtm.c (ISDIGIT, year): Likewise.
38550         * lib/strverscmp.c (ISDIGIT): Likewise.
38551         * lib/userspec.c (ISDIGIT): Likewise.
38552
38553 2002-01-16  Jim Meyering  <meyering@lucent.com>
38554
38555         * lib/getdate.y: Add three semicolons, each just before a closing
38556         brace. Bison (as of version 1.31) no longer papers over that mistake.
38557
38558 2002-01-05  Jim Meyering  <meyering@lucent.com>
38559
38560         * lib/version-etc.c (version_etc_copyright): Update copyright year.
38561
38562 2001-12-19  Paul Eggert  <eggert@twinsun.com>
38563
38564         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
38565         not silently exit merely because the output buffer happens to
38566         have nothing pending.
38567
38568 2001-12-18  Paul Eggert  <eggert@twinsun.com>
38569
38570         See the big note in ../ChangeLog.
38571         * lib/human.c (suffixes): Prefer K to k for 1024.
38572         (generate_suffix_backwards): New function.
38573         (human_readable_inexact): Use it.
38574         * lib/xstrtol.c (__xstrtol): If there is no number but there
38575         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
38576         Accept 'K' as well as 'k'.
38577
38578 2001-12-15  Jim Meyering  <meyering@lucent.com>
38579
38580         * lib/regex.h (__restrict_arr): Update from libc.
38581
38582         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
38583         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
38584         (STREQ): Define.
38585
38586 2001-12-14  Jim Meyering  <meyering@lucent.com>
38587
38588         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
38589         Suggestion from Bruno Haible.
38590
38591 2001-12-10  Jim Meyering  <meyering@lucent.com>
38592
38593         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
38594         xrealloc, Instead, include "xalloc.h".
38595         (initbuffer): Don't cast xmalloc return value to char*.
38596         (readline): Reword comment.
38597         Don't cast xrealloc return value to char*
38598         Return NULL, not 0.
38599
38600 2001-12-09  Jim Meyering  <meyering@lucent.com>
38601
38602         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
38603         about `signed and unsigned type in conditional expression'.
38604         * lib/posixtm.c (posix_time_parse): Likewise.
38605
38606         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
38607
38608         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
38609         to avoid a pedantic warning.
38610
38611         * lib/getstr.c: Don't include assert.h.
38612         (getstr): Remove warning-evoking assertions.
38613         Return -1 if offset parameter is out of bounds.
38614         Change the type of a local from int to size_t.
38615
38616         * lib/strftime.c (my_strftime_localtime_r): Include this function
38617         definition in the `#if ! HAVE_TM_GMTOFF' block.
38618
38619         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
38620         Include xalloc.h instead.
38621
38622 2001-12-02  Jim Meyering  <meyering@lucent.com>
38623
38624         * lib/tempname.c: Don't declare getenv, thus reverting the change of
38625         2001-11-18.  It's no longer necessary, now that stdlib.h is always
38626         included.
38627
38628         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
38629         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
38630
38631 2001-11-30  Akim Demaille  <akim@epita.fr>
38632
38633         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
38634         before being defined.
38635
38636 2001-11-27  Paul Eggert  <eggert@twinsun.com>
38637
38638         * lib/quotearg.h (quotearg_n, quotearg_n_style):
38639         First arg is int, not unsigned.
38640         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
38641         (SIZE_MAX, UINT_MAX): New macros.
38642         (quotearg_n_options): Abort if N is negative.
38643         Avoid overflow check on hosts where size_t is 64 bits and int
38644         is 32 bits, as overflow is impossible there.
38645         Fix off-by-one typo that caused unnecessary reallocation.
38646
38647 2001-11-27  Jim Meyering  <meyering@lucent.com>
38648
38649         * lib/tempname.c: Merge with version from libc.
38650         * lib/regex.c: Likewise.
38651
38652         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
38653         systems for which STDC_HEADERS is 0, it was not included, resulting in
38654         a warning about an integer-to-pointer conversion problem with getenv.
38655         Reported by Volker Borchert.
38656
38657 2001-11-26  Jim Meyering  <meyering@lucent.com>
38658
38659         * lib/gtod.h: Remove file.
38660         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
38661         * lib/gettimeofday.c: Don't include gtod.h.
38662         (GTOD_init): Remove function.
38663         (rpl_gettimeofday): Do its job here instead, rather than aborting.
38664         Suggestion from Volker Borchert.
38665
38666 2001-11-23  Jim Meyering  <meyering@lucent.com>
38667
38668         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
38669         it.
38670         * lib/hash.c (struct hash_table): Define it here instead.
38671
38672 2001-11-22  Jim Meyering  <meyering@lucent.com>
38673
38674         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
38675
38676 2001-11-20  Jim Meyering  <meyering@lucent.com>
38677
38678         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
38679         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
38680
38681 2001-11-19  Jim Meyering  <meyering@lucent.com>
38682
38683         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
38684         directory.  Use "conftestXXXXXX" as the template.
38685         Suggestion from Paul Eggert.
38686
38687         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
38688         immediately, so the test doesn't mistakenly hit the max-open-files
38689         limit.
38690
38691 2001-11-18  Paul Eggert  <eggert@twinsun.com>
38692
38693         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
38694         (TEMPORARIES): New macro.
38695         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
38696         removes an artificial limitation (e.g. HP-UX 10.20, where
38697         TMP_MAX is 17576).
38698
38699 2001-11-18  Jim Meyering  <meyering@lucent.com>
38700
38701         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
38702
38703 2001-11-18  Jim Meyering  <meyering@lucent.com>
38704
38705         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
38706         on SunOS 4.
38707
38708         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
38709         files will be created before anything else.
38710
38711 2001-11-17  Paul Eggert  <eggert@twinsun.com>
38712
38713         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
38714         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
38715
38716 2001-11-17  Jim Meyering  <meyering@lucent.com>
38717
38718         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
38719         Prompted by a report from Bob Proulx.
38720
38721         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
38722         Instead, require UTILS_FUNC_MKSTEMP.
38723
38724 2001-11-17  Jim Meyering  <meyering@lucent.com>
38725
38726         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
38727         Now, that's done as part of AC_FUNC_STRTOD.
38728
38729 2001-11-17  Jim Meyering  <meyering@lucent.com>
38730
38731         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
38732         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
38733         rather than group writable.  Patch by Juan F. Codagnone.
38734
38735         * lib/readtokens.c: Remove explicit declarations of xmalloc and
38736         xrealloc, Instead, include "xalloc.h".
38737
38738         * lib/mountlist.c: Include unlocked-io.h after all system headers.
38739         Remove explicit declarations of xmalloc, xrealloc,
38740         and xstrdup.  Instead, include "xalloc.h".
38741
38742         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
38743         unlocked-io.h.
38744         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
38745         Likewise.
38746         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
38747
38748         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
38749         Reported by Padraig Brady.
38750
38751         * lib/mkstemp.c: #undef mkstemp.
38752         Include config.h.
38753         (rpl_mkstemp): Rename from mkstemp.
38754         Protoize.
38755
38756 2001-11-16  Jim Meyering  <meyering@lucent.com>
38757
38758         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
38759         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
38760         determine the amount of total physical memory, use pstat_getstatic.
38761         HPUX-11 doesn't define _SC_PHYS_PAGES.
38762         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
38763         If sysconf couldn't be used to determine the amount of available
38764         physical memory, use both pstat_getstatic and pstat_getdynamic.
38765         Based on a patch from Bob Proulx.
38766
38767 2001-11-10  Jim Meyering  <meyering@lucent.com>
38768
38769         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
38770         (jm_PREREQ): Use it.
38771
38772 2001-11-09  Jim Meyering  <meyering@lucent.com>
38773
38774         * m4/jm-macros.m4: Require autoconf-2.52f.
38775         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
38776         Use these AC_-prefixed names, not the AM_-prefixed ones.
38777
38778         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
38779
38780 2001-11-05  Jim Meyering  <meyering@lucent.com>
38781
38782         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
38783
38784 2001-11-04  Jim Meyering  <meyering@lucent.com>
38785
38786         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
38787         $DEFS.
38788
38789 2001-11-03  Jim Meyering  <meyering@lucent.com>
38790
38791         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
38792         of AC_DEFUN.
38793
38794         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
38795         know the name of the variable in the macro definition.
38796
38797 2001-11-03  Jim Meyering  <meyering@lucent.com>
38798
38799         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
38800         in argmatch_to_argument call.
38801
38802         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
38803         argument.
38804
38805         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
38806         e.g., a fault due to an attempt to free a NULL pointer.
38807
38808 2001-11-01  Jim Meyering  <meyering@lucent.com>
38809
38810         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
38811         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
38812
38813 2001-11-01  Jim Meyering  <meyering@lucent.com>
38814
38815         * lib/dirfd.c, lib/dirfd.h: New files.
38816         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
38817
38818         * lib/hash.c (hash_print) [TESTING]: Clean up.
38819
38820 2001-10-22  Paul Eggert  <eggert@twinsun.com>
38821
38822         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
38823         to avoid a warning if -Wall.
38824
38825 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
38826
38827         * README: New file
38828         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
38829         (per RMS's instructions, this is now the canonical source)
38830         * lgpl/, gpl/: New directories.
38831
38832 2001-10-21  Paul Eggert  <eggert@twinsun.com>
38833
38834         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
38835
38836 2001-10-21  Jim Meyering  <meyering@lucent.com>
38837
38838         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
38839         this code would end up calling gettext even in packages built
38840         with --disable-nls.
38841         * lib/getopt.c (_): Likewise.
38842         * lib/regex.c (_): Likewise.
38843
38844 2001-10-20  Paul Eggert  <eggert@twinsun.com>
38845
38846         * m4/error.m4 (jm_PREREQ_ERROR):
38847         Do not invoke AC_CHECK_FUNCS with strerror_r, as
38848         AC_FUNC_STRERROR_R does that.
38849         Check for strerror declaration.
38850
38851         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
38852         are supposed to have them these days.
38853         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
38854         Merge changes from latest Autoconf CVS.
38855         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
38856         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
38857         POSIX decided to standardize on the int flavor of strerror_r.
38858
38859 2001-10-20  Paul Eggert  <eggert@twinsun.com>
38860
38861         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
38862         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
38863         Use strerror_r that is only a macro, even if it is not a function.
38864         (strerror): Check for HAVE_DECL_STRERROR before declaring.
38865         (private_strerror): Use prototypes, not old-style function definition.
38866         (print_errno_message): New function.
38867         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
38868         char*-flavored one.
38869         (error_tail, error, error_at_line): Use it.
38870
38871 2001-10-11  Jim Meyering  <meyering@lucent.com>
38872
38873         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
38874         and quote_n (1, ... to avoid clobbering a buffer.
38875
38876 2001-10-05  Jim Meyering  <meyering@lucent.com>
38877
38878         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
38879         hash-pjw.h.
38880         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
38881         * lib/hash-pjw.h: New file.
38882
38883 2001-09-30  Jim Meyering  <meyering@lucent.com>
38884
38885         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
38886         `struct fsstat' has the `f_fstypename' member.
38887         Use that to define FS_TYPE, which is now used to make
38888         the getfsstat link test tighter.
38889
38890 2001-09-30  Jim Meyering  <meyering@lucent.com>
38891
38892         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
38893         Include <sys/ucred.h>, for Apple Darwin.
38894         Include sys/mount.h and sys/fs_types.h only if available.
38895         (FS_TYPE): Define.
38896         (read_filesystem_list): Use FS_TYPE.
38897
38898 2001-09-29  Paul Eggert  <eggert@twinsun.com>
38899
38900         * lib/exclude.c (excluded_filename): 0 -> false, since it's
38901         a boolean context.
38902
38903 2001-09-29  Jim Meyering  <meyering@lucent.com>
38904
38905         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
38906         [one-argument getmntent function]): Include stdio.h before mntent.h.
38907         SunOS 4.1.x needs it for the declaration of `FILE'.
38908         Patch by Volker Borchert.
38909
38910         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
38911         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
38912         sys/fs_types.h, and make the link-test for getfsstat guard #include
38913         directives with appropriate #if HAVE_*_H tests so that we can
38914         detect getfsstat on Apple Darwin1.3.7 systems.
38915         Reported by Nelson Beebe.
38916         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
38917
38918 2001-09-28  Paul Eggert  <eggert@twinsun.com>
38919
38920         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
38921         #defines strtoimax.  Also treat the other strto* functions
38922         like strtoimax.
38923
38924         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
38925         Check for strtoul and strtoumax,
38926         as those declarations are made even in the signed case.
38927         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
38928         Likewise, for strtol and strtoimax.
38929
38930 2001-09-28  Paul Eggert  <eggert@twinsun.com>
38931
38932         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
38933         #defines strtoimax.  Also treat the other strto* functions
38934         like strtoimax.
38935
38936         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
38937         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
38938         (strtoimax, strtoumax): Do not declare if already defined as a macro.
38939
38940 2001-09-26  Jim Meyering  <meyering@lucent.com>
38941
38942         Most macros in unlocked-io.h had the wrong number of arguments.
38943         * lib/gen-uio: New script.
38944         (USE_UNLOCKED_IO): Define to 1 if not already defined.
38945         * lib/unlocked-io.hin: Remove file.
38946         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
38947         rather than trying to embed it here.
38948         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
38949         Reported by Padraig Brady.
38950
38951 2001-09-25  Volker Borchert  <bt@teknon.de>
38952
38953         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
38954         `result'.
38955
38956 2001-09-24  Jim Meyering  <meyering@lucent.com>
38957
38958         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
38959
38960 2001-09-23  Jim Meyering  <meyering@lucent.com>
38961
38962         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
38963         instead of the mere test for existence of mntent.h.  The latter
38964         would get a false-positive on AIX 3.4 systems.
38965         In the outer getmntent if-block, don't die if neither of the getmntent
38966         tests succeeds.  Instead, just fall through and continue with the
38967         remaining tests.
38968
38969 2001-09-23  Jim Meyering  <meyering@lucent.com>
38970
38971         * lib/mountlist.c: Remove useless parentheses in #if directives.
38972         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
38973         the deprecated MOUNTED symbol is no longer defined in mntent.h.
38974
38975 2001-09-22  Jim Meyering  <meyering@lucent.com>
38976
38977         * m4/gettext.m4: New file.  From gettext.
38978         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
38979         * m4/progtest.m4: Likewise
38980         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
38981         * m4/glibc21.m4: Likewise.
38982
38983         * m4/libintl.m4: Remove.  No longer used.
38984
38985 2001-09-22  Jim Meyering  <meyering@lucent.com>
38986
38987         * lib/localcharset.c: Update from latest gettext.
38988         * lib/config.charset: Likewise.
38989
38990 2001-09-20  Jim Meyering  <meyering@lucent.com>
38991
38992         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
38993         strtoimax.
38994         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
38995         strtoumax.
38996
38997 2001-09-20  Jim Meyering  <meyering@lucent.com>
38998
38999         * lib/xstrtol.c (strtoimax): Guard declaration with
39000         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
39001         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
39002         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
39003         (strtoumax): Likewise, for completeness (it wasn't necessary).
39004
39005 2001-09-17  Paul Eggert  <eggert@twinsun.com>
39006
39007         * lib/strtoimax.c (HAVE_LONG_LONG):
39008         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
39009         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
39010         to work around bug in IBM C compiler.
39011
39012 2001-09-17  Jim Meyering  <meyering@lucent.com>
39013
39014         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
39015         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
39016         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
39017         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
39018         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
39019         whenever the right hand side need not be expanded by the shell.
39020
39021 2001-09-16  Paul Eggert  <eggert@twinsun.com>
39022
39023         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
39024         library.  It's not correct, as some older glibcs are buggy.
39025         fnmatch wasn't fixed until glibc 2.2.
39026
39027         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
39028         special shell magic here.
39029
39030 2001-09-16  Jim Meyering  <meyering@lucent.com>
39031
39032         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
39033         * m4/jm-macros.m4: Require it.
39034
39035 2001-09-16  Jim Meyering  <meyering@lucent.com>
39036
39037         * lib/mkdir.c: New file.
39038
39039 2001-09-15  Jim Meyering  <meyering@lucent.com>
39040
39041         * m4/jm-macros.m4: Check for help2man.
39042
39043 2001-09-11  Jim Meyering  <meyering@lucent.com>
39044
39045         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
39046         The body, by Paul Eggert, was moved here from configure.in.
39047         * m4/jm-macros.m4: Require UTILS_HOST_OS.
39048
39049 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39050
39051         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
39052         (jm_PREREQ): Use it.
39053
39054 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39055
39056         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
39057         Use ssize_t, not int, to store result of readlink.
39058         Check for ssize_t overflow as well as size_t overflow,
39059         as POSIX says the result of readlink is implementation-defined
39060         when ssize_t overflows.
39061         Remove unnecessary cast to char*.
39062         Use free+malloc instead of realloc, as the storage doesn't need
39063         to be preserved and it's clearer and can be more efficient that way.
39064         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
39065         * lib/xreadlink.h (xreadlink): Update prototype.
39066
39067 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39068
39069         * lib/xgetcwd.c: Revert some of the previous change; intead,
39070         fix the HAVE_GETCWD_NULL code to behave more like the
39071         !HAVE_GETCWD_NULL code used to.
39072
39073         Include "xalloc.h".
39074         (xgetcwd): Do not return NULL when memory is exhausted; instead,
39075         invoke xalloc_die.
39076
39077 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39078
39079         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
39080         sys/param.h, as pathmax.h includes them.
39081
39082 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39083
39084         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
39085         (jm_PREREQ_XGETCWD): New macro.
39086
39087         * m4/getcwd.m4: New file.
39088
39089 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39090
39091         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
39092         like the HAVE_GETCWD_NULL code.
39093         Include pathmax.h if not HAVE_GETCWD.
39094         Do not include xalloc.h.
39095         (INITIAL_BUFFER_SIZE): New symbol.
39096         Do not use xmalloc / xrealloc, since the caller is responsible for
39097         handling errors.  Preserve errno around `free' during failure.
39098         Do not overrun buffer when using getwd.
39099
39100 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39101
39102         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
39103         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
39104         getcwd (NULL, 0).
39105
39106 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39107
39108         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
39109         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
39110         spotted by Jim Meyering.
39111
39112 2001-09-03  Jim Meyering  <meyering@lucent.com>
39113
39114         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
39115         failure.
39116
39117 2001-09-02  Jim Meyering  <meyering@lucent.com>
39118
39119         * lib/error.c: Update from GNU libc.
39120
39121 2001-09-01  Jim Meyering  <meyering@lucent.com>
39122
39123         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
39124         Used by df.
39125
39126 2001-09-01  Jim Meyering  <meyering@lucent.com>
39127
39128         * lib/xreadlink.c: New file.
39129         * lib/xreadlink.h: New file.
39130         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
39131         xreadlink.h.
39132
39133         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
39134         doesn't conflict with sparc Solaris 7's definition in
39135         /usr/include/sys/int_types.h.
39136
39137         * lib/exclude.c: Use `""', not `<>' to #include non-system header
39138         files.
39139         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
39140         and strncasecmp as r-values.  Unixware didn't have declarations.
39141
39142 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39143
39144         * lib/xstrtol.h: Add copyright notice.
39145         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
39146         LONGINT_INVALID_SUFFIX_CHAR.
39147
39148 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39149
39150         * lib/xstrtol.c (strtoimax): New decl.
39151
39152 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39153
39154         * lib/xgetcwd.c: Don't include pathmax.h.
39155         Include stdlib.h and unistd.h if available.
39156         Include xalloc.h.
39157         (xmalloc, xstrdup, free): Remove decls.
39158         (xgetcwd): Don't assume sizes fit in unsigned.
39159         Check for overflow when computing sizes.
39160         Simplify reallocation code.
39161
39162 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39163
39164         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
39165         a directory's st_size can have an arbitrary value, so the old
39166         usage could waste an arbitrary amount of memory.  All uses
39167         changed.
39168         * lib/savedir.h: Update prototype.
39169
39170 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39171
39172         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
39173
39174         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
39175         old strtoimax.c.
39176
39177         Also, make the following further changes to make this file's
39178         configuration more similar to that of strtol.c:
39179         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
39180         (strtoumax, uintmax_t, strtoull, strtol): Remove.
39181         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
39182         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
39183         changed to signed values.
39184
39185         And make the following changes as well:
39186         Fix copyright notice, as 1999 was missing.
39187         (verify): New macro.
39188         (strtoimax): Check sizes at compile-time, not run-time.
39189         Prefer strtol to strtoll if both work.
39190         (main): Remove; it was not that useful and was a pain to maintain.
39191
39192         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
39193
39194 2001-08-31  Jim Meyering  <meyering@lucent.com>
39195
39196         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
39197         Use an initial, malloc'd, buffer of length 128 rather than
39198         a statically allocated one of length 1024.
39199
39200 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39201
39202         Simplify code, partly by assuming autoconf 2.52 semantics.
39203
39204         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
39205
39206         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
39207         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
39208         All uses removed.
39209         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
39210         Move AC_REQUIRE to next-to-top level, to avoid confusion.
39211         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
39212         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
39213         jm_AC_HEADER_INTTYPES_H.
39214         * m4/jm-macros.m4 (jm_MACROS): Likewise.
39215
39216         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
39217
39218         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
39219         Quote first arg of AC_DEFUN.
39220         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
39221         since they are needed to parse the include file even if we need
39222         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
39223         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
39224         but with opposite signedness.
39225
39226 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39227
39228         Merge 'exclude' changes from tar 1.13.22.
39229         This fixes one or two unlikely storage allocation overflow bugs,
39230         but doesn't change user-visible behavior otherwise.
39231
39232 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39233
39234         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
39235         (jm_PREREQ_EXCLUDE): New macro.
39236
39237 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39238
39239         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
39240         tm to be declared.
39241
39242 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39243
39244         * lib/hash.c: Remove '2001' from copyright notice.
39245
39246 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39247
39248         * lib/full-write.h: New file.
39249         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
39250         * lib/full-write.c: Correct credits, as cccp.c no longer
39251         exists and anyway it was so heavily changed from the old cccp
39252         code as to be unrecognizable.  Include full-write.h.
39253         (full_write) Return size_t, with short writes meaning failure.
39254         All callers changed.  This fixes a bug with large buffers
39255         on 64-bit hosts.
39256         * lib/utime.c: Include full-write.h.
39257
39258 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39259
39260         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
39261         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
39262         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
39263         Include if available.
39264         (<xalloc.h>): Include
39265         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
39266         (verify): New macro.  Use it to verify that EXCLUDE macros do not
39267         collide with FNM macros.
39268         (struct patopts): New struct.
39269         (struct exclude): Use it, as exclude patterns now come with options.
39270         (new_exclude): Support above changes.
39271         (new_exclude, add_exclude_file):
39272         Initial size must now be a power of two to simplify overflow checking.
39273         (free_exclude, fnmatch_no_wildcards): New function.
39274         (excluded_filename): No longer requires options arg, as the options
39275         are determined by add_exclude.  Now returns bool, not int.
39276         (excluded_filename, add_exclude):
39277         Add support for the fancy new exclusion options.
39278         (add_exclude, add_exclude_file): Now takes int options arg.
39279         Check for arithmetic overflow when computing sizes.
39280         (add_exclude_file): xrealloc might modify errno, so don't
39281         realloc until after errno might be used.
39282
39283         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
39284         New macros.
39285         (free_exclude): New decl.
39286         (add_exclude, add_exclude_file): Now takes int options arg.
39287         (excluded_filename): No longer requires options arg, as the options
39288         are determined by add_exclude.  Now returns bool, not int.
39289
39290 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39291
39292         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
39293
39294 2001-08-27  Jim Meyering  <meyering@lucent.com>
39295
39296         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
39297
39298         * lib/version-etc.c (N_): Remove definition.
39299         Revert most of last change.
39300         Instead, simply don't mark the `Copyright...' string for translation.
39301         Based on advice from Paul Eggert.
39302
39303         * lib/strtoxmax.c: Tweak comment.
39304
39305 2001-08-26  Jim Meyering  <meyering@lucent.com>
39306
39307         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
39308
39309         * m4/xstrtoimax.m4: New file.
39310         * m4/xstrtoumax.m4: Add comments explaining why we
39311         AC_REPLACE_FUNCS(strtol).
39312
39313 2001-08-26  Jim Meyering  <meyering@lucent.com>
39314
39315         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
39316         of copyright with `%s' so translators don't get an untranslated
39317         message in 2002.
39318         (COPYRIGHT_YEAR): Define.
39319         (version_etc): Use fprintf rather than fputs.
39320         Suggestion from Ulrich Drepper.
39321
39322         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
39323
39324         * lib/strtoll.c: New file, from GNU libc.
39325         * lib/xstrtoimax.c: New file.
39326
39327         * lib/xstrtol.h: Add xstrtoimax.
39328         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
39329         * lib/strtoimax.c: New file.  Likewise, but first define
39330         STRTOUXMAX_SIGNED.
39331
39332         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
39333         ...
39334         * lib/strtoxmax.c: ... then renamed to this.
39335
39336 2001-08-18  Paul Eggert  <eggert@twinsun.com>
39337
39338         * m4/inttypes.m4: Add AC_PREREQ(2.13).
39339         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
39340         (jm_AC_TYPE_INTMAX_T): New macro.
39341         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
39342
39343         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
39344
39345         * m4/longlong.m4: Renamed from ulonglong.m4.
39346         * m4/inttypes.m4: Renamed from inttypes_h.m4.
39347         * m4/uintmax_t.m4: Removed.
39348
39349 2001-08-13  Paul Eggert  <eggert@twinsun.com>
39350
39351         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
39352         Port to Solaris 8, where 'sed' requires a space after the 'r'
39353         command, and where sh dislikes "$/".  Clean up the spacing a bit.
39354         Redirect output to $tmp just once.
39355
39356 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
39357
39358         * lib/addext.c (<errno.h>): Include.
39359         (errno): Declare if not defined.
39360         (addext): Work correctly when pathconf returns -1 and leaves
39361         errno alone because there is no limit.  Also, work even if
39362         pathconf returns a value greater than SIZE_MAX.
39363
39364 2001-08-12  Jim Meyering  <meyering@lucent.com>
39365
39366         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
39367         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
39368         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
39369         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
39370         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
39371         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
39372         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
39373         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
39374         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
39375         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
39376         utime.m4, utimes.m4, xstrtoumax.m4:
39377         Quote the first argument in each use of AC_DEFUN.
39378
39379 2001-08-12  Jim Meyering  <meyering@lucent.com>
39380
39381         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
39382         Simply `return getcwd (NULL, 0);'.
39383         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
39384         Use 1300 as initial value for length, not PATH_MAX.
39385
39386         * lib/pathmax.h: Clean up cpp syntax.
39387
39388 2001-08-12  Jim Meyering  <meyering@lucent.com>
39389
39390         * lib/gettimeofday.c: New file.
39391         * lib/gtod.h: New file.
39392         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
39393
39394 2001-08-05  Jim Meyering  <meyering@lucent.com>
39395
39396         * m4/jm-macros.m4: Require autoconf-2.52.
39397
39398 2001-08-04  Jim Meyering  <meyering@lucent.com>
39399
39400         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
39401         stmt, to get in sync with glibc.
39402
39403 2001-08-03  Paul Eggert  <eggert@twinsun.com>
39404
39405         The following changes are from gettext 0.10.39 as maintained by
39406         Bruno Haible.
39407
39408         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
39409         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
39410         with inverted sense.  All uses changed.
39411
39412         * lib/mbswidth.c: Don't include <limits.h>.
39413         Include <stdlib.h> and <string.h> unconditionally.
39414         (iswcntrl, mbsinit, ISCNTRL): New macros.
39415         (mbsnwidth): Use K&R style function declarations.
39416         Don't bother checking for MB_LEN_MAX == 1, since the compiler
39417         can optimize it when MB_CUR_MAX == 1.
39418         The width of control characters is zero, not 1.
39419
39420 2001-08-03  Paul Eggert  <eggert@twinsun.com>
39421
39422         The following changes are from gettext 0.10.39 as maintained by
39423         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
39424
39425         * m4/codeset.m4: Upgrade to serial AM1.
39426         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
39427         all uses changed.  Quote first arg of AC_DEFUN.
39428         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
39429
39430         * m4/iconv.m4: Upgrade to serial AM2.
39431         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
39432         Add --with-libconv-prefix.
39433         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
39434         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
39435         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
39436         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
39437         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
39438
39439         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
39440         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
39441         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
39442         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
39443         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
39444         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
39445         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39446         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
39447         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
39448
39449         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
39450         string.h any more.
39451
39452         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
39453         not the default value.
39454
39455         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
39456         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
39457         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
39458         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
39459         Also check for iswcntrl, used for wcwidth fallback.
39460         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
39461         to Autoconf 2.13.
39462
39463 2001-08-03  Jim Meyering  <meyering@lucent.com>
39464
39465         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
39466         as it was in the original.  Reported by Paul Eggert.
39467
39468 2001-07-16  Jim Meyering  <meyering@lucent.com>
39469
39470         * m4/gettimeofday.m4: New file.
39471         Prompted by a report from Bernhard Baehr.
39472
39473 2001-07-15  Jim Meyering  <meyering@lucent.com>
39474
39475         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
39476         stuff. Now it's in ../Makefile.cfg.
39477
39478 2001-07-15  Jim Meyering  <meyering@lucent.com>
39479
39480         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
39481         (BUILT_SOURCES): Add unlocked-io.h.
39482         (io_functions): Define.
39483         (unlocked-io.h): New rule.
39484         (DISTCLEANFILES): Add unlocked-io.h.
39485         (all-local): Depend on unlocked-io.h, to ensure it is created.
39486
39487         * lib/unlocked-io.hin: New file
39488
39489         * lib/regex.c: Update from glibc.
39490
39491 2001-07-05  Jim Meyering  <meyering@lucent.com>
39492
39493         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
39494         recommendation.
39495         (libfetish_a_SOURCES): Put all .h files here instead.
39496         Remove a thus-exposed (better checks in automake) duplicate and
39497         two unnecessary .h files.
39498
39499 2001-07-04  Jim Meyering  <meyering@lucent.com>
39500
39501         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
39502         that generates jm-glibc-io.m4 so that it doesn't trigger any make
39503         distcheck failure.
39504
39505 2001-07-02  Jim Meyering  <meyering@lucent.com>
39506
39507         The following changes were prompted by suggestions from Bruno Haible.
39508
39509         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
39510         is now generated.
39511         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
39512         definition of EXTRA_DIST.
39513         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
39514         ensure that the generated file is created/updated whenever the list
39515         of $(unlocked_functions) is changed.
39516         (jm-glibc-io.m4): New rule.
39517         (unlocked-io.h): New rule -- currently unused.
39518
39519 2001-06-24  Jim Meyering  <meyering@lucent.com>
39520
39521         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
39522         unmatched right bracket, rather than kludging it with an extra,
39523         falsely-matching quote in a comment.  Patch by Akim Demaille.
39524
39525 2001-06-11  Jim Meyering  <meyering@lucent.com>
39526
39527         * lib/regex.c: Update from GNU libc.
39528
39529 2001-05-27  Jim Meyering  <meyering@lucent.com>
39530
39531         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
39532         Check for ut_type in struct utmp.
39533
39534 2001-05-27  Jim Meyering  <meyering@lucent.com>
39535
39536         * lib/readutmp.h (UT_TYPE): Define.
39537
39538 2001-05-24  Jim Meyering  <meyering@lucent.com>
39539
39540         * lib/argmatch.c: Include "quote.h".
39541         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
39542         quote function.  Reported by Göran Uddeborg.
39543
39544 2001-05-22  Jim Meyering  <meyering@lucent.com>
39545
39546         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
39547         now that we use the package-supplied version unconditionally.
39548         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
39549
39550 2001-05-21  Jim Meyering  <meyering@lucent.com>
39551
39552         * m4/regex.m4: Change a couple backticks to single quotes to avoid
39553         shell syntax errors.
39554
39555 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
39556
39557         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
39558
39559 2001-05-20  Paul Eggert  <eggert@twinsun.com>
39560
39561         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
39562         Don't bother to check library strftime, since
39563         we'll be using our own my_strftime function anyway.
39564         Define my_strftime instead of strftime.
39565
39566 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
39567
39568         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
39569         which is not yet declared.
39570
39571 2001-05-15  Jim Meyering  <meyering@lucent.com>
39572
39573         * m4/regex.m4: Use proper quoting so brackets appear in the test
39574         program.
39575         Reported by, and with help from, Bruno Haible.
39576
39577 2001-05-13  Jim Meyering  <meyering@lucent.com>
39578
39579         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
39580         undefined.
39581
39582 2001-05-11  Paul Eggert  <eggert@twinsun.com>
39583
39584         dirname code cleanup.  base_name now behaves more compatibly
39585         with POSIX basename when given file names that have trailing
39586         slashes, and similarly for dir_name.  Add new primitives
39587         base_len and dir_len.  Put the directory-name-related decls
39588         into dirname.h.
39589
39590         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
39591         * lib/backupfile.c (base_name): Likewise.
39592         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
39593         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
39594         * lib/makepath.c (strip_trailing_slashes): Likewise.
39595         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
39596         ISSLASH): Likewise.
39597         * lib/rename.c (strip_trailing_slashes): Likewise.
39598         * lib/same.c (base_name): Likewise.
39599         * lib/stripslash.c (ISSLASH): Likewise.
39600
39601         * lib/addext.c: Include <dirname.h> after size_t is defined.
39602         * lib/backupfile.c: Likewise.
39603
39604         * lib/addext.c (addext): Use base_len to trim redundant
39605         trailing slashes instead of doing it ourselves.
39606         But do not trim the last slash if it is not redundant.
39607
39608         * lib/backupfile.c (find_backup_file_name,
39609         max_backup_version): Use base_len instead of rolling it ourselves.
39610         Handle the case of "" and (on DOS) "C:" correctly.
39611
39612         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
39613         needed. Include <string.h>, <dirname.h>.
39614         (base_name): Allow file names ending in slashes, other than names
39615         that are all slashes.  In this case, return the basename followed
39616         by the slashes.  This is more general, and can be used in places
39617         where the original base_name purposely had an assertion failure.
39618         (base_len): New function.
39619
39620         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
39621         Do not include <assert.h>; no longer needed.
39622         Include xalloc.h.
39623         (memrchr): Remove decl.
39624         (dir_name_r): Remove.
39625         (dir_len): Renamed from dirlen.  All callers changed.
39626         Rewrite in terms of base_name, for simplicity and consistency.
39627         (dir_name): Never return NULL.  All callers changed.
39628         Do not include <stdlib.h> in test program; no longer needed.
39629         return 0; is fine for test program.
39630
39631         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
39632         New macros.
39633         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
39634
39635         * lib/path-concat.c (path_concat): Use base_len to compute
39636         base length, not strlen; this means we cannot rely on memcpy
39637         to null-terminate.
39638
39639         * lib/same.c (STREQ): Remove.
39640         (same_name): Handle the case where the basename ends in trailing '/'.
39641
39642         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
39643         a slash was stripped.  Do not strip the last slash after a
39644         file system prefix.
39645
39646 2001-05-11  Paul Eggert  <eggert@twinsun.com>
39647
39648         * lib/Makefile.am (libfetish_a_SOURCES):
39649         Add strftime.c, since we now compile it on all hosts.
39650
39651         * lib/strftime.c (my_strftime):
39652         Define to nstrftime if emacs, but only if my_strftime is not defined.
39653         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
39654         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
39655         Add one more extra argument: a nanoseconds value.
39656         All uses changed.
39657         (ns): New macro.
39658         (my_strftime function): Add %N format.
39659         (emacs_strftimeu): Renamed from emacs_strftime,
39660         with extra ut argument.
39661
39662 2001-05-09  Paul Eggert  <eggert@twinsun.com>
39663
39664         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
39665
39666 2001-04-21  Jim Meyering  <meyering@lucent.com>
39667
39668         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
39669         doesn't interfere.
39670
39671 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
39672
39673         * m4/ftruncate.m4: Check for chsize.
39674         Link with ftruncate.o unconditionally if ftruncate is missing.
39675         This was required when cross-compiling to i586-mingw32msvc.
39676
39677 2001-04-08  Jim Meyering  <meyering@lucent.com>
39678
39679         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
39680         recomputed; that's necessary when the offset spans a DST transition.
39681         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
39682
39683 2001-04-02  Jim Meyering  <meyering@lucent.com>
39684
39685         * lib/regex.h, regex.c: Update from GNU libc.
39686
39687 2001-03-24  Jim Meyering  <meyering@lucent.com>
39688
39689         * m4/jm-macros.m4: Require autoconf-2.49d.
39690
39691 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
39692
39693         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
39694
39695 2001-03-19  Paul Eggert  <eggert@twinsun.com>
39696
39697         * lib/version-etc.c (version_etc_copyright): Update to 2001.
39698
39699 2001-03-17  Jim Meyering  <meyering@lucent.com>
39700
39701         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
39702         now that the version in autoconf is equivalent.
39703         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
39704
39705         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
39706         Suggestion from Akim Demaille.
39707
39708         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
39709         (jm_PREREQ_TEMPNAME): New function.
39710
39711 2001-03-16  Paul Eggert  <eggert@twinsun.com>
39712
39713         * lib/tempname.c (uint64_t): Define to uintmax_t if
39714         not defined, and if UINT64_MAX is not defined.
39715         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
39716         Reported by John David Anglin.
39717
39718 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
39719
39720         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
39721         resolve alias if codeset is empty.
39722         * lib/config.charset (BeOS): Use wildcard syntax.
39723
39724 2001-03-13  Jim Meyering  <meyering@lucent.com>
39725
39726         * lib/path-concat.c (path_concat)
39727         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
39728         concatenating e.g., `C:' and `foo'.
39729         From Bruno Haible.
39730
39731 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
39732
39733         * lib/localcharset.c (locale_charset): Don't use
39734         setlocale(LC_CTYPE,NULL). Don't return NULL.
39735         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
39736
39737 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
39738
39739         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
39740         support for DOS/DJGPP.
39741
39742 2001-03-01  Paul Eggert  <eggert@twinsun.com>
39743
39744         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
39745         lacks mkstemp.  Compile our own tempname.c if we compile our own
39746         mkstemp.c, as mkstemp relies on tempname.
39747
39748 2001-03-01  Jim Meyering  <meyering@lucent.com>
39749
39750         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
39751         AH_VERBATIM really does output its argument verbatim.
39752
39753 2001-02-28  Paul Eggert  <eggert@twinsun.com>
39754
39755         * lib/Makefile.am (libfetish_a_SOURCES):
39756         Add dup-safer.c, fopen-safer.c.
39757         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
39758
39759         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
39760         * lib/unistd-safer.h: New files.
39761
39762 2001-02-25  Paul Eggert  <eggert@twinsun.com>
39763
39764         The mkstemp replacement is taken from glibc 2.2.2, with some
39765         portability fixes for use outside glibc, as follows:
39766
39767         * lib/tempname.c (struct_stat64): New macro.
39768         (direxists, __gen_tempname): Use it.
39769         This avoids a portability problem with Solaris 8.
39770
39771         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
39772         (<stddef.h>, <stdint.h>, <string.h>):
39773         Include only if STDC_HEADERS || _LIBC.
39774         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
39775         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
39776         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
39777         (__set_errno): Define this macro if <errno.h> doesn't.
39778         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
39779         Define these macros if <stdio.h> doesn't.
39780         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
39781         Define these macros if <sys/stat.h>
39782         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
39783         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
39784         __xstat64): Define if not _LIBC.
39785         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
39786         (__gen_tempname): Invoke gettimeofday only if
39787         HAVE_GETTIMEOFDAY || _LIBC;
39788         otherwise, fall back on plain "time".
39789         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
39790
39791         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
39792
39793         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
39794
39795 2001-02-18  Paul Eggert  <eggert@twinsun.com>
39796
39797         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
39798
39799 2001-02-17  Paul Eggert  <eggert@twinsun.com>
39800
39801         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
39802         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
39803         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
39804         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
39805
39806 2001-02-17  Paul Eggert  <eggert@twinsun.com>
39807
39808         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
39809         Remove workaround macros for hosts that have mbrtowc but not
39810         mbstate_t, as we now insist on proper declarations for both
39811         before using mbrtowc.
39812
39813 2001-02-17  Jim Meyering  <meyering@lucent.com>
39814
39815         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
39816         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
39817         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
39818         UnixWare 7.1.1.
39819
39820         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
39821         rather than AC_CACHE_VAL.
39822
39823 2001-02-17  Jim Meyering  <meyering@lucent.com>
39824
39825         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
39826         around included file name.
39827
39828         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
39829
39830         * lib/strftime.c: Update from GNU libc (the only changes were to
39831         comments).
39832
39833 2001-02-17  Jim Meyering  <meyering@lucent.com>
39834
39835         * lib/regex.c: Update from libc.
39836
39837 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
39838
39839         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
39840         clash.
39841
39842 2001-02-16  Paul Eggert  <eggert@twinsun.com>
39843
39844         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
39845         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
39846         Reported by Mark Hounschell via Paul Eggert.
39847
39848 2001-02-07  Jim Meyering  <meyering@lucent.com>
39849
39850         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
39851
39852 2001-02-05  Jim Meyering  <meyering@lucent.com>
39853
39854         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
39855         it includes the patch required for `large file' support with at least
39856         HP-UX's 10.20 /bin/cc.
39857
39858 2001-02-03  Jim Meyering  <meyering@lucent.com>
39859
39860         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
39861         AS_IF, now that it works once again (mysteriously).
39862         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
39863
39864 2001-01-30  Jim Meyering  <meyering@lucent.com>
39865
39866         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
39867         * m4/chown.m4: Rename conftestchown to conftest.chown.
39868         * m4/rename.m4: s/conftestdir/conftest.d1/ and
39869         s/conftestdir2/conftest.d2/.
39870         * m4/utimes.m4: s/conftestdata/conftest.data/
39871         Inspired by Pavel Roskin's change in autoconf.
39872
39873 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
39874
39875         * lib/config.charset: Update for FreeBSD 4.2.
39876
39877 2001-01-27  Jim Meyering  <meyering@lucent.com>
39878
39879         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
39880         a use of AS_IF.
39881         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
39882
39883 2001-01-26  Jim Meyering  <meyering@lucent.com>
39884
39885         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
39886         quotearg.c includes it.
39887
39888 2001-01-26  Jim Meyering  <meyering@lucent.com>
39889
39890         * lib/quotearg.c: Include stddef.h.
39891         * lib/quote.c: Include stddef.h.
39892         Reported by Axel Kittenberger.
39893
39894         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
39895         line in double quotes so that it evokes a better diagnostic.
39896         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
39897         Reported by Axel Kittenberger.
39898
39899 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
39900
39901         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
39902         as if it was a `charset'.
39903
39904 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
39905
39906         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
39907         has const.
39908
39909 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
39910
39911         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
39912         to avoid a warning.  Add back 'const' to inptr.
39913
39914 2001-01-20  Jim Meyering  <meyering@lucent.com>
39915
39916         Be sure that headers are checked before used in code compiled
39917         for the type checks.
39918         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
39919         In place of that, invoke jm_CHECK_ALL_TYPES.
39920         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
39921         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
39922         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
39923         The check for ssize_t was mistakenly run before the test for unistd.h.
39924
39925         The configure-time check for stdbool.h was missing.
39926         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
39927         (jm_PREREQ_HASH): New function.
39928
39929 2001-01-17  Jim Meyering  <meyering@lucent.com>
39930
39931         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
39932         for autoconf-2.49c.
39933         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
39934
39935 2001-01-16  Jim Meyering  <meyering@lucent.com>
39936
39937         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
39938         From Bruno Haible.
39939
39940 2001-01-14  Jim Meyering  <meyering@lucent.com>
39941
39942         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
39943         foo and bar.  Create conftestdir/ in the script, not in the C code.
39944         Remove directories in the script, not in the C code.
39945         Remove conftestdir{,2} before trying to create the directory.
39946         Make the entire configure script fail if the mkdir fails.
39947
39948 2001-01-14  Jim Meyering  <meyering@lucent.com>
39949
39950         * lib/rename.c: New file.  From Volker Borchert.
39951         Include stdlib.h, string.h or strings.h, and xalloc.h.
39952         Use strip_trailing_slashes rather than open-coding it.
39953
39954 2001-01-03  Paul Eggert  <eggert@twinsun.com>
39955
39956         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
39957
39958 2001-01-03  Jim Meyering  <meyering@lucent.com>
39959
39960         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
39961         of local `inptr' to avoid warning with some system declarations of
39962         iconv.
39963
39964 2001-01-02  Volker Borchert  <bt@teknon.de>
39965
39966         * m4/rename.m4: New file.
39967         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
39968
39969 2001-01-01  Jim Meyering  <meyering@lucent.com>
39970
39971         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
39972         even on systems with utmpx.h.  It's necessary for the declaration of
39973         utmp's ut_user member.  Reported by Andreas Jaeger.
39974
39975         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
39976         available. They are required for the declarations of getgrgid and
39977         getpwuid resp.
39978         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
39979         Reported by Andreas Jaeger.
39980
39981 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
39982
39983         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
39984         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
39985         so `make install' also works in VPATH builds.
39986
39987 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
39988
39989         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
39990         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
39991         can be used in subdirectories.
39992
39993 2000-12-29  Paul Eggert  <eggert@twinsun.com>
39994
39995         * lib/modechange.c: Do not assume that mode_t uses the
39996         traditional octal encoding.  E.g. "chmod 1 FOO" should set
39997         the other-execute bit of FOO even if S_IXOTH != 1.
39998
39999         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
40000         WOTH, XOTH, ALLM): New macros.
40001         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
40002          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
40003         Use them.
40004         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
40005         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
40006         (mode_compile):
40007         No need to use uintmax_t; unsigned long is long enough.
40008         Don't bother to get suffix since we don't use it.
40009
40010 2000-12-26  Jim Meyering  <meyering@lucent.com>
40011
40012         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
40013         better with autoheader.
40014
40015 2000-12-24  Jim Meyering  <meyering@lucent.com>
40016
40017         * lib/hash.c (is_prime): Return explicit boolean values.
40018         (hash_get_first): Return NULL to appease Irix5.6's 89.
40019         Reported by Nelson Beebe.
40020
40021 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
40022
40023         * lib/localcharset.c (locale_charset): Add support for Win32.
40024
40025 2000-12-18  Paul Eggert  <eggert@twinsun.com>
40026
40027         * lib/physmem.h, lib/physmem.c: New files.
40028
40029         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
40030         (noinst_HEADERS): Add physmem.h.
40031
40032         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
40033         't' for compatibility with Solaris 8 sort.
40034
40035 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
40036
40037         * lib/config.charset: Add support for BeOS.
40038
40039 2000-12-17  Jim Meyering  <meyering@lucent.com>
40040
40041         * m4/dos.m4 (jm_AC_DOS): New file and macro.
40042         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
40043
40044 2000-12-16  Jim Meyering  <meyering@lucent.com>
40045
40046         This bug had a serious impact on chown: `chown N:M FILE' (for integer
40047         N and M) would have treated it like `chown N:N FILE'.
40048
40049         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
40050
40051 2000-12-16  Jim Meyering  <meyering@lucent.com>
40052
40053         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
40054         SHELLS_FILE to a file name that's useful on djgpp systems.
40055         Include stdlib.h.
40056         (ADDITIONAL_DEFAULT_SHELLS): Define.
40057         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
40058         Based mostly on a patch from Prashant TR.
40059
40060 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
40061
40062         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
40063         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
40064         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
40065
40066 2000-12-08  Andreas Schwab  <schwab@suse.de>
40067
40068         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
40069         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
40070
40071 2000-12-07  Jim Meyering  <meyering@lucent.com>
40072
40073         * lib/stripslash.c (ISSLASH): Define.
40074         (strip_trailing_slashes): Use ISSLASH rather than comparing against
40075         `/'.
40076         From Prashant TR.
40077
40078         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
40079         (dir_name_r): Declare this function as static.
40080         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
40081         manifest itself on a name containing a mix of slashes and
40082         backslashes.
40083         Make this function work with names starting with a DOS-style
40084         drive letter and colon prefix.
40085         (dir_name): Append `.' if necessary.
40086         Based mostly on patches from Prashant TR and Eli Zaretskii.
40087
40088         * lib/dirname.h (dir_name_r): Remove prototype.
40089
40090 2000-12-06  Paul Eggert  <eggert@twinsun.com>
40091
40092         * m4/off_t-format.m4: Remove this file.
40093         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
40094
40095 2000-12-06  Jim Meyering  <meyering@lucent.com>
40096
40097         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
40098         replacement strtoull, we may well need the replacement strtoul, too.
40099         Check for declarations of strtoul and strtoull.
40100         Check for strtol.  Mainly as a cue to cause automake to include
40101         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
40102         Check for limits.h -- strtol.c needs it.
40103
40104 2000-12-05  Jim Meyering  <meyering@lucent.com>
40105
40106         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
40107
40108 2000-12-04  Jim Meyering  <meyering@lucent.com>
40109
40110         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
40111         Also include memory.h, stdlib.h, unistd.h if appropriate.
40112         Reported by Andreas Jaeger (conflicting declaration of malloc).
40113
40114 2000-12-02  Jim Meyering  <meyering@lucent.com>
40115
40116         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
40117         * m4/jm-macros.m4 (jm_MACROS): require it.
40118
40119 2000-12-02  Jim Meyering  <meyering@lucent.com>
40120
40121         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
40122
40123 2000-12-01  Paul Eggert  <eggert@twinsun.com>
40124
40125         * lib/memrchr.c: Include <config.h> before any system include file.
40126
40127 2000-11-30  Jim Meyering  <meyering@lucent.com>
40128
40129         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
40130
40131 2000-11-30  Jim Meyering  <meyering@lucent.com>
40132
40133         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
40134
40135 2000-11-29  Paul Eggert  <eggert@twinsun.com>
40136
40137         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
40138
40139 2000-11-26  Jim Meyering  <meyering@lucent.com>
40140
40141         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
40142
40143 2000-11-22  Paul Eggert  <eggert@twinsun.com>
40144
40145         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
40146         size of (size_t) -1; it's not portable.
40147
40148 2000-11-17  Jim Meyering  <meyering@lucent.com>
40149
40150         * lib/strstr.c: Update from GNU libc.
40151
40152 2000-11-17  Akim Demaille  <akim@epita.fr>
40153
40154         * lib/obstack.h: Formatting changes.
40155         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
40156         prevent type checking.
40157         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
40158         cast the value to (void *): assigning a `foo *' to a `void *'
40159         variable is valid.
40160         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
40161
40162 2000-11-16  Jim Meyering  <meyering@lucent.com>
40163
40164         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
40165
40166 2000-11-11  Jim Meyering  <meyering@lucent.com>
40167
40168         * lib/error.c: Add a couple #includes, merging from GNU libc version.
40169
40170 2000-11-10  Jim Meyering  <meyering@lucent.com>
40171
40172         * lib/obstack.h: Update from GNU libc.
40173         * lib/obstack.c: Likewise.
40174
40175 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
40176
40177         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
40178
40179 2000-11-06  Paul Eggert  <eggert@twinsun.com>
40180
40181         * lib/getusershell.c (setusershell): Use rewind rather than
40182         fseek/fseeko, to avoid configuration hassles with fseeko.
40183         Don't bother opening SHELLS_FILE if shellstream is NULL;
40184         it's not necessary.
40185
40186 2000-11-05  Jim Meyering  <meyering@lucent.com>
40187
40188         * lib/makepath.h (make_dir): Declare.
40189         * lib/makepath.c (make_dir): Remove `static' attribute.
40190         Tweak a comment.
40191
40192 2000-11-04  Jim Meyering  <meyering@lucent.com>
40193
40194         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
40195
40196 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
40197
40198         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
40199         last one in a bucket, advance to the next bucket.
40200
40201 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
40202
40203         * lib/fnmatch.c: Do not comment out all the code if we are using
40204         the GNU C library, because in some cases we are replacing buggy
40205         code in the GNU C library itself.
40206
40207 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
40208
40209         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
40210         (regex_compile): Catch bogus \(\1\).
40211
40212 2000-10-30  Paul Eggert  <eggert@twinsun.com>
40213
40214         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
40215         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
40216         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
40217
40218 2000-10-30  Paul Eggert  <eggert@twinsun.com>
40219
40220         * lib/error.h, getline.h, modechange.h:
40221         Remove "2000" from Copyright line, as the file hasn't been
40222         changed this year other than in the copyright notice.
40223
40224         * lib/xalloc.h: Add "2000" to Copyright line, as this file
40225         was changed this year.
40226
40227 2000-10-29  Jim Meyering  <meyering@lucent.com>
40228
40229         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
40230         renaming.
40231         * m4/ls-mntd-fs.m4: Likewise
40232
40233 2000-10-29  Jim Meyering  <meyering@lucent.com>
40234
40235         * lib/xstat.in: Fix grammar in comment.
40236
40237 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
40238
40239         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
40240         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
40241         doesn't define __restrict_arr.
40242
40243 2000-10-28  Jim Meyering  <meyering@lucent.com>
40244
40245         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
40246         (jm_PREREQ_MEMCHR): New function.
40247
40248 2000-10-28  Jim Meyering  <meyering@lucent.com>
40249
40250         * lib/memchr.c: Update from libc.
40251         Adjust for portability:
40252         [HAVE_STDLIB_H]: Include stdlib.h.
40253         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
40254         Undef __memchr, too.
40255         [!weak_alias]: Define __memchr to memchr.
40256
40257         * lib/regex.c: Update from libc.
40258         * lib/regex.h: Likewise.
40259         * lib/getopt1.c: Likewise.
40260         * lib/memcmp.c: Likewise.
40261
40262         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
40263         Avoid using fseek, when possible -- it's broken by design.
40264         Patch by Ulrich Drepper.
40265
40266 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
40267
40268         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
40269         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
40270         Giving in to popular pressure to shut up the compiler with casts.
40271
40272 2000-10-26  Jim Meyering  <meyering@lucent.com>
40273
40274         * lib/strftime.c: Update from libc.
40275
40276 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
40277
40278         * regex.c: More `unsigned char' -> `re_char' changes.
40279         Also change several `int' into `re_wchar_t'.
40280         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
40281         (PUSH_FAILURE_POINTER): Don't cast any more.
40282         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
40283         We want GCC to complain, since this piece of code makes
40284         re_match non-reentrant, which *should* be fixed.
40285         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
40286         (EXTEND_BUFFER): Use RETALLOC.
40287         (SET_LIST_BIT): Don't cast.
40288         (re_wchar_t): New type.
40289         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
40290         that those two functions will always properly return.
40291         (IMMEDIATE_QUIT_CHECK): Cast to void.
40292         (analyse_first): Use recursion rather than an explicit stack.
40293         (re_compile_fastmap): Can't fail anymore.
40294         (re_search_2): Don't check re_compile_fastmap for failure.
40295         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
40296         Now also sets the new value (passed in a new argument).
40297         (re_match_2_internal): Use it.
40298         Also, use a new var `reg' of type size_t when looping through regs
40299         rather than reuse the inappropriate `mcnt'.
40300
40301 2000-10-25  Jim Meyering  <meyering@lucent.com>
40302
40303         * lib/obstack.c: Update from libc.
40304
40305 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
40306
40307         * regex.c (regex_compile): Change the way of handling a range from
40308         a char less than 256 to a char not less than 256.
40309
40310 2000-10-24  Andrew Innes  <andrewi@gnu.org>
40311
40312         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
40313         NT-Emacs only.
40314         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
40315         so that re_search functions only quit when callers expect them to.
40316
40317 2000-10-23  Jim Meyering  <meyering@lucent.com>
40318
40319         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
40320         wrong.  That set_locale call must not have any side effects.
40321         From Paul Eggert.
40322
40323 2000-10-22  Jim Meyering  <meyering@lucent.com>
40324
40325         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
40326         [CYCLIC]: Remove now-unused definition.
40327
40328         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
40329         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
40330         Suggestion from Ulrich Drepper.
40331
40332 2000-10-21  Jim Meyering  <meyering@lucent.com>
40333
40334         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
40335         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
40336         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
40337
40338 2000-10-21  Jim Meyering  <meyering@lucent.com>
40339
40340         * lib/dirname.c (memrchr): Declare if necessary.
40341         (dir_name): Remove the restriction that there be no
40342         trailing slashes.  Now, this code skips past them, effectively
40343         ignoring them.
40344         [TEST_DIRNAME] (main): New unit tests.
40345
40346         * lib/memrchr.c: New file from GNU libc.
40347         Undef __memrchr, too.
40348         [!weak_alias]: Define __memrchr to memrchr.
40349         Guard weak_alias use with `#ifdef weak_alias'.
40350
40351 2000-10-21  Jim Meyering  <meyering@lucent.com>
40352
40353         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
40354         (dir_name): Use dir_name_r.
40355         * lib/dirname.h (dir_name_r): Declare it.
40356
40357 2000-10-17  Jim Meyering  <meyering@lucent.com>
40358
40359         * lib/quote.h (PARAMS): Define and use.
40360         Reported by Akim Demaille.
40361
40362         * lib/getopt.c: Update from libc.
40363
40364 2000-10-16  Jim Meyering  <meyering@lucent.com>
40365
40366         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
40367         setlocale.
40368         From Jan Fedak.
40369
40370 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
40371
40372         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
40373
40374 2000-09-25  Jim Meyering  <meyering@lucent.com>
40375
40376         * lib/md5.h (rol): Define (from GnuPG).
40377
40378         * lib/sha.c: Give credit (GnuPG) where due.
40379         (M): Use rol rather than open-coding it.
40380         Add a FIXME comment.
40381
40382 2000-09-21  Jim Meyering  <meyering@lucent.com>
40383
40384         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
40385         Reported by Michael Stone.
40386
40387 2000-09-20  Jim Meyering  <meyering@lucent.com>
40388
40389         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
40390         (noinst_HEADERS): Add sha.h.
40391         Based on code from Scott G. Miller and from GnuPG.
40392
40393 2000-09-18  Jim Meyering  <meyering@lucent.com>
40394
40395         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
40396         LIBS. Otherwise, everyone ends up linking with -lelf for some
40397         configurations.
40398         Reported by Mike Stone.
40399
40400 2000-09-15  Jim Meyering  <meyering@lucent.com>
40401
40402         * lib/regex.c: Update from libc.
40403
40404 2000-09-10  Jim Meyering  <meyering@lucent.com>
40405
40406         * lib/getopt.c (_getopt_internal): Update from glibc.
40407
40408 2000-09-09  Jim Meyering  <meyering@lucent.com>
40409
40410         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
40411         think it should be used as a general replacement for isascii.
40412         * lib/fnmatch.c: Likewise.
40413         * lib/mbswidth.c: Likewise
40414         * lib/regex.c: Likewise.
40415
40416         Don't use atoi.
40417         * lib/userspec.c: Include sys/param.h and limits.h.
40418         Include xstrtol.h.
40419         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
40420         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
40421         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
40422         UID, GID.  Check range.
40423
40424 2000-09-06  Jim Meyering  <meyering@lucent.com>
40425
40426         * lib/getopt.c (_getopt_internal): Update from glibc.
40427
40428 2000-08-30  Jim Meyering  <meyering@lucent.com>
40429
40430         * lib/strftime.c: Merge in changes from GNU libc.
40431
40432 2000-08-26  Jim Meyering  <meyering@lucent.com>
40433
40434         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
40435         * m4/fpending.m4: New file.
40436
40437 2000-08-26  Jim Meyering  <meyering@lucent.com>
40438
40439         * lib/closeout.c: Include "__fpending.h".
40440         (close_stdout_status): Return right away if there's nothing to flush.
40441
40442         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
40443         * lib/__fpending.c: New file.
40444         * lib/__fpending.h: New file.
40445
40446 2000-08-20  Jim Meyering  <meyering@lucent.com>
40447
40448         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
40449         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
40450         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
40451
40452 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
40453
40454         Improve fileutils installation on systems where running
40455         programs (like install) can't be unlinked.
40456         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
40457         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
40458
40459 2000-08-07  Paul Eggert  <eggert@twinsun.com>
40460
40461         Standardize on "memory exhausted" instead of "Memory exhausted"
40462         or "virtual memory exhausted".
40463         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
40464         "virtual memory exhausted".
40465         * lib/same.c (same_name): Invoke xalloc_die instead of printing
40466         our own message.
40467         * lib/userspec.c (parse_user_spec): Likewise.
40468         * lib/bumpalloc.h: comment fix
40469         * lib/same.c, userspec.c: Include xalloc.h.
40470
40471         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
40472         not char *const and pointing to a constant array.
40473         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
40474         (xrealloc): Comment fix.
40475
40476         * lib/userspec.c (parse_user_spec):
40477         Don't translate a message until just before returning,
40478         to avoid unnecessary translation.
40479
40480 2000-08-07  Jim Meyering  <meyering@lucent.com>
40481
40482         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
40483         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
40484         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
40485         getgroups.c, gethostname.c, getopt.h, group-member.c,
40486         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
40487         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
40488         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
40489         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
40490         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
40491         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
40492         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
40493         yesno.c: Back out Copyright date changes for each file with no change
40494         this year.  This eases coordination with other programs using the same
40495         source code modules.  From Paul Eggert.
40496
40497 2000-08-06  Paul Eggert  <eggert@twinsun.com>
40498
40499         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
40500         not char, for compatibility with glibc 2.1.3 strftime.c.
40501
40502 2000-08-03  Greg McGary  <greg@mcgary.org>
40503
40504         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
40505         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
40506         (EXTEND_BUFFER): Use them.
40507
40508 2000-08-01  Jim Meyering  <meyering@lucent.com>
40509
40510         * lib/dirname.c (ISSLASH): Define.
40511         (BACKSLASH_IS_PATH_SEPARATOR): Define.
40512         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
40513         both `\' and `/' may be use as path separators.
40514         Based on a patch from Prashant TR.
40515
40516 2000-07-31  Paul Eggert  <eggert@twinsun.com>
40517
40518         * lib/quotearg.c (quotearg_n_options): Don't make the initial
40519         slot vector a constant, since it might get modified.
40520
40521 2000-07-31  Jim Meyering  <meyering@lucent.com>
40522
40523         * lib/xmalloc.c: Use `virtual memory exhausted', not
40524         `Memory exhausted'.
40525         * lib/obstack.c (print_and_abort): Likewise.
40526
40527 2000-07-30  Paul Eggert  <eggert@twinsun.com>
40528
40529         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
40530         buffer, so that the caller can always quote one small
40531         component of a "memory exhausted" message in slot 0.
40532         From a suggestion by Jim Meyering.
40533
40534 2000-07-30  Jim Meyering  <meyering@lucent.com>
40535
40536         * lib/makepath.c (make_path): Quote the other instance, too.
40537
40538         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
40539         (STATIC_BUF_SIZE): Define.
40540         (quotearg_n_options): Use only statically allocated storage when
40541         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
40542         than STATIC_BUF_SIZE.
40543
40544 2000-07-29  Jim Meyering  <meyering@lucent.com>
40545
40546         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
40547         * lib/dirname.c (dir_name): Likewise.
40548
40549         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
40550         `/'.
40551
40552         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
40553         (dir_name): Assert that there are no trailing slashes.
40554
40555 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
40556
40557         * lib/mbswidth.h (mbswidth): Add a flags argument.
40558         (mbswidth): New declaration.
40559         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
40560         * lib/mbswidth.c (mbswidth): Add a flags argument.
40561         (mbsnwidth): New function.
40562
40563 2000-07-24  Jim Meyering  <meyering@lucent.com>
40564
40565         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
40566
40567 2000-07-23  Paul Eggert  <eggert@twinsun.com>
40568
40569         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
40570
40571 2000-07-23  Paul Eggert  <eggert@twinsun.com>
40572
40573         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
40574         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
40575         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
40576         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
40577         invoke multibyte primitives.
40578
40579 2000-07-23  Paul Eggert  <eggert@twinsun.com>
40580
40581         * lib/quotearg.c:
40582         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
40583         so that mbstate_t is always defined.
40584
40585         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
40586         be 1 in at least one GCC installation, and this configuration
40587         error is likely to be common.  Ignoring MB_LEN_MAX hurts
40588         performance on hosts that have mbrtowc but have only unibyte
40589         locales, but I assume these hosts are rare.
40590
40591 2000-07-23  Paul Eggert  <eggert@twinsun.com>
40592
40593         * lib/mbswidth.c (_XOPEN_SOURCE):
40594         Don't define; this causes problems on Solaris 7.
40595         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
40596
40597 2000-07-23  Jim Meyering  <meyering@lucent.com>
40598
40599         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
40600         too: getgrgid, getpwuid, getuid.
40601
40602 2000-07-23  Jim Meyering  <meyering@lucent.com>
40603
40604         * lib/basename.c (base_name): Add an assertion.
40605
40606 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
40607
40608         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
40609         shadow its mbsinit function.
40610
40611 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
40612
40613         * lib/mbswidth.h: New file.
40614         * lib/mbswidth.c: New file.
40615         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
40616         (noinst_HEADERS): Add mbswidth.h.
40617
40618 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
40619
40620         * lib/config.charset: Add support for FreeBSD. Improve support for
40621         HP-UX and IRIX 6.
40622
40623 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
40624
40625         * m4/mbswidth.m4: New file.
40626         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
40627
40628 2000-07-15  Jim Meyering  <meyering@lucent.com>
40629
40630         * lib/makepath.c: Include quote.h.
40631         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
40632         corresponding argument in a `quote (...)' call.
40633         Give better diagnostics.
40634
40635         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
40636         (noinst_HEADERS): Add quote.h.
40637
40638         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
40639         from tar's src/misc.c.
40640         * lib/quote.h: New file.  Prototypes for same.
40641
40642 2000-07-14  Paul Eggert  <eggert@twinsun.com>
40643
40644         From a suggestion by Bruno Haible.
40645         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
40646         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
40647         to decide whether to define the BeOS workaround macro;
40648         this adjusts to the change to AC_MBSTATE_T.
40649
40650 2000-07-14  Jim Meyering  <meyering@lucent.com>
40651
40652         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
40653         jm_AC_TYPE_UINTMAX_T.
40654
40655 2000-07-13  Paul Eggert  <eggert@twinsun.com>
40656
40657         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
40658
40659         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
40660         quotearg_buffer_restyled): Add support for
40661         clocale_quoting_style.  Undo previous change to
40662         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
40663         and "{RIGHT QUOTATION MARK}" msgids.
40664
40665 2000-07-10  Paul Eggert  <eggert@twinsun.com>
40666
40667         From a suggestion by Bruno Haible.
40668         * m4/mbstate_t.m4 (AC_MBSTATE_T):
40669         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
40670         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
40671         and mbstate_t, to a single-part test that simply defines mbstate_t.
40672         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
40673         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
40674
40675 2000-07-10  Jim Meyering  <meyering@lucent.com>
40676
40677         * m4/strerror_r.m4: Mirror the correction made in autoconf.
40678
40679         * m4/gnu-source.m4: Output to confdefs.h directly.
40680         Suggestion from Akim Demaille.
40681
40682 2000-07-09  Paul Eggert  <eggert@twinsun.com>
40683
40684         The old behavior of quoting `like this' doesn't look good with
40685         newer, ISO-style fonts.  See:
40686         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
40687
40688         Instead, quote "like this" by default.  Let the translator
40689         tailor the locale-specific quoting behavior by providing
40690         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
40691
40692         * lib/quotearg.c (N_): New macro.
40693         (gettext_default): New function.
40694         (quotearg_buffer_restyled): Use
40695         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
40696         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
40697
40698 2000-07-09  Jim Meyering  <meyering@lucent.com>
40699
40700         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
40701         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
40702
40703         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
40704         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
40705
40706 2000-07-09  Jim Meyering  <meyering@lucent.com>
40707
40708         * lib/Most files: Update copyright dates to include 2000.
40709
40710 2000-07-08  Jim Meyering  <meyering@lucent.com>
40711
40712         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
40713         if not defined.
40714         (xgethostname): Remove now-unnecessary #ifdef.
40715         Move declaration of `err' into loop where it's used.
40716
40717 2000-07-05  Paul Eggert  <eggert@twinsun.com>
40718         and Bruno Haible  <haible@clisp.cons.org>
40719
40720         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
40721         only if the test for an object-type mbstate_t fails.  This
40722         prevents us from mistakenly reporting that mbstate_t is a
40723         system object type after we "#define mbstate_t int" to work
40724         around its lack.
40725
40726 2000-07-05  Paul Eggert  <eggert@twinsun.com>
40727         and Bruno Haible  <haible@clisp.cons.org>
40728
40729         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
40730
40731 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
40732
40733         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
40734         to strerror_r.
40735         Include <ctype.h> for use of isalpha.
40736
40737 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
40738
40739         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
40740         by allocating a larger buffer. Test the gethostname return value for
40741         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
40742         returns an error and ENAMETOOLONG isn't defined.
40743
40744 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
40745
40746         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
40747         dimension.
40748
40749 2000-07-04  Jim Meyering  <meyering@lucent.com>
40750
40751         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
40752         of the deprecated AC_CHECKING.
40753
40754 2000-07-04  Jim Meyering  <meyering@lucent.com>
40755
40756         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
40757         Reported by Bruno Haible.
40758
40759 2000-07-04  Jim Meyering  <meyering@lucent.com>
40760
40761         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
40762         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
40763         lacks mbrtowc.
40764
40765 2000-07-03  Paul Eggert  <eggert@twinsun.com>
40766
40767         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
40768         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
40769
40770 2000-07-03  Paul Eggert  <eggert@twinsun.com>
40771         and Bruno Haible  <haible@clisp.cons.org>
40772
40773         * lib/quotearg.c (mbrtowc):
40774         Assign to *pwc, and return 1 only if result is nonzero.
40775         (iswprint): Use ISPRINT when substituting our own mbrtowc.
40776
40777 2000-07-03  Jim Meyering  <meyering@lucent.com>
40778
40779         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
40780
40781 2000-07-03  Jim Meyering  <meyering@lucent.com>
40782
40783         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
40784         This is necessary to get a definition of e.g., UTMP_FILE on
40785         HP-UX 10.20.
40786         From Bob Proulx.
40787
40788 2000-07-02  Jim Meyering  <meyering@lucent.com>
40789
40790         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
40791
40792         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
40793         AC_LIBOBJ(function_name).
40794         * m4/chown.m4: Likewise.
40795         * m4/fnmatch.m4: Likewise.
40796         * m4/ftruncate.m4: Likewise.
40797         * m4/getgroups.m4: Likewise.
40798         * m4/getline.m4: Likewise.
40799         * m4/group-member.m4: Likewise.
40800         * m4/jm-macros.m4: Likewise.
40801         * m4/lstat.m4: Likewise.
40802         * m4/malloc.m4: Likewise.
40803         * m4/memcmp.m4: Likewise.
40804         * m4/nanosleep.m4: Likewise.
40805         * m4/putenv.m4: Likewise.
40806         * m4/realloc.m4: Likewise.
40807         * m4/regex.m4: Likewise.
40808         * m4/stat.m4: Likewise.
40809         * m4/strftime.m4: Likewise.
40810
40811 2000-07-02  Jim Meyering  <meyering@lucent.com>
40812
40813         * lib/quotearg.c (mbstate_t): Don't define here.
40814
40815 2000-07-02  Jim Meyering  <meyering@lucent.com>
40816
40817         * lib/nanosleep.c (SIGCONT): Define if not already defined.
40818
40819 2000-07-01  Jim Meyering  <meyering@lucent.com>
40820
40821         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
40822
40823 2000-07-01  Jim Meyering  <meyering@lucent.com>
40824
40825         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
40826         problem.
40827
40828 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
40829
40830         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
40831         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
40832
40833 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
40834
40835         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
40836         per change in ../m4/ls-mntd-fs.m4.
40837         (read_filesystem_list): Ignore symbolic links.
40838
40839 2000-06-29  Jim Meyering  <meyering@lucent.com>
40840
40841         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
40842         for declaration of strcmp.
40843
40844         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
40845
40846         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
40847         Avoid warning by casting result to `char *' to remove `const'.
40848
40849 2000-06-28  Jim Meyering  <meyering@lucent.com>
40850
40851         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
40852         included by quotearg.c, for which we perform this test.  From
40853         Bruno Haible.
40854
40855 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
40856
40857         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
40858         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
40859         <utmpx.h> exists, put readutmp.o into LIBOBJS.
40860
40861 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
40862
40863         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
40864
40865 2000-06-26  Paul Eggert  <eggert@twinsun.com>
40866
40867         savedir now sets errno on failure and invokes xmalloc to get memory.
40868         Fix a couple of other minor bugs while we're at it.
40869
40870         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
40871         (NAMLEN): Remove macro.
40872         (malloc, realloc): Remove decls.
40873         (stpcpy): Likewise.
40874         ("xalloc.h"): Include.
40875         (NAME_SIZE_DEFAULT): New macro.
40876         (savedir): Use xmalloc / xrealloc to allocate memory.
40877         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
40878         Skip "" directory entries.
40879         Use strlen to calculate directory entry length, since the old method
40880         is rarely used these days and isn't worth supporting.
40881         Don't use a pointer after freeing it.
40882         Check for integer overflow when calculating allocation size.
40883         Use memcpy to copy entries, instead of stpcpy.
40884         Set errno properly when returning NULL.
40885         Check for readdir error.
40886
40887 2000-06-26  Jim Meyering  <meyering@lucent.com>
40888
40889         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
40890
40891 2000-06-25  Jim Meyering  <meyering@lucent.com>
40892
40893         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
40894         Linux header bug when _XOPEN_SOURCE is defined to 500.
40895
40896 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
40897
40898         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
40899         deficiency.
40900
40901 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
40902
40903         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
40904         Include xalloc.h.
40905         Don't include <stdlib.h>.  Don't declare malloc, realloc.
40906
40907 2000-06-24  Jim Meyering  <meyering@lucent.com>
40908
40909         * m4/strerror_r.m4: Revive this file -- to try out an experimental
40910         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
40911         for which strerror does return char*, but which lacks a conveniently
40912         accessible declaration of the function.  If the compile-test says
40913         strerror_r doesn't work, then resort to a `run'-test that works on
40914         BeOS and segfaults on DEC Unix.
40915
40916 2000-06-24  Jim Meyering  <meyering@lucent.com>
40917
40918         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
40919
40920 2000-06-23  Paul Eggert  <eggert@twinsun.com>
40921
40922         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
40923         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
40924
40925 2000-06-23  Paul Eggert  <eggert@twinsun.com>
40926
40927         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
40928         (mbrtowc, mbstate_t): Define substitutes if
40929         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
40930         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
40931         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
40932
40933 2000-06-23  Jim Meyering  <meyering@lucent.com>
40934
40935         * m4/afs.m4: Add missing AC_MSG_RESULT.
40936         Reported by Bruno Haible.
40937
40938         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
40939         Suggestion from Bruno Haible.
40940
40941 2000-06-23  Jim Meyering  <meyering@lucent.com>
40942
40943         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
40944
40945 2000-06-21  Jim Meyering  <meyering@lucent.com>
40946
40947         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
40948
40949 2000-06-21  Jim Meyering  <meyering@lucent.com>
40950
40951         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
40952         (noinst_HEADERS): Add getstr.h.
40953
40954         * lib/getline.c (getstr): Move into a separate file.
40955         * lib/getstr.c (getstr): New file, extracted from getline.c, with
40956         the following changes: new parameter, delim2; both delim[12]
40957         parameters have type `int', not `char'.  The latter would lose
40958         with 8-bit delimiters.
40959         * lib/getstr.h: New file.
40960
40961 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
40962
40963         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
40964         than 1024, return a memory chunk of least possible size, instead
40965         of size PATH_MAX + 2. In the loop, increment the size proportionally.
40966         Use free/xmalloc instead of xrealloc to avoid copying for very long
40967         paths.
40968
40969 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
40970
40971         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
40972         the empty string.
40973
40974 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
40975
40976         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
40977         address, not strdup.  Include <stdlib.h> and don't declare free().
40978
40979 2000-06-19  Jim Meyering  <meyering@lucent.com>
40980
40981         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
40982
40983 2000-06-18  Jim Meyering  <meyering@lucent.com>
40984
40985         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
40986
40987         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
40988         `checking whether...' message to be consistent with that of the
40989         lstat test.
40990
40991 2000-06-18  Jim Meyering  <meyering@lucent.com>
40992
40993         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
40994         Besides, these days every porting target provides a mkdir function.
40995
40996         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
40997         needed. (this snippet comes from src/system.h).
40998
40999 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
41000
41001         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
41002
41003 2000-06-15  Paul Eggert  <eggert@twinsun.com>
41004
41005         * lib/human.c (adjust_value): New function.
41006         (human_readable_inexact): Apply rounding style even when
41007         printing approximate values.
41008
41009 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41010
41011         * lib/human.c (human_readable_inexact): Allow an input block
41012         size that is not a multiple of the output block size, and vice versa.
41013         Reported by Piergiorgio Sartor.
41014
41015 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41016
41017         * lib/getdate.y (get_date): Apply relative times after time
41018         zone indicator, not before.  Reported by Todd A. Jacobs.
41019
41020 2000-06-13  Jim Meyering  <meyering@lucent.com>
41021
41022         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
41023
41024         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
41025
41026 2000-06-12  Paul Eggert  <eggert@twinsun.com>
41027
41028         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
41029
41030 2000-06-12  Jim Meyering  <meyering@lucent.com>
41031
41032         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
41033         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
41034         optional argument.
41035         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
41036         the optional argument, `lib'.
41037
41038 2000-06-08  Jim Meyering  <meyering@lucent.com>
41039
41040         * m4/largefile.m4: Remove file (now that it's part of autoconf).
41041
41042 2000-06-04  Paul Eggert  <eggert@twinsun.com>
41043
41044         Rewrite largefile configuration so that we don't need to run
41045         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
41046         AC_CANONICAL_HOST in configure.in -- jmm]
41047
41048         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
41049         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
41050         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
41051         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
41052         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
41053         All uses changed.
41054         Instead of inspecting the output of getconf, try to compile the
41055         test program without and with the macro definition.
41056         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
41057         for getconf.  Instead, check for the needed flags by compiling
41058         test programs.
41059
41060 2000-06-04  Paul Eggert  <eggert@twinsun.com>
41061
41062         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
41063
41064 2000-06-04  Jim Meyering  <meyering@lucent.com>
41065
41066         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
41067         SunOS 4.1.4 for which gid_t is an unsigned type.
41068
41069 2000-06-03  Jim Meyering  <meyering@lucent.com>
41070
41071         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
41072         now that autoconf requires that.
41073
41074         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
41075         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
41076         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
41077
41078 2000-06-03  Jim Meyering  <meyering@lucent.com>
41079
41080         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
41081
41082 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
41083
41084         * m4/glibc21.m4: New file.
41085         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
41086
41087 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
41088
41089         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
41090         newer, don't install charset.alias.
41091         * lib/config.charset: Change the Linux/glibc rules so they become empty
41092         on glibc-2.1 or newer.
41093
41094 2000-06-02  Jim Meyering  <meyering@lucent.com>
41095
41096         * lib/mountlist.c: Back out last change.  Instead, do this...
41097         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
41098         me_dummy member using the same `ignore'-testing code.
41099         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
41100         fs_type strings.
41101         From Mark D. Roth.
41102
41103 2000-05-29  Jim Meyering  <meyering@lucent.com>
41104
41105         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
41106         mounts with the `ignore' attribute.  Based on a patch from
41107         Mark D. Roth.
41108
41109 2000-05-28  Jim Meyering  <meyering@lucent.com>
41110
41111         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
41112         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41113         * m4/stat.m4: Likewise.
41114         * m4/lstat.m4: Likewise.
41115         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
41116
41117         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
41118         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
41119
41120 2000-05-26  Jim Meyering  <meyering@lucent.com>
41121
41122         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
41123
41124 2000-05-24  Jim Meyering  <meyering@lucent.com>
41125
41126         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
41127         autoconf requires that.
41128         * m4/lib-check.m4: Likewise.
41129         * m4/jm-macros.m4: Likewise.
41130         * m4/strftime.m4: Likewise.
41131
41132         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
41133         AC_CHECK_DECLS, now that autoconf requires that.
41134
41135 2000-05-22  Jim Meyering  <meyering@lucent.com>
41136
41137         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41138         * m4/lstat.m4: Likewise.
41139
41140 2000-05-22  Jim Meyering  <meyering@lucent.com>
41141
41142         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
41143
41144 2000-05-20  Jim Meyering  <meyering@lucent.com>
41145
41146         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
41147         (jm_PREREQ): Use it.
41148
41149 2000-05-18  Jim Meyering  <meyering@lucent.com>
41150
41151         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
41152         back, too, since it may have been modified by allocate_entry.
41153         (hash_delete): Rewrite to use neither the assignment operator
41154         nor the comma operator in an if-expression.
41155
41156 2000-05-15  Paul Eggert  <eggert@twinsun.com>
41157
41158         * lib/closeout.c:
41159         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
41160         Remove; no longer needed.
41161         "quotearg.h": Add include.
41162         (file_name): Do not bother to explicitly initialize to NULL; it's less
41163         efficient on some hosts.
41164         (close_stdout_status): Remove test as to whether stdout was already
41165         closed; it breaks for the case "echo x | sort >&-".
41166         Quote file name colons.
41167         Do not assume that _("write error") lacks format strings.
41168
41169 2000-05-15  Jim Meyering  <meyering@lucent.com>
41170
41171         * lib/version-etc.c (version_etc_copyright): Update the copyright
41172         string used in all --version output.
41173
41174 2000-05-14  Jim Meyering  <meyering@lucent.com>
41175
41176         * lib/closeout.c (close_stdout_set_file_name): New function.
41177         (close_stdout_status): Use new file-scoped global.
41178         Return right away if fstat says the stdout file descriptor is invalid.
41179         * lib/closeout.h (close_stdout_set_file_name): Declare.
41180
41181 2000-05-10  Jim Meyering  <meyering@lucent.com>
41182
41183         * lib/closeout.c [default_exit_status]: New file-scoped variable.
41184         (close_stdout_set_status): New function.
41185         * lib/closeout.h (close_stdout_set_status): Declare.
41186
41187 2000-05-09  Jim Meyering  <meyering@lucent.com>
41188
41189         * m4/gettext.m4: Rename this...
41190         * m4/libintl.m4: ...to this.
41191
41192 2000-05-08  Jim Meyering  <meyering@lucent.com>
41193
41194         * lib/long-options.c: Don't include closeout.h.
41195         (parse_long_options): Don't call close_stdout for --version.
41196
41197 2000-05-06  Paul Eggert  <eggert@twinsun.com>
41198
41199         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
41200         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
41201         2.1.3 bug.  This avoids a clash when files like regex.c define
41202         _GNU_SOURCE.
41203
41204 2000-05-06  Jim Meyering  <meyering@lucent.com>
41205
41206         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
41207         (AC_REPLACE_FUNCS): Add strnlen.
41208
41209         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
41210         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
41211
41212         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
41213         AC_SEARCH_LIBS call for nanosleep.
41214         (LIB_NANOSLEEP): Set and AC_SUBST.
41215
41216 2000-05-06  Jim Meyering  <meyering@lucent.com>
41217
41218         * lib/strnlen.c: Undefine __strnlen and strnlen.
41219         [!weak_alias]: Define __strnlen to strnlen.
41220
41221         * lib/atexit.c: New file, from libiberty.
41222
41223 2000-05-06  Jim Meyering  <meyering@lucent.com>
41224
41225         * lib/closeout.c (close_stdout_status): Also check for errors on the
41226         stderr stream.
41227
41228 2000-05-05  Jim Meyering  <meyering@lucent.com>
41229
41230         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
41231         AC_SEARCH_LIBS call for clock_gettime.
41232         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
41233
41234         * m4/search-libs.m4: Update from autoconf.
41235
41236         su doesn't work on Solaris 2.6.
41237         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
41238         <shadow.h>.  Reported by Dragos Harabor.
41239
41240 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
41241
41242         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
41243         memcpy instead of xmalloc, xrealloc, path_concat.
41244         (locale_charset): Treat empty environment variables as absent.
41245         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
41246
41247 2000-05-04  Jim Meyering  <meyering@lucent.com>
41248
41249         * lib/getopt.c: Update from glibc.
41250         * lib/obstack.c: Likewise.
41251         * lib/obstack.h: Likewise.
41252         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
41253         file
41254
41255         * lib/regex.h: Likewise.
41256         * lib/strndup.c: Likewise.
41257         * lib/strnlen.c: New file, from glibc.
41258
41259 2000-05-03  Jim Meyering  <meyering@lucent.com>
41260
41261         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
41262
41263 2000-05-02  Paul Eggert  <eggert@twinsun.com>
41264
41265         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
41266         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
41267         compile-time test, rather than inspecting host and OS, to
41268         decide whether to define _LARGEFILE_SOURCE.
41269
41270 2000-05-01  Jim Meyering  <meyering@lucent.com>
41271
41272         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
41273
41274         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
41275         Based on a patch from Bruno Haible.
41276
41277 2000-05-01  Jim Meyering  <meyering@lucent.com>
41278
41279         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
41280
41281 2000-04-29  Jim Meyering  <meyering@lucent.com>
41282
41283         * lib/path-concat.c: Declare strdup only if it's not defined.
41284         * lib/canon-host.c: Likewise.
41285
41286 2000-04-28  Jim Meyering  <meyering@lucent.com>
41287
41288         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
41289         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
41290         is included first, then limits.h is included by locale.h by libintl.h.
41291         From John David Anglin.
41292
41293 2000-04-25  Jim Meyering  <meyering@lucent.com>
41294
41295         * lib/makepath.c (S_IRWXUGO): Define.
41296         (make_path): Always perform explicit chmod if MODE specifies any
41297         of the `special' permission bits.  Prompted by a bug report against
41298         install from Mate Wierdl and Joost van Baal.
41299
41300 2000-04-18  Jim Meyering  <meyering@lucent.com>
41301
41302         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
41303         (jm_PREREQ): Use it.
41304
41305 2000-04-18  Jim Meyering  <meyering@lucent.com>
41306
41307         * lib/README: New file.
41308
41309         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
41310         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
41311
41312 2000-04-17  Jim Meyering  <meyering@lucent.com>
41313
41314         Get it right :-)
41315         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
41316         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
41317         Suggestion from Akim Demaille.
41318
41319 2000-04-17  Jim Meyering  <meyering@lucent.com>
41320
41321         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
41322         the definition of it to rpl_strftime also defined-away the system's
41323         declaration.
41324
41325 2000-04-15  Jim Meyering  <meyering@lucent.com>
41326
41327         Use `C' to denote so-called `contiguous' files, the same way
41328         that tar does.
41329         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
41330         (ftypelet): Use S_ISCTG.
41331         From Michael Deutschmann.
41332
41333 2000-04-14  Jim Meyering  <meyering@lucent.com>
41334
41335         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
41336         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
41337         clobbered.
41338
41339 2000-04-14  Jim Meyering  <meyering@lucent.com>
41340
41341         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
41342
41343 2000-04-13  Jim Meyering  <meyering@lucent.com>
41344
41345         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
41346         AH_VERBATIM to insert required #ifndef into config.h.in.
41347         Suggestion from Akim Demaille.
41348
41349 2000-04-12  Jim Meyering  <meyering@lucent.com>
41350
41351         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
41352         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
41353         Christian Krackowizer.
41354
41355         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
41356         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
41357         (AC_SYS_LARGEFILE): Require.
41358         (AM_C_PROTOTYPES): Require.
41359
41360 2000-04-08  Jim Meyering  <meyering@lucent.com>
41361
41362         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
41363         names don't conflict.  Reported by Eli Zaretskii.
41364
41365 2000-04-07  Jim Meyering  <meyering@lucent.com>
41366
41367         * lib/putenv.c: Move inclusion of errno.h so it follows that of
41368         sys/types.h, to work around system header problems on AIX 3.2.5.
41369         From Bruno Haible.
41370
41371 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
41372
41373         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
41374         bug.  Deal with the different error behavior of Irix iconv.
41375
41376 2000-04-05  Paul Eggert  <eggert@twinsun.com>
41377
41378         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
41379         IRIX if the installer said otherwise.
41380
41381 2000-04-05  Jim Meyering  <meyering@lucent.com>
41382
41383         Portability tweaks required for ultrix4.3.
41384         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
41385         (jm_CHECK_DECLS): Add getutent to the list of functions.
41386         (_jm_DECL_HEADERS): Add utmpx.h.
41387         From John David Anglin.
41388
41389         * m4/strftime.m4: Back out the 2000-04-02 change.
41390         Instead of that change, simply undefine putenv in the test program.
41391
41392 2000-04-05  Jim Meyering  <meyering@lucent.com>
41393
41394         Portability tweaks required for ultrix4.3.
41395         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
41396         getutent.
41397         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
41398         * lib/canon-host.c: Declare strdup.
41399         * lib/path-concat.c: Likewise.
41400         From John David Anglin.
41401
41402 2000-04-04  Jim Meyering  <meyering@lucent.com>
41403
41404         Be more DOS 8.3-friendly.
41405         * lib/ref-add.sin: Renamed from ref-add.sed.in.
41406         * lib/ref-del.sin: Renamed from ref-del.sed.in.
41407         * lib/Makefile.am: Reflect renaming.
41408         Reported by Eli Zaretskii.
41409
41410         Use a temporary file name that won't clash with `charset.alias'
41411         in the DOS 8.3 name space.
41412         * lib/Makefile.am (charset_tmp): Define.
41413         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
41414         (uninstall-local): Likewise.
41415         Reported by Eli Zaretskii.
41416
41417 2000-04-03  Jim Meyering  <meyering@lucent.com>
41418
41419         * m4/gettext.m4: Fix typo in comment.
41420
41421         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
41422         textutils/configure.in).  Suggestion from Paul Eggert.
41423         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
41424
41425 2000-04-02  Paul Eggert  <eggert@twinsun.com>
41426
41427         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
41428         variable in the shell rather than using putenv, which isn't
41429         portable.  This avoids the configure-time inter-test dependency
41430         on the potentially-renamed putenv function.
41431
41432 2000-03-30  Paul Eggert  <eggert@twinsun.com>
41433
41434         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
41435         before checking struct stat.st_blksize, so that
41436         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
41437
41438 2000-03-29  Paul Eggert  <eggert@twinsun.com>
41439
41440         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
41441         since strftime.c uses HAVE_STRFTIME to decide whether to use
41442         the underlying strftime.
41443
41444 2000-03-29  Paul Eggert  <eggert@twinsun.com>
41445
41446         * lib/time/strftime.c (my_strftime): Make sure we call the system
41447         strftime, not ourselves, when invoking the underlying strftime.
41448
41449 2000-03-24  Jim Meyering  <meyering@lucent.com>
41450
41451         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
41452         (charset_alias): Define.
41453         (install-exec-local): Factor out common code.
41454         (uninstall-local): Split lines longer than 80.
41455         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
41456         (SUFFIXES): Define.
41457         (.sed.in.sed): New rule.  Don't redirect directly to $@.
41458         (CLEANFILES): Add ref-add.sed and ref-del.sed.
41459
41460 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
41461
41462         * lib/config.charset: Output a line containing "Packages using this
41463         file".
41464         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
41465         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
41466         ref-del.sed): New rules.
41467
41468 2000-03-17  Jim Meyering  <meyering@lucent.com>
41469
41470         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
41471         Otherwise, include <strings.h>
41472
41473 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
41474
41475         * lib/unicodeio.c (utf8_wctomb): New function.
41476         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
41477         format instead of in UCS-4 with platform dependent endianness.
41478
41479 2000-03-10  Jim Meyering  <meyering@lucent.com>
41480
41481         * m4/lib-check.m4: Look for getspnam in -lgen, too.
41482         From Marco Franzen.
41483
41484 2000-03-07  Paul Eggert  <eggert@twinsun.com>
41485
41486         * lib/savedir.c (savedir): Work even if directory size is
41487         negative; this can happen with some screwy NFS configurations.
41488
41489 2000-03-06  Jim Meyering  <meyering@lucent.com>
41490
41491         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
41492         if it's NULL (because we ran out of memory).  From Bruno Haible.
41493
41494 2000-03-05  Jim Meyering  <meyering@lucent.com>
41495
41496         * lib/localcharset.c ("path-concat.h"): Include.
41497         (get_charset_aliases): Use path_concat instead of ANSI string
41498         concatenation.
41499
41500         * lib/unicodeio.h (PARAMS): Define.
41501         Use it to guard prototype.
41502
41503 2000-03-04  Jim Meyering  <meyering@lucent.com>
41504
41505         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
41506         for lib/localcharset.c.
41507
41508 2000-03-04  Jim Meyering  <meyering@lucent.com>
41509
41510         * lib/Makefile.am (install-exec-local): Create $(libdir) before
41511         installing into it.
41512         (uninstall-local): Uncomment this rule so `make distcheck' works
41513         once again.
41514
41515         * lib/unicodeio.c (<errno.h>): Include it.
41516         (errno): Declare if not defined.
41517
41518         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
41519
41520         * lib/config.charset: New version, incorporating remarks from a linux
41521         i18n mailing list.  From Bruno Haible.
41522
41523 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
41524
41525         * m4/codeset.m4: New file.
41526         * m4/iconv.m4: New file.
41527         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
41528
41529 2000-03-03  Jim Meyering  <meyering@lucent.com>
41530
41531         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
41532
41533 2000-03-02  Jim Meyering  <meyering@lucent.com>
41534
41535         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
41536         the messages come out on separate lines.
41537
41538         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
41539         rather than jm_CHECK_DECLARATIONS.
41540         * m4/decl.m4: Remove now-unused file.
41541
41542         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
41543         geteuid.
41544
41545 2000-03-02  Jim Meyering  <meyering@lucent.com>
41546
41547         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
41548
41549 2000-03-01  Jim Meyering  <meyering@lucent.com>
41550
41551         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
41552         * lib/unicodeio.c: Likewise.
41553
41554 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
41555
41556         * lib/config.charset: New file.
41557         * lib/localcharset.c: New file.
41558         * lib/unicodeio.h, lib/unicodeio.c: New files.
41559         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
41560         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
41561         (noinst_HEADERS): Add unicodeio.h.
41562         (all-local, install-exec-local, charset.alias): New targets.
41563
41564 2000-02-28  Paul Eggert  <eggert@twinsun.com>
41565
41566         * lib/quotearg.c (ALERT_CHAR): New macro.
41567         (quotearg_buffer_restyled): Use it.
41568
41569 2000-02-27  Jim Meyering  <meyering@lucent.com>
41570
41571         * m4/check-decl.m4: Add getenv to the list.
41572
41573 2000-02-27  Jim Meyering  <meyering@lucent.com>
41574
41575         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
41576         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
41577
41578         * lib/backupfile.c: Guard inclusion of stdlib.h with
41579         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
41580         Declare malloc if needed.
41581
41582         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
41583         `#ifndef HAVE_DECL..'
41584         now that autoconf always defines the HAVE_DECL_ symbols.
41585         * lib/human.c: Likewise.
41586         * lib/same.c: Likewise.
41587         * lib/strtoumax.c: Likewise.
41588
41589         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
41590         declaration check was not run.
41591         * lib/hash.c: Likewise.
41592         * lib/human.c: Likewise.
41593         * lib/same.c: Likewise.
41594         * lib/strtoumax.c: Likewise.
41595
41596         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
41597         `.', then first look up the entire `.'-containing string as a login
41598         name.
41599
41600 2000-02-23  Jim Meyering  <meyering@lucent.com>
41601
41602         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
41603         in place of my hack.
41604
41605 2000-02-18  Paul Eggert  <eggert@twinsun.com>
41606
41607         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
41608         (textint): New typedef.
41609         (parser_control): Member year changed from int to textint.
41610         All uses changed.
41611         (YYSTYPE): Removed; replaced by %union with int and textint members.
41612         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
41613         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
41614         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
41615         (tSNUMBER, tUNUMBER): Now of type <textintval>.
41616         (date, number, to_year): Use width of number in digits, not its value,
41617         to determine whether it's a 2-digit year, or a 2-digit time.
41618         (yylex): Store number of digits of numeric tokens.
41619         Reported by John Kendall.
41620
41621         (parser_control): Changed from struct parser_control to typedef (for
41622         consistency).  All uses changed.
41623
41624         (tID): Removed; not used.
41625         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
41626
41627 2000-02-14  Paul Eggert  <eggert@twinsun.com>
41628
41629         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
41630         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
41631
41632 2000-02-12  Jim Meyering  <meyering@lucent.com>
41633
41634         * lib/userspec.c (ISDIGIT): Define it.
41635         (isdigit): Remove definition.
41636         (is_number): Use ISDIGIT, not isdigit.
41637         <libintl.h>: Include.
41638         (_ and N_): Define.
41639         (parse_user_spec): Mark translatable strings.
41640
41641 2000-02-10  Jim Meyering  <meyering@lucent.com>
41642
41643         With these changes, nanosleep.[ch] are finally enough like the other
41644         lib/* replacement files to compile on a few more losing systems.
41645
41646         * lib/nanosleep.h: Don't include config.h.
41647         Remove prototype from declaration of nanosleep.
41648         (PARAMS): Remove now-unneeded definition.
41649         * lib/nanosleep.c: #undef nanosleep.
41650         (rpl_nanosleep): Rename from nanosleep.
41651
41652 2000-02-10  Jim Meyering  <meyering@lucent.com>
41653
41654         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
41655         gnu_nanosleep to rpl_nanosleep.
41656
41657 2000-02-09  Jim Meyering  <meyering@lucent.com>
41658
41659         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
41660         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
41661
41662 2000-02-08  Akim Demaille  <akim@epita.fr>
41663
41664         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
41665         `[' and `]' and remove uses of `changequote'.
41666         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
41667         (AC_SYS_LARGEFILE): Likewise.
41668         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
41669         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
41670         of changequote.
41671         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
41672         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
41673         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
41674         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
41675
41676 2000-02-05  Jim Meyering  <meyering@lucent.com>
41677
41678         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
41679         Remove explicit use of AC_HEADER_TIME.  It is required by
41680         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
41681         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
41682         in autoconf whereby the expansion of the latter ended up preceding
41683         the expansion of its prerequisite, AC_HEADER_TIME.
41684         Reported by Volker Borchert.
41685
41686 2000-02-03  Jim Meyering  <meyering@lucent.com>
41687
41688         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
41689
41690 2000-02-03  Jim Meyering  <meyering@lucent.com>
41691
41692         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
41693         rather than with `#if HAVE_UTMPNAME'.
41694
41695 2000-02-02  Jim Meyering  <meyering@lucent.com>
41696
41697         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
41698         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
41699         Reported by Eli Zaretskii.
41700
41701 2000-02-01  Jim Meyering  <meyering@lucent.com>
41702
41703         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
41704
41705 2000-01-31  Jim Meyering  <meyering@lucent.com>
41706
41707         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
41708         functions.  Add the time.h and sys/time.h headers along with the
41709         AC_REQUIRE'ment of AC_HEADER_TIME.
41710
41711 2000-01-31  Jim Meyering  <meyering@lucent.com>
41712
41713         * lib/nanosleep.h (nanosleep): Guard declaration with
41714         `#if ! HAVE_DECL_NANOSLEEP'.
41715         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
41716         the declaration in that vendor's sys/timers.h.
41717         Reported by Christian Krackowizer.
41718
41719         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
41720         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
41721         (ISPRINT): Likewise.
41722         Reported by Tom Tromey.
41723
41724 2000-01-30  Jim Meyering  <meyering@lucent.com>
41725
41726         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
41727
41728         * m4/prereq.m4 (utmp_includes): Define.
41729         Check for ut_user and ut_name members in both struct utmpx
41730         and struct utmp.
41731
41732 2000-01-30  Jim Meyering  <meyering@lucent.com>
41733
41734         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
41735         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
41736         header files where only utmpx.ut_user is declared.
41737
41738         * lib/readutmp.h (UT_USER): Define.
41739
41740 2000-01-29  Jim Meyering  <meyering@lucent.com>
41741
41742         * m4/lib-check.m4: New file containing library-related checks from
41743         fileutils and sh-utils (textutils had none).
41744
41745 2000-01-28  Jim Meyering  <meyering@lucent.com>
41746
41747         * m4/perl.m4: Change format of warning message to look more like that
41748         from the missing script.  Suggestion from François Pinard.
41749
41750 2000-01-25  Jim Meyering  <meyering@lucent.com>
41751
41752         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
41753         well as time.h in the compile check.
41754         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
41755         Fix typo in cross-compiling case: s/yes/no/.
41756
41757 2000-01-23  Jim Meyering  <meyering@lucent.com>
41758
41759         * m4/jm-macros.m4: Move df-related tests here from
41760         fileutils/configure.in
41761
41762         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
41763         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
41764
41765         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
41766         s/space/ac_fsusage_space/.
41767         (jm_FILE_SYSTEM_USAGE): Take two parameters.
41768
41769         * m4/ftruncate.m4: New file (derived from part of
41770         fileutils/configure.in).
41771         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
41772         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
41773
41774         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
41775         AC_SUBST these here, rather than just in sh-util/configure.in, so
41776         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
41777         all the same.
41778         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
41779         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
41780         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
41781         (AC_SUBST(POW_LIBM)): Likewise.
41782         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
41783
41784 2000-01-23  Jim Meyering  <meyering@lucent.com>
41785
41786         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
41787         obstack.c.
41788
41789 2000-01-22  Jim Meyering  <meyering@lucent.com>
41790
41791         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
41792
41793         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
41794
41795         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
41796         configure.in
41797         (AC_CHECK_HEADERS): Likewise for sh-utils.
41798         (AC_CHECK_HEADERS): Likewise for textutils.
41799         Merge the three lists of headers.
41800
41801         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
41802         from fileutils' configure.in.
41803
41804         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
41805         code. Moved tests into their own function (_jm_DECL_HEADERS) in
41806         check-decl.m4.
41807
41808         * m4/check-decl.m4: Use #if rather than #ifdef.
41809         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
41810         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
41811         (_jm_DECL_HEADERS): Define new function.
41812         (jm_CHECK_DECLARATIONS): Require it.
41813
41814 2000-01-22  Jim Meyering  <meyering@lucent.com>
41815
41816         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
41817         [! HAVE_DECL_STRTOULL]: Declare strtoull.
41818         Required for some AIX systems.  Reported by Christian Krackowizer.
41819         [TESTING] (main): New function.
41820
41821         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
41822         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
41823         letters.
41824
41825         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
41826         iswprint.
41827
41828         * lib/strverscmp.c (ISDIGIT): Define.
41829         (strverscmp): Use ISDIGIT, not isdigit.
41830
41831 2000-01-19  Jim Meyering  <meyering@lucent.com>
41832
41833         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
41834         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
41835         defines `struct timespec' in <sys/time.h>
41836
41837         * m4/c-bs-a.m4: Remove uses of changequote altogether.
41838         Thanks to Akim for explaining.
41839
41840 2000-01-17  Paul Eggert  <eggert@twinsun.com>
41841
41842         * lib/nanosleep.c (nanosleep):
41843         Don't use SA_INTERRUPT to decide whether to call sigaction, as
41844         POSIX.1 doesn't require SA_INTERRUPT and some systems
41845         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
41846         it's been part of POSIX.1 since day 1 (in 1988).
41847
41848 2000-01-17  Jim Meyering  <meyering@lucent.com>
41849
41850         * lib/interlock: Remove unused file.  Reported by François Pinard.
41851
41852 2000-01-16  Paul Eggert  <eggert@twinsun.com>
41853
41854         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
41855         alert, backslash, formfeed, and vertical tab unnecessarily in
41856         shell quoting style.
41857
41858 2000-01-16  Jim Meyering  <meyering@lucent.com>
41859
41860         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
41861         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
41862         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
41863         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
41864
41865 2000-01-16  Jim Meyering  <meyering@lucent.com>
41866
41867         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
41868         because the latter didn't work.
41869
41870 2000-01-15  Jim Meyering  <meyering@lucent.com>
41871
41872         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
41873         (AC_REPLACE_FUNCS): Add memcpy and memset.
41874         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
41875         Add strpbrk.
41876         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
41877
41878 2000-01-12  Jim Meyering  <meyering@lucent.com>
41879
41880         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
41881         (jm_PREREQ): Use it.
41882         (jm_PREREQ_READUTMP): New macro.
41883         (jm_PREREQ): Use it.
41884
41885 2000-01-11  Paul Eggert  <eggert@twinsun.com>
41886
41887         Quote multibyte characters correctly.
41888         * m4/c-bs-a.m4: New file.
41889         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
41890         (jm_PREREQ): Use it.
41891
41892 2000-01-11  Paul Eggert  <eggert@twinsun.com>
41893
41894         * m4/uintmax_t.m4: Port to autoconf 2.13.
41895
41896 2000-01-08  Jim Meyering  <meyering@ascend.com>
41897
41898         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
41899         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
41900
41901 2000-01-04  Jim Meyering  <meyering@ascend.com>
41902
41903         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
41904         jm_STRUCT_DIRENT_D_TYPE.
41905         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
41906         jm_STRUCT_DIRENT_D_INO.
41907         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
41908         jm_STRUCT_UTIMBUF.
41909         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
41910         renamings.
41911         * m4/utime.m4: Likewise.
41912
41913         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
41914         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
41915
41916 2000-01-03  Paul Eggert  <eggert@twinsun.com>
41917
41918         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
41919         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
41920
41921 2000-01-02  Jim Meyering  <meyering@ascend.com>
41922
41923         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
41924         remember if this is necessary.
41925
41926 1999-12-26  Jim Meyering  <meyering@ascend.com>
41927
41928         * m4/jm-macros.m4: Use it here.
41929         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
41930
41931 1999-12-23  Jim Meyering  <meyering@ascend.com>
41932
41933         * m4/jm-macros.m4: Check for clock_gettime (moved from
41934         fileutils/configure.in)
41935         Check for gettimeofday.
41936
41937 1999-12-20  Jim Meyering  <meyering@ascend.com>
41938
41939         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
41940         autoconf-2.14a-1999-12-20.
41941
41942 1999-12-19  Jim Meyering  <meyering@ascend.com>
41943
41944         * m4/lstat-slash.m4: New file.
41945         * m4/jm-macros.m4: Use the new macro:
41946         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41947
41948 1999-12-07  Jim Meyering  <meyering@ascend.com>
41949
41950         * m4/perl.m4: Require that File::Compare be available, too.
41951         Too many systems seem to lack it.
41952
41953         * m4/strftime.m4: Add checks for most of the cpp macros tested in
41954         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
41955
41956 1999-11-18  Paul Eggert  <eggert@twinsun.com>
41957
41958         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
41959         problem with the QNX 4.25 shell, which doesn't propagate exit
41960         status of failed commands inside shell assignments.
41961
41962 1999-11-17  Jim Meyering  <meyering@ascend.com>
41963
41964         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
41965
41966 1999-11-07  Jim Meyering  <meyering@ascend.com>
41967
41968         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
41969
41970 1999-11-06  Jim Meyering  <meyering@ascend.com>
41971
41972         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
41973         * m4/jm-macros.m4 (jm_MACROS): Use it here.
41974
41975 1999-11-05  Jim Meyering  <meyering@ascend.com>
41976
41977         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
41978         configure.in of textutils, fileutils, and sh-utils into this one
41979         (shared between those packages) file.
41980         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
41981         AC_STRUCT_ST_BLKSIZE.
41982
41983 1999-11-03  Jim Meyering  <meyering@ascend.com>
41984
41985         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
41986         of AC_CHECK_TYPE checks includes unistd.h.
41987         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
41988         Suggestion from Akim Demaille.
41989
41990 1999-10-30  Jim Meyering  <meyering@ascend.com>
41991
41992         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
41993         m4-quoted string.
41994         * m4/ls-mntd-fs.m4: Likewise.
41995         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
41996         * m4/jm-winsz1.m4: Likewise.
41997
41998         * m4/const.m4: Remove file, since the fix made it into the experimental
41999         version of autoconf.
42000         * m4/mktime.m4: Likewise.
42001
42002         * m4/check-type.m4: Remove file, now that the latest version of
42003         AC_CHECK_TYPE takes a third arg to specify additional #includes.
42004
42005         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
42006         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
42007         AC_CHECK_TYPE.
42008
42009 1999-10-04  Jim Meyering  <meyering@ascend.com>
42010
42011         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
42012
42013 1999-09-22  Paul Eggert  <eggert@twinsun.com>
42014
42015         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
42016         2.95.1 bug with HP-UX 10.20.
42017
42018 1999-09-17  Jim Meyering  <meyering@ascend.com>
42019
42020         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
42021         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
42022         due to missing strdup (against sh-utils-2.0).
42023
42024 1999-08-29  Jim Meyering  <meyering@ascend.com>
42025
42026         * m4/jm-macros.m4: Require jm_BISON.
42027         * m4/bison.m4: New file.
42028
42029 1999-08-17  Paul Eggert  <eggert@twinsun.com>
42030
42031         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
42032         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
42033
42034 1999-08-05  Jim Meyering  <meyering@ascend.com>
42035
42036         * m4/getline.m4: Rename test file from conftestdata to conftest.data
42037         to avoid conflicts with `conftest' on 8+3 filesystems.
42038         Suggestion from Eli Zaretskii.
42039
42040 1999-08-04  Jim Meyering  <meyering@ascend.com>
42041
42042         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
42043         fileutils and sh-utils (textutils's getline test was inadequate).
42044         (AM_FUNC_GETLINE): Run this test.
42045         (AC_CHECK_FUNCS): Check for getdelim.
42046         Reported by Bob Proulx.
42047
42048 1999-08-02  Jim Meyering  <meyering@ascend.com>
42049
42050         * m4/jm-macros.m4: Add a comment.
42051
42052 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42053
42054         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
42055         <inttypes.h> defines strtoumax as a macro (and not as a
42056         function).
42057
42058 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42059
42060         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
42061         that we can shift, multiply and divide unsigned long long
42062         values; Ultrix cc can't do it.
42063
42064 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42065
42066         * m4/mktime.m4: New file, which is a preview of what should appear
42067         in the next public autoconf release.
42068
42069 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42070
42071         * m4/lfs.m4: Remove this file.
42072         * m4/largefile.m4: New file.  It contains the old contents of
42073         lfs.m4, except that all names with prefix AC_LFS have been
42074         changed to use the prefix AC_SYS_LARGEFILE instead, to be
42075         compatible with future autoconf versions.  Also, some minor m4
42076         quoting problems have been fixed.
42077
42078 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42079
42080         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
42081         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
42082         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
42083         and simplify the shell code.
42084
42085 1999-08-01  Jim Meyering  <meyering@ascend.com>
42086
42087         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
42088         m4.
42089
42090 1999-07-20  Jim Meyering  <meyering@ascend.com>
42091
42092         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
42093
42094 1999-07-15  Jim Meyering  <meyering@ascend.com>
42095
42096         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
42097
42098 1999-05-22  Jim Meyering  <meyering@ascend.com>
42099
42100         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
42101
42102 1999-05-20  Jim Meyering  <meyering@ascend.com>
42103
42104         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
42105         Add a colon after each `then' in case $4 is empty.
42106
42107 1999-05-16  Jim Meyering  <meyering@ascend.com>
42108
42109         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
42110
42111 1999-05-10  Jim Meyering  <meyering@ascend.com>
42112
42113         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
42114
42115         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
42116         AC_FUNC_MKTIME.
42117
42118 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
42119
42120         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
42121
42122 1999-05-04  Paul Eggert  <eggert@twinsun.com>
42123
42124         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
42125         not CPPFLAGS, so that linking works correctly in IRIX.
42126
42127 1999-04-30  Paul Eggert  <eggert@twinsun.com>
42128
42129         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
42130
42131 1999-04-20  Paul Eggert  <eggert@twinsun.com>
42132
42133         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
42134         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
42135         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
42136         jm_AC_TYPE_UNSIGNED_LONG_LONG.
42137         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
42138
42139         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
42140
42141 1999-04-20  Jim Meyering  <meyering@ascend.com>
42142
42143         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
42144         AC_REPLACE xstroull if necessary.  From Paul Eggert.
42145         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
42146
42147 1999-04-18  Jim Meyering  <meyering@ascend.com>
42148
42149         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
42150         * m4/jm-macros.m4: Use it.
42151
42152 1999-04-06  Jim Meyering  <meyering@ascend.com>
42153
42154         * m4/strftime.m4: Remove test for %f.
42155
42156 1999-03-29  Jim Meyering  <meyering@ascend.com>
42157
42158         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
42159         superset of the AC_TYPE_* checks in the textutils, fileutils,
42160         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
42161         AC_TYPE_PID_T.
42162
42163 1999-03-28  Jim Meyering  <meyering@ascend.com>
42164
42165         * m4/jm-macros.m4: Define GNU_PACKAGE here.
42166         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
42167         replaced e.g., in the *.sh files of the sh-utils.
42168
42169 1999-03-20  Jim Meyering  <meyering@ascend.com>
42170
42171         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
42172         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
42173         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
42174
42175 1999-03-19  Jim Meyering  <meyering@ascend.com>
42176
42177         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
42178
42179 1999-03-12  Jim Meyering  <meyering@ascend.com>
42180
42181         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
42182
42183 1999-03-07  Jim Meyering  <meyering@ascend.com>
42184
42185         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
42186         declared.
42187
42188 1999-02-17  Jim Meyering  <meyering@ascend.com>
42189
42190         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
42191         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
42192
42193 1999-02-07  Jim Meyering  <meyering@ascend.com>
42194
42195         * m4/group-member.m4: New file -- extracted from sh-utils'
42196         configure.in.
42197
42198         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
42199         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
42200
42201 1999-02-06  Jim Meyering  <meyering@ascend.com>
42202
42203         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
42204         * m4/fnmatch.m4: Likewise.
42205         * m4/getgroups.m4: Likewise.
42206         * m4/lstat.m4: Likewise.
42207         * m4/malloc.m4: Likewise.
42208         * m4/putenv.m4: Likewise.
42209         * m4/realloc.m4: Likewise.
42210         * m4/regex.m4: Likewise.
42211         * m4/stat.m4: Likewise.
42212         * m4/strftime.m4: Likewise.
42213         Suggestion from Alain Magloire.
42214
42215         * m4/chown.m4: Use `.$ac_objext', not `.o'.
42216         * m4/fnmatch.m4: Likewise.
42217         * m4/getgroups.m4: Likewise.
42218         * m4/getline.m4: Likewise.
42219         * m4/lstat.m4: Likewise.
42220         * m4/malloc.m4: Likewise.
42221         * m4/memcmp.m4: Likewise.
42222         * m4/putenv.m4: Likewise.
42223         * m4/realloc.m4: Likewise.
42224         * m4/regex.m4: Likewise.
42225         * m4/stat.m4: Likewise.
42226         * m4/strftime.m4: Likewise.
42227         Suggestion from Alain Magloire.
42228
42229         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
42230         an argument.
42231
42232         * m4/regex.m4: Add a run-time Test for proper operation of
42233         re_compile_pattern.
42234
42235 1999-01-31  Jim Meyering  <meyering@ascend.com>
42236
42237         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
42238
42239 1999-01-30  Jim Meyering  <meyering@ascend.com>
42240
42241         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
42242
42243         * m4/jm-mktime.m4: Make this a wrapper around the official
42244         AM_FUNC_MKTIME rather than my private copy, now that the official one
42245         is up to date.
42246         * m4/mktime.m4: Remove file.
42247
42248         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
42249         * m4/uptime.m4: Likewise.
42250         * m4/uintmax_t.m4: Likewise.
42251
42252 1999-01-28  Jim Meyering  <meyering@ascend.com>
42253
42254         * m4/jm-macros.m4: Use jm_AFS.
42255         * m4/afs.m4: New file (from fileutils' configure.in).
42256
42257         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
42258         * m4/chown.m4: Likewise.
42259         * m4/d-ino.m4: Likewise.
42260         * m4/d-type.m4: Likewise.
42261         * m4/fnmatch.m4: Likewise.
42262         * m4/getgroups.m4: Likewise.
42263         * m4/gettext.m4: Likewise.
42264         * m4/jm-mktime.m4: Likewise.
42265         * m4/jm-winsz2.m4: Likewise.
42266         * m4/lcmessage.m4: Likewise.
42267         * m4/ls-mntd-fs.m4: Likewise.
42268         * m4/malloc.m4: Likewise.
42269         * m4/memcmp.m4: Likewise.
42270         * m4/putenv.m4: Likewise.
42271         * m4/realloc.m4: Likewise.
42272         * m4/st_mtim.m4: Likewise.
42273         * m4/strftime.m4: Likewise.
42274
42275 1999-01-16  Jim Meyering  <meyering@ascend.com>
42276
42277         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
42278         (ARGMATCH_DIE_DECL): Define.
42279
42280 1999-01-12  Jim Meyering  <meyering@ascend.com>
42281
42282         * m4/Makefile.am.in: Rewrite to avoid using fmt.
42283         Reported by Lars Hecking.
42284
42285 1999-01-10  Jim Meyering  <meyering@ascend.com>
42286
42287         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
42288         gross kludge.
42289         * m4/inttypes_h.m4: Likewise.
42290         * m4/lstat.m4: Likewise.
42291         * m4/malloc.m4: Likewise.
42292         * m4/readdir.m4: Likewise.
42293         * m4/realloc.m4: Likewise.
42294         * m4/st_dm_mode.m4: Likewise.
42295         * m4/stat.m4: Likewise.
42296         * m4/utimbuf.m4: Likewise.
42297         * m4/utimes.m4: Likewise.
42298
42299         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
42300         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
42301         comments in config.h.in are meaningful.
42302
42303         * m4/jm-macros.m4: Require autoconf-2.13 here.
42304
42305         * m4/regex.m4: By default, don't use the included regex.c on systems
42306         with glibc 2.  Suggestion from Uli Drepper.
42307
42308 1999-01-02  Jim Meyering  <meyering@ascend.com>
42309
42310         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
42311
42312 1998-12-18  Jim Meyering  <meyering@ascend.com>
42313
42314         * m4/Makefile.am.in (Makefile.am): Simplify rule.
42315         Based on a suggestion from Lars Hecking.
42316
42317 1998-11-16  Paul Eggert  <eggert@twinsun.com>
42318
42319         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
42320
42321 1998-11-16  Jim Meyering  <meyering@ascend.com>
42322
42323         * m4/lfs.m4: Double-quote the `uname...` expression.
42324
42325 1998-11-14  Jim Meyering  <meyering@ascend.com>
42326
42327         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
42328         * m4/stat.m4: Likewise.
42329
42330 1998-11-03  Jim Meyering  <meyering@ascend.com>
42331
42332         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
42333         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
42334
42335 1998-10-18  Jim Meyering  <meyering@ascend.com>
42336
42337         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
42338
42339 1998-10-17  Jim Meyering  <meyering@ascend.com>
42340
42341         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
42342         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
42343         calls for those previously hard-coded headers.  Instead, take a new
42344         parameter.
42345         (jm_CHECK_DECLARATIONS): Reflect interface change.
42346         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
42347         (jm_CHECK_DECL_LOCALTIME_R): New macro.
42348
42349         * m4/mktime.m4: Test for spring-forward gap before long-running test.
42350
42351 1998-10-14  Jim Meyering  <meyering@ascend.com>
42352
42353         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
42354         instead of "TZ=America/Vancouver".  From Paul Eggert.
42355
42356 1998-10-11  Jim Meyering  <meyering@ascend.com>
42357
42358         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
42359         This adds a test for a recently added compatibility fix for mktime.c.
42360         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
42361
42362 1998-09-27  Jim Meyering  <meyering@ascend.com>
42363
42364         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
42365
42366         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
42367         ../configure.in, including a change from Gordon Matzigkeit to allow
42368         cross-compiling for the Hurd.
42369
42370         * m4/glibc.m4: New file/macro to test for the GNU C Library
42371         versions 1 and 2.  From Gordon Matzigkeit.
42372         Indent.
42373
42374 1998-09-21  Jim Meyering  <meyering@ascend.com>
42375
42376         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
42377
42378 1998-08-18  Paul Eggert  <eggert@twinsun.com>
42379
42380         Port nanosecond-resolution times to UnixWare 2.1.2 and
42381         pedantic Solaris 2.6.
42382
42383         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
42384         AC_STRUCT_ST_MTIM.
42385         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
42386         Generate name of ns member, instead of just 1 or undef.
42387         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
42388
42389 1998-08-15  Jim Meyering  <meyering@ascend.com>
42390
42391         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
42392         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
42393         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
42394         instead of jm_TYPE_SSIZE_T.
42395
42396 1998-08-12  Jim Meyering  <meyering@ascend.com>
42397
42398         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
42399
42400 1998-08-02  Jim Meyering  <meyering@ascend.com>
42401
42402         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
42403         in acconfig.h manually.
42404
42405 1998-07-31  Paul Eggert  <eggert@twinsun.com>
42406
42407         * m4/st_mtim.m4: New file.
42408
42409 1998-07-28  Jim Meyering  <meyering@ascend.com>
42410
42411         * m4/utimes.m4: Undef stat.
42412
42413 1998-07-25  Jim Meyering  <meyering@ascend.com>
42414
42415         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
42416         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
42417
42418 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
42419
42420         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
42421         uid and gid actually remain unchanged.
42422
42423 1998-07-07  Jim Meyering  <meyering@ascend.com>
42424
42425         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
42426
42427 1998-07-04  Jim Meyering  <meyering@ascend.com>
42428
42429         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
42430         to prove that this macro can be used in packages without regex.c.
42431
42432 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
42433
42434         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
42435         is to be used.
42436
42437 1998-07-03  Jim Meyering  <meyering@ascend.com>
42438
42439         * m4/gettext.m4: Add -lintl if it's found to be necessary.
42440
42441         * m4/gettext.m4: New file -- from gettext-0.10.35.
42442         * m4/lcmessage.m4: Likewise.
42443         * m4/progtest.m4: Likewise.
42444
42445         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
42446         * m4/jm-macros.m4: Require the new macro.
42447
42448 1998-06-29  Jim Meyering  <meyering@ascend.com>
42449
42450         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
42451         for the definition of NGROUPS (used in a system header included
42452         by sys/mount.h).
42453
42454 1998-06-28  Jim Meyering  <meyering@ascend.com>
42455
42456         * m4/ls-mntd-fs.m4: New file.
42457         * m4/fstypename.m4: New file.
42458
42459         * m4/jm-macros.m4: Require the new macro.
42460         * m4/jm-glibc-io.m4: New file.
42461
42462 1998-05-19  Jim Meyering  <meyering@ascend.com>
42463
42464         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
42465         * m4/lchown.m4: New file.
42466
42467         * m4/Makefile.am.in: New file.
42468         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
42469
42470 1998-05-14  Jim Meyering  <meyering@ascend.com>
42471
42472         * m4/Makefile.am (EXTRA_DIST): Add them.
42473         * m4/jm-macros.m4: New file.
42474         * m4/utimbuf.m4: New file.
42475
42476 1998-05-12  Jim Meyering  <meyering@ascend.com>
42477
42478         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
42479
42480 1998-05-11  Jim Meyering  <meyering@ascend.com>
42481
42482         * m4/isc-posix.m4: New file.
42483
42484 1998-05-10  Jim Meyering  <meyering@ascend.com>
42485
42486         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
42487
42488 1998-05-09  Jim Meyering  <meyering@ascend.com>
42489
42490         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
42491         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
42492         with automake.
42493
42494         * m4/ssize_t.m4: New file.
42495         * m4/mktime.m4: Remove file -- the new automake has this now.
42496
42497 1998-04-26  Jim Meyering  <meyering@ascend.com>
42498
42499         * m4/assert.m4: New file.
42500         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
42501
42502 1998-04-05  Jim Meyering  <meyering@ascend.com>
42503
42504         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
42505         (jm_PREREQ): Use it here.
42506
42507 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
42508
42509         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
42510         in acconfig.h.
42511
42512 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
42513
42514         * m4/prereq.m4: New file.
42515         * m4/error.m4: New file.
42516         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
42517
42518 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
42519
42520         * m4/getline.m4: Don't set am_cv_func_working_getline before the
42521         cache-check for the same variable -- that defeated the purpose of
42522         the test; the test program was never run.  This was a problem only
42523         on systems with losing getline functions -- HP-UX 10.20 is one.
42524         Reported by Bjorn Helgaas.
42525
42526 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
42527
42528         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
42529
42530 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
42531
42532         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
42533
42534         * m4/const.m4: New file.  Use an initializer in this declaration
42535         typedef int charset[2]; const charset x;
42536         Reported by Bob Glickstein.
42537
42538 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
42539
42540         * m4/chown.m4: Fix reversed types on -1 args to chown.
42541         From Kaveh Ghazi.
42542
42543 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
42544
42545         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
42546         Add lseek and memchr.
42547
42548         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
42549         T.E.Dickey <dickey@clark.net> said that some older preprocessors
42550         have a 20-character limit on names.
42551
42552 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
42553
42554         * m4/inttypes_h.m4: New file.
42555         * m4/uintmax_t.m4: New file.
42556         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
42557
42558
42559         -----
42560
42561         Local Variables:
42562         coding: utf-8
42563         End:
42564
42565         Copyright (C) 1997-2008 Free Software Foundation, Inc.
42566
42567         Copying and distribution of this file, with or without
42568         modification, are permitted provided the copyright notice
42569         and this notice are preserved.